From owner-freebsd-ports@FreeBSD.ORG Thu Nov 29 17:23:52 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 59EC8BD for ; Thu, 29 Nov 2012 17:23:52 +0000 (UTC) (envelope-from mats.andersson@gisladisker.se) Received: from mea.homelinux.org (unknown [IPv6:2001:470:28:6a:1::10]) by mx1.freebsd.org (Postfix) with ESMTP id D483A8FC17 for ; Thu, 29 Nov 2012 17:23:51 +0000 (UTC) Received: from meand by aun with local (Exim 4.69) (envelope-from ) id 1Te7q1-0001gD-Fw for ports@freebsd.org; Thu, 29 Nov 2012 18:23:50 +0100 Date: Thu, 29 Nov 2012 18:23:49 +0100 From: Mats Erik Andersson To: FreeBSD ports Message-ID: <20121129172349.GA6323@mea.homelinux.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-SA-Exim-Connect-IP: X-SA-Exim-Rcpt-To: ports@freebsd.org X-SA-Exim-Mail-From: mats.andersson@gisladisker.se X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on aun.utmark.mea X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.2.5 Subject: security/mhash: Prune polluting header file. Content-Type: multipart/mixed; boundary="pf9I7BMVVzbSWLtt" X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000) X-SA-Exim-Scanned: Yes (on aun) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Nov 2012 17:23:52 -0000 --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 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 . . Since these are bound to disturb every other source using Autotools, the corresponding variables are removed. Author: Mats Erik Andersson 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--