diff options
author | joeyh <joeyh> | 2006-01-28 17:55:32 +0000 |
---|---|---|
committer | joeyh <joeyh> | 2006-01-28 17:55:32 +0000 |
commit | 62a94850bb899dfd239354150e5475c654ac448c (patch) | |
tree | 28f553f1eaf0d961ab04a4ae4d8113a146cc1f9b /dh_makeshlibs | |
parent | b6da226d6eb94409547d04baeb76de3a2a27111d (diff) | |
download | debhelper-62a94850bb899dfd239354150e5475c654ac448c.tar.gz |
r1871: * dh_makeshlibs: add support for adding udeb: lines to shlibs file
via --add-udeb parameter. Closes: #345471
Diffstat (limited to 'dh_makeshlibs')
-rwxr-xr-x | dh_makeshlibs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/dh_makeshlibs b/dh_makeshlibs index c530b4ce..1a1ddcc5 100755 --- a/dh_makeshlibs +++ b/dh_makeshlibs @@ -64,6 +64,11 @@ Do not modify postinst/postrm scripts. Exclude files that contain "item" anywhere in their filename or directory from being treated as shared libraries. +=item B<--add-udeb=>I<udeb> + +Create an additional line for udebs in the shlibs file and use "udeb" as the +package name for udebs to depend on instead of the regular library package. + =back =head1 EXAMPLES @@ -111,6 +116,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { # because only if we can get a library name and a major number from # objdump is anything actually added. my $exclude=''; + my @udeb_lines; if (defined($dh{EXCLUDE_FIND}) && $dh{EXCLUDE_FIND} ne '') { $exclude="! \\( $dh{EXCLUDE_FIND} \\) "; } @@ -163,11 +169,22 @@ foreach my $package (@{$dh{DOPACKAGES}}) { if (! $seen{$line}) { $seen{$line}=1; complex_doit("echo '$line' >>$tmp/DEBIAN/shlibs"); + if (defined($dh{SHLIBS_UDEB}) && $dh{SHLIBS_UDEB} ne '') { + my $udeb_deps = $deps; + $udeb_deps =~ s/$package/$dh{SHLIBS_UDEB}/e; + $line="udeb: "."$library $major $udeb_deps"; + push @udeb_lines, $line; + } } } } close FIND; + # Write udeb: lines last. + foreach (@udeb_lines) { + complex_doit("echo '$_' >>$tmp/DEBIAN/shlibs"); + } + # New as of dh_v3. if (! compat(2) && ! $dh{NOSCRIPTS} && $need_ldconfig) { autoscript($package,"postinst","postinst-makeshlibs"); |