Date: Mon, 16 Jul 2007 10:36:32 -0500 From: Paul Schmehl <pauls@utdallas.edu> To: freebsd-ports@freebsd.org Subject: Continued pkg-plist problems Message-ID: <C694403F91F9BC0ED6FDB598@utd59514.utdallas.edu>
next in thread | raw e-mail | index | archive | help
--==========692E68F28E279B238A38========== Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I'm working on an upgrade to security/bro. The new version is requires=20 that I install a perl module in SITE_PERL so that the configuration script=20 will run correctly. When I tried to add the module to pkg-plist, the=20 deletion of the file failed because deinstall was prepending PREFIX to=20 SITE_PERL, making the path invalid. To get around this problem I wrote a one line pkg-deinstall script that=20 deletes the file. The script does what you would expect, but then it=20 returns an error. root@utd59514# find /usr/local/lib/perl5/ -name IP4.pm /usr/local/lib/perl5/site_perl/5.8.8/mach/IP4.pm root@utd59514# make deinstall PREFIX=3D/var/tmp/$(make -V PORTNAME) =3D=3D=3D> Deinstalling for security/bro =3D=3D=3D> Deinstalling bro-1.1d rm: /usr/local/lib/perl5/site_perl/5.8.8/mach/IP4.pm: No such file or=20 directory pkg_delete: post-deinstall script returned error status root@utd59514# find /usr/local/lib/perl5/ -name IP4.pm As you can see, the file was removed, but the script returns an error. If=20 I manually copy the module to SITE_PERL and then manually run=20 pkg-deinstall, the module is removed with no errors. What the heck is causing this error message? Here's the pkg-deinstall script: root@utd59514# less files/pkg-deinstall.in #!/bin/sh # Since pkg-plist prepends PREFIX to SITE_PERL, # we can't remove this file in the normal way /bin/rm %%SITE_PERL%%/mach/IP4.pm It's listed in the Makefile as one of the SUB_FILES, and SUB_LIST includes=20 SITE_PERL=3D${SITE_PERL). --=20 Paul Schmehl (pauls@utdallas.edu) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/ --==========692E68F28E279B238A38==========--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C694403F91F9BC0ED6FDB598>