[102063] trunk/dports/cross/avarice/Portfile

landonf at macports.org landonf at macports.org
Sat Jan 26 13:00:07 PST 2013


Revision: 102063
          https://trac.macports.org/changeset/102063
Author:   landonf at macports.org
Date:     2013-01-26 13:00:07 -0800 (Sat, 26 Jan 2013)
Log Message:
-----------
Fix compatibility with later binutils releases.

This (and a good deal of other software) was broken by:

http://sourceware.org/bugzilla/show_bug.cgi?id=14072
http://sourceware.org/bugzilla/show_bug.cgi?id=14243

Modified Paths:
--------------
    trunk/dports/cross/avarice/Portfile

Modified: trunk/dports/cross/avarice/Portfile
===================================================================
--- trunk/dports/cross/avarice/Portfile	2013-01-26 17:55:52 UTC (rev 102062)
+++ trunk/dports/cross/avarice/Portfile	2013-01-26 21:00:07 UTC (rev 102063)
@@ -28,6 +28,15 @@
                     --enable-target-programming
 configure.ldflags-append    -lz \
                             -L${prefix}/avr/host/lib -lbfd -liberty
-configure.cppflags-append -I${prefix}/avr/host/include
 
+# PACKAGE/PACKAGE_VERSION are required to work around an
+# #ifdef check added in recent versions of binutils. This broke
+# a lot of software, assumes a very specific use of autotools, and
+# is entirely gratitous, but the binutils guys aren't backing down.
+#
+# See also: http://sourceware.org/bugzilla/show_bug.cgi?id=14072
+# and: http://sourceware.org/bugzilla/show_bug.cgi?id=14243
+configure.cppflags-append -I${prefix}/avr/host/include \
+                            "-DPACKAGE=${name}" "-DPACKAGE_VERSION=${version}"
+
 livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130126/4936df8d/attachment.html>


More information about the macports-changes mailing list