Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Sep 2005 13:37:19 +0400 (MSD)
From:      "Boris B. Samorodov" <bsam@ipt.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/85625: [patch] emulators/linux_base-8, plist fix
Message-ID:  <200509020937.j829bJTn031859@mi.ipt.ru>
Resent-Message-ID: <200509020940.j829eIcp092123@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509020937.j829bJTn031859>