Bug#990795: libident -- Fails to build reproducibly
Nilesh Patra
nilesh at debian.org
Wed Jul 7 17:38:49 BST 2021
Package: libident
Version: 0.22-3.1
Severity: normal
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps, buildpath
X-Debbugs-Cc: nilesh at debian.org, nilesh at debian.org, reproducible-bugs at lists.alioth.debian.org
Dear Maintainer,
libident fails to build reproducibly because:
a) It injects timestamps in gzip
b) It injects buildpath
Please consider applying the attached patch
Nilesh
-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 5.7.0-2-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages libident depends on:
ii libc6 2.31-3
libident recommends no packages.
Versions of packages libident suggests:
pn libident-dev <none>
-------------- next part --------------
diff -u libident-0.22/Makefile libident-0.22/Makefile
--- libident-0.22/Makefile
+++ libident-0.22/Makefile
@@ -117,7 +117,7 @@
(PACKNAME=`basename \`pwd\`` ; cd .. ; /usr/gnu/bin/tar Zcf $$PACKNAME.tar.Z $$PACKNAME)
dist distz: clean version
- (PACKNAME=`basename \`pwd\`` ; cd .. ; /usr/gnu/bin/tar cf - $$PACKNAME | gzip -9 >$$PACKNAME.tar.gz)
+ (PACKNAME=`basename \`pwd\`` ; cd .. ; /usr/gnu/bin/tar cf - $$PACKNAME | gzip -9n >$$PACKNAME.tar.gz)
diff -u libident-0.22/debian/rules libident-0.22/debian/rules
--- libident-0.22/debian/rules
+++ libident-0.22/debian/rules
@@ -27,7 +27,7 @@
$(tmpdir-dev)/usr/share/man/man3
CC=gcc
-CFLAGS=-g -Wall -DHAVE_ANSIHEADERS -D_REENTRANT
+CFLAGS=-g -Wall -DHAVE_ANSIHEADERS -D_REENTRANT -ffile-prefix-map=$(CURDIR)=.
LDFLAGS=
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
@@ -71,15 +71,15 @@
$(tmpdir)/usr/share/man/man8
$(installbin) -s ident-tester \
$(tmpdir)/usr/sbin/in.identtestd
- gzip -v9 $(tmpdir)/usr/share/man/man?/*
- gzip -v9 $(tmpdir-dev)/usr/share/man/man?/*
+ gzip -v9n $(tmpdir)/usr/share/man/man?/*
+ gzip -v9n $(tmpdir-dev)/usr/share/man/man?/*
for manalias in ident_lookup ident_id ident_free id_open id_close id_query \
id_parse id_fileno ; do \
ln -s ident.3.gz $(tmpdir-dev)/usr/share/man/man3/$$manalias.3.gz ; \
done
# dont compress copyright
- gzip -v9 $(tmpdir)/usr/share/doc/libident/README
- gzip -v9 $(tmpdir)/usr/share/doc/libident/changelog.Debian
+ gzip -v9n $(tmpdir)/usr/share/doc/libident/README
+ gzip -v9n $(tmpdir)/usr/share/doc/libident/changelog.Debian
strip --strip-debug $(tmpdir-dev)/usr/lib/libident.a
strip --strip-unneeded $(tmpdir)/usr/lib/libident.so.$(version)
strip --remove-section=.comment $(tmpdir)/usr/lib/libident.so.$(version)
More information about the Reproducible-bugs
mailing list