From 98188af0f226355ecaff2c67d80bea055bdd59a9 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 29 Nov 2007 12:25:32 -0500 Subject: * dh_makeshlibs: Use new -I flag to specify symbol files, necessary to properly support includes. Closes: #452717 * Increase dpkg-dev dependency to 1.14.12 to ensure that dh_makeshlibs isn't used with an old dpkg-gensymbols that doesn't support -I. --- dh_makeshlibs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'dh_makeshlibs') diff --git a/dh_makeshlibs b/dh_makeshlibs index 7da87b32..642393d1 100755 --- a/dh_makeshlibs +++ b/dh_makeshlibs @@ -23,8 +23,7 @@ V3 mode and above only) to any packages in which it finds shared libraries. If a L symbol file is found in debian/package.symbols (or debian/package.symbols.arch), dpkg-gensymbols will be called -to process and install the symbols file. Packages using symbols files -should Build-Depend on dpkg-dev (>= 1.14.8). +to process and install the symbols file. =head1 OPTIONS @@ -208,15 +207,11 @@ foreach my $package (@{$dh{DOPACKAGES}}) { # dpkg-gensymbols files my $symbols=pkgfile($package, "symbols"); if (-e $symbols) { - # This is done rather than using dpkg-gensymbols + # -I is used rather than using dpkg-gensymbols # own search for symbols files, since that search # is not 100% compatible with debhelper. (For example, # this supports --ignore being used.) - if (! -d "$tmp/DEBIAN") { - doit("install","-d","$tmp/DEBIAN"); - } - doit("cp", $symbols, "$tmp/DEBIAN/symbols"); - doit("dpkg-gensymbols", "-p$package", "-O$tmp/DEBIAN/symbols", + doit("dpkg-gensymbols", "-p$package", "-I$symbols", "-P$tmp", @{$dh{U_PARAMS}}); if (-s "$tmp/DEBIAN/symbols" == 0) { doit("rm", "-f", "$tmp/DEBIAN/symbols"); -- cgit v1.2.3