All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Thuận Nguyễn-Thái" <nguyenthaithuanalg@gmail.com>
To: openembedded-devel@lists.openembedded.org
Cc: "Thuận Nguyễn-Thái" <nguyenthaithuanalg@gmail.com>
Subject: [PATCH v2 2/2] libsimplelog: upgrade 1.0.8 -> 1.1.0
Date: Mon, 20 Jul 2026 23:30:30 +0700	[thread overview]
Message-ID: <20260720163030.7247-2-nguyenthaithuanalg@gmail.com> (raw)
In-Reply-To: <20260720163030.7247-1-nguyenthaithuanalg@gmail.com>

Upgrade libsimplelog to the latest upstream version 1.1.0.

Drop 0001-allow-build-with-cmake-4.patch as it is now integrated
upstream (commit 4827c4325063266f6d2a7e133a9d3a9050ff6a3c).

Update LIC_FILES_CHKSUM due to upstream updating the copyright year
range from 2024 to 2024-2026 in LICENSE.txt. The project remains fully
under the MIT license.

Append -D__LINUX__=1 and -D_GNU_SOURCE=1 to EXTRA_OECMAKE to enable
Linux and GNU-specific extensions like sched_getcpu() for better
performance effectiveness. These flags are optional; without them,
version 1.1.0 remains fully backward compatible and adapts perfectly
with strictly POSIX musl environments.

Signed-off-by: Thuận Nguyễn-Thái <nguyenthaithuanalg@gmail.com>
---
 .../libsimplelog/msg_patch2.txt               | 18 +++++
 meta-oe/recipes-support/libsimplelog/z.sh     | 71 +++++++++++++++++++
 2 files changed, 89 insertions(+)
 create mode 100644 meta-oe/recipes-support/libsimplelog/msg_patch2.txt
 create mode 100755 meta-oe/recipes-support/libsimplelog/z.sh

diff --git a/meta-oe/recipes-support/libsimplelog/msg_patch2.txt b/meta-oe/recipes-support/libsimplelog/msg_patch2.txt
new file mode 100644
index 0000000000..3459f6614f
--- /dev/null
+++ b/meta-oe/recipes-support/libsimplelog/msg_patch2.txt
@@ -0,0 +1,18 @@
+libsimplelog: upgrade 1.0.8 -> 1.1.0
+
+Upgrade libsimplelog to the latest upstream version 1.1.0.
+
+Drop 0001-allow-build-with-cmake-4.patch as it is now integrated
+upstream (commit 4827c4325063266f6d2a7e133a9d3a9050ff6a3c).
+
+Update LIC_FILES_CHKSUM due to upstream updating the copyright year 
+range from 2024 to 2024-2026 in LICENSE.txt. The project remains fully 
+under the MIT license.
+
+Append -D__LINUX__=1 and -D_GNU_SOURCE=1 to EXTRA_OECMAKE to enable 
+Linux and GNU-specific extensions like sched_getcpu() for better 
+performance effectiveness. These flags are optional; without them, 
+version 1.1.0 remains fully backward compatible and adapts perfectly 
+with strictly POSIX musl environments.
+
+Signed-off-by: Thuận Nguyễn-Thái <nguyenthaithuanalg@gmail.com>
diff --git a/meta-oe/recipes-support/libsimplelog/z.sh b/meta-oe/recipes-support/libsimplelog/z.sh
new file mode 100755
index 0000000000..dafcbd0883
--- /dev/null
+++ b/meta-oe/recipes-support/libsimplelog/z.sh
@@ -0,0 +1,71 @@
+#!/bin/bash
+# Tự động dừng script nếu có bất kỳ lệnh nào bị lỗi
+set -e
+
+echo "============================================="
+echo "Starting automated Git rewrite for V2 submission..."
+echo "============================================="
+
+# 1. Hủy bỏ tạm thời 3 commit cũ nhưng giữ nguyên trạng thái các file đã sửa đổi
+echo "-> Resetting the last 3 commits..."
+git reset --soft HEAD~3
+
+# 2. Tạo nội dung văn bản cho Commit số 1 (Binary Log & Cache Feature)
+echo "-> Creating Commit Message for Patch 1..."
+cat << 'EOF' > msg_patch1.txt
+libsimplelog: add binary log feature and cache hit/miss support
+
+Introduce a new binary log feature based on UTF-8 encoding patterns
+to optimize logging capabilities. 
+
+Add cache hit and miss tracking mechanism to monitor performance 
+effectiveness.
+
+Signed-off-by: Thuận Nguyễn-Thái <nguyenthaithuanalg@gmail.com>
+EOF
+
+# 3. Tiến hành commit cho phần thay đổi của Patch 1 trước
+# Chỉ add và commit file recipe .bb gốc tại thời điểm có tính năng này
+echo "-> Committing Patch 1..."
+git commit -s -F msg_patch1.txt
+rm msg_patch1.txt
+
+# 4. Tạo nội dung văn bản cho Commit số 2 (Upgrade 1.1.0 & GNU_SOURCE)
+echo "-> Creating Commit Message for Patch 2..."
+cat << 'EOF' > msg_patch2.txt
+libsimplelog: upgrade 1.0.8 -> 1.1.0
+
+Upgrade libsimplelog to the latest upstream version 1.1.0.
+
+Drop 0001-allow-build-with-cmake-4.patch as it is now integrated
+upstream (commit 4827c4325063266f6d2a7e133a9d3a9050ff6a3c).
+
+Update LIC_FILES_CHKSUM due to upstream updating the copyright year 
+range from 2024 to 2024-2026 in LICENSE.txt. The project remains fully 
+under the MIT license.
+
+Append -D__LINUX__=1 and -D_GNU_SOURCE=1 to EXTRA_OECMAKE to enable 
+Linux and GNU-specific extensions like sched_getcpu() for better 
+performance effectiveness. These flags are optional; without them, 
+version 1.1.0 remains fully backward compatible and adapts perfectly 
+with strictly POSIX musl environments.
+
+Signed-off-by: Thuận Nguyễn-Thái <nguyenthaithuanalg@gmail.com>
+EOF
+
+# 5. Đưa tất cả các thay đổi nâng cấp còn lại (bao gồm cả comment mới) vào Commit số 2
+echo "-> Committing Patch 2..."
+git add .
+git commit -s -F msg_patch2.txt
+rm msg_patch2.txt
+
+# 6. Xuất chuỗi bản vá phiên bản V2 (2 file patch)
+echo "-> Generating V2 patches..."
+git format-patch -2 -v2
+
+echo "============================================="
+echo "SUCCESS! Your local history is cleaned up."
+echo "V2 Patches are generated in the current directory."
+echo "============================================="
+ls -l v2-*.patch
+
-- 
2.43.0



      reply	other threads:[~2026-07-20 16:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-20 16:30 [PATCH v2 1/2] libsimplelog: add binary log feature and cache hit/miss support Thuận Nguyễn-Thái
2026-07-20 16:30 ` Thuận Nguyễn-Thái [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260720163030.7247-2-nguyenthaithuanalg@gmail.com \
    --to=nguyenthaithuanalg@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.