Package: swt-gtk
Version: 3.0+3.1M4-4
Severity: serious
Tags: patch

swt-gtk fails to build because the control directory is setgid, which
is inherited from the top-level directory:

> dh_builddeb -i
> dpkg-deb: control directory has bad permissions 2755 (must be >=0755 and 
> <=0775)
> dpkg-deb: building package `libswt-gtk-dev' in 
> `../libswt-gtk-dev_3.0+3.1M4-4_all.deb'.
> dh_builddeb: command returned error code 512

The attached patch fixes this by removing all setgid bits in the clean
target.  Alternatively, you could use a tarball in which the top-level
directory is not setgid.

-- 
Matt
diff -u swt-gtk-3.0+3.1M4/debian/rules swt-gtk-3.0+3.1M4/debian/rules
--- swt-gtk-3.0+3.1M4/debian/rules
+++ swt-gtk-3.0+3.1M4/debian/rules
@@ -11,6 +11,8 @@
        dh_clean -k
 
 clean:
+       # Remove the setgid bid
+       chmod -R g-s .
        rm -f build-stamp
        dh_clean
        -$(MAKE) distclean

Attachment: signature.asc
Description: Digital signature

Reply via email to