File: reproducible_build.diff

package info (click to toggle)
libimage-imlib2-perl 2.03-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 324 kB
  • sloc: perl: 305; ansic: 112; makefile: 10
file content (21 lines) | stat: -rw-r--r-- 577 bytes parent folder | download
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>

--- a/Build.PL
+++ b/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 @@
 }
 
 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',