Skip to contentSkip to conversation

nftables: improve reproducibility

PATCH Superseded Yi Zhao 2 participants 6 messages May 11 – May 12

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/1 nftables: improve reproducibility

Use SOURCE_DATE_EPOCH to set MAKE_STAMP instead of using the current time, thereby improving reproducibility.

---
 ...-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch | 34 +++++++++++++++++++
 .../recipes-filter/nftables/nftables_1.1.6.bb |  1 +
 2 files changed, 35 insertions(+)
 create mode 100644 meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch
meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch new file +34 -0
new file mode 100644
index 0000000000..7d2f9c0dfe
@@ -0,0 +1,34 @@
+From 77de073b1cc7413b1d230995851338345d56a8f8 Mon Sep 17 00:00:00 2001
+From: Yi Zhao <[email protected]>
+Date: Mon, 11 May 2026 15:52:29 +0800
+Subject: [PATCH] configure.ac: set MAKE_STAMP to SOURCE_DATE_EPOCH
+
+If SOURCE_DATE_EPOCH is set, use it to set MAKE_STAMP instead of the
+current time.
+
+Upstream-Status: Inappropriate [embedded specific]
+
+Signed-off-by: Yi Zhao <[email protected]>
+---
+ configure.ac | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 6825474..2b147af 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -165,7 +165,10 @@ AC_CONFIG_COMMANDS([nftversion.h], [
+ ])
+ # Current date should be fetched exactly once per build,
+ # so have 'make' call date and pass the value to every 'gcc' call
+-AC_SUBST([MAKE_STAMP], ["\$(shell date +%s)"])
++AS_IF([test -n "$SOURCE_DATE_EPOCH"],
++	[MAKE_STAMP="$SOURCE_DATE_EPOCH"],
++	[MAKE_STAMP='$(shell date +%s)'])
++AC_SUBST([MAKE_STAMP])
+ 
+ AC_ARG_ENABLE([distcheck],
+ 	      AS_HELP_STRING([--enable-distcheck], [Build for distcheck]),
+-- 
+2.34.1
+
meta-networking/recipes-filter/nftables/nftables_1.1.6.bb +1 -0
index d27e60a18d..5ab31f9b0c 100644
@@ -12,6 +12,7 @@ DEPENDS = "libmnl libnftnl bison-native \
            ${@bb.utils.contains('PACKAGECONFIG', 'mini-gmp', '', 'gmp', d)}"
 
 SRC_URI = "http://www.netfilter.org/projects/nftables/files/${BP}.tar.xz \
+           file://0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch \
            file://run-ptest \
           "
 SRC_URI[sha256sum] = "372931bda8556b310636a2f9020adc710f9bab66f47efe0ce90bff800ac2530c"
Signature · 1 line
2.34.1
#1 lore raw
Quoted 16 lines · Yi Zhao via lists.openembedded.org

Use SOURCE_DATE_EPOCH to set MAKE_STAMP instead of using the current time, thereby improving reproducibility.

---
 ...-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch | 34 +++++++++++++++++++
 .../recipes-filter/nftables/nftables_1.1.6.bb |  1 +
 2 files changed, 35 insertions(+)
 create mode 100644 meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch
meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch new file +0 -0
new file mode 100644
index 0000000000..7d2f9c0dfe

meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch line 9

Quoted 9 lines
meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch new file +9 -0
@@ -0,0 +1,34 @@
+From 77de073b1cc7413b1d230995851338345d56a8f8 Mon Sep 17 00:00:00 2001
+From: Yi Zhao <[email protected]>
+Date: Mon, 11 May 2026 15:52:29 +0800
+Subject: [PATCH] configure.ac: set MAKE_STAMP to SOURCE_DATE_EPOCH
+
+If SOURCE_DATE_EPOCH is set, use it to set MAKE_STAMP instead of the
+current time.
+
+Upstream-Status: Inappropriate [embedded specific]

I think that this patch should at least be sent upstream. Reproducibility is not "embedded specific".
See https://reproducible-builds.org/

Regards,

Quoted 37 lines
meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch new file +25 -0
+
+Signed-off-by: Yi Zhao <[email protected]>
+---
+ configure.ac | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 6825474..2b147af 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -165,7 +165,10 @@ AC_CONFIG_COMMANDS([nftversion.h], [
+ ])
+ # Current date should be fetched exactly once per build,
+ # so have 'make' call date and pass the value to every 'gcc' call
+-AC_SUBST([MAKE_STAMP], ["\$(shell date +%s)"])
++AS_IF([test -n "$SOURCE_DATE_EPOCH"],
++	[MAKE_STAMP="$SOURCE_DATE_EPOCH"],
++	[MAKE_STAMP='$(shell date +%s)'])
++AC_SUBST([MAKE_STAMP])
+ 
+ AC_ARG_ENABLE([distcheck],
+ 	      AS_HELP_STRING([--enable-distcheck], [Build for distcheck]),
+-- 
+2.34.1
+
meta-networking/recipes-filter/nftables/nftables_1.1.6.bb +1 -0
index d27e60a18d..5ab31f9b0c 100644
@@ -12,6 +12,7 @@ DEPENDS = "libmnl libnftnl bison-native \
            ${@bb.utils.contains('PACKAGECONFIG', 'mini-gmp', '', 'gmp', d)}"
 
 SRC_URI = "http://www.netfilter.org/projects/nftables/files/${BP}.tar.xz \
+           file://0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch \
            file://run-ptest \
           "
 SRC_URI[sha256sum] = "372931bda8556b310636a2f9020adc710f9bab66f47efe0ce90bff800ac2530c"
Signature · 2 lines
Yoann Congal
Smile ECS
author
#2 lore raw
Quoted 21 lines · Yoann Congal via lists.openembedded.org
Quoted 20 lines · Yi Zhao via lists.openembedded.org

Use SOURCE_DATE_EPOCH to set MAKE_STAMP instead of using the current time, thereby improving reproducibility.

---
  ...-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch | 34 +++++++++++++++++++
  .../recipes-filter/nftables/nftables_1.1.6.bb |  1 +
  2 files changed, 35 insertions(+)

create mode 100644 meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch

meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch new file +4 -0
new file mode 100644
index 0000000000..7d2f9c0dfe
@@ -0,0 +1,34 @@
+From 77de073b1cc7413b1d230995851338345d56a8f8 Mon Sep 17 00:00:00 2001
+From: Yi Zhao <[email protected]>
+Date: Mon, 11 May 2026 15:52:29 +0800
+Subject: [PATCH] configure.ac: set MAKE_STAMP to SOURCE_DATE_EPOCH
Quoted 8 lines

meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch line 9

Quoted 5 lines
meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch new file +5 -0
+
+If SOURCE_DATE_EPOCH is set, use it to set MAKE_STAMP instead of the
+current time.
+
+Upstream-Status: Inappropriate [embedded specific]

I think that this patch should at least be sent upstream. Reproducibility is not "embedded specific".
See https://reproducible-builds.org/

Thanks.  I will send it upstream.

//Yi

Quoted 50 lines

Regards,

Quoted 30 lines
meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch new file +25 -0
+
+Signed-off-by: Yi Zhao <[email protected]>
+---
+ configure.ac | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 6825474..2b147af 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -165,7 +165,10 @@ AC_CONFIG_COMMANDS([nftversion.h], [
+ ])
+ # Current date should be fetched exactly once per build,
+ # so have 'make' call date and pass the value to every 'gcc' call
+-AC_SUBST([MAKE_STAMP], ["\$(shell date +%s)"])
++AS_IF([test -n "$SOURCE_DATE_EPOCH"],
++	[MAKE_STAMP="$SOURCE_DATE_EPOCH"],
++	[MAKE_STAMP='$(shell date +%s)'])
++AC_SUBST([MAKE_STAMP])
+
+ AC_ARG_ENABLE([distcheck],
+ 	      AS_HELP_STRING([--enable-distcheck], [Build for distcheck]),
+--
+2.34.1
+
meta-networking/recipes-filter/nftables/nftables_1.1.6.bb +0 -0
index d27e60a18d..5ab31f9b0c 100644

meta-networking/recipes-filter/nftables/nftables_1.1.6.bb DEPENDS = "libmnl libnftnl bison-native \ · line 18

Quoted 7 lines
meta-networking/recipes-filter/nftables/nftables_1.1.6.bb +1 -0
@@ -12,6 +12,7 @@ DEPENDS = "libmnl libnftnl bison-native \
             ${@bb.utils.contains('PACKAGECONFIG', 'mini-gmp', '', 'gmp', d)}"
 
  SRC_URI = "http://www.netfilter.org/projects/nftables/files/${BP}.tar.xz \
+           file://0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch \
             file://run-ptest \
            "
  SRC_URI[sha256sum] = "372931bda8556b310636a2f9020adc710f9bab66f47efe0ce90bff800ac2530c"

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#126851): https://lists.openembedded.org/g/openembedded-devel/message/126851
Mute This Topic: https://lists.openembedded.org/mt/119256992/7283133
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#3 lore raw
Quoted 35 lines · Yi Zhao
Quoted 24 lines · Yoann Congal via lists.openembedded.org
Quoted 23 lines · Yi Zhao via lists.openembedded.org

Use SOURCE_DATE_EPOCH to set MAKE_STAMP instead of using the current time, thereby improving reproducibility.

---
  ...-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch | 34
+++++++++++++++++++
  .../recipes-filter/nftables/nftables_1.1.6.bb |  1 +

  2 files changed, 35 insertions(+)

  create mode 100644 meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch

meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch +0 -0

new file mode 100644
index 0000000000..7d2f9c0dfe
--- /dev/null
+++
b/meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch

meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch +4 -0
@@ -0,0 +1,34 @@
+From 77de073b1cc7413b1d230995851338345d56a8f8 Mon Sep 17 00:00:00 2001
+From: Yi Zhao <[email protected]>
+Date: Mon, 11 May 2026 15:52:29 +0800
+Subject: [PATCH] configure.ac: set MAKE_STAMP to SOURCE_DATE_EPOCH
Quoted 8 lines

meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch line 9

Quoted 5 lines
meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch +5 -0
+
+If SOURCE_DATE_EPOCH is set, use it to set MAKE_STAMP instead of the
+current time.
+
+Upstream-Status: Inappropriate [embedded specific]

I think that this patch should at least be sent upstream. Reproducibility is not "embedded specific".
See https://reproducible-builds.org/

Quoted 1 line

Thanks.  I will send it upstream.

I have checked upstream and found that this commit[1] in development branch has already resolved the reproducibility issue. However, since the changes involve multiple patches, backporting them is not appropriate.

Therefore, I think we can keep the current Upstream-Status in the patch. It will be dropped upon the next release of nftables.

[1] https://git.netfilter.org/nftables/commit/?id=ca86f206c92704170a295b8dc7a41f6448835dde

//Yi

Quoted 55 lines

//Yi

Quoted 50 lines

Regards,

Quoted 31 lines
meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch +22 -0
+
+Signed-off-by: Yi Zhao <[email protected]>
+---
+ configure.ac | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 6825474..2b147af 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -165,7 +165,10 @@ AC_CONFIG_COMMANDS([nftversion.h], [
+ ])
+ # Current date should be fetched exactly once per build,
+ # so have 'make' call date and pass the value to every 'gcc' call
+-AC_SUBST([MAKE_STAMP], ["\$(shell date +%s)"])
++AS_IF([test -n "$SOURCE_DATE_EPOCH"],
++    [MAKE_STAMP="$SOURCE_DATE_EPOCH"],
++    [MAKE_STAMP='$(shell date +%s)'])
++AC_SUBST([MAKE_STAMP])
+
+ AC_ARG_ENABLE([distcheck],
+           AS_HELP_STRING([--enable-distcheck], [Build for 

distcheck]),
+--
+2.34.1

meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch +1 -0
+
meta-networking/recipes-filter/nftables/nftables_1.1.6.bb +0 -0
index d27e60a18d..5ab31f9b0c 100644
@@ -12,6 +12,7 @@ DEPENDS = "libmnl libnftnl bison-native \
Quoted 6 lines

             ${@bb.utils.contains('PACKAGECONFIG', 'mini-gmp', '', 'gmp', d)}" SRC_URI = "http://www.netfilter.org/projects/nftables/files/${BP}.tar.xz \
+ file://0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch \
             file://run-ptest \
            "
  SRC_URI[sha256sum] = "372931bda8556b310636a2f9020adc710f9bab66f47efe0ce90bff800ac2530c"

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#126851): https://lists.openembedded.org/g/openembedded-devel/message/126851
Mute This Topic: https://lists.openembedded.org/mt/119256992/7283133
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw
Quoted 48 lines · Yi Zhao
Quoted 39 lines · Yi Zhao
Quoted 28 lines · Yoann Congal via lists.openembedded.org
Quoted 26 lines · Yi Zhao via lists.openembedded.org

Use SOURCE_DATE_EPOCH to set MAKE_STAMP instead of using the current time, thereby improving reproducibility.

---
  ...-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch | 34
+++++++++++++++++++
  .../recipes-filter/nftables/nftables_1.1.6.bb |  1 +

  2 files changed, 35 insertions(+)

  create mode 100644 meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch

(quoted diff) +0 -0

a/meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch b/meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch

new file mode 100644
index 0000000000..7d2f9c0dfe
--- /dev/null
+++
b/meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch

meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch new file +4 -0
@@ -0,0 +1,34 @@
+From 77de073b1cc7413b1d230995851338345d56a8f8 Mon Sep 17 00:00:00 2001
+From: Yi Zhao <[email protected]>
+Date: Mon, 11 May 2026 15:52:29 +0800
+Subject: [PATCH] configure.ac: set MAKE_STAMP to SOURCE_DATE_EPOCH
Quoted 8 lines

meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch line 9

Quoted 5 lines
meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch new file +5 -0
+
+If SOURCE_DATE_EPOCH is set, use it to set MAKE_STAMP instead of the
+current time.
+
+Upstream-Status: Inappropriate [embedded specific]

I think that this patch should at least be sent upstream. Reproducibility is not "embedded specific".
See https://reproducible-builds.org/

Quoted 1 line

Thanks.  I will send it upstream.

I have checked upstream and found that this commit[1] in development branch has already resolved the reproducibility issue. However, since the changes involve multiple patches, backporting them is not appropriate.

Quoted 5 lines

Therefore, I think we can keep the current Upstream-Status in the patch. It will be dropped upon the next release of nftables.

[1]
https://git.netfilter.org/nftables/commit/?id=ca86f206c92704170a295b8dc7a41f6448835dde

Awesome news :)

In that case, your patch could be seen as the "Upstream-Status: Backport" of this URL... At least, please add the URL to the patch as a reference so this
precious information is not lost when the upgrade will happen.

Thanks!

Quoted 67 lines

//Yi

Quoted 63 lines

//Yi

Quoted 58 lines

Regards,

Quoted 34 lines
meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch new file +22 -0
+
+Signed-off-by: Yi Zhao <[email protected]>
+---
+ configure.ac | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 6825474..2b147af 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -165,7 +165,10 @@ AC_CONFIG_COMMANDS([nftversion.h], [
+ ])
+ # Current date should be fetched exactly once per build,
+ # so have 'make' call date and pass the value to every 'gcc' call
+-AC_SUBST([MAKE_STAMP], ["\$(shell date +%s)"])
++AS_IF([test -n "$SOURCE_DATE_EPOCH"],
++    [MAKE_STAMP="$SOURCE_DATE_EPOCH"],
++    [MAKE_STAMP='$(shell date +%s)'])
++AC_SUBST([MAKE_STAMP])
+
+ AC_ARG_ENABLE([distcheck],
+           AS_HELP_STRING([--enable-distcheck], [Build for 

distcheck]),
+--
+2.34.1

(quoted diff) +1 -0
+
(quoted diff) +0 -0

a/meta-networking/recipes-filter/nftables/nftables_1.1.6.bb b/meta-networking/recipes-filter/nftables/nftables_1.1.6.bb index d27e60a18d..5ab31f9b0c 100644

meta-networking/recipes-filter/nftables/nftables_1.1.6.bb +0 -0
@@ -12,6 +12,7 @@ DEPENDS = "libmnl libnftnl bison-native \
              ${@bb.utils.contains('PACKAGECONFIG', 'mini-gmp', '', 
Quoted 8 lines

'gmp', d)}"
    SRC_URI = "http://www.netfilter.org/projects/nftables/files/${BP}.tar.xz \
+ file://0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch \
             file://run-ptest \
            "
  SRC_URI[sha256sum] = "372931bda8556b310636a2f9020adc710f9bab66f47efe0ce90bff800ac2530c"

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#126851):
https://lists.openembedded.org/g/openembedded-devel/message/126851
Mute This Topic: https://lists.openembedded.org/mt/119256992/7283133
Group Owner: [email protected] Unsubscribe:
https://lists.openembedded.org/g/openembedded-devel/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 2 lines
Yoann Congal
Smile ECS
author
#5 lore raw
Quoted 48 lines · Yoann Congal
Quoted 47 lines · Yi Zhao
Quoted 37 lines · Yi Zhao
Quoted 28 lines · Yoann Congal via lists.openembedded.org
Quoted 26 lines · Yi Zhao via lists.openembedded.org

Use SOURCE_DATE_EPOCH to set MAKE_STAMP instead of using the current time, thereby improving reproducibility.

---
   ...-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch | 34
+++++++++++++++++++
   .../recipes-filter/nftables/nftables_1.1.6.bb |  1 +
   2 files changed, 35 insertions(+)

  create mode 100644
meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch

diff --git a/meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch b/meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch

new file mode 100644
index 0000000000..7d2f9c0dfe
--- /dev/null
+++
b/meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch

meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch new file +4 -0
@@ -0,0 +1,34 @@
+From 77de073b1cc7413b1d230995851338345d56a8f8 Mon Sep 17 00:00:00 2001
+From: Yi Zhao <[email protected]>
+Date: Mon, 11 May 2026 15:52:29 +0800
+Subject: [PATCH] configure.ac: set MAKE_STAMP to SOURCE_DATE_EPOCH
Quoted 8 lines

meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch line 9

Quoted 5 lines
meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch new file +5 -0
+
+If SOURCE_DATE_EPOCH is set, use it to set MAKE_STAMP instead of the
+current time.
+
+Upstream-Status: Inappropriate [embedded specific]

I think that this patch should at least be sent upstream. Reproducibility is not "embedded specific".
See https://reproducible-builds.org/

Quoted 1 line

Thanks.  I will send it upstream.

I have checked upstream and found that this commit[1] in development branch has already resolved the reproducibility issue. However, since the changes involve multiple patches, backporting them is not appropriate.

Therefore, I think we can keep the current Upstream-Status in the patch. It will be dropped upon the next release of nftables.

Quoted 7 lines
Quoted 2 lines

[1]
https://git.netfilter.org/nftables/commit/?id=ca86f206c92704170a295b8dc7a41f6448835dde

Awesome news :)

In that case, your patch could be seen as the "Upstream-Status: Backport" of this URL... At least, please add the URL to the patch as a reference so this
precious information is not lost when the upgrade will happen.

Thanks.  I will send v2.

//Yi

Quoted 66 lines

Thanks!

Quoted 63 lines

//Yi

Quoted 60 lines

//Yi

Quoted 56 lines

Regards,

Quoted 34 lines
meta-networking/recipes-filter/nftables/nftables/0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch new file +22 -0
+
+Signed-off-by: Yi Zhao <[email protected]>
+---
+ configure.ac | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 6825474..2b147af 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -165,7 +165,10 @@ AC_CONFIG_COMMANDS([nftversion.h], [
+ ])
+ # Current date should be fetched exactly once per build,
+ # so have 'make' call date and pass the value to every 'gcc' call
+-AC_SUBST([MAKE_STAMP], ["\$(shell date +%s)"])
++AS_IF([test -n "$SOURCE_DATE_EPOCH"],
++    [MAKE_STAMP="$SOURCE_DATE_EPOCH"],
++    [MAKE_STAMP='$(shell date +%s)'])
++AC_SUBST([MAKE_STAMP])
+
+ AC_ARG_ENABLE([distcheck],
+           AS_HELP_STRING([--enable-distcheck], [Build for

distcheck]),
+--
+2.34.1
+
diff --git a/meta-networking/recipes-filter/nftables/nftables_1.1.6.bb b/meta-networking/recipes-filter/nftables/nftables_1.1.6.bb index d27e60a18d..5ab31f9b0c 100644

meta-networking/recipes-filter/nftables/nftables_1.1.6.bb +0 -0
@@ -12,6 +12,7 @@ DEPENDS = "libmnl libnftnl bison-native \
              ${@bb.utils.contains('PACKAGECONFIG', 'mini-gmp', '',
Quoted 8 lines

'gmp', d)}"
    SRC_URI =
"http://www.netfilter.org/projects/nftables/files/${BP}.tar.xz \
+ file://0001-configure.ac-set-MAKE_STAMP-to-SOURCE_DATE_EPOCH.patch \
             file://run-ptest \
            "
  SRC_URI[sha256sum] =
"372931bda8556b310636a2f9020adc710f9bab66f47efe0ce90bff800ac2530c"

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#126851):
https://lists.openembedded.org/g/openembedded-devel/message/126851
Mute This Topic: https://lists.openembedded.org/mt/119256992/7283133
Group Owner: [email protected] Unsubscribe:
https://lists.openembedded.org/g/openembedded-devel/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-