Debian Bug report logs - #1020873
xserver-xorg-video-glide: reproducible-builds: build path embedded in glide_drv.so

Package: src:xserver-xorg-video-glide; Maintainer for src:xserver-xorg-video-glide is Debian X Strike Force <debian-x@lists.debian.org>;

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

Date: Tue, 27 Sep 2022 20:03:01 UTC

Severity: normal

Tags: patch

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, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#1020873; Package src:xserver-xorg-video-glide. (Tue, 27 Sep 2022 20:03: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, Debian X Strike Force <debian-x@lists.debian.org>. (Tue, 27 Sep 2022 20:03: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: xserver-xorg-video-glide: reproducible-builds: build path embedded in glide_drv.so
Date: Tue, 27 Sep 2022 12:58:27 -0700
[Message part 1 (text/plain, inline)]
Source: xserver-xorg-video-glide
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/xorg/modules/drivers/glide_drv.so:

  https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/xserver-xorg-video-glide.html

  /build/1st/xserver-xorg-video-glide-1.2.2/build/src/../../src/glide_driver.c:244
  vs.
  /build/2/xserver-xorg-video-glide-1.2.2/2nd/build/src/../../src/glide_driver.c:244

The attached patch to debian/rules fixes this by passing the default
CFLAGS to dh_auto_configure.

Alternately, updating to a newer debhelper compat level might resolve
this as well.

According to my local tests, with this patch applied xserver-xorg-video-glide should
build reproducibly on tests.reproducible-builds.org!

Thanks for maintaining xserver-xorg-video-glide!

live well,
  vagrant
[0001-debian-rules-Pass-default-CFLAGS-to-dh_auto_configur.patch (text/x-diff, inline)]
From 116058d94c85ce8b617be1485076bedab95d6a25 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Tue, 27 Sep 2022 19:53:19 +0000
Subject: [PATCH] debian/rules: Pass default CFLAGS to dh_auto_configure.

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

diff --git a/debian/rules b/debian/rules
index 6947889..c48591d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,7 +4,7 @@
 override_dh_auto_configure:
 	dh_auto_configure -- \
 		--with-glide-include-dir=/usr/include/glide3 \
-		--disable-silent-rules
+		--disable-silent-rules CFLAGS="$(shell dpkg-buildflags --get CFLAGS)"
 
 # Install in debian/tmp to retain control through dh_install:
 override_dh_auto_install:
-- 
2.37.2

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

Send a report that this bug log contains spam.


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