summaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
authorfredb <fredb>1999-09-27 17:52:15 +0000
committerfredb <fredb>1999-09-27 17:52:15 +0000
commite7cc1a857d56c3a70fe68907e1a1ca54df732020 (patch)
treed279dc63902d1d748b73641bbd16c7778c072a1a /cross
parentbf59b5c0bf5fd8e2e152ff6bef6f46798a7e14df (diff)
downloadpkgsrc-e7cc1a857d56c3a70fe68907e1a1ca54df732020.tar.gz
Handle "exclude" files in a consistent fashion. The idea
is to save time and disk space by not extracting unneeded files. Closes PR pkg/8498.
Diffstat (limited to 'cross')
-rw-r--r--cross/binutils/Makefile7
-rw-r--r--cross/binutils/files/exclude7
2 files changed, 6 insertions, 8 deletions
diff --git a/cross/binutils/Makefile b/cross/binutils/Makefile
index 16f005f53e1..3be35141dc6 100644
--- a/cross/binutils/Makefile
+++ b/cross/binutils/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 1999/05/21 09:37:07 mrg Exp $
+# $NetBSD: Makefile,v 1.11 1999/09/27 17:52:15 fredb Exp $
#
# GNU binutils configured to hold `as many targets as the cross system is
# capable of using'. Configures and builds everything except gas, which
@@ -37,9 +37,6 @@ ENABLE_TARGETS+= alpha-netbsd \
# which we use for the `sparc-netbsdelf' target
#ENABLE_TARGETS+= sparc64-elf
-post-extract:
- @${RM} -rf ${WRKSRC}/gas
-
# we use MKDIR, not INSTALL_PROGRAM_DIR, deliberately.
do-install:
${MKDIR} ${BINDIR} ${PREFIX}/lib/ldscripts
@@ -65,7 +62,7 @@ do-install:
ENABLE_TARGETS_LIST!= ${ECHO} "${ENABLE_TARGETS}" | ${SED} "s/[ ][ ]*/,/g;s/^,*//"
.if defined(EXTRACT_USING_PAX)
-EXTRACT_ELEMENTS= '-s|${FILESDIR}/exclude||'
+EXTRACT_ELEMENTS= -c `cat ${FILESDIR}/exclude`
.else
EXTRACT_ELEMENTS= -X ${FILESDIR}/exclude
.endif
diff --git a/cross/binutils/files/exclude b/cross/binutils/files/exclude
index b0349ef5bdf..2646d552222 100644
--- a/cross/binutils/files/exclude
+++ b/cross/binutils/files/exclude
@@ -1,3 +1,4 @@
-binutils-*/*/tests/*
-binutils-*/*/testsuite/*
-binutils-*/etc/*
+binutils-\*/\*/tests/\*
+binutils-\*/\*/testsuite/\*
+binutils-\*/etc/\*
+binutils-\*/gas/\*