Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Nov 2012 18:23:49 +0100
From:      Mats Erik Andersson <bsd@gisladisker.se>
To:        FreeBSD ports <ports@freebsd.org>
Subject:   security/mhash: Prune polluting header file.
Message-ID:  <20121129172349.GA6323@mea.homelinux.org>

next in thread | raw e-mail | index | archive | help

--pf9I7BMVVzbSWLtt
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Port: mhash-0.9.9.9-1

Problem: The port is installing the header file

   <mutils/mhash_config.h>

which defines all the macros

  PACKAGE, PACKAGE_BUGREPORT, PACKAGE_NAME
  PACKAGE_STRING, PACKAGE_TARNAME, PACKAGE_VERSION

and even

  VERSION.

All these macros are interfering with any secondary
software, relying on the above header file. Thus the
corresponding definitions are removed using the patch
included in this letter. The result is equally amicable
with Gcc as with Clang.

Best regards,
  Mats Erik Andersson

--pf9I7BMVVzbSWLtt
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="patch-include-mutils-mhash_config.h.in"

Description: Remove polluting macros from header template.
 Upstream leaves macros like PACKAGE_NAME, PACKAGE_VERSION,
 etcetra, to be present in <mutils/mhash_config.h>.
 .
 Since these are bound to disturb every other source using
 Autotools, the corresponding variables are removed.
Author: Mats Erik Andersson <bsd@gisladisker.se>
Package: mhash-0.9.9.9.
Last-Update: 2012-11-29

--- include/mutils/mhash_config.h.in.orig	2008-12-08 00:33:50.000000000 +0100
+++ include/mutils/mhash_config.h.in	2012-11-29 16:39:43.000000000 +0100
@@ -181,24 +181,6 @@
 /* Define to 1 if your C compiler doesn't accept -c and -o together. */
 #undef NO_MINUS_C_MINUS_O
 
-/* 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
 
@@ -208,9 +190,6 @@
 /* dmalloc */
 #undef USE_DMALLOC
 
-/* Version number of package */
-#undef VERSION
-
 /* Define if using the dmalloc debugging malloc package */
 #undef WITH_DMALLOC
 

--pf9I7BMVVzbSWLtt--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121129172349.GA6323>