[pkg-php-pear] dh --with phpcomposer in git-pbuilder results in all .php files with bits x set
Mathieu Parent
math.parent at gmail.com
Thu Oct 1 07:38:56 UTC 2015
2015-09-30 14:58 GMT+02:00 Olivier Berger <olivier.berger at telecom-sudparis.eu>:
> Hi.
Hello,
> 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
> ...
dh_phpcomposer doesn't copy, modify or delete any file (except
debian/*.substvars).
The problem here comes from the orig tarball:
$ tar tzvf /tmp/arc2-2.2.5.tar.gz | grep '^-rwxrwxr-x' | wc -l
35
(downloaded from https://github.com/semsol/arc2/tags)
Regards
--
Mathieu
More information about the pkg-php-pear
mailing list