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

Bug#666875: apache2-dev: dh_apache2 does not set "x" bits on /usr/lib/apache2/modules/



Package: apache2-dev
Version: 2.4.1-2
Version: 2.4.1-3
Severity: important

Hi,

after changing libapache2-mod-macro to use dh_apache2, I got the
following strange lintian warning about the resulting package:

W: libapache2-mod-macro: non-standard-dir-perm usr/lib/apache2/modules/ 0655 != 0755
N:
N:    The directory has a mode different from 0755, and it's not one of the
N:    known exceptions.
N: [...]

Adding an "chmod -c a+x" to debian/rules after dh_apache2 reveals that
the permission initially was even 644:

[...]
dh_apache2
chmod -c a+x debian/libapache2-mod-macro/usr/lib/apache2/modules
mode of `debian/libapache2-mod-macro/usr/lib/apache2/modules' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x)
dh_installdeb
[...]

I suspect that line 347 (line number from version 2.4.1-2 on amd64, but
I spotted the same line in 2.4.1-3 on i386) is the culprit:

    complex_doit("chmod","644","$modinstalldir");

Should be 755 instead.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (600, 'testing'), (400, 'stable'), (110, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-xen-amd64 (SMP w/1 CPU core)
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.1-2
ii  debhelper        9.20120322
ii  libapr1-dev      1.4.6-1
ii  libaprutil1-dev  1.4.1-1
ii  openssl          1.0.1-4
ii  perl             5.14.2-9

apache2-dev recommends no packages.

apache2-dev suggests no packages.

-- no debconf information



Reply to: