Tue Dec 13 11:57:05 2022 UTC ()
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.


(schmonz)
diff -r1.26 -r1.27 pkgsrc/textproc/p5-Text-Markdown-Discount/Makefile

cvs diff -r1.26 -r1.27 pkgsrc/textproc/p5-Text-Markdown-Discount/Makefile (expand / switch to unified diff)

--- pkgsrc/textproc/p5-Text-Markdown-Discount/Makefile 2022/11/17 14:55:39 1.26
+++ pkgsrc/textproc/p5-Text-Markdown-Discount/Makefile 2022/12/13 11:57:05 1.27
@@ -1,26 +1,31 @@ @@ -1,26 +1,31 @@
1# $NetBSD: Makefile,v 1.26 2022/11/17 14:55:39 schmonz Exp $ 1# $NetBSD: Makefile,v 1.27 2022/12/13 11:57:05 schmonz Exp $
2# 2#
3 3
4DISTNAME= Text-Markdown-Discount-0.16 4DISTNAME= Text-Markdown-Discount-0.16
5PKGNAME= p5-${DISTNAME} 5PKGNAME= p5-${DISTNAME}
6CATEGORIES= textproc perl5 6CATEGORIES= textproc perl5
7MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Text/} 7MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Text/}
8 8
9MAINTAINER= schmonz@NetBSD.org 9MAINTAINER= schmonz@NetBSD.org
10HOMEPAGE= https://metacpan.org/release/Text-Markdown-Discount 10HOMEPAGE= https://metacpan.org/release/Text-Markdown-Discount
11COMMENT= Convert Markdown to (X)HTML 11COMMENT= Convert Markdown to (X)HTML
12LICENSE= ${PERL5_LICENSE} 12LICENSE= ${PERL5_LICENSE}
13 13
14PERL5_PACKLIST= auto/Text/Markdown/Discount/.packlist 14PERL5_PACKLIST= auto/Text/Markdown/Discount/.packlist
15 15
16SUBST_CLASSES+= paths 16SUBST_CLASSES+= paths
17SUBST_FILES.paths= Makefile.PL 17SUBST_FILES.paths= Makefile.PL
18SUBST_VARS.paths= PREFIX 18SUBST_VARS.paths= PREFIX
19SUBST_STAGE.paths= pre-configure 19SUBST_STAGE.paths= pre-configure
20 20
21post-extract: 21# Avoid extracting the vendored discount library. We don't use it at all
22 cd ${WRKSRC} && rm -rf discount 22# (instead buildlinking textproc/discount), and it sometimes contains
 23# macOS xattrs that break extraction as root on other systems.
 24EXTRACT_OPTS= -X ${WRKDIR}/excludefile
 25pre-extract:
 26 ${_EXTRACT_TAR} -ztf ${DISTDIR}/${DISTFILES} \
 27 | sort | grep /discount-2 > ${WRKDIR}/excludefile
23 28
24.include "../../textproc/discount/buildlink3.mk" 29.include "../../textproc/discount/buildlink3.mk"
25.include "../../lang/perl5/module.mk" 30.include "../../lang/perl5/module.mk"
26.include "../../mk/bsd.pkg.mk" 31.include "../../mk/bsd.pkg.mk"