[pkg-php-pear] dh --with phpcomposer in git-pbuilder results in all .php files with bits x set

Olivier Berger olivier.berger at telecom-sudparis.eu
Wed Sep 30 12:58:20 UTC 2015


Hi.

I've been working on updating php-arc yesterday, and used gbp with
git-pbuilder (cowbuilder) for sid, and the generated package contains
all .php files under /usr/share/php/arc/ to be -rwxr-xr-x.

By comparison, using dpkg-buildpackage on the package sources gives me
the correcte expected -rw-r--r--.

The sources are in http://anonscm.debian.org/cgit/pkg-php/php-arc.git
for the curious.

Any hints what could be wrong ?

FWIW, the php-arc_2.2.5-1_amd64.build contains :
...
  dh_fixperms
        find debian/libarc-php  -print0 2>/dev/null | xargs -0r chown --no-dereference 0:0
        find debian/libarc-php ! -type l  -print0 2>/dev/null | xargs -0r chmod go=rX,u+rw,a-s
        find debian/libarc-php/usr/share/doc -type f  ! -regex 'debian/libarc-php/usr/share/doc/[^/]*/examples/.*' -print0 2>/dev/null | xargs -0r chmod 0644
        find debian/libarc-php/usr/share/doc -type d  -print0 2>/dev/null | xargs -0r chmod 0755
        find debian/libarc-php/usr/share/man debian/libarc-php/usr/man/ debian/libarc-php/usr/X11*/man/ -type f  -print0 2>/dev/null | xargs -0r chmod 0644
        find debian/libarc-php -perm -5 -type f \( -name '*.so.*' -or -name '*.so' -or -name '*.la' -or -name '*.a' \)  -print0 2>/dev/null | xargs -0r chmod 0644
        find debian/libarc-php/usr/include -type f  -print0 2>/dev/null | xargs -0r chmod 0644
        find debian/libarc-php/usr/share/applications -type f  -print0 2>/dev/null | xargs -0r chmod 0644
        find debian/libarc-php -perm -5 -type f \( -name '*.cmxs' \)  -print0 2>/dev/null | xargs -0r chmod 0644
        find debian/libarc-php/usr/lib/x86_64-linux-gnu/perl5/5.20 debian/libarc-php/usr/share/perl5 -type f -perm -5 -name '*.pm'  -print0 2>/dev/null | xargs -0r chmod a-X
        find debian/libarc-php/usr/lib -type f -name '*.ali'  -print0 2>/dev/null | xargs -0r chmod uga-w
...

Many thanks in advance.

Best regards,
-- 
Olivier BERGER 
http://www-public.telecom-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8
Ingenieur Recherche - Dept INF
Institut Mines-Telecom, Telecom SudParis, Evry (France)




More information about the pkg-php-pear mailing list