[Pkg-cups-devel] Bug#409335: cupsys: packages must not ship directories under /usr/local

Frank Küster frank at kuesterei.ch
Fri Feb 2 09:23:19 CET 2007


tags 409335 patch
thanks

Steve Langasek <vorlon at debian.org> wrote:

> The change requested in 408154 is a policy violation.  Packages are not
> allowed to ship any directories under the /usr/local heirarchy; they must be
> created in the postinst and removed in the prerm.
>
> This bug now blocks getting the fix for RC bug 403703 into etch, so please
> revert the change.

Instead of just reverting, you could also apply this simple patch:

diff -Nur cupsys-1.2.7.old/debian/changelog cupsys-1.2.7/debian/changelog
--- cupsys-1.2.7.old/debian/changelog	2007-02-02 09:21:21.000000000 +0100
+++ cupsys-1.2.7/debian/changelog	2007-02-02 08:39:25.000000000 +0100
@@ -1,3 +1,10 @@
+cupsys (1.2.7-4~1) unstable; urgency=low
+
+  * Use dh_usrlocal to install files in /usr/local in the maintainer
+    scripts, instead of shipping them in the deb
+
+ -- Frank KÃŒster <frank at debian.org>  Fri,  2 Feb 2007 08:39:25 +0100
+
 cupsys (1.2.7-3) unstable; urgency=high
 
   [ Kenshi Muto ]
diff -Nur cupsys-1.2.7.old/debian/rules cupsys-1.2.7/debian/rules
--- cupsys-1.2.7.old/debian/rules	2007-02-02 09:21:22.000000000 +0100
+++ cupsys-1.2.7/debian/rules	2007-02-02 08:40:34.000000000 +0100
@@ -74,6 +74,7 @@
 	# Add symlink to local files required by LSB
 	ln -s /usr/local/share/ppd $(DEB_DESTDIR)/../cupsys/usr/share/ppd/1-local-admin
 	ln -s /opt/share/ppd $(DEB_DESTDIR)/../cupsys/usr/share/ppd/2-third-party
+	dh_usrlocal
 
 	# Compatibility for programs which still look in the old location
 	#ln -s ../../ppd/cups-included $(DEB_DESTDIR)/../cupsys/usr/share/cups/model/cups-included

Of course, it's up to the release team to decide whether they want this
fixed change in etch, or rather have the change reverted completely.

Regards, Frank
-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)




More information about the Pkg-cups-devel mailing list