[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

xcontrib: error in dh_installxaw, not the human-made postinst

[sorry for the vast crosspost]

Robert Ramiega <robert@plukwa.pdi.net> wrote:
> I just tried to install package in question and had problems due to small
> typo in xcontrib.postinst file. Here is the fix:
> + xcontrib.postinst
> - /var/lib/dpkg/info/xcontrib.postinst
> 16c16
> - for opts in '/usr/X11R6/bin/viewres viewres /usr/X11R6/bin/viewres.real''/usr/X11R6/bin/listres listres /usr/X11R6/bin/listres.real'; do
> + for opts in '/usr/X11R6/bin/viewres viewres /usr/X11R6/bin/viewres.real' '/usr/X11R6/bin/listres listres /usr/X11R6/bin/listres.real'; do

This bug, #4, is not error in the xcontrib package, but in dh_installxaw,
program that puts this code in package's postinst script. Actually, I
discovered this bug while testing this xcontrib NMU :)

So, all porters that want to port this package should either upgrade to
debhelper 2.0.14 (IIRC), or apply this patch to their dh_installxaw:

--- dh_installxaw.orig  Mon Jul 12 20:22:11 1999
+++ dh_installxaw       Mon Jul 12 20:22:27 1999
@@ -41,8 +41,8 @@
					elsif ($stanza) {
-						$install_opts.="'$data{program} $data{'link-name'} $data{wrapped}'";
-						$remove_opts.="'$data{'link-name'} $data{wrapped}'";
+						$install_opts.="'$data{program} $data{'link-name'} $data{wrapped}' ";
+						$remove_opts.="'$data{'link-name'} $data{wrapped}' ";
						undef %data;



enJoy -*/\*- spelled 'iosip', or simply 'joseph'

Reply to: