[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#978392: marked as done (epm: reproducible builds: /usr/bin/epm contains embedded build path)



Your message dated Sat, 26 Dec 2020 22:50:40 +0000
with message-id <E1ktIOW-000AGL-VP@fasolo.debian.org>
and subject line Bug#978392: fixed in epm 4.2-10
has caused the Debian Bug report #978392,
regarding epm: reproducible builds: /usr/bin/epm contains embedded build path
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
978392: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=978392
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: epm
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

The file /usr/bin/epm contains an embedded build path:

  https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/epm.html

  Use·the·named·setup·data·file·directory·instead·of·/build/1st/epm-4.2/debian/epm/usr/share/epm.
  vs.
  Use·the·named·setup·data·file·directory·instead·of·/build/2/epm-4.2/2nd/debian/epm/usr/share/epm.

The attached patches fix this by patching Makefile.in to support DESTDIR
and passing the appropriate prefix arguments to configure.


live well,
  vagrant
From d8a94f04217a88162b4846004d4790d29d67949a Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sat, 26 Dec 2020 22:05:05 +0000
Subject: [PATCH 1/2] Makefile.in: Add support for DESTDIR.

---
 Makefile.in | 119 +++++++++++++++++++++++-----------------------------
 1 file changed, 53 insertions(+), 66 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index b90597e..2f711a9 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -165,58 +165,45 @@ clang-changes:
 #
 
 install: all @INSTALL_GUIS@ @INSTALL_OSX@
-	@echo Installing EPM programs in $(bindir)
-	-$(MKDIR) $(bindir)
-	$(RM) $(bindir)/epm
-	$(CP) epm $(bindir)
-	$(STRIP) $(bindir)/epm
-	$(RM) $(bindir)/epminstall
-	$(CP) epminstall $(bindir)
-	$(STRIP) $(bindir)/epminstall
-	$(RM) $(bindir)/mkepmlist
-	$(CP) mkepmlist $(bindir)
-	@echo Installing EPM manpages in $(mandir)/man1
-	-$(MKDIR) $(mandir)/man1
-	$(RM) $(mandir)/man1/epm.1
-	$(CP) $(srcdir)/doc/epm.man $(mandir)/man1/epm.1
-	$(RM) $(mandir)/man1/epminstall.1
-	$(CP) $(srcdir)/doc/epminstall.man $(mandir)/man1/epminstall.1
-	$(RM) $(mandir)/man1/mkepmlist.1
-	$(CP) $(srcdir)/doc/mkepmlist.man $(mandir)/man1/mkepmlist.1
-	$(RM) $(mandir)/man1/setup.1
-	$(CP) $(srcdir)/doc/setup.man $(mandir)/man1/setup.1
-	@echo Installing EPM manpages in $(mandir)/man5
-	-$(MKDIR) $(mandir)/man5
-	$(RM) $(mandir)/man5/epm.list.5
-	$(CP) $(srcdir)/doc/epm.list.man $(mandir)/man5/epm.list.5
-	$(RM) $(mandir)/man5/setup.types.5
-	$(CP) $(srcdir)/doc/setup.types.man $(mandir)/man5/setup.types.5
-	@echo Installing EPM documentation in $(docdir)
-	-$(MKDIR) $(docdir)
-	$(RM) $(docdir)/COPYING
-	$(CP) $(srcdir)/COPYING $(docdir)
-	$(RM) $(docdir)/README
-	$(CP) $(srcdir)/README $(docdir)
-	$(RM) $(docdir)/epm-book.html
-	$(CP) $(srcdir)/doc/epm-book.html $(docdir)
+	@echo Installing EPM programs in $(DESTDIR)$(bindir)
+	-$(MKDIR) $(DESTDIR)$(bindir)
+	$(CP) epm $(DESTDIR)$(bindir)
+	$(STRIP) $(DESTDIR)$(bindir)/epm
+	$(CP) epminstall $(DESTDIR)$(bindir)
+	$(STRIP) $(DESTDIR)$(bindir)/epminstall
+	$(CP) mkepmlist $(DESTDIR)$(bindir)
+	@echo Installing EPM manpages in $(DESTDIR)$(mandir)/man1
+	-$(MKDIR) $(DESTDIR)$(mandir)/man1
+	$(CP) $(srcdir)/doc/epm.man $(DESTDIR)$(mandir)/man1/epm.1
+	$(CP) $(srcdir)/doc/epminstall.man $(DESTDIR)$(mandir)/man1/epminstall.1
+	$(CP) $(srcdir)/doc/mkepmlist.man $(DESTDIR)$(mandir)/man1/mkepmlist.1
+	$(CP) $(srcdir)/doc/setup.man $(DESTDIR)$(mandir)/man1/setup.1
+	@echo Installing EPM manpages in $(DESTDIR)$(mandir)/man5
+	-$(MKDIR) $(DESTDIR)$(mandir)/man5
+	$(CP) $(srcdir)/doc/epm.list.man $(DESTDIR)$(mandir)/man5/epm.list.5
+	$(CP) $(srcdir)/doc/setup.types.man $(DESTDIR)$(mandir)/man5/setup.types.5
+	@echo Installing EPM documentation in $(DESTDIR)$(docdir)
+	-$(MKDIR) $(DESTDIR)$(docdir)
+	$(CP) $(srcdir)/COPYING $(DESTDIR)$(docdir)
+	$(CP) $(srcdir)/README $(DESTDIR)$(docdir)
+	$(CP) $(srcdir)/doc/epm-book.html $(DESTDIR)$(docdir)
 
 install-guis:	setup uninst
-	@echo Installing EPM setup/uninst in $(libdir)/epm
-	$(RM) -r $(libdir)/epm
-	-$(MKDIR) $(libdir)/epm
-	$(CP) setup $(libdir)/epm
-	-$(STRIP) $(libdir)/epm/setup
-	$(CP) uninst $(libdir)/epm
-	-$(STRIP) $(libdir)/epm/uninst
+	@echo Installing EPM setup/uninst in $(DESTDIR)$(libdir)/epm
+	-$(MKDIR) $(DESTDIR)$(libdir)/epm
+	$(CP) setup $(DESTDIR)$(libdir)/epm
+	-$(STRIP) $(DESTDIR)$(libdir)/epm/setup
+	$(CP) uninst $(DESTDIR)$(libdir)/epm
+	-$(STRIP) $(DESTDIR)$(libdir)/epm/uninst
 
 install-osx:
-	@echo Installing EPM OSX data files in $(datadir)/epm
-	$(RM) -r $(datadir)/epm
-	-$(MKDIR) $(datadir)/epm
-	$(CP) macosx/setup.icns $(datadir)/epm
-	$(CP) macosx/setup.info $(datadir)/epm
-	$(CP) macosx/uninst.icns $(datadir)/epm
-	$(CP) macosx/uninst.info $(datadir)/epm
+	@echo Installing EPM OSX data files in $(DESTDIR)$(datadir)/epm
+	$(RM) -r $(DESTDIR)$(datadir)/epm
+	-$(MKDIR) $(DESTDIR)$(datadir)/epm
+	$(CP) macosx/setup.icns $(DESTDIR)$(datadir)/epm
+	$(CP) macosx/setup.info $(DESTDIR)$(datadir)/epm
+	$(CP) macosx/uninst.icns $(DESTDIR)$(datadir)/epm
+	$(CP) macosx/uninst.info $(DESTDIR)$(datadir)/epm
 
 
 #
@@ -224,24 +211,24 @@ install-osx:
 #
 
 uninstall:
-	@echo Uninstalling EPM programs from $(bindir)
-	$(RM) $(bindir)/epm
-	$(RM) $(bindir)/epminstall
-	$(RM) $(bindir)/mkepmlist
-	@echo Uninstalling EPM manpages from $(mandir)/man1
-	$(RM) $(mandir)/man1/epm.1
-	$(RM) $(mandir)/man1/epminstall.1
-	$(RM) $(mandir)/man1/mkepmlist.1
-	$(RM) $(mandir)/man1/setup.1
-	@echo Uninstalling EPM manpages from $(mandir)/man5
-	$(RM) $(mandir)/man5/epm.list.5
-	$(RM) $(mandir)/man5/setup.types.5
-	@echo Uninstalling EPM documentation from $(docdir)
-	$(RM) -r $(docdir)
-	@echo Uninstalling EPM setup/uninstall from $(libdir)/epm
-	$(RM) -r $(libdir)/epm
-	@echo Uninstalling EPM OSX data files from $(datadir)/epm
-	$(RM) -r $(datadir)/epm
+	@echo Uninstalling EPM programs from $(DESTDIR)$(bindir)
+	$(RM) $(DESTDIR)$(bindir)/epm
+	$(RM) $(DESTDIR)$(bindir)/epminstall
+	$(RM) $(DESTDIR)$(bindir)/mkepmlist
+	@echo Uninstalling EPM manpages from $(DESTDIR)$(mandir)/man1
+	$(RM) $(DESTDIR)$(mandir)/man1/epm.1
+	$(RM) $(DESTDIR)$(mandir)/man1/epminstall.1
+	$(RM) $(DESTDIR)$(mandir)/man1/mkepmlist.1
+	$(RM) $(DESTDIR)$(mandir)/man1/setup.1
+	@echo Uninstalling EPM manpages from $(DESTDIR)$(mandir)/man5
+	$(RM) $(DESTDIR)$(mandir)/man5/epm.list.5
+	$(RM) $(DESTDIR)$(mandir)/man5/setup.types.5
+	@echo Uninstalling EPM documentation from $(DESTDIR)$(docdir)
+	$(RM) -r $(DESTDIR)$(docdir)
+	@echo Uninstalling EPM setup/uninstall from $(DESTDIR)$(libdir)/epm
+	$(RM) -r $(DESTDIR)$(libdir)/epm
+	@echo Uninstalling EPM OSX data files from $(DESTDIR)$(datadir)/epm
+	$(RM) -r $(DESTDIR)$(datadir)/epm
 
 
 #
-- 
2.30.0.rc2

From baca74dfb457d7a5343a3592b35760b7eaea0a19 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sat, 26 Dec 2020 22:06:10 +0000
Subject: [PATCH 2/2] debian/rules: Specify /usr instead of full path to
 debian/epm directory.

---
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index c16061f..117f474 100755
--- a/debian/rules
+++ b/debian/rules
@@ -22,7 +22,7 @@ DEB_BUILD_MAINT_OPTIONS="hardening=+pie,+bindnow"
 DPKG_EXPORT_BUILDFLAGS=1
 -include /usr/share/dpkg/buildflags.mk
 
-prefix=$(CURDIR)/debian/epm/usr
+prefix=/usr
 
 %:
 	dh $@ --without autoreconf
-- 
2.30.0.rc2

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: epm
Source-Version: 4.2-10
Done: Vagrant Cascadian <vagrant@reproducible-builds.org>

We believe that the bug you reported is fixed in the latest version of
epm, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 978392@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Vagrant Cascadian <vagrant@reproducible-builds.org> (supplier of updated epm package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 26 Dec 2020 14:25:52 -0800
Source: epm
Architecture: source
Version: 4.2-10
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Vagrant Cascadian <vagrant@reproducible-builds.org>
Closes: 978392
Changes:
 epm (4.2-10) unstable; urgency=medium
 .
   * QA upload.
   * Patch Makefile.int to support DESTDIR.
   * debian/rules: Specify /usr instead of full path to debian/epm
     directory. (Closes: #978392)
Checksums-Sha1:
 9c4e2037fcd6ad039bfee564824ff0f8d040356b 1429 epm_4.2-10.dsc
 373d1dfa2d5d3e6ba62a4f56c08aa9164191d44f 7680 epm_4.2-10.debian.tar.xz
Checksums-Sha256:
 c91b4068bfe8796576b0ab749b31c5f51e41ee0435d4f9169105bf344169c88b 1429 epm_4.2-10.dsc
 fe0ebffb577d90d02dec3cad868417b09dd82421048a7d542ae9607483a84126 7680 epm_4.2-10.debian.tar.xz
Files:
 34eaaefdf662ab1d16c0b0042ff63c8e 1429 devel optional epm_4.2-10.dsc
 328e8d684cc65b9d029898a06492151c 7680 devel optional epm_4.2-10.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iJYEARYKAD4WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCX+e5JyAcdmFncmFudEBy
ZXByb2R1Y2libGUtYnVpbGRzLm9yZwAKCRDcUY/If5cWqkyqAP4ovdG5jAp+CHCU
IUpiJGwfvc9LTHRoW/WlLnHeoP5fYQEAlBD0hL6SHi7d1VST2K2LvvBXLPTgASTE
jSxr/T3VXAs=
=9bhx
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: