Debian Bug report logs - #1030715
adacgi: please make the build reproducible

version graph

Package: src:adacgi; Maintainer for src:adacgi is Phil Brooke <pjb@debian.org>;

Reported by: "Chris Lamb" <lamby@debian.org>

Date: Mon, 6 Feb 2023 17:54:02 UTC

Severity: wishlist

Tags: patch

Found in version adacgi/1.6-31

Reply or subscribe to this bug.

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, Phil Brooke <pjb@debian.org>:
Bug#1030715; Package src:adacgi. (Mon, 06 Feb 2023 17:54:04 GMT) (full text, mbox, link).


Acknowledgement sent to "Chris Lamb" <lamby@debian.org>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, Phil Brooke <pjb@debian.org>. (Mon, 06 Feb 2023 17:54:04 GMT) (full text, mbox, link).


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

From: "Chris Lamb" <lamby@debian.org>
To: submit@bugs.debian.org
Subject: adacgi: please make the build reproducible
Date: Mon, 06 Feb 2023 09:50:44 -0800
[Message part 1 (text/plain, inline)]
Source: adacgi
Version: 1.6-31
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0] we noticed that
adacgi could not be built reproducibly.

This is because it installs /usr/share/gpr/adacgi.gpr that contains
the build flags that it was built with. This causes a problem because
these contain the current build directory, making the package
unreproducible:

     ldflags   := ("-Wl,-z,relro", "-Wl,-z,now", "-Wl,--no-allow-shlib-undefined", "-Wl,--no-copy-dt-needed-entries", "-Wl,--no-undefined");
 -   adaflags  := ("-g", "-O2", "-ffile-prefix-map=/build/1st/adacgi-1.6=.", "-fstack-protector-strong", "", "-gno-record-gcc-switches");
 +   adaflags  := ("-g", "-O2", "-ffile-prefix-map=/build/2/adacgi-1.6/2nd=.", "-fstack-protector-strong", "", "-gno-record-gcc-switches");
     soversion := "4";

A patch is attached that will modify this file just prior to
installation, but the better solution may actually belong somewhere
else in Debian's Ada toolchain. Unfortunately, I lack the knowledge
to know precisely where, but hopefully this helps demonstrate the
problem and a route to a solution.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk
       `-

[adacgi.diff.txt (text/plain, attachment)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 12:33:46 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.