pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/bup bup: Wrap bup's build system slightly better



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5428a82d6261
branches:  trunk
changeset: 768531:5428a82d6261
user:      gdt <gdt%pkgsrc.org@localhost>
date:      Tue Oct 26 00:19:27 2021 +0000

description:
bup: Wrap bup's build system slightly better

Note that bup fails to build on macOS 10.13 with cwrappers (not really
understood).

diffstat:

 sysutils/bup/Makefile |  14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diffs (37 lines):

diff -r 433b64cf797c -r 5428a82d6261 sysutils/bup/Makefile
--- a/sysutils/bup/Makefile     Mon Oct 25 22:26:53 2021 +0000
+++ b/sysutils/bup/Makefile     Tue Oct 26 00:19:27 2021 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.55 2021/05/24 19:54:09 wiz Exp $
+# $NetBSD: Makefile,v 1.56 2021/10/26 00:19:27 gdt Exp $
 
 DISTNAME=      bup-0.32
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    sysutils
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=bup/}
 # bup has two problems that make packaging difficult.  One is that
@@ -31,6 +31,13 @@
 COMMENT=       Highly efficient file backup system based on the git packfile format
 LICENSE=       gnu-gpl-v2
 
+USE_LANGUAGES= c
+HAS_CONFIGURE= yes
+
+# On macOS 10.13, building bup fails with defaults but builds with
+# USE_CWRAPPERS=no.   The error is
+#   Looking for cpp (/path/to/pkgsrc/sysutils/bup/work/.cwrapper/bin/cpp) (can't run cpp as a pipeline)
+
 DEPENDS+=      par2-[0-9]*:../../archivers/par2
 DEPENDS+=      ${PYPKGPREFIX}-tornado-[0-9]*:../../www/py-tornado
 DEPENDS+=      git-base-[0-9]*:../../devel/git-base
@@ -55,7 +62,8 @@
 MAKE_FLAGS+=   PANDOC=
 
 USE_TOOLS+=            bash gmake perl:run
-REPLACE_PERL+=         wvtest
+
+CONFIGURE_ENV+=                MAKE=${TOOLS_PATH.gmake}
 
 REPLACE_BASH+=         cmd/import-rdiff-backup-cmd.sh
 REPLACE_BASH+=         t/compare-trees



Home | Main Index | Thread Index | Old Index