[Pbuilder-maint] Bug#387064: File permission could be mangled

Daniel Leidert daniel.leidert.spam at gmx.net
Tue Sep 12 00:31:41 UTC 2006


Package: pbuilder
Version: 0.158
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This is some really obscure issue. I'm maintaining docbook-xsl. I'm
currently building version 1.71.0.dfsg.1-1. When I build this version
with pbuilder, the file
/usr/share/xml/docbook/stylesheet/nwalsh/slides/keynote/xsltsl/cmp.xsl
gets executable file permissions (0755). The checkout is made from CVS
(using cvs-buildpackage). The file itself has only 0600 file permissons
(definitely no executable tag). When I build the package with debuild,
everything is ok. But when I use pbuilder, the file get's executable
flags added, which results in a lintian warning.

You can try it youself (with cvs-buildpackage installed, and a SID
chroot):

$ cvs -z3 -d:pserver:anonymous at cvs.alioth.debian.org:/cvsroot/debian-xml-sgml \
  co -d pkg-doc-xsl docbook-xsl

$ cd pkg-docbook-xsl

$ cvs-buildpackage -C'pdebuild'

The result is:
$ dpkg-deb -c docbook-xsl_1.71.0.dfsg.1-1_all.deb | grep cmp.xsl
- -rwxr-xr-x root/root 11589 2006-07-04 06:35 ./usr/share/xml/docbook/stylesheet/nwalsh/slides/keynote/xsltsl/cmp.xsl

W: docbook-xsl: executable-not-elf-or-script ./usr/share/xml/docbook/stylesheet/nwalsh/slides/keynote/xsltsl/cmp.xsl
N:
N:   This executable file is not an ELF format binary, and does not start
N:   with the #! sequence that marks interpreted scripts. It might be a sh
N:   script that fails to name /bin/sh as its shell.
N:
N:   Refer to Policy Manual, section 10.4 for details.
N:

But when I simply build it with debuild:
dpkg-deb -c docbook-xsl_1.71.0.dfsg.1-1_all.deb | grep cmp.xsl
- -rw-r--r-- root/root 11589 2006-07-04 06:35 ./usr/share/xml/docbook/stylesheet/nwalsh/slides/keynote/xsltsl/cmp.xsl

The source should also be soon in Debian. So you can avoid
cvs-buildpackage and instead use apt-get source.

Or if there is any other way to help to solve this issue, please just
tell me and I will do my best to provide the information you need. But
this is really obscure.

Regards, Daniel


- -- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (850, 'unstable'), (700, 'testing'), (550, 'stable'), (110, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15.08060320
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)

Versions of packages pbuilder depends on:
ii  cdebootstrap                  0.3.13     Bootstrap a Debian system
ii  coreutils                     5.97-5     The GNU core utilities
ii  debianutils                   2.17.1     Miscellaneous utilities specific t
ii  debootstrap                   0.3.3      Bootstrap a basic Debian system
ii  gcc                           4:4.1.1-7  The GNU C compiler
ii  wget                          1.10.2-2   retrieves files from the web

Versions of packages pbuilder recommends:
pn  cowdancer                     <none>     (no description available)
ii  devscripts                    2.9.21     Scripts to make the life of a Debi
ii  fakeroot                      1.5.10     Gives a fake root environment
ii  sudo                          1.6.8p12-4 Provide limited super user privile

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFBf/tdg0kG0+YFBERAroSAJ43jrn1tzFKEPOKQ+FNKES0vz15zQCfQEIZ
UHHQG6p60t24rRVYVpYutHc=
=kylV
-----END PGP SIGNATURE-----




More information about the Pbuilder-maint mailing list