990329">

Debian Bug report logs - #990329
rpm: embeds path to various binaries that differ with usrmerge

version graph

Package: src:rpm; Maintainer for src:rpm is RPM packaging team <team+pkg-rpm@tracker.debian.org>;

Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>

Date: Fri, 25 Jun 2021 20:45:02 UTC

Severity: normal

Tags: patch

Found in version rpm/4.17.0+dfsg1-1

Fixed in versions 4.17.0+dfsg1-1, rpm/4.17.0+dfsg1-2

Done: Peter Pentchev <roam@debian.org>

Bug is archived. No further changes may be made.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, RPM packaging team <team+pkg-rpm@tracker.debian.org>:
Bug#990329; Package src:rpm. (Fri, 25 Jun 2021 20:45:04 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, RPM packaging team <team+pkg-rpm@tracker.debian.org>. (Fri, 25 Jun 2021 20:45:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@reproducible-builds.org>
To: submit@bugs.debian.org
Subject: rpm: embeds path to various binaries that differ with usrmerge
Date: Fri, 25 Jun 2021 13:32:28 -0700
[Message part 1 (text/plain, inline)]
Source: rpm
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: usrmerge
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

The paths to various binaries are embedded which differs on a usrmerge
vs. non-usrmerge system.

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

  ./usr/lib/rpm/macros

  %__bzip2»       »       /bin/bzip2
  vs.
  %__bzip2»       »       /usr/bin/bzip2

Patch attached which passes variables to configure to use the
non-usrmerge locations, as usrmerge installations typically have
compatibility symlinks, but not vice-versa.


live well,
  vagrant
[0001-debian-rules-Pass-paths-to-various-binaries.patch (text/x-diff, inline)]
From edef98ba189c9eee0682813db839b33a5ffd4e85 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Fri, 25 Jun 2021 20:24:46 +0000
Subject: [PATCH] debian/rules: Pass paths to various binaries.

Use the non-usrmerge locations for binaries, which works on both
usrmerge and non-usrmerge systems.

https://tests.reproducible-builds.org/debian/issues/paths_vary_due_to_usrmerge_issue.html
---
 debian/rules | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 3e05ba54..0cc1be30 100755
--- a/debian/rules
+++ b/debian/rules
@@ -28,7 +28,22 @@ configure_flags += \
 	--enable-shared \
 	--enable-python \
 	LDFLAGS="$(LDFLAGS) -Wl,--as-needed" \
-	CPPFLAGS="$(CPPFLAGS)"
+	CPPFLAGS="$(CPPFLAGS)" \
+	__BZIP2=/bin/bzip2 \
+	__CAT=/bin/cat \
+	__CHGRP=/bin/chgrp \
+	__CHMOD=/bin/chmod \
+	__CHOWN=/bin/chown \
+	__CP=/bin/cp \
+	__GREP=/bin/grep \
+	__GZIP=/bin/gzip \
+	__LZIP=/bin/lzip \
+	__MKDIR=/bin/mkdir \
+	__MV=/bin/mv \
+	__RM=/bin/rm \
+	__SED=/bin/sed \
+	__TAR=/bin/tar \
+	MKDIR_P='/bin/mkdir -p' \
 
 override_dh_auto_configure:
 	dh_auto_configure -- $(configure_flags)
-- 
2.32.0

[signature.asc (application/pgp-signature, inline)]

Bug reassigned from package 'src:rpm' to 'rpm'. Request was from Peter Pentchev <roam@ringlet.net> to control@bugs.debian.org. (Fri, 26 Nov 2021 14:33:09 GMT) (full text, mbox, link).


Bug reassigned from package 'rpm' to 'src:rpm'. Request was from Peter Pentchev <roam@ringlet.net> to control@bugs.debian.org. (Fri, 26 Nov 2021 16:09:03 GMT) (full text, mbox, link).


Reply sent to Peter Pentchev <roam@ringlet.net>:
You have taken responsibility. (Fri, 26 Nov 2021 17:00:03 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Fri, 26 Nov 2021 17:00:03 GMT) (full text, mbox, link).


Message #14 received at 990329-done@bugs.debian.org (full text, mbox, reply):

From: Peter Pentchev <roam@ringlet.net>
To: 990329-done@bugs.debian.org
Subject: Mark the RPM tool path bug as done
Date: Fri, 26 Nov 2021 18:51:26 +0200
[Message part 1 (text/plain, inline)]
Version: 4.17.0+dfsg1-1

I did not notice this bug when I uploaded the fixed package; sorry!
And thanks for reporting it!

G'luck,
Peter

-- 
Peter Pentchev  roam@ringlet.net roam@debian.org pp@storpool.com
PGP key:        http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint 2EE7 A7A5 17FC 124C F115  C354 651E EFB0 2527 DF13
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, RPM packaging team <team+pkg-rpm@tracker.debian.org>:
Bug#990329; Package src:rpm. (Fri, 26 Nov 2021 18:36:02 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Extra info received and forwarded to list. Copy sent to RPM packaging team <team+pkg-rpm@tracker.debian.org>. (Fri, 26 Nov 2021 18:36:02 GMT) (full text, mbox, link).


Message #19 received at 990329@bugs.debian.org (full text, mbox, > - CPPFLAGS="$(CPPFLAGS)" > > + CPPFLAGS="$(CPPFLAGS)" \ > > + __BZIP2=/bin/bzip2 \ > > + __CAT=/bin/cat \ > > + __CHGRP=/bin/chgrp \ > > + __CHMOD=/bin/chmod \ > > + __CHOWN=/bin/chown \ > > + __CP=/bin/cp \ > > + __GREP=/bin/grep \ > > + __GZIP=/bin/gzip \ > > + __LZIP=/bin/lzip \ > > + __MKDIR=/bin/mkdir \ > > + __MV=/bin/mv \ > > + __RM=/bin/rm \ > > + __SED=/bin/sed \ > > + __TAR=/bin/tar \ > > + MKDIR_P='/bin/mkdir -p' \ > > &References= <87tull1y8z.fsf@yucca> <871r32sr7q.fsf@yucca>&In-Reply-To=<871r32sr7q.fsf@yucca>&subject=Re: Bug#990329 closed by Peter Pentchev (Mark the RPM tool path bug as done)">reply):

From: Vagrant Cascadian <vagrant@reproducible-builds.org>
To: 990329@bugs.debian.org
Subject: Re: Bug#990329 closed by Peter Pentchev <roam@ringlet.net> (Mark the RPM tool path bug as done)
Date: Fri, 26 Nov 2021 10:32:25 -0800
[Message part 1 (text/plain, inline)]
Control: found 990329 4.17.0+dfsg1-1

> From: Peter Pentchev <roam@ringlet.net>
> Subject: Mark the RPM tool path bug as done
> To: 990329-done@bugs.debian.org
> Date: Fri, 26 Nov 2021 18:51:26 +0200
>
> Version: 4.17.0+dfsg1-1
>
> I did not notice this bug when I uploaded the fixed package; sorry!
> And thanks for reporting it!

Thanks!

Unfortunately, it seems only partially fixed. Did the patch you applied
include MKDIR_P='/bin/mkdir -p', which still appears to be varying:

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


> From edef98ba189c9eee0682813db839b33a5ffd4e85 Mon Sep 17 00:00:00 2001
> From: Vagrant Cascadian <vagrant@reproducible-builds.org>
> Date: Fri, 25 Jun 2021 20:24:46 +0000
> Subject: [PATCH] debian/rules: Pass paths to various binaries.
>
> Use the non-usrmerge locations for binaries, which works on both
> usrmerge and non-usrmerge systems.
>
> https://tests.reproducible-builds.org/debian/issues/paths_vary_due_to_usrmerge_issue.html
> ---
>  debian/rules | 17 ++++++++++++++++-
>  1 file changed, 16 insertions(+), 1 deletion(-)
>
> diff --git a/debian/rules b/debian/rules
> index 3e05ba54..0cc1be30 100755
> --- a/debian/rules
> +++ b/debian/rules
> @@ -28,7 +28,22 @@ configure_flags += \
>  	--enable-shared \
>  	--enable-python \
>  	LDFLAGS="$(LDFLAGS) -Wl,--as-needed" \
> -	CPPFLAGS="$(CPPFLAGS)"
> +	CPPFLAGS="$(CPPFLAGS)" \
> +	__BZIP2=/bin/bzip2 \
> +	__CAT=/bin/cat \
> +	__CHGRP=/bin/chgrp \
> +	__CHMOD=/bin/chmod \
> +	__CHOWN=/bin/chown \
> +	__CP=/bin/cp \
> +	__GREP=/bin/grep \
> +	__GZIP=/bin/gzip \
> +	__LZIP=/bin/lzip \
> +	__MKDIR=/bin/mkdir \
> +	__MV=/bin/mv \
> +	__RM=/bin/rm \
> +	__SED=/bin/sed \
> +	__TAR=/bin/tar \
> +	MKDIR_P='/bin/mkdir -p' \


live well,
  vagrant
[signature.asc (application/pgp-signature, inline)]

Marked as found in versions rpm/4.17.0+dfsg1-1 and reopened. Request was from Vagrant Cascadian <vagrant@reproducible-builds.org> to 990329-submit@bugs.debian.org. (Fri, 26 Nov 2021 18:36:02 GMT) (full text, mbox, link).


Reply sent to Peter Pentchev <roam@debian.org>:
You have taken responsibility. (Fri, 26 Nov 2021 23:39:07 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Fri, 26 Nov 2021 23:39:07 GMT) (full text, mbox, link).


Message #26 received at 990329-close@bugs.debian.org (full text, mbox, * Sort the list of build dependencies alphabetically. > * Add an epoch to the debugedit dependency. Closes: #1000575 > * Add the gnueabihf patch to fix the armhf build. Closes: #968487 > * Make the brp-python-bytecompile script executable. > * Fix the filename in a Facebook copyright notice. > * Fix the pythondistdeps.py interpreter name. > * Drop the no-op debian/dirs file. > * Also hardcode the /bin/mkdir path in `mkdir -p`. Closes: #990329 > * Activate all the build hardening flags. > * Add the triplet-suffix patch as an attempt to catch earlier any > future breakage with new, unrecognized GNU target triplets. > * Refresh the line numbers in two patches. > * Add the cppcheck patch to fix two minor issues. > Checksums-Sha1: > 81f486940d8773b347946989c32b1822c6abd858 3069 rpm_4.17.0+dfsg1-2.dsc > a447c22e2fd624f884a339282f7496293115dd9f 46888 rpm_4.17.0+dfsg1-2.debian.tar.xz > Checksums-Sha256: > 1b7e0aea172ab482fef68548c5576738aee20029324ea2b04f3d0eda4a8546c9 3069 rpm_4.17.0+dfsg1-2.dsc > 5997a7930ce546a9cc23ae3dd8f64bf88d22a442a024fe0895227ccd41af0f4c 46888 rpm_4.17.0+dfsg1-2.debian.tar.xz &subject=Re: Bug#990329: fixed in rpm 4.17.0+dfsg1-2&References=&In-Reply-To=">reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 990329-close@bugs.debian.org
Subject: Bug#990329: fixed in rpm 4.17.0+dfsg1-2
Date: Fri, 26 Nov 2021 23:35:43 +0000
Source: rpm
Source-Version: 4.17.0+dfsg1-2
Done: Peter Pentchev <roam@debian.org>

We believe that the bug you reported is fixed in the latest version of
rpm, 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 990329@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Peter Pentchev <roam@debian.org> (supplier of updated rpm 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, 27 Nov 2021 00:58:55 +0200
Source: rpm
Architecture: source
Version: 4.17.0+dfsg1-2
Distribution: unstable
Urgency: medium
Maintainer: RPM packaging team <team+pkg-rpm@tracker.debian.org>
Changed-By: Peter Pentchev <roam@debian.org>
Closes: 968487 990329 1000575
Changes:
 rpm (4.17.0+dfsg1-2) unstable; urgency=medium
 .
   * Team upload.
   * Add pandoc as a build dependency to fix a "FTBFS twice in a row" bug.
   * Sort the list of build dependencies alphabetically.
   * Add an epoch to the debugedit dependency. Closes: #1000575
   * Add the gnueabihf patch to fix the armhf build. Closes: #968487
   * Make the brp-python-bytecompile script executable.
   * Fix the filename in a Facebook copyright notice.
   * Fix the pythondistdeps.py interpreter name.
   * Drop the no-op debian/dirs file.
   * Also hardcode the /bin/mkdir path in `mkdir -p`. Closes: #990329
   * Activate all the build hardening flags.
   * Add the triplet-suffix patch as an attempt to catch earlier any
     future breakage with new, unrecognized GNU target triplets.
   * Refresh the line numbers in two patches.
   * Add the cppcheck patch to fix two minor issues.
Checksums-Sha1:
 81f486940d8773b347946989c32b1822c6abd858 3069 rpm_4.17.0+dfsg1-2.dsc
 a447c22e2fd624f884a339282f7496293115dd9f 46888 rpm_4.17.0+dfsg1-2.debian.tar.xz
Checksums-Sha256:
 1b7e0aea172ab482fef68548c5576738aee20029324ea2b04f3d0eda4a8546c9 3069 rpm_4.17.0+dfsg1-2.dsc
 5997a7930ce546a9cc23ae3dd8f64bf88d22a442a024fe0895227ccd41af0f4c 46888 rpm_4.17.0+dfsg1-2.debian.tar.xz
Files:
 cef761a6fda04e3bb931163d584cd440 3069 admin optional rpm_4.17.0+dfsg1-2.dsc
 a25074ab85e89ac7ea1e88354550d88a 46888 admin optional rpm_4.17.0+dfsg1-2.debian.tar.xz

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

iQJEBAEBCgAuFiEELuenpRf8EkzxFcNUZR7vsCUn3xMFAmGhaJkQHHJvYW1AZGVi
aWFuLm9yZwAKCRBlHu+wJSffE35PD/955nR0uU7oZ2+TD2AwfW21TbCohSpH8emd
AFrk1abqifOe3jorzo6gq9ouKhwH6xnL6+23INwBOTQ7dg74vma3j8cwGB/NNFIn
xnPWWYpNAE4cSPRuLwAMekHwlx17hyb5MYtG/iTSxi9qdc4twIBSKsZs6N6ZGNwe
fpIu06qyTbIn2XLY5gjAgIOI5ez0WXlIjS2kGv1FzUtn000lKXHurqa2b4AA9/7V
XD+zhkVPjzzNrOnSRkDcDqNZr8yS5EZDXxMLd0DWk9ciOYmgP9sqzrVazTm4rdJp
tCARZ5tBeWLhZkv2kIJzjgCrnusRK7TCdLC8veyaUsHpwOSZFPLcWXdnPYCU41EJ
rD4yer7Caa6xnJI6As/BSAhw53RrDNGfaA+MH6xXN8tK0kvkgWkQtsPdo8gyLRjs
1zLNqhx+6zOYZjfkstopl4MHTd2ofjq2hS1avlQOvJi0wx34YlTAdfPiCMqkQJs+
JK7KJtocH/hL83ZOVn2wouKg6jeqfS04jXxnD5q/oB/mHw6a4kxPzaa9J3xiTFg9
wOTqjUYwJ2GUEO3bQLyD75x5qXXzbzc+L9iRGVsP1iFiMfGQhxYvU81RSSm/1aQc
2CMlotRDD6evohWUDcyzA3M8o5KWWOjqwcLHCbv6v8HquKw+vG3vT+LfNtKT8YMU
Y0WpofCUVA==
=5Dlz
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 25 Dec 2021 07:26:22 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jan 31 00:27:25 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.