[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#681542: apache2-dev: dh_apache2 does not support -p/-N



Package: apache2-dev
Version: 2.4.2-2
Severity: normal

dh_apache2 loops across all packages with:

    foreach my $package (getpackages())
    {
        # ...
    }

This is incorrect, since getpackages always returns all packages
listed in debian/control.  The init function filters those results
based on -p/-N options and stores the results in $dh{DOPACKAGES},
which should be used instead so that those options are honored.

You should instead use:

    foreach my $package (@{$dh{DOPACKAGES}})
    {
        # ...
    }

See, for example, dh_installdirs, or most of the other dh_* scripts
that come with debhelper.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-2-686-pae (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages apache2-dev depends on:
ii  apache2          2.4.2-2
ii  debhelper        9.20120608
ii  libapr1-dev      1.4.6-3
ii  libaprutil1-dev  1.4.1-2
ii  openssl          1.0.1c-3
ii  perl             5.14.2-12

apache2-dev recommends no packages.

apache2-dev suggests no packages.

-- no debconf information



Reply to: