pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/p5-Text-Markdown-Discount Avoid extracting th...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e8df28c4313a
branches:  trunk
changeset: 389956:e8df28c4313a
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Tue Dec 13 11:57:05 2022 +0000

description:
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.

diffstat:

 textproc/p5-Text-Markdown-Discount/Makefile |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r 902110bee8f6 -r e8df28c4313a textproc/p5-Text-Markdown-Discount/Makefile
--- a/textproc/p5-Text-Markdown-Discount/Makefile       Tue Dec 13 10:55:03 2022 +0000
+++ b/textproc/p5-Text-Markdown-Discount/Makefile       Tue Dec 13 11:57:05 2022 +0000
@@ -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_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