• Bug#1104535: cc65: please make package reproducible

    From Chris Hofstaedtler@21:1/5 to All on Thu May 1 18:50:01 2025
    Source: cc65
    Version: 2.19-1
    Tags: patch
    User: reproducible-builds@lists.alioth.debian.org
    Usertag: buildpath
    X-Debbugs-CC: reproducible-builds@lists.alioth.debian.org

    Dear Maintainer,

    please apply the attached patch to pick up CFLAGS from
    dpkg-buildflags. This will setup build path stripping etc, and help
    make your package reproducible.

    Rebuilding cc65 twice with the patch using debrebuild results in a
    (for me) reproducible package.

    Thanks,
    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?B?TMOhc3psw7MgQsO2c3rDtnJtw@21:1/5 to zeha@debian.org on Thu May 1 19:00:01 2025
    Hi Chris,

    On Thu, May 1, 2025 at 6:45 PM Chris Hofstaedtler <zeha@debian.org> wrote:
    Tags: patch
    [...]
    please apply the attached patch to pick up CFLAGS from
    dpkg-buildflags. This will setup build path stripping etc, and help
    make your package reproducible.
    I'm open to it, but I can't see the patch attached.

    Cheers,
    Laszlo/GCS

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Hofstaedtler@21:1/5 to All on Thu May 1 19:10:01 2025
    * László Böszörményi (GCS) <gcs@debian.org> [250501 18:54]:
    Hi Chris,

    On Thu, May 1, 2025 at 6:45 PM Chris Hofstaedtler <zeha@debian.org> wrote: >> Tags: patch
    [...]
    please apply the attached patch to pick up CFLAGS from
    dpkg-buildflags. This will setup build path stripping etc, and help
    make your package reproducible.
    I'm open to it, but I can't see the patch attached.

    Sorry, attached now.

    Chris


    From b2395beeaac2e0effd12d8c2eb8edd8c3df91147 Mon Sep 17 00:00:00 2001
    From: Chris Hofstaedtler <zeha@debian.org>
    Date: Thu, 1 May 2025 18:34:57 +0200
    Subject: [PATCH] Use dpkg-buildflags to improve reproducibility

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

    diff --git a/debian/rules b/debian/rules
    index 48d3566..0abc95b 100755
    --- a/debian/rules
    +++ b/debian/rules
    @@ -4,11 +4,12 @@
    # Uncomment this to turn on verbose mode.
    #export DH_VERBOSE=1

    +include /usr/share/dpkg/buildflags.mk
    include /usr/share/dpkg/pkg-info.mk
    include /usr/share/dpkg/vendor.mk

    override_dh_auto_build:
    - dh_auto_build -- PREFIX=/usr PKG_VERSION="$(DEB_VENDOR) $(DEB_VERSION)" + dh_auto_build -- PREFIX=/usr PKG_VERSION="$(DEB_VENDOR) $(DEB_VERSION)" USER_CFLAGS="$(CFLAGS)"
    $(MAKE) -C doc html

    override_dh_auto_install:
    --
    2.49.0

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)