[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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
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

Attachment: signature.asc
Description: PGP signature


Reply to: