On Fri, 02 Aug 2019 14:13:40 +0200, Bernhard M. Wiedemann wrote:
without this patch, there were such diffs in build-compare: +++ new//.build.initrd.kvm.cpio.extract.6630.6643/etc/shadow @@ -1 +1 @@ -root:*:18110:::::: +root:*:23621::::::
---
If this patch is not good enough, there is also https://github.com/shadow-maint/shadow/pull/146 part of Factory's shadow-4.7 but it seems that it is the build host's shadow version used or SOURCE_DATE_EPOCH is not set in that context.
Well, the purpose of this package isn't to provide any package to be used, but rather preparing for the QA test with the latest kernel. So I don't think we need too much hack for the reproducible builds. It needs triggering after each build, after all. thanks, Takashi
--- rpm/kernel-obs-build.spec.in | 1 + 1 file changed, 1 insertion(+)
diff --git a/rpm/kernel-obs-build.spec.in b/rpm/kernel-obs-build.spec.in index 91ad608e44..262113fe1b 100644 --- a/rpm/kernel-obs-build.spec.in +++ b/rpm/kernel-obs-build.spec.in @@ -80,6 +80,7 @@ loaded during build when installing the kernel package. %prep
%build +sed -i 's/^root:\*:[1-9][0-9]*::::::/root:*:42::::::/' /etc/shadow # strip date from dracut-generated initrd to make build reproducible (boo#1047218) mkdir -p /usr/lib/dracut/modules.d/80obs cat > /usr/lib/dracut/modules.d/80obs/module-setup.sh <
-- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org