Debian Codegraph @

debian/patches/remove_rpath.patch

raw
1 Author: Andreas Tille <[email protected]>
2 Last-Update: 2026-09-21
3 Description: Remove DT_RUNPATH injection from Build.PL
4 Debian builds against the system htslib in the standard library
5 directory, so the -Wl,-rpath linker flag injected by upstream
6 Build.PL points to a default library search path and triggers the
7 lintian error custom-library-search-path. The RUNPATH is not
8 needed in Debian.
9
10 --- a/Build.PL
11 +++ b/Build.PL
12 @@ -131,7 +131,6 @@
13 my @linker_dirflags;
14 if ($hts_lib) {
15 push @linker_dirflags, "-L$hts_lib";
16 - push @linker_dirflags, "-Wl,-rpath,$hts_lib" unless $static;
17 }
18 $self->extra_linker_flags(@linker_dirflags, '-lhts', '-lpthread', '-lz');
19 }