[MacPorts] #32115: pianobar 2011.11.11 fails to build
#32115: pianobar 2011.11.11 fails to build ----------------------------------------------+----------------------------- Reporter: aguynamedryan+macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: pianobar ----------------------------------------------+----------------------------- I just upgraded to Lion and decided to do a fresh install of MacPorts. pianobar failed to build with the following error: {{{ :info:build In file included from src/settings.c:38: :info:build In file included from src/settings.h:28: :info:build src/libwaitress/waitress.h:30:10: fatal error: 'gnutls/gnutls.h' file not found :info:build #include <gnutls/gnutls.h> :info:build ^ }}} Looks like pianobar isn't seeing the /opt/local files. I've patched the Portfile so that it sets a -I and -L flag for the compiler. I also drop the now-unsused LIB*_INCLUDE variables -- Ticket URL: <https://trac.macports.org/ticket/32115> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32115: pianobar 2011.11.11 fails to build ----------------------------------------------+----------------------------- Reporter: aguynamedryan+macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: haspatch | Port: pianobar ----------------------------------------------+----------------------------- Changes (by ryandesign@…): * keywords: => haspatch Comment: Replying to [ticket:32115 aguynamedryan+macports@…]:
Looks like pianobar isn't seeing the /opt/local files.
Probably because [http://lists.macosforge.org/pipermail/macports- dev/2011-August/015543.html clang doesn't use CPATH or LIBRARY_PATH].
I've patched the Portfile so that it sets a -I and -L flag for the compiler. I also drop the now-unsused LIB*_INCLUDE variables
The revision should not be increased because this doesn't change the files that get installed, right? I'm attaching a revised patch of how I would do this. What do you think? I'm also removing the pre-destroot deletion of INSTALL, not necessary because the Makefile already declares install as a .PHONY target. -- Ticket URL: <https://trac.macports.org/ticket/32115#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32115: pianobar 2011.11.11 fails to build ----------------------------------------------+----------------------------- Reporter: aguynamedryan+macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: haspatch | Port: pianobar ----------------------------------------------+----------------------------- Comment(by ibtaylor@…): Adding the last two lines to build.args works for me. {{{ build.args CC="${configure.cc} [get_canonical_archflags]" \ PREFIX=${prefix} \ CFLAGS=-std=c99 \ LIBAO_INCLUDE=${prefix}/include \ LIBFAAD_INCLUDE=${prefix}/include \ LIBMAD_INCLUDE=${prefix}/include \ LIBGNUTLS_CFLAGS="[exec pkg-config --cflags gnutls]" \ LIBGNUTLS_LDFLAGS="[exec pkg-config --libs gnutls]" }}} Really, it seems like ao, faad, mad, should be handled with pkg-config as well. -- Ticket URL: <https://trac.macports.org/ticket/32115#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32115: pianobar 2011.11.11 fails to build ----------------------------------------------+----------------------------- Reporter: aguynamedryan+macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: haspatch | Port: pianobar ----------------------------------------------+----------------------------- Comment(by ryandesign@…): Replying to [comment:3 ibtaylor@…]:
Adding the last two lines to build.args works for me.
Are you saying that the patch I attached above did not work? -- Ticket URL: <https://trac.macports.org/ticket/32115#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32115: pianobar 2011.11.11 fails to build ----------------------------------------------+----------------------------- Reporter: aguynamedryan+macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: haspatch | Port: pianobar ----------------------------------------------+----------------------------- Changes (by ryandesign@…): * cc: ryandesign@…, ibtaylor@… (added) Comment: ibtaylor, please see my remark in the ticket. -- Ticket URL: <https://trac.macports.org/ticket/32115#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32115: pianobar: fails to build with clang ----------------------------------------------+----------------------------- Reporter: aguynamedryan+macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: haspatch clang | Port: pianobar ----------------------------------------------+----------------------------- Changes (by ryandesign@…): * keywords: haspatch => haspatch clang Comment: Replying to [comment:1 ryandesign@…]:
I'm also removing the pre-destroot deletion of INSTALL, not necessary because the Makefile already declares install as a .PHONY target.
r88248. -- Ticket URL: <https://trac.macports.org/ticket/32115#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32115: pianobar: fails to build with clang -----------------------------------------------+---------------------------- Reporter: aguynamedryan+macports@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: haspatch clang Port: pianobar | -----------------------------------------------+---------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: Replying to [comment:4 ryandesign@…]:
Are you saying that the patch I attached above did not work?
It seems to work for me, so I'm committing it in r88249. But I don't have Lion / Xcode 4.2, so please let me know if this works for you now or not. -- Ticket URL: <https://trac.macports.org/ticket/32115#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts