[MacPorts] #29514: pkgconfig 0.26 update
#29514: pkgconfig 0.26 update -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: pkgconfig -------------------------------------+-------------------------------------- pkg-config 0.26 is available, however we cannot update to it. pkg-config requires glib, and pkg-config 0.25 and earlier included a stripped-down copy of glib1 that it built and used. pkg-config 0.26 no longer has this, so it now would need to depend on a glib port. But we cannot do that because glib1 and glib2 both depend on pkgconfig. Therefore we cannot update pkgconfig. This [http://permalink.gmane.org/gmane.linux.suse.opensuse.packaging/7683 pkgconfig 0.26 glib build loop] is discussed on the opensuse packaging list. One suggestion there is to change the glib1 port so it no longer depends on pkgconfig, then depend on glib1 in the pkgconfig port. Another suggestion is to create a pkgconfig025 port for the old version of pkg- config that still builds standalone, use that for glib1, and use glib1 for pkgconfig. Since this issue has just arisen a few days ago, I'm going to do nothing now, and see if the situation changes. (Perhaps upstream will reinstate the bundled copy of glib.) -- Ticket URL: <https://trac.macports.org/ticket/29514> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29514: pkgconfig 0.26 update -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: pkgconfig -------------------------------------+-------------------------------------- Comment(by afb@…): pkg-config 0.26 requires glib 2.0 (not glib1), so you need to bootstrap a static version of glib 2.28.6 first (without pkg-config) similar to how a static version of glib 1.2.10 was bundled with pkg-config 0.25 http://lists.freedesktop.org/archives/pkg-config/2011-May/000753.html -- Ticket URL: <https://trac.macports.org/ticket/29514#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29514: pkgconfig 0.26 update -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: pkgconfig -------------------------------------+-------------------------------------- Comment(by ryandesign@…): Thanks for the pointer. I've read the discussion there now, and the current wisdom seems to be that glib2 could be modified to not require pkg-config at all ([http://lists.freedesktop.org/archives/pkg- config/2011-May/000758.html using environment variables like ZLIB_CFLAGS]). The same would have to happen for dbus, which glib2 uses. Then pkg-config could use glib2 without a circular dependency. I wouldn't use the word "static" to describe this. The glib2 that's built would still be dynamic libraries as they are now. They would just learn about their dependencies using environment variables and arguments provided in the glib2 Portfile, instead of querying pkg-config. -- Ticket URL: <https://trac.macports.org/ticket/29514#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29514: pkgconfig 0.26 update -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: pkgconfig -------------------------------------+-------------------------------------- Comment(by afb@…): If you change the glib2 build to not use pkg-config, that would work too... {{{ --with-installed-glib Use installed Glib-2.x }}} Just meant if you wanted an upgrade similar to the current pkg-config 0.25. BTW: I think that was the way it was already being built on Win32, for instance: {{{ # On Win32, use the normal installed GLib. Yes, this is a circular # dependency. But then, only experienced hackers that presumably can # work around that will be building pkg-config and GLib on Win32 # anyway (especially using the auto*/configure/libtool # mechanism). Others use prebuilt versions. }}} I'm going to use a static glib for my /opt/pkgconfig install, but that's different. -- Ticket URL: <https://trac.macports.org/ticket/29514#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29514: pkgconfig 0.26 update -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: pkgconfig -------------------------------------+-------------------------------------- Comment(by afb@…):
I'm going to use a static glib for my /opt/pkgconfig install, but that's different.
Which kinda sucked since you also needed to bundle a static libintl and libiconv...[[BR]] But beyond bloat (12x), it "works". For MacPorts it's better to change glib2/dbus. -- Ticket URL: <https://trac.macports.org/ticket/29514#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29514: pkgconfig 0.26 update -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: pkgconfig -------------------------------------+-------------------------------------- Comment(by ryandesign@…): Replying to [comment:2 ryandesign@…]:
glib2 could be modified to not require pkg-config
Done in r79195 -- Ticket URL: <https://trac.macports.org/ticket/29514#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29514: pkgconfig 0.26 update -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: pkgconfig -------------------------------------+-------------------------------------- Comment(by ryandesign@…): Replying to [comment:2 ryandesign@…]:
The same would have to happen for dbus, which glib2 uses.
glib2 no longer uses dbus; see #28985. -- Ticket URL: <https://trac.macports.org/ticket/29514#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29514: pkgconfig 0.26 update -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: pkgconfig -------------------------------------+-------------------------------------- Comment(by ryandesign@…): All the prerequisites are taken care of. Attached is a diff that updates pkgconfig to 0.26. Before committing, I'll test it on my system for awhile. Others are welcome to test it as well. I don't expect it to break anything but if it does please say so here. -- Ticket URL: <https://trac.macports.org/ticket/29514#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29514: pkgconfig 0.26 update -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: pkgconfig -------------------------------------+-------------------------------------- Comment(by ryandesign@…): Previous patch didn't actually work when pkgconfig wasn't already installed. New patch adds necessary configure environment variables. -- Ticket URL: <https://trac.macports.org/ticket/29514#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29514: pkgconfig 0.26 update --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: update | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: pkgconfig | --------------------------------------+------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: Committed in r79633. -- Ticket URL: <https://trac.macports.org/ticket/29514#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts