Index: Makefile =================================================================== --- Makefile (revision 363968) +++ Makefile (working copy) @@ -2,6 +2,7 @@ PORTNAME= pkgconf PORTVERSION= 0.9.6 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://rabbit.dereferenced.org/~nenolod/distfiles/ \ http://files.etoilebsd.net/pkgconf/ Index: files/patch-fileio.c =================================================================== --- files/patch-fileio.c (revision 0) +++ files/patch-fileio.c (working copy) @@ -0,0 +1,23 @@ +--- ./fileio.c.orig 2014-06-07 22:32:08.000000000 +0200 ++++ ./fileio.c 2014-08-04 11:24:32.522803742 +0200 +@@ -83,10 +83,18 @@ + + } + +- *s = '\0'; +- + if (c == EOF && (s == line || ferror(stream))) + return NULL; + ++ *s = '\0'; ++ ++ /* Remove newline character. */ ++ if (s > line && *(--s) == '\n') { ++ *s = '\0'; ++ ++ if (s > line && *(--s) == '\r') ++ *s = '\0'; ++ } ++ + return line; + } Property changes on: files/patch-fileio.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: files/patch-pkg.c =================================================================== --- files/patch-pkg.c (revision 0) +++ files/patch-pkg.c (working copy) @@ -0,0 +1,11 @@ +--- ./pkg.c.orig 2014-06-07 22:32:08.000000000 +0200 ++++ ./pkg.c 2014-08-04 11:24:32.524802321 +0200 +@@ -212,8 +212,6 @@ + { + char op, *p, *key, *value; + +- readbuf[strlen(readbuf) - 1] = '\0'; +- + p = readbuf; + while (*p && (isalpha(*p) || isdigit(*p) || *p == '_' || *p == '.')) + p++; Property changes on: files/patch-pkg.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property