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

Bug#1011481: marked as done (tamil-gtk2im: reproducible-builds: embedded build paths)



Your message dated Sat, 29 Jul 2023 17:13:05 +0000
with message-id <[🔎] E1qPnV3-003wH1-Uv@fasolo.debian.org>
and subject line Bug#1041694: Removed package(s) from unstable
has caused the Debian Bug report #1011481,
regarding tamil-gtk2im: reproducible-builds: embedded build paths
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1011481: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1011481
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: tamil-gtk2im
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 various binaries:

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

  /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/anjal-uni.so

  /build/1st/tamil-gtk2im-2.2/anjal-uni.c:112
  vs.
  /build/2/tamil-gtk2im-2.2/2nd/anjal-uni.c:112


The attached patch fixes this by passing -ffile-prefix-map to gcc in
compile-gtk2im.sh, which avoids embedding the absolute build path.


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


live well,
  vagrant
From 1003f565988783e16a7f84e66d0e719dff956bba Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Mon, 23 May 2022 20:35:37 +0000
Subject: [PATCH] compile-gtk2im.sh: Pass -ffile-prefix-map to compiler.

This avoids embedding the build path in the binaries.

https://reproducible-builds.org/docs/build-path/
---
 compile-gtk2im.sh | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/compile-gtk2im.sh b/compile-gtk2im.sh
index 77900a2..13de96a 100755
--- a/compile-gtk2im.sh
+++ b/compile-gtk2im.sh
@@ -1,51 +1,51 @@
 #!/bin/sh
 
-libtool --mode=compile gcc -DHAVE_CONFIG_H \
+libtool --mode=compile gcc -ffile-prefix-map=$(pwd)=. -DHAVE_CONFIG_H \
 	`pkg-config --cflags gtk+-2.0` \
 	-g -O2 -Wall -D_GNU_SOURCE -c \
 	-o tamil99-tsc.lo tamil99-tsc.c
 
-libtool --mode=link gcc  -g -O2 -Wall -D_GNU_SOURCE \
+libtool --mode=link gcc -ffile-prefix-map=$(pwd)=. -g -O2 -Wall -D_GNU_SOURCE \
 	-o tamil99-tsc.la -rpath ~/.gtk-2.0/immodules \
 	-rpath ~/.gtk-2.0/immodules -avoid-version -module \
 	tamil99-tsc.lo `pkg-config --libs gtk+-2.0`
 
-libtool --mode=compile gcc -DHAVE_CONFIG_H \
+libtool --mode=compile gcc -ffile-prefix-map=$(pwd)=. -DHAVE_CONFIG_H \
 	`pkg-config --cflags gtk+-2.0` \
 	-g -O2 -Wall -D_GNU_SOURCE -c \
 	-o tamil99-uni.lo tamil99-uni.c
 
-libtool --mode=link gcc  -g -O2 -Wall -D_GNU_SOURCE \
+libtool --mode=link gcc -ffile-prefix-map=$(pwd)=. -g -O2 -Wall -D_GNU_SOURCE \
 	-o tamil99-uni.la -rpath ~/.gtk-2.0/immodules \
 	-rpath ~/.gtk-2.0/immodules -avoid-version -module \
 	tamil99-uni.lo `pkg-config --libs gtk+-2.0`
 
-libtool --mode=compile gcc -DHAVE_CONFIG_H \
+libtool --mode=compile gcc -ffile-prefix-map=$(pwd)=. -DHAVE_CONFIG_H \
 	`pkg-config --cflags gtk+-2.0` \
 	-g -O2 -Wall -D_GNU_SOURCE -c \
 	-o tavpim-tsc.lo tavpim-tsc.c
 
-libtool --mode=link gcc  -g -O2 -Wall -D_GNU_SOURCE \
+libtool --mode=link gcc -ffile-prefix-map=$(pwd)=. -g -O2 -Wall -D_GNU_SOURCE \
 	-o tavpim-tsc.la -rpath ~/.gtk-2.0/immodules \
 	-rpath ~/.gtk-2.0/immodules -avoid-version -module \
 	tavpim-tsc.lo `pkg-config --libs gtk+-2.0`
 
-libtool --mode=compile gcc -DHAVE_CONFIG_H \
+libtool --mode=compile gcc -ffile-prefix-map=$(pwd)=. -DHAVE_CONFIG_H \
 	`pkg-config --cflags gtk+-2.0` \
 	-g -O2 -Wall -D_GNU_SOURCE -c \
 	-o tavpim-uni.lo tavpim-uni.c
 
-libtool --mode=link gcc  -g -O2 -Wall -D_GNU_SOURCE \
+libtool --mode=link gcc -ffile-prefix-map=$(pwd)=. -g -O2 -Wall -D_GNU_SOURCE \
 	-o tavpim-uni.la -rpath ~/.gtk-2.0/immodules \
 	-rpath ~/.gtk-2.0/immodules -avoid-version -module \
 	tavpim-uni.lo `pkg-config --libs gtk+-2.0`	
 
-libtool --mode=compile gcc -DHAVE_CONFIG_H \
+libtool --mode=compile gcc -ffile-prefix-map=$(pwd)=. -DHAVE_CONFIG_H \
 	`pkg-config --cflags gtk+-2.0` \
 	-g -O2 -Wall -D_GNU_SOURCE -c \
 	-o anjal-uni.lo anjal-uni.c
 
-libtool --mode=link gcc  -g -O2 -Wall -D_GNU_SOURCE \
+libtool --mode=link gcc -ffile-prefix-map=$(pwd)=. -g -O2 -Wall -D_GNU_SOURCE \
 	-o anjal-uni.la -rpath ~/.gtk-2.0/immodules \
 	-rpath ~/.gtk-2.0/immodules -avoid-version -module \
 	anjal-uni.lo `pkg-config --libs gtk+-2.0`	
-- 
2.36.1

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Version: 2.2-6+rm

Dear submitter,

as the package tamil-gtk2im has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1041694

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply to: