Import of pkgsrc-2015Q1

This commit is contained in:
2015-04-22 14:34:26 +02:00
committed by Lionel Sambuc
parent 9a8c06dafb
commit 4af1cdf7a9
25114 changed files with 870550 additions and 795435 deletions

View File

@@ -0,0 +1,21 @@
$NetBSD: patch-src_tokenizer.cpp,v 1.1 2014/05/13 15:31:40 sborrill Exp $
Don't force configuration files to be relative to cwd
--- src/tokenizer.cpp.orig 2014-02-05 15:55:12.000000000 +0000
+++ src/tokenizer.cpp 2014-05-13 16:05:49.000000000 +0100
@@ -346,7 +346,13 @@
return false;
}
ifstream *is = new ifstream;
- is->open(fn);
+ if (fn[0] != '/') {
+ string fullpath("@CONFDIR@");
+ fullpath += "/";
+ fullpath += fn;
+ is->open(fullpath.c_str());
+ } else
+ is->open(fn);
if (is->fail()) {
char buf[maxlen];
snprintf(buf, sizeof(buf), "include file %s not found", fn);