ports/85625: [patch] emulators/linux_base-8, plist fix
Boris B. Samorodov
bsam at ipt.ru
Fri Sep 2 09:40:21 UTC 2005
>Number: 85625
>Category: ports
>Synopsis: [patch] emulators/linux_base-8, plist fix
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Fri Sep 02 09:40:18 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Boris B. Samorodov
>Release: FreeBSD 6.0-BETA3 i386
>Organization:
InPharmTech Co.
>Environment:
System: FreeBSD mi.ipt.ru 6.0-BETA3 FreeBSD 6.0-BETA3 #2: Wed Aug 31 14:05:40 MSD 2005 bsam at mi.ipt.ru:/usr/obj/usr/src/sys/PROBA1 i386
>Description:
Deinstalling packages at pointyhat for print/acroread7 fails
http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/a.7.2005072221/acroread7-7.0.1.log
due to directories interference between emulators/linux_base-8,
x11-toolkits/linux-gtk2, devel/linux-glib2. While the last two
use an @unexec rmdir metod to cleanup directories, the first one
doesn't. That's why pkg_deleting it doesn't work. And that is
acroread7 problem at pointyhat.
The patch below adds @unexec method and redirection of stderr
to /dev/null to deal with directories.
>How-To-Repeat:
Install linux_base-8 alog with the mentioned ports and try to
pkg_delete -f linux_base-8.
>Fix:
--- patch-linux_base-8 begins here ---
--- Makefile.orig Thu Sep 1 13:16:44 2005
+++ Makefile Fri Sep 2 12:23:06 2005
@@ -8,7 +8,7 @@
PORTNAME= linux_base-8
PORTVERSION= 8.0
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= emulators linux
MASTER_SITES= ${MASTER_SITE_REDHAT_LINUX} \
${MASTER_SITE_REDHAT_LINUX:S/$/:new/} \
@@ -145,7 +145,10 @@
${RM} -f ${PLIST}
cd ${WRKSRC} && ${FIND} -s . -type f -o -type l | \
${CUT} -c3-999 >> ${PLIST} \
- && ${FIND} -d * -type d | ${SED} -e 's:^:@dirrm :' >> ${PLIST}
+ && ${FIND} -d * -type d | \
+ ${SED} -e 's:^:@unexec rmdir :' \
+ -e 's:$$: 2> /dev/null || true:' >> ${PLIST}
+
do-install:
cd ${WRKSRC} && ${FIND} * | ${CPIO} -dmp ${PREFIX}
--- patch-linux_base-8 ends here ---
WBR
--
bsam
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list