Just noticed an error in one of the patches: it could result in printing an udeb line multiple times. Attached the correct patch. Patch for Dh_Getopt.pm remains unchanged.
--- /usr/bin/dh_makeshlibs 2005-05-13 22:46:41.000000000 +0200 +++ dh_makeshlibs 2006-01-01 22:22:50.728720893 +0100 @@ -64,6 +64,11 @@ 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 shlibs and use "udeb" as the package +name to depend on instead of the regular library package. + =back =head1 EXAMPLES @@ -155,6 +160,10 @@ $deps="$package (>= $version)"; } } + my $udeb_package; + if (defined($dh{SHLIBS_UDEB}) && $dh{SHLIBS_UDEB} ne '') { + $udeb_package = $dh{SHLIBS_UDEB}; + } if (defined($library) && defined($major) && defined($deps) && $library ne '' && $major ne '' && $deps ne '') { $need_ldconfig=1; @@ -163,6 +172,12 @@ if (! $seen{$line}) { $seen{$line}=1; complex_doit("echo '$line' >>$tmp/DEBIAN/shlibs"); + if (defined($udeb_package)) { + my $udeb_deps = $deps; + $udeb_deps =~ s/$package/$udeb_package/e; + $line="udeb: "."$library $major $udeb_deps"; + complex_doit("echo '$line' >>$tmp/DEBIAN/shlibs"); + } } } }
pgp4OY9mTeoHV.pgp
Description: PGP signature