diff options
Diffstat (limited to 'security/mhash/patches')
-rw-r--r-- | security/mhash/patches/patch-aa | 37 | ||||
-rw-r--r-- | security/mhash/patches/patch-ab | 14 | ||||
-rw-r--r-- | security/mhash/patches/patch-ac | 30 |
3 files changed, 69 insertions, 12 deletions
diff --git a/security/mhash/patches/patch-aa b/security/mhash/patches/patch-aa index 84ec7bca687..3ecaf3c0baa 100644 --- a/security/mhash/patches/patch-aa +++ b/security/mhash/patches/patch-aa @@ -1,18 +1,31 @@ -$NetBSD: patch-aa,v 1.1 2008/11/08 12:55:21 bjs Exp $ +$NetBSD: patch-aa,v 1.2 2008/11/08 13:47:11 bjs Exp $ -Code could rely on the definition of 'VERSION'--and *not* define -it in installed headers! - -If this patch causes a problem, something is not right. +These are now defined in config.h.in to avoid namespace pollution. --- include/mutils/mhash_config.h.in.orig 2007-04-04 22:21:23.000000000 -0400 +++ include/mutils/mhash_config.h.in -@@ -224,7 +224,7 @@ - #undef USE_DMALLOC +@@ -181,24 +181,6 @@ + /* Define to 1 if your C compiler doesn't accept -c and -o together. */ + #undef NO_MINUS_C_MINUS_O - /* Version number of package */ --#undef VERSION -+/* #undef VERSION */ +-/* Name of package */ +-#undef PACKAGE +- +-/* Define to the address where bug reports for this package should be sent. */ +-#undef PACKAGE_BUGREPORT +- +-/* Define to the full name of this package. */ +-#undef PACKAGE_NAME +- +-/* Define to the full name and version of this package. */ +-#undef PACKAGE_STRING +- +-/* Define to the one symbol short name of this package. */ +-#undef PACKAGE_TARNAME +- +-/* Define to the version of this package. */ +-#undef PACKAGE_VERSION +- + /* Define to 1 if the C compiler supports function prototypes. */ + #undef PROTOTYPES - /* Define if using the dmalloc debugging malloc package */ - #undef WITH_DMALLOC diff --git a/security/mhash/patches/patch-ab b/security/mhash/patches/patch-ab new file mode 100644 index 00000000000..123da92527e --- /dev/null +++ b/security/mhash/patches/patch-ab @@ -0,0 +1,14 @@ +$NetBSD: patch-ab,v 1.1 2008/11/08 13:47:11 bjs Exp $ + +Add directive for stub config.h as per patch-a[ac]. + +--- configure.in.orig 2007-04-04 22:22:28.000000000 -0400 ++++ configure.in +@@ -6,6 +6,7 @@ AC_CONFIG_SRCDIR([lib/mhash.c]) + AM_INIT_AUTOMAKE + + AC_DEFINE([MHASH_VERSION], PROGRAM_VERSION, "MHash Version") ++AC_CONFIG_HEADER([include/mutils/config.h]) + AC_CONFIG_HEADER([include/mutils/mhash_config.h]) + + diff --git a/security/mhash/patches/patch-ac b/security/mhash/patches/patch-ac new file mode 100644 index 00000000000..0acbcb9b0fc --- /dev/null +++ b/security/mhash/patches/patch-ac @@ -0,0 +1,30 @@ +$NetBSD: patch-ac,v 1.1 2008/11/08 13:47:11 bjs Exp $ + +Add these definitions here to avoid namespace pollution in +include/mutils/mhash_config.h. + +--- include/mutils/config.h.in.orig 2008-11-08 08:23:23.000000000 -0500 ++++ include/mutils/config.h.in +@@ -0,0 +1,22 @@ ++/* Name of package */ ++#undef PACKAGE ++ ++/* Define to the address where bug reports for this package should be sent. */ ++#undef PACKAGE_BUGREPORT ++ ++/* Define to the full name of this package. */ ++#undef PACKAGE_NAME ++ ++/* Define to the full name and version of this package. */ ++#undef PACKAGE_STRING ++ ++/* Define to the one symbol short name of this package. */ ++#undef PACKAGE_TARNAME ++ ++/* Define to the version of this package. */ ++#undef PACKAGE_VERSION ++ ++/* Version number of package */ ++#undef VERSION ++ ++ |