SELinux fixes and updates to 2012-09-24

This commit is contained in:
Vladimír Čunát
2013-02-24 13:25:53 +01:00
parent f6b28fad73
commit de70e3739d
10 changed files with 144 additions and 38 deletions
+4 -1
View File
@@ -8,8 +8,11 @@ stdenv.mkDerivation rec {
url = "http://www.and.org/ustr/${version}/${name}.tar.bz2";
sha256 = "1i623ygdj7rkizj7985q9d6vj5amwg686aqb5j3ixpkqkyp6xbrx";
};
prePatch = "substituteInPlace Makefile --replace /usr/include/ ${glibc}/include/";
patches = [ ./va_args.patch ]; # fixes bogus warnings that failed libsemanage
makeFlags = "DESTDIR=$(out) prefix= LDCONFIG=echo";
configurePhase = "make ustr-import";
@@ -21,4 +24,4 @@ stdenv.mkDerivation rec {
license = licenses.bsd2;
maintainers = [ maintainers.phreedom ];
};
}
}
@@ -0,0 +1,23 @@
diff --git a/ustr-compiler.h b/ustr-compiler.h
index 9e71276..c5f847a 100644
--- a/ustr-compiler.h
+++ b/ustr-compiler.h
@@ -11,17 +11,11 @@
#define USTR_CONF_HAVE_ATTR_FMT 1
#endif
+#include <stdarg.h>
/* We assume this is enough,
* C99 specifies that va_copy() exists and is a macro */
-#ifdef va_copy
# define USTR_CONF_HAVE_VA_COPY 1
# define USTR__VA_COPY(x, y) va_copy(x, y)
-#elif __va_copy
-# define USTR_CONF_HAVE_VA_COPY 1
-# define USTR__VA_COPY(x, y) __va_copy(x, y)
-#else
-# define USTR_CONF_HAVE_VA_COPY 0
-#endif
#ifndef USTR_CONF_HAVE_ATTR_NONNULL
#if defined(__GNUC__) && (__GNUC__ > 3) /* not sure */