From 60c0ac413754d4c84628932607ee7ecb8a21f6ba05e824e5b0d698ad8fc674e5 Mon Sep 17 00:00:00 2001 From: Kristyna Streitova Date: Fri, 20 Jul 2018 11:29:06 +0000 Subject: [PATCH] Accepting request 622342 from home:bmwiedemann:branches:Base:System Build with make -B to make package build reproducible e.g. diff had a locale.c vs ./locale.c: /usr/sbin/visudo differs in ELF section .rodata @@ -13,8 +13,8 @@ 20120 636d6e64 5f616c6c 6f776564 00000000 cmnd_allowed.... 20130 66696e64 5f706174 6800676f 6f647061 find_path.goodpa 20140 74682e63 00000000 7375646f 5f676f6f th.c....sudo_goo - 20150 64706174 68006c6f 63616c65 2e630043 dpath.locale.c.C - 20160 00000000 00000000 25733a20 75736572 ........%s: user + 20150 64706174 68002e2f 6c6f6361 6c652e63 dpath../locale.c + 20160 00430000 00000000 25733a20 75736572 .C......%s: user 20170 206c6f63 616c6520 25732c20 7375646f locale %s, sudo 20180 65727320 6c6f6361 6c652025 73000000 ers locale %s... 20190 25733a20 73657474 696e6720 6c6f6361 %s: setting loca OBS-URL: https://build.opensuse.org/request/show/622342 OBS-URL: https://build.opensuse.org/package/show/Base:System/sudo?expand=0&rev=141 --- sudo.changes | 5 +++++ sudo.spec | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/sudo.changes b/sudo.changes index 4930079..b4ece19 100644 --- a/sudo.changes +++ b/sudo.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jul 12 19:14:48 UTC 2018 - bwiedemann@suse.com + +- Build with make -B to make package build reproducible + ------------------------------------------------------------------- Wed May 2 16:19:56 UTC 2018 - michael@stroeder.com diff --git a/sudo.spec b/sudo.spec index 39f285e..71bfbaf 100644 --- a/sudo.spec +++ b/sudo.spec @@ -104,7 +104,8 @@ export LDFLAGS="-pie" --with-passprompt="[sudo] password for %%p: " \ --with-rundir=%{_localstatedir}/lib/sudo \ --with-sssd -make %{?_smp_mflags} +# -B required to make every build give the same result - maybe from bad build deps in Makefiles? +make -B %{?_smp_mflags} %install %make_install install_uid=`id -u` install_gid=`id -g`