Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Armin Kuster <akuster808@gmail.com>
To: openembedded-devel@lists.openembedded.org
Cc: Khem Raj <raj.khem@gmail.com>
Subject: [meta-oe][styhead][PATCH 78/90] ndisc6: Fix reproducible build
Date: Tue,  5 Nov 2024 09:35:43 -0500	[thread overview]
Message-ID: <20241105143638.2301245-79-akuster808@gmail.com> (raw)
In-Reply-To: <20241105143638.2301245-1-akuster808@gmail.com>

From: Khem Raj <raj.khem@gmail.com>

includes the CFLAGS used to build the package in
the binary via PACKAGE_CONFIGURE_INVOCATION which then includes the
absolute build path via (eg.) the -ffile-prefix-map flag.

Here we remove using variables like PACKAGE_CONFIGURE_INVOCATION in code

Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 70c663b7ae90283d25ca3704852ca96aa808e31a)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
 ...riables-indicating-buildtime-informa.patch | 85 +++++++++++++++++++
 .../recipes-support/ndisc6/ndisc6_1.0.8.bb    |  1 +
 2 files changed, 86 insertions(+)
 create mode 100644 meta-networking/recipes-support/ndisc6/ndisc6/0001-Remove-use-of-variables-indicating-buildtime-informa.patch

diff --git a/meta-networking/recipes-support/ndisc6/ndisc6/0001-Remove-use-of-variables-indicating-buildtime-informa.patch b/meta-networking/recipes-support/ndisc6/ndisc6/0001-Remove-use-of-variables-indicating-buildtime-informa.patch
new file mode 100644
index 0000000000..7bfb17bf08
--- /dev/null
+++ b/meta-networking/recipes-support/ndisc6/ndisc6/0001-Remove-use-of-variables-indicating-buildtime-informa.patch
@@ -0,0 +1,85 @@
+From 7b3e78cf0348ea737609a2ace07c7c55aae36bcb Mon Sep 17 00:00:00 2001
+From: Santiago Vila <sanvila@debian.org>
+Date: Wed, 9 Oct 2024 22:05:09 -0700
+Subject: [PATCH] Remove use of variables indicating buildtime information
+
+We should not really care about the build date or the build host
+
+Sourced From: https://salsa.debian.org/debian/ndisc6/-/blob/master/debian/patches/reproducible-build.patch?ref_type=heads
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ rdnss/rdnssd.c   | 2 --
+ src/addrinfo.c   | 2 --
+ src/ndisc.c      | 2 --
+ src/tcpspray.c   | 2 --
+ src/traceroute.c | 2 --
+ 5 files changed, 10 deletions(-)
+
+diff --git a/rdnss/rdnssd.c b/rdnss/rdnssd.c
+index b87edb2..7201525 100644
+--- a/rdnss/rdnssd.c
++++ b/rdnss/rdnssd.c
+@@ -741,8 +741,6 @@ version (void)
+ {
+ 	printf (_("rdnssd: IPv6 Recursive DNS Server discovery Daemon %s (%s)\n"),
+ 	        VERSION, "$Rev$");
+-	printf (_(" built %s on %s\n"), __DATE__, PACKAGE_BUILD_HOSTNAME);
+-	printf (_("Configured with: %s\n"), PACKAGE_CONFIGURE_INVOCATION);
+ 	puts (_("Written by Pierre Ynard and Remi Denis-Courmont\n"));
+ 
+ 	printf (_("Copyright (C) %u-%u Pierre Ynard, Remi Denis-Courmont\n"),
+diff --git a/src/addrinfo.c b/src/addrinfo.c
+index cd73722..6316abd 100644
+--- a/src/addrinfo.c
++++ b/src/addrinfo.c
+@@ -148,8 +148,6 @@ static int quick_usage (const char *path)
+ static int version (void)
+ {
+         printf (_("addrinfo %s (%s)\n"), VERSION, "$Rev$");
+-	printf (_(" built %s on %s\n"), __DATE__, PACKAGE_BUILD_HOSTNAME);
+-        printf (_("Configured with: %s\n"), PACKAGE_CONFIGURE_INVOCATION);
+         puts (_("Written by Remi Denis-Courmont\n"));
+ 
+         printf (_("Copyright (C) %u-%u Remi Denis-Courmont\n"), 2002, 2007);
+diff --git a/src/ndisc.c b/src/ndisc.c
+index b190b18..6e222a0 100644
+--- a/src/ndisc.c
++++ b/src/ndisc.c
+@@ -920,9 +920,7 @@ version (void)
+ {
+ 	printf (_(
+ "ndisc6: IPv6 Neighbor/Router Discovery userland tool %s (%s)\n"), VERSION, "$Rev$");
+-	printf (_(" built %s on %s\n"), __DATE__, PACKAGE_BUILD_HOSTNAME);
+ 
+-	printf (_("Configured with: %s\n"), PACKAGE_CONFIGURE_INVOCATION);
+ 	puts (_("Written by Remi Denis-Courmont\n"));
+ 
+ 	printf (_("Copyright (C) %u-%u Remi Denis-Courmont\n"), 2004, 2007);
+diff --git a/src/tcpspray.c b/src/tcpspray.c
+index 39d8939..6347795 100644
+--- a/src/tcpspray.c
++++ b/src/tcpspray.c
+@@ -302,8 +302,6 @@ version (void)
+ {
+ 	printf (_(
+ "tcpspray6: TCP/IP bandwidth tester %s (%s)\n"), VERSION, "$Rev$");
+-	printf (_(" built %s on %s\n"), __DATE__, PACKAGE_BUILD_HOSTNAME);
+-	printf (_("Configured with: %s\n"), PACKAGE_CONFIGURE_INVOCATION);
+ 	puts (_("Written by Remi Denis-Courmont\n"));
+ 
+ 	printf (_("Copyright (C) %u-%u Remi Denis-Courmont\n"), 2005, 2007);
+diff --git a/src/traceroute.c b/src/traceroute.c
+index 489bc55..604b6af 100644
+--- a/src/traceroute.c
++++ b/src/traceroute.c
+@@ -1251,8 +1251,6 @@ version (void)
+ {
+ 	printf (_(
+ "traceroute6: TCP & UDP IPv6 traceroute tool %s (%s)\n"), VERSION, "$Rev$");
+-	printf (_(" built %s on %s\n"), __DATE__, PACKAGE_BUILD_HOSTNAME);
+-	printf (_("Configured with: %s\n"), PACKAGE_CONFIGURE_INVOCATION);
+ 	puts (_("Written by Remi Denis-Courmont\n"));
+ 
+ 	printf (_("Copyright (C) %u-%u Remi Denis-Courmont\n"), 2005, 2007);
diff --git a/meta-networking/recipes-support/ndisc6/ndisc6_1.0.8.bb b/meta-networking/recipes-support/ndisc6/ndisc6_1.0.8.bb
index fb00b83516..21579d64c1 100644
--- a/meta-networking/recipes-support/ndisc6/ndisc6_1.0.8.bb
+++ b/meta-networking/recipes-support/ndisc6/ndisc6_1.0.8.bb
@@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
 SRCREV = "92e5d1cf6547fe40316b2a6ca2f7b8195ae0cbe5"
 SRC_URI = "git://git.remlab.net/git/ndisc6.git;protocol=http;branch=master \
            file://0001-autogen-Do-not-symlink-gettext.h-from-build-host.patch \
+           file://0001-Remove-use-of-variables-indicating-buildtime-informa.patch \
            "
 
 S = "${WORKDIR}/git"
-- 
2.43.0



  parent reply	other threads:[~2024-11-05 14:37 UTC|newest]

Thread overview: 92+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-05 14:34 [meta-oe][styhead][PATCH 00/90] Patch review Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 01/90] bdwgc: upgrade 8.2.6 -> 8.2.8 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 02/90] ctags: upgrade 6.1.20240908.0 -> 6.1.20240915.0 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 03/90] gnome-backgrounds: upgrade 46.0 -> 47.0 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 04/90] gnome-chess: " Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 05/90] gnome-font-viewer: " Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 06/90] libmanette: upgrade 0.2.7 -> 0.2.9 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 07/90] pegtl: upgrade 3.2.7 -> 3.2.8 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 08/90] python3-elementpath: upgrade 4.4.0 -> 4.5.0 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 09/90] python3-eventlet: upgrade 0.36.1 -> 0.37.0 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 10/90] python3-filelock: upgrade 3.16.0 -> 3.16.1 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 11/90] python3-greenlet: upgrade 3.0.3 -> 3.1.0 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 12/90] python3-nmap: upgrade 1.6.0 -> 1.9.1 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 13/90] python3-paramiko: upgrade 3.4.1 -> 3.5.0 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 14/90] python3-platformdirs: upgrade 4.3.1 -> 4.3.6 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 15/90] python3-psycopg: upgrade 3.2.1 -> 3.2.2 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 16/90] python3-pyasn1-modules: upgrade 0.4.0 -> 0.4.1 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 17/90] python3-pymisp: upgrade 2.4.197 -> 2.4.198 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 18/90] python3-pyproject-api: upgrade 1.7.1 -> 1.7.2 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 19/90] python3-pyunormalize: upgrade 15.1.0 -> 16.0.0 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 20/90] python3-regex: upgrade 2024.7.24 -> 2024.9.11 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 21/90] python3-rich: upgrade 13.8.0 -> 13.8.1 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 22/90] python3-robotframework: upgrade 7.0.1 -> 7.1 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 23/90] python3-virtualenv: upgrade 20.26.4 -> 20.26.5 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 24/90] python3-xmlschema: upgrade 3.3.2 -> 3.4.1 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 25/90] python3-yarl: upgrade 1.10.0 -> 1.11.1 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 26/90] stunnel: upgrade 5.72 -> 5.73 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 27/90] tecla: upgrade 46.0 -> 47.0 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 28/90] traceroute: upgrade 2.1.5 -> 2.1.6 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 29/90] opencv: upgrade 4.9.0 -> 4.10.0 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 30/90] abseil-cpp: upgrade 20240116.2 -> 20240722.0 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 31/90] protobuf: add abseil-cpp to RDEPENDS Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 32/90] protobuf: upgrade 4.25.4 -> 4.25.5 Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 33/90] non-repro-meta-networking: update known non-reproducible list Armin Kuster
2024-11-05 14:34 ` [meta-oe][styhead][PATCH 34/90] lksctp-tools: upgrade 1.0.19 -> 1.0.20 Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 35/90] gnome-shell: add gnome-control-center dependency Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 36/90] gnome-desktop: update 44.0 -> 44.1 Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 37/90] gpsd: make the meta-python dependency conditionally Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 38/90] tcpslice: upgrade 1.7 -> 1.8 Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 39/90] audit: Fix CVE_PRODUCT Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 40/90] python3-typer: Disable test_rich_markup_mode tests Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 41/90] perfetto: upgrade 31.0 -> 47.0 Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 42/90] python3-pydbus: Add missing rdep on xml module for ptests Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 43/90] python3-ujson: Add python misc modules to ptest rdeps Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 44/90] python3-gunicorn: Add missing rdeps for ptests Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 45/90] python3-eth-hash: Add packageconfigs and switch to pep517-backend Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 46/90] python3-validators: Add missing rdeps for ptests Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 47/90] syslog-ng: upgrade 4.6.0 -> 4.7.0 Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 48/90] polkit: Update Upstream-Status of a merged patch Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 49/90] capnproto: Add "capnp" to CVE_PRODUCT Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 50/90] fuse: Add "fuse:fuse" " Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 51/90] python3-pint: Upgrade to 0.24.3 Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 52/90] python3-pytest-mock: Fix ptests Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 53/90] python3-sqlparse: Add missing rdep on mypy module for ptests Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 54/90] Revert "gpsd: make the meta-python dependency conditionally" Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 55/90] gpsd: condition the runtime dependence of pyserial on the pygps Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 56/90] xfce4-panel: upgrade 4.18.3 -> 4.18.4 Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 57/90] softhsm: add destroyed global access prevention patch Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 58/90] audit: fix build when systemd is enabled Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 59/90] python3-sqlalchemy: Upgrade 2.0.32 -> 2.0.35 and switch to PEP-517 build backend Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 60/90] python3-alembic: " Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 61/90] python3-inflate64: " Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 62/90] python3-spidev: " Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 63/90] python3-pastedeploy: " Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 64/90] python3-reedsolo: " Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 65/90] libtar: patch CVEs Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 66/90] curlpp: Fix build issue Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 67/90] libhugetlbfs: upgrade 2.23 -> 2.24 Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 68/90] libhugetlbfs: Use linker wrapper during build Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 69/90] libhugetlbfs: Fix contains reference to TMPDIR [buildpaths] error Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 70/90] wireshark: fix typo in PACKAGECONFIG[zstd] Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 71/90] webkitgtk3: Always use -g1 for debug flags Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 72/90] webkitgtk3: Fix build break with latest gir Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 73/90] nodejs: upgrade 20.17.0 -> 20.18.0 Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 74/90] xfce4-panel: upgrade 4.18.4 -> 4.18.5 Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 75/90] apache2: do not depend on zlib header and libs from host Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 76/90] wtmpdb: fix installed-vs-shipped build error Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 77/90] jansson: add JSON_INTEGER_IS_LONG_LONG for cmake Armin Kuster
2024-11-05 14:35 ` Armin Kuster [this message]
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 79/90] cryptsetup: fix udev PACKAGECONFIG Armin Kuster
2024-11-22 18:57   ` [oe] " Peter Kjellerstedt
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 80/90] sound-theme-freedesktop: Update SRC_URI Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 81/90] rsyslog: Enable 64bit atomics check Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 82/90] minidlna: fix reproducibility Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 83/90] kernel-selftest: Update to allow for turning on all tests Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 84/90] xmlrpc-c: update SRCREV Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 85/90] nodejs: cleanup Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 86/90] nmap: Fix off-by-one overflow in the IP protocol table Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 87/90] wireguard-tools: fix do_fetch error Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 88/90] vlock: " Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 89/90] xmlsec1: Switch SRC_URI to use github release Armin Kuster
2024-11-05 14:35 ` [meta-oe][styhead][PATCH 90/90] nng: Rename default branch of github.com:nanomsg/nng.git Armin Kuster

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=20241105143638.2301245-79-akuster808@gmail.com \
    --to=akuster808@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=raj.khem@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox