···11+--- origsrc/poptconfig.c 2009-05-20 08:18:07.000000000 -0500
22++++ src/poptconfig.c 2012-03-29 18:13:46.869286100 -0500
33+@@ -42,7 +42,7 @@ extern int glob_pattern_p (const char *_
44+ /*@=declundef =exportheader =incondefs =protoparammatch =redecl =type @*/
55+ #endif /* __LCLINT__ */
66+77+-#if !defined(__GLIBC__)
88++#if !defined(__GLIBC__) && !defined(__CYGWIN__)
99+ /* Return nonzero if PATTERN contains any metacharacters.
1010+ Metacharacters can be quoted with backslashes if QUOTE is nonzero. */
1111+ static int
+34
pkgs/development/libraries/popt/1.16-vpath.patch
···11+--- origsrc/Doxyfile.in 2008-04-26 16:57:32.000000000 -0500
22++++ src/Doxyfile.in 2012-03-29 18:15:56.649709100 -0500
33+@@ -460,14 +460,14 @@ WARN_LOGFILE =
44+ # with spaces.
55+66+ INPUT = \
77+- ./popt.c \
88+- ./popt.h \
99+- ./poptconfig.c \
1010+- ./popthelp.c \
1111+- ./poptint.c \
1212+- ./poptint.h \
1313+- ./poptparse.c \
1414+- ./system.h
1515++ @srcdir@/popt.c \
1616++ @srcdir@/popt.h \
1717++ @srcdir@/poptconfig.c \
1818++ @srcdir@/popthelp.c \
1919++ @srcdir@/poptint.c \
2020++ @srcdir@/poptint.h \
2121++ @srcdir@/poptparse.c \
2222++ @srcdir@/system.h
2323+2424+ # If the value of the INPUT tag contains directories, you can use the
2525+ # FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
2626+@@ -658,7 +658,7 @@ HTML_HEADER =
2727+ # each generated HTML page. If it is left blank doxygen will generate a
2828+ # standard footer.
2929+3030+-HTML_FOOTER = footer_no_timestamp.html
3131++HTML_FOOTER = @srcdir@/footer_no_timestamp.html
3232+3333+ # The HTML_STYLESHEET tag can be used to specify a user-defined cascading
3434+ # style sheet that is used by each HTML page. It can be used to
+6-1
pkgs/development/libraries/popt/default.nix
···2233stdenv.mkDerivation rec {
44 name = "popt-1.16";
55-55+66 src = fetchurl {
77 url = "http://rpm5.org/files/popt/${name}.tar.gz";
88 sha256 = "1j2c61nn2n351nhj4d25mnf3vpiddcykq005w2h6kw79dwlysa77";
99 };
1010+1111+ patches = if stdenv.isCygwin then [
1212+ ./1.16-cygwin.patch
1313+ ./1.16-vpath.patch
1414+ ] else null;
10151116 meta = {
1217 description = "command line option parsing library";