1020665">

Debian Bug report logs - #1020665
libimage-imlib2-perl: reproducible-builds: Embedded build path in Imlib2.so

version graph

Package: src:libimage-imlib2-perl; Maintainer for src:libimage-imlib2-perl is Don Armstrong <don@debian.org>;

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

Date: Sat, 24 Sep 2022 23:57:02 UTC

Severity: normal

Tags: patch

Fixed in version libimage-imlib2-perl/2.03-1.1

Done: Chris Lamb <lamby@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, Don Armstrong <don@debian.org>:
Bug#1020665; Package src:libimage-imlib2-perl. (Sat, 24 Sep 2022 23:57: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, Don Armstrong <don@debian.org>. (Sat, 24 Sep 2022 23:57: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: libimage-imlib2-perl: reproducible-builds: Embedded build path in Imlib2.so
Date: Sat, 24 Sep 2022 16:55:12 -0700
[Message part 1 (text/plain, inline)]
Source: libimage-imlib2-perl
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

The build path is embedded in
/usr/lib/x86_64-linux-gnu/perl5/5.34/auto/Image/Imlib2/Imlib2.so:

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

  /build/1st/libimage-imlib2-perl-2.03/lib/Image/Imlib2.c:2662
  vs.
  /build/2/libimage-imlib2-perl-2.03/2nd/lib/Image/Imlib2.c:2662

The attached patch fixes this by adjusting Build.PL to add
-ffile-prefix-map to $cflags.

With this patch applied libimage-imlib2-perl should build reproducibly on
tests.reproducible-builds.org!

Thanks for maintaining libimage-imlib2-perl!

live well,
  vagrant
[0001-Build.PL-Pass-ffile-prefix-map-via-cflags-to-avoid-e.patch (text/x-diff, inline)]
From 8501e64292073c5bf6e37c11cc2dd9225a135475 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sat, 24 Sep 2022 23:45:33 +0000
Subject: [PATCH 1/2] Build.PL: Pass -ffile-prefix-map via $cflags to avoid
 embedding build path.

https://reproducible-builds.org/docs/build-path/
---
 Build.PL | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Build.PL b/Build.PL
index ab7cd99..d31e58d 100644
--- a/Build.PL
+++ b/Build.PL
@@ -1,5 +1,6 @@
 use Module::Build;
 use strict;
+use Cwd;
 
 # We need to find imlib2-config
 my $CONFIG = "imlib2-config";
@@ -20,7 +21,7 @@ point to the imlib2-config program that provides.
 }
 
 my $libs = `$CONFIG --libs`;
-my $cflags = "-DX_DISPLAY_MISSING " . `$CONFIG --cflags`;
+my $cflags = "-DX_DISPLAY_MISSING " . `$CONFIG --cflags` . "-ffile-prefix-map=" . getcwd() . "=." ;
 
 my $build = Module::Build->new(
   c_source     => './lib/Image',
-- 
2.37.2

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

Information forwarded to debian-bugs-dist@lists.debian.org, Don Armstrong <don@debian.org>:
Bug#1020665; Package src:libimage-imlib2-perl. (Thu, 06 Oct 2022 17:15:02 GMT) (full text, mbox, link).


Acknowledgement sent to "Chris Lamb" <lamby@debian.org>:
Extra info received and forwarded to list. Copy sent to Don Armstrong <don@debian.org>. (Thu, 06 Oct 2022 17:15:02 GMT) (full text, mbox, link).


Message #10 received at 1020665@bugs.debian.org (full text, mbox, wrote: > tags 1020665 + pending patch > thanks > > I've just uploaded libimage-imlib2-perl 2.03-1.1 to DELAYED/10: > > libimage-imlib2-perl (2.03-1.1) unstable; urgency=medium > . > * Non-maintainer upload. > * Apply a patch by Vagrant Cascadian to avoid embedding the build path > in Imlib2.so. (Closes: #1020665) > > The full debdiff is attached. > > > Regards, > > -- > ,''`. > : :' : Chris Lamb > `. `'` lamby@debian.org / chris-lamb.co.uk > `- ">reply):

From: "Chris Lamb" <lamby@debian.org>
To: 1020665@bugs.debian.org, 1020665-submitter@bugs.debian.org
Subject: Re: libimage-imlib2-perl: reproducible-builds: Embedded build path in Imlib2.so
Date: Thu, 06 Oct 2022 10:12:56 -0700
[Message part 1 (text/plain, inline)]
tags 1020665 + pending patch
thanks

I've just uploaded libimage-imlib2-perl 2.03-1.1 to DELAYED/10:
  
  libimage-imlib2-perl (2.03-1.1) unstable; urgency=medium
  .
    * Non-maintainer upload.
    * Apply a patch by Vagrant Cascadian to avoid embedding the build path
      in Imlib2.so. (Closes: #1020665)

The full debdiff is attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk
       `-
[libimage-imlib2-perl_2.03-1.1_amd64.debdiff.txt (text/plain, attachment)]

Added tag(s) pending. Request was from "Chris Lamb" <lamby@debian.org> to control@bugs.debian.org. (Thu, 06 Oct 2022 17:15:09 GMT) (full text, mbox, link).


Message sent on to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug#1020665. (Thu, 06 Oct 2022 17:15:11 GMT) (full text, mbox, link).


Reply sent to Chris Lamb <lamby@debian.org>:
You have taken responsibility. (Sun, 16 Oct 2022 18:09:08 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Sun, 16 Oct 2022 18:09:08 GMT) (full text, mbox, link).


Message #20 received at 1020665-close@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1020665-close@bugs.debian.org
Subject: Bug#1020665: fixed in libimage-imlib2-perl 2.03-1.1
Date: Sun, 16 Oct 2022 18:08:04 +0000
Source: libimage-imlib2-perl
Source-Version: 2.03-1.1
Done: Chris Lamb <lamby@debian.org>

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

Debian distribution maintenance software
pp.
Chris Lamb <lamby@debian.org> (supplier of updated libimage-imlib2-perl 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: SHA256

Format: 1.8
Date: Thu, 06 Oct 2022 09:56:50 -0700
Source: libimage-imlib2-perl
Binary: libimage-imlib2-perl libimage-imlib2-perl-dbgsym
Architecture: source amd64
Version: 2.03-1.1
Distribution: unstable
Urgency: medium
Maintainer: Don Armstrong <don@debian.org>
Changed-By: Chris Lamb <lamby@debian.org>
Description:
 libimage-imlib2-perl - perl interface to the imlib2 imaging library
Closes: 1020665
Changes:
 libimage-imlib2-perl (2.03-1.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Apply a patch by Vagrant Cascadian to avoid embedding the build path
     in Imlib2.so. (Closes: #1020665)
Checksums-Sha1:
 56d47750e4a36da340331d397c12572734fe62fd 1826 libimage-imlib2-perl_2.03-1.1.dsc
 73498b75c41e50c89f0db35c706915953b9c98b6 36014 libimage-imlib2-perl_2.03.orig.tar.gz
 966c8faff927675c5511ada92cfd54a87936d9ca 3496 libimage-imlib2-perl_2.03-1.1.debian.tar.xz
 933f243528b2c0cc14b167e59d81859d19df559d 71964 libimage-imlib2-perl-dbgsym_2.03-1.1_amd64.deb
 5223d987f053c14242ba8b5c0638cefb011ca915 7686 libimage-imlib2-perl_2.03-1.1_amd64.buildinfo
 d5a2e79dcdc73e4d5d87a2bcef7348946888008d 37288 libimage-imlib2-perl_2.03-1.1_amd64.deb
Checksums-Sha256:
 aa2f3406d693dc83d20cfb4fc3cef716ff837fdafdfe94600de2331ca0e331cf 1826 libimage-imlib2-perl_2.03-1.1.dsc
 97648385da1e9452fa9ee48f570020b45e449e5f11615320f39cb0b5c00951b0 36014 libimage-imlib2-perl_2.03.orig.tar.gz
 33b11779df1bf5da3375a21b84a0a3a4dfe2c2ecfb3fba95090746b068718763 3496 libimage-imlib2-perl_2.03-1.1.debian.tar.xz
 cb9da3ae00c1afbd25963c2e3fcbbf5865597323058e8eb6f63797a6cb0d65e0 71964 libimage-imlib2-perl-dbgsym_2.03-1.1_amd64.deb
 0f1f90495a3fb7f30687e605becef4b033b1975ae499ebabccdcf4cc9429af99 7686 libimage-imlib2-perl_2.03-1.1_amd64.buildinfo
 035ba8e80eabd3a4134fead494da28fe9a9a9c820aa1f1f6d5e4fde12aece019 37288 libimage-imlib2-perl_2.03-1.1_amd64.deb
Files:
 863b33f7671e26009b44e15c788debef 1826 perl extra libimage-imlib2-perl_2.03-1.1.dsc
 303b91fae2b863903e41a3cac34fa0d3 36014 perl extra libimage-imlib2-perl_2.03.orig.tar.gz
 69d6d9c8bc60c3972ac95c65352ca075 3496 perl extra libimage-imlib2-perl_2.03-1.1.debian.tar.xz
 185459bab1eefd7c5605c0a5e1ffa2ea 71964 debug optional libimage-imlib2-perl-dbgsym_2.03-1.1_amd64.deb
 829143fb5e427b735578d70e87db12c5 7686 perl extra libimage-imlib2-perl_2.03-1.1_amd64.buildinfo
 24721672463941ab1fbc3cb9313cc3db 37288 perl extra libimage-imlib2-perl_2.03-1.1_amd64.deb

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

iQIzBAEBCAAdFiEEwv5L0nHBObhsUz5GHpU+J9QxHlgFAmM/CW0ACgkQHpU+J9Qx
HlhxZBAAk1Kl+xv30TpT/0LJAa0+8xeYBjAM91uqFCoPH9crjjnbIBjYbkSH0XQM
ZcNrUb8nHOCPvUpWcD+Az6HAbo6X0gmyqbc+q2c+EbT/nuDTZ+RQzrhx1AOJ/yOQ
09qIjD93gO2kjW8Q7GpKM3dgQ60evTbkZtEOHL0xuuGEFTmz2ID/ORV56aKtNa3j
5uzczRM5G3mfvDH6w/BQFwmP8CsNYZXJizWf7H8E7gT1iRUVE8kf00kriVbIF+ZU
LAvbN5KLibtuRTe3BF73PaQNrkCIbqmKufWDyp1kVoQgCnRSh7JumG8A15T8433N
CW1mijqqlB1U8iyxDk2jeuSuKvRuVaCJ9OGjeNLef1bkCkzFQ5M9Urgmorn/dc0w
GcRjImJsnwY6qn4on7HZKRVbysZIgxGe9iErZOwoHtYXI4SjiimIsJ+nzf+QUaxY
aaeGmC0gFJO3wDi9Sf78Yor4DWqHgOpGDCan2scC8CYITb/1fSGCGjqRRSEuEqoH
e3WZuLQkGKnAohsir3m3N0NI+vkFYDy/wGkFl37y6amtkE8UA6LMmZyzzELeq2Mx
Vdczr4ffCtDv3sFHoP+mPPKYsFkyWvH7am2BWK9qA/n1Ib7hKwO+IdM9A91L4hJW
pogAbPoutFoLFSVBh5wWq6GAKBRzj/g3kOVUHRnSKGTWcpKfMAs=
=youW
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 25 Nov 2022 07:32:48 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:43:27 2025; Machine Name: buxtehude

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.