cleaning schg flag in compat5x distfiles

Dmitry Marakasov amdmi3 at amdmi3.ru
Mon Aug 23 23:50:46 UTC 2010


Hi!

Distfiles for misc/compat5x are shipped with schg file set on some
files. This makes it impossible to install port with raised
securitylevel, as clearing schg flag is impossible in that case.
See [1].

If nobody minds, I'm going to reroll compat5x distfiles with schg flag
cleared. I guess we need a PORTVERSION bump here, as distfiles should be
renamed due to changed checksums, and given that .8 part of compat5x
version (5.4.0.8) indicates patchlevel, I guess I'll have to use
5.4.0.8.1. Rerolled distfiles are at my ~/public_distfiles/compat5x/,
and should propagate to [2] in some time. Original distfiles are at [3].
Port diff is as follows:

--- compat5x.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/amdmi3/projects/freebsd/FreeBSD.cvs/ports/misc/compat5x/Makefile,v
retrieving revision 1.23
diff -u -r1.23 Makefile
--- Makefile	4 Dec 2009 06:34:49 -0000	1.23
+++ Makefile	23 Aug 2010 23:38:40 -0000
@@ -10,11 +10,10 @@
 # misc/localedata works out of the box if installed in default PREFIX.
 
 PORTNAME=	compat5x
-PORTVERSION=	5.4.0.8
-PORTREVISION=	11
+PORTVERSION=	5.4.0.8.1
 CATEGORIES=	misc
 MASTER_SITES=	${MASTER_SITE_LOCAL}
-MASTER_SITE_SUBDIR=lesi/compat5x
+MASTER_SITE_SUBDIR=amdmi3/compat5x
 PKGNAMESUFFIX=	-${ARCH}
 DISTNAME=	${PORTNAME}-${ARCH}-${PORTVERSION}
 
@@ -32,8 +31,6 @@
 TARGET32_DIR=	${PREFIX}/lib32/compat
 USE_LDCONFIG=	${TARGET_DIR}
 
-EXTRACT_PRESERVE_OWNERSHIP=	yes	# Files in archive have scfg-flag set
-
 .include <bsd.port.pre.mk>
 
 .if ${ARCH} == "sparc64"
@@ -66,9 +63,6 @@
 PLIST_SUB+=	SPARC64="@comment "
 .endif
 
-post-extract:
-	@chflags -R noschg ${WRKSRC} || ${TRUE}
-
 do-install:
 	@${MKDIR} ${TARGET_DIR}
 .if ${OSVERSION} >= 800105
Index: distinfo
===================================================================
RCS file: /home/amdmi3/projects/freebsd/FreeBSD.cvs/ports/misc/compat5x/distinfo,v
retrieving revision 1.3
diff -u -r1.3 distinfo
--- distinfo	25 Nov 2005 16:09:13 -0000	1.3
+++ distinfo	23 Aug 2010 23:33:43 -0000
@@ -1,12 +1,12 @@
-MD5 (compat5x-alpha-5.4.0.8.tar.bz2) = ecdcec1f12a9f55afd2752d585584394
-SHA256 (compat5x-alpha-5.4.0.8.tar.bz2) = b62055ccd241897c42dd8647ac9a5b0480b377d1a1cf4789a4198caadeb6aac8
-SIZE (compat5x-alpha-5.4.0.8.tar.bz2) = 3262263
-MD5 (compat5x-amd64-5.4.0.8.tar.bz2) = c0b3b659fe4271d375d23ac453af1c70
-SHA256 (compat5x-amd64-5.4.0.8.tar.bz2) = 826f06423f980a8adea2d469fa2649ae4ff441ae4e9d92e9f62b0ae36ac6156d
-SIZE (compat5x-amd64-5.4.0.8.tar.bz2) = 5854812
-MD5 (compat5x-i386-5.4.0.8.tar.bz2) = be90899b2655bbd08506ba22224d444c
-SHA256 (compat5x-i386-5.4.0.8.tar.bz2) = 0ff4865b87ea953f59d13d484311c992413dc244308c0b0f29fa63a052945bd2
-SIZE (compat5x-i386-5.4.0.8.tar.bz2) = 2713375
-MD5 (compat5x-sparc64-5.4.0.8.tar.bz2) = b9e5d83a74883fe9c00941a48bf25af3
-SHA256 (compat5x-sparc64-5.4.0.8.tar.bz2) = e944043a1c6a2ac80b27125884b2b959ac52bac45d96ff6149de76f626df278f
-SIZE (compat5x-sparc64-5.4.0.8.tar.bz2) = 2782880
+MD5 (compat5x-alpha-5.4.0.8.1.tar.bz2) = 5311818a998f2b3e221b2bdf4a12258a
+SHA256 (compat5x-alpha-5.4.0.8.1.tar.bz2) = 305e3e990737c7cb96a951b881346b842a8ec23a02a74c53d16b9576065725d3
+SIZE (compat5x-alpha-5.4.0.8.1.tar.bz2) = 3262836
+MD5 (compat5x-amd64-5.4.0.8.1.tar.bz2) = 85e25a78088775186e7b13fb96f7d93d
+SHA256 (compat5x-amd64-5.4.0.8.1.tar.bz2) = 58dc8fcd2764bec4cb109f54e34d543aa90fe3e94123463de745c76ba9839b13
+SIZE (compat5x-amd64-5.4.0.8.1.tar.bz2) = 5854551
+MD5 (compat5x-i386-5.4.0.8.1.tar.bz2) = 708cf6688454670fe289373496de4949
+SHA256 (compat5x-i386-5.4.0.8.1.tar.bz2) = 1aa980a48586e38e03936f51631c665b62e252d13dc23ac8e82b9669844b798e
+SIZE (compat5x-i386-5.4.0.8.1.tar.bz2) = 2712692
+MD5 (compat5x-sparc64-5.4.0.8.1.tar.bz2) = 053461ff4e09ba439ec390523f3e92d7
+SHA256 (compat5x-sparc64-5.4.0.8.1.tar.bz2) = 2adea66847df4aa24571b7d314bfd29cf682c7f8d61ba1c95c602f13b55f4aec
+SIZE (compat5x-sparc64-5.4.0.8.1.tar.bz2) = 2782405
--- compat5x.diff ends here ---

[1] http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/144264
[2] ftp://ftp.freebsd.org/pub/FreeBSD/ports/local-distfiles/amdmi3/compat5x
[3] ftp://ftp.freebsd.org/pub/FreeBSD/ports/local-distfiles/lesi/compat5x

-- 
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amdmi3 at amdmi3.ru  ..:  jabber: amdmi3 at jabber.ru    http://www.amdmi3.ru


More information about the freebsd-ports mailing list