pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/textproc/p5-Text-Markdown-Discount



Module Name:    pkgsrc
Committed By:   schmonz
Date:           Tue Dec 13 11:57:05 UTC 2022

Modified Files:
        pkgsrc/textproc/p5-Text-Markdown-Discount: Makefile

Log Message:
Avoid extracting the vendored discount library. We don't use it at all
(instead buildlinking textproc/discount), and it sometimes contains
macOS xattrs that break extraction as root on other systems.

Fixes "Cannot restore extended attributes: com.apple.quarantine
com.apple.quarantine" seen with pkg_comp(8) on NetBSD/amd64 9.3.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 pkgsrc/textproc/p5-Text-Markdown-Discount/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/p5-Text-Markdown-Discount/Makefile
diff -u pkgsrc/textproc/p5-Text-Markdown-Discount/Makefile:1.26 pkgsrc/textproc/p5-Text-Markdown-Discount/Makefile:1.27
--- pkgsrc/textproc/p5-Text-Markdown-Discount/Makefile:1.26     Thu Nov 17 14:55:39 2022
+++ pkgsrc/textproc/p5-Text-Markdown-Discount/Makefile  Tue Dec 13 11:57:05 2022
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2022/11/17 14:55:39 schmonz Exp $
+# $NetBSD: Makefile,v 1.27 2022/12/13 11:57:05 schmonz Exp $
 #
 
 DISTNAME=              Text-Markdown-Discount-0.16
@@ -18,8 +18,13 @@ SUBST_FILES.paths=   Makefile.PL
 SUBST_VARS.paths=      PREFIX
 SUBST_STAGE.paths=     pre-configure
 
-post-extract:
-       cd ${WRKSRC} && rm -rf discount
+# Avoid extracting the vendored discount library. We don't use it at all
+# (instead buildlinking textproc/discount), and it sometimes contains
+# macOS xattrs that break extraction as root on other systems.
+EXTRACT_OPTS=          -X ${WRKDIR}/excludefile
+pre-extract:
+       ${_EXTRACT_TAR} -ztf ${DISTDIR}/${DISTFILES} \
+               | sort | grep /discount-2 > ${WRKDIR}/excludefile
 
 .include "../../textproc/discount/buildlink3.mk"
 .include "../../lang/perl5/module.mk"



Home | Main Index | Thread Index | Old Index