Debian Bug report logs - #1010781
ragel: reproducible-builds: embedded build paths in /usr/bin/ragel

version graph

Package: src:ragel; Maintainer for src:ragel is Chris Hofstaedtler <zeha@debian.org>;

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

Date: Mon, 9 May 2022 23:39:02 UTC

Severity: normal

Tags: patch

Fixed in version ragel/6.10-3

Done: Vagrant Cascadian <vagrant@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

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, Debian QA Group <packages@qa.debian.org>:
Bug#1010781; Package src:ragel. (Mon, 09 May 2022 23:39:05 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, Debian QA Group <packages@qa.debian.org>. (Mon, 09 May 2022 23:39:05 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: ragel: reproducible-builds: embedded build paths in /usr/bin/ragel
Date: Mon, 09 May 2022 16:36:08 -0700
[Message part 1 (text/plain, inline)]
Source: ragel
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/bin/ragel:

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

  /build/1st/ragel-6.10/ragel/main.cpp:462
  vs.
  /build/2/ragel-6.10/2nd/ragel/main.cpp:462


The attached patch to debian/rules fixes this by also setting CXXFLAGS
and passing it to configure.

Alternately, updating the packaging to use dh/debhelper at a recent
compat level would also likely fix this, or passing
-ffile-prefix-map=$(CURDIR)=. in CFLAGS and CXXFLAGS.


With this patch applied, ragel should build reproducibly on
tests.reproducible-builds.org!


live well,
  vagrant
[0001-debian-rules-Also-pass-CXXFLAGS-to-configure.patch (text/x-diff, inline)]
From 55b5bcf491bca1cf98f73819da71a8830741b869 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Mon, 9 May 2022 23:26:49 +0000
Subject: [PATCH] debian/rules: Also pass CXXFLAGS to configure.

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

diff --git a/debian/rules b/debian/rules
index c695e62..d3b512f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,7 @@
 #!/usr/bin/make -f
 
 CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
+CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
 LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
 
 # for the m68k hack
@@ -9,7 +10,7 @@ export DEB_BUILD_ARCH
 
 config.status: configure
 	dh_testdir
-	CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure --prefix=/usr --mandir=\$${prefix}/share/man 
+	CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure --prefix=/usr --mandir=\$${prefix}/share/man 
 
 build: build-arch build-indep
 build-arch: build-stamp
-- 
2.36.0

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

Reply sent to Vagrant Cascadian <vagrant@debian.org>:
You have taken responsibility. (Tue, 10 May 2022 18:54:03 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Tue, 10 May 2022 18:54:04 GMT) (full text, mbox, link).


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1010781-close@bugs.debian.org
Subject: Bug#1010781: fixed in ragel 6.10-3
Date: Tue, 10 May 2022 18:51:09 +0000
Source: ragel
Source-Version: 6.10-3
Done: Vagrant Cascadian <vagrant@debian.org>

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

Debian distribution maintenance software
pp.
Vagrant Cascadian <vagrant@debian.org> (supplier of updated ragel 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: Tue, 10 May 2022 11:05:59 -0700
Source: ragel
Architecture: source
Version: 6.10-3
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Vagrant Cascadian <vagrant@debian.org>
Closes: 874192 1010781
Changes:
 ragel (6.10-3) unstable; urgency=medium
 .
   * QA upload.
   * debian/rules: Switch to using dh. (Closes: #1010781)
   * debian/copyright: Reference GPL-2 in common-licenses.
   * debian/control: Set Rules-Requires-Root to "no".
   * debian/rules: Build and install ragel-guide.pdf. (Closes: #874192)
   * debian/control: Update Build-Depends to use fig2dev instead of
     transfig.
   * debian/control: Update Standards-Version to 4.6.0.
Checksums-Sha1:
 5744b19962ae187be73556c3751522e77aa04887 1268 ragel_6.10-3.dsc
 78503fa313b02a052acf22467c48c7c29b7cd020 4328 ragel_6.10-3.debian.tar.xz
Checksums-Sha256:
 bec628338e63cef640f964bde2db7daf9e75da9a2b71a3c19811d8c7831851fd 1268 ragel_6.10-3.dsc
 0bec9929859f9645fb8a8e8be144b8e147b4ea4560b732284695fe6f8389c2da 4328 ragel_6.10-3.debian.tar.xz
Files:
 f8118330c9fe03e2f8b844ff78116adc 1268 devel optional ragel_6.10-3.dsc
 2de934e6f7afde4c9cd7dc8b3c476808 4328 devel optional ragel_6.10-3.debian.tar.xz

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

iIkEARYKADEWIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYnqtKxMcdmFncmFudEBk
ZWJpYW4ub3JnAAoJENxRj8h/lxaqmJABAOoxstZiHpMtsNPpgNmHEjCdGEd+Ip5q
q3Qy8wUtqwRaAQC7cPICILjAwI/BOFHROig92WkWTbVgq2OTieIrIrWYDg==
=QErQ
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 13 Jun 2022 07:28:53 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: Wed May 17 12:38:18 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU 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.