File: reproducible_build.diff

package info (click to toggle)
libimage-imlib2-perl 2.03-1.2~deb12u1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 320 kB
  • sloc: perl: 305; ansic: 112; makefile: 9
file content (21 lines) | stat: -rw-r--r-- 670 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Pass -ffile-prefix-map via $cflags to avoid embedding build path.
Author: Vagrant Cascadian <vagrant@reproducible-builds.org>

--- libimage-imlib2-perl-2.03.orig/Build.PL
+++ libimage-imlib2-perl-2.03/Build.PL
@@ -1,5 +1,6 @@
 use Module::Build;
 use strict;
+use Cwd;
 
 # We need to find imlib2-config
 my $CONFIG = "imlib2-config";
@@ -20,7 +21,7 @@ point to the imlib2-config program that
 }
 
 my $libs = `$CONFIG --libs`;
-my $cflags = "-DX_DISPLAY_MISSING " . `$CONFIG --cflags`;
+my $cflags = "-DX_DISPLAY_MISSING " . `$CONFIG --cflags` . "-ffile-prefix-map=" . getcwd() . "=." ;
 
 my $build = Module::Build->new(
   c_source     => './lib/Image',