From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Sep 2 09:40:21 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2464016A422 for ; Fri, 2 Sep 2005 09:40:21 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7B1D43D79 for ; Fri, 2 Sep 2005 09:40:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j829eItT092124 for ; Fri, 2 Sep 2005 09:40:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j829eIcp092123; Fri, 2 Sep 2005 09:40:18 GMT (envelope-from gnats) Resent-Date: Fri, 2 Sep 2005 09:40:18 GMT Resent-Message-Id: <200509020940.j829eIcp092123@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Boris B. Samorodov" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B2DFB16A41F for ; Fri, 2 Sep 2005 09:36:43 +0000 (GMT) (envelope-from bsam@mi.ipt.ru) Received: from mi.ipt.ru (gw.ipt.ru [80.253.10.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 127CF43D48 for ; Fri, 2 Sep 2005 09:36:42 +0000 (GMT) (envelope-from bsam@mi.ipt.ru) Received: from mi.ipt.ru (localhost [127.0.0.1]) by mi.ipt.ru (8.13.4/8.13.3) with ESMTP id j829bJ1l031860 for ; Fri, 2 Sep 2005 13:37:19 +0400 (MSD) (envelope-from bsam@mi.ipt.ru) Received: (from bsam@localhost) by mi.ipt.ru (8.13.4/8.13.3/Submit) id j829bJTn031859; Fri, 2 Sep 2005 13:37:19 +0400 (MSD) (envelope-from bsam) Message-Id: <200509020937.j829bJTn031859@mi.ipt.ru> Date: Fri, 2 Sep 2005 13:37:19 +0400 (MSD) From: "Boris B. Samorodov" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/85625: [patch] emulators/linux_base-8, plist fix X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Boris B. Samorodov" List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2005 09:40:21 -0000 >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: