pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Set default config for NetBSD to not use fallocate
Module Name: pkgsrc-wip
Committed By: Jeff Rizzo <riz%tastylime.net@localhost>
Pushed By: riz
Date: Sun Dec 6 12:03:59 2015 -0800
Changeset: b2c93586a5fcf1ca95b00f8ccbf3cc5fb25dcea0
Modified Files:
py-carbon/Makefile
Log Message:
Set default config for NetBSD to not use fallocate
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b2c93586a5fcf1ca95b00f8ccbf3cc5fb25dcea0
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
py-carbon/Makefile | 9 +++++++++
1 file changed, 9 insertions(+)
diffs:
diff --git a/py-carbon/Makefile b/py-carbon/Makefile
index db89c5f..4cbc0f8 100644
--- a/py-carbon/Makefile
+++ b/py-carbon/Makefile
@@ -50,6 +50,15 @@ SUBST_FILES.dirs= setup.py conf/*
SUBST_VARS.dirs= GRAPHITE_DIR GRAPHITE_EGDIR GRAPHITE_USER PREFIX \
PKG_SYSCONFDIR VARBASE
+# NetBSD has posix_fallocate in libc, but fs can't actually use it.
+.if ${OPSYS} == "NetBSD"
+SUBST_CLASSES+= fallocate
+SUBST_STAGE.fallocate= pre-configure
+SUBST_MESSAGE.fallocate=Patching for NetBSD defaults
+SUBST_FILES.fallocate= conf/carbon.conf.example
+SUBST_SED.fallocate= -e 's,^\(WHISPER_FALLOCATE_CREATE *= *\)\(.*\),\1False,'
+.endif
+
PKG_SYSCONFSUBDIR= graphite
GRAPHITE_CONF_FILES= aggregation-rules.conf \
Home |
Main Index |
Thread Index |
Old Index