misc/compat5x package installs with weird messages

Norikatsu Shigemura nork at FreeBSD.org
Fri Dec 14 19:06:20 PST 2007


On Fri, 14 Dec 2007 18:32:22 -0600
Stephen Montgomery-Smith <stephen at math.missouri.edu> wrote:
> > My bets are on noschg flag.
> Pav, you are exactly right.  I have experienced this many times myself. 
>   After installing the compat5x package you need to do "chflags -R 
> noschg /var/tmp/inst* && rm -rf /var/tmp/inst*" or something like that.
> I think it is a bug in pkg_install, that it doesn't check for the schg 
> flag being set in its temporary file area.  Or maybe it should set the 
> flags in the first place.

	I knew this issue.  So I fixed it with rev#1.16 on make clean.
	But my work was not enough:-(.  How about following patch?

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/misc/compat5x/Makefile,v
retrieving revision 1.16
diff -u -r1.16 Makefile
--- Makefile	21 Apr 2007 03:24:32 -0000	1.16
+++ Makefile	15 Dec 2007 02:59:30 -0000
@@ -11,7 +11,7 @@
 
 PORTNAME=	compat5x
 PORTVERSION=	5.4.0.8
-PORTREVISION=	8
+PORTREVISION=	9
 CATEGORIES=	misc
 MASTER_SITES=	${MASTER_SITE_LOCAL}
 MASTER_SITE_SUBDIR=lesi/compat5x
@@ -68,6 +68,9 @@
 PLIST_SUB+=	SPARC64="@comment "
 .endif
 
+post-extract:
+	@chflags -R noschg ${WRKSRC} || ${TRUE}
+
 do-install:
 	@${MKDIR} ${TARGET_DIR}
 	(cd ${WRKSRC} && ${INSTALL_DATA} *.so.* ${TARGET_DIR})
@@ -85,7 +88,4 @@
 .endif
 	@${CAT} ${PKGMESSAGE}
 
-pre-clean:
-	@[ -w ${WRKSRC} ] && chflags -R noschg ${WRKSRC} || ${TRUE}
-
 .include <bsd.port.post.mk>


More information about the freebsd-ports mailing list