ports/114878: misc/compat4x: Fails to remove schg flag in pre-clean
Scot Hetzel
swhetzel at gmail.com
Wed Jul 25 04:30:02 UTC 2007
>Number: 114878
>Category: ports
>Synopsis: misc/compat4x: Fails to remove schg flag in pre-clean
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Jul 25 04:30:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Scot Hetzel
>Release: FreeBSD 7.0-CURRENT
>Organization:
>Environment:
FreeBSD hp010 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Mon Jul 23 03:27:47 CDT 2007 root at hp010:/usr/src/7x/sys/amd64/compile/GENERIC.debug amd64
>Description:
After 'make clean' in the port's directory deletion of the workdir fails because work/compat4x/var/empty has schg flag set.
PR 112899 was submitted in an attempt to solve this problem, but it failed due to WRKSRC is set /usr/ports/misc/compat4x/work/usr/lib/compat, and it is performing the chflags on the wrong directory.
>How-To-Repeat:
hp010# cd /usr/ports/missc/compat4x
hp010# make build
:
hp010# make clean
===> Cleaning for compat4x-i386-5.3_9
rm: /usr/ports/misc/compat4x/work/var/empty: Operation not permitted
rm: /usr/ports/misc/compat4x/work/var: Directory not empty
rm: /usr/ports/misc/compat4x/work: Directory not empty
*** Error code 1
Stop in /usr/ports/misc/compat4x.
*** Error code 1
Stop in /usr/ports/misc/compat4x.
>Fix:
Apply the attached patch.
Patch attached with submission follows:
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/misc/compat4x/Makefile,v
retrieving revision 1.34
diff -u -r1.34 Makefile
--- Makefile 21 Jun 2007 15:34:48 -0000 1.34
+++ Makefile 25 Jul 2007 04:12:44 -0000
@@ -148,6 +148,6 @@
@${CAT} ${PKGMESSAGE}
pre-clean:
- @[ -w ${WRKSRC} ] && chflags -R noschg ${WRKSRC} || ${TRUE}
+ @[ -w ${WRKDIR}/var ] && chflags -R noschg ${WRKDIR}/var || ${TRUE}
.include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list