If a L<dpkg-gensymbols(1)> 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
=cut
-init();
+init(options => {
+ "m=s", => \$dh{M_PARAMS},
+ "major=s" => \$dh{M_PARAMS},
+ "version-info:s" => \$dh{V_FLAG},
+});
foreach my $package (@{$dh{DOPACKAGES}}) {
next if is_udeb($package);
# 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");