Comment 2 for bug 6790

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <20040512171459.GA511@catalunya>
Date: Wed, 12 May 2004 10:14:59 -0700
From: Matt Kraai <email address hidden>
To: <email address hidden>
Subject: FTBFS: setgid control directory

--1yeeQ81UyVL57Vl7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Package: python-osd
Version: 0.2.6-1
Severity: serious
Tags: patch

This package fails to build from source:

 ...
 dpkg --build 'debian/install/dummy' ..
 dpkg-deb: control directory has bad permissions 2755 (must be >=0755 and <=0775)
 dpkg-deb: building package `python-osd' in `../python-osd_0.2.6-1_all.deb'.
 make: *** [binary-indep-dummy] Error 2
 pbuilder: Failed autobuilding of package
 ...

The setgid bit is inherited from the top level directory in the
tarball.

The attached patch fixes the build by removing the setgid bits.

--
Matt Kraai <email address hidden> http://ftbfs.org/

--1yeeQ81UyVL57Vl7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch

diff -Nru python-osd-0.2.6-old/debian/rules python-osd-0.2.6/debian/rules
--- python-osd-0.2.6-old/debian/rules 2004-05-12 07:53:45.000000000 -0700
+++ python-osd-0.2.6/debian/rules 2004-05-12 07:54:16.000000000 -0700
@@ -16,6 +16,7 @@
  find . -type f -name '*.pyc' -print0 \
  | xargs -0 --no-run-if-empty rm --
  rm -rf debian/substvars debian/files
+ chmod -R g-s .

 DUMMY_INSTDIR:=debian/install/dummy

--1yeeQ81UyVL57Vl7--