summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2021-05-04 13:42:35 +0100
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2021-05-04 13:47:58 +0100
commitea62bacb8ac8978cd8f265cc385fd55cec051d1a (patch)
tree481cd76fc030193d5d95507791b708e77f96bcea /sysutils
parentsecurity/libressl-devel: Update to 3.3.3 (diff)
sysutils/debootstrap: use gnugrep
Debootstrap triggers some weird corner case in our base grep(1), where it's two orders of magnitude slower than it should be. Fix it by providing it with GNU grep. This reduces the time to complete 'debootstrap bionic' from ~4m30s to ~1m30s. Reviewed By: emaste (earlier version) Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D30023
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/debootstrap/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/sysutils/debootstrap/Makefile b/sysutils/debootstrap/Makefile
index 09cfc7e65b1c..d8934457e10e 100644
--- a/sysutils/debootstrap/Makefile
+++ b/sysutils/debootstrap/Makefile
@@ -2,7 +2,7 @@
PORTNAME= debootstrap
PORTVERSION= 1.0.123
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= sysutils
MASTER_SITES= DEBIAN
DISTNAME= ${PORTNAME}_${PORTVERSION}
@@ -15,6 +15,7 @@ LICENSE_FILE= ${WRKSRC}/debian/copyright
RUN_DEPENDS= wget:ftp/wget \
bash:shells/bash \
+ ${LOCALBASE}/bin/grep:textproc/gnugrep \
gpgv2:security/gnupg \
${LOCALBASE}/share/keyrings/ubuntu-archive-keyring.gpg:security/ubuntu-keyring
@@ -41,6 +42,10 @@ post-patch:
@${FIND} ${WRKSRC}/scripts -type f | \
${XARGS} ${REINPLACE_CMD} -e 's,/usr/share/keyrings,${LOCALBASE}/share/keyrings,g'
+ # Workaround for bin/255525
+ @${REINPLACE_CMD} -e 's,grep,${LOCALBASE}/bin/grep,g' \
+ ${WRKSRC}/functions
+
post-install:
${INSTALL_MAN} ${WRKSRC}/debootstrap.8 \
${STAGEDIR}${MAN8PREFIX}/man/man8/debootstrap.8