[MacPorts] #27392: gtk+-2.22.1 configure failure: No package 'glib-2.0' found
#27392: gtk+-2.22.1 configure failure: No package 'glib-2.0' found --------------------------------------+------------------------------------- Reporter: Peter_Dyballa@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: glib2, gtk+-2.22.1 --------------------------------------+------------------------------------- Hello! The configure stage fails here: {{{ checking for BASE_DEPENDENCIES... no configure: error: Package requirements (glib-2.0 >= 2.25.10 atk >= 1.29.2 pango >= 1.20 cairo >= 1.6 gdk-pixbuf-2.0 >= 2.21.0) were not met: No package 'glib-2.0' found }}} /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_gtk2/work/gtk+-2.22.1/config.log has: {{{ configure:18521: checking for BASE_DEPENDENCIES configure:18528: $PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.25.10 atk >= 1.29.2 pango >= 1.20 cairo >= 1.6 gdk-pixbuf-2.0 >= 2.21.0" Package glib-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `glib-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'glib-2.0' found configure:18531: $? = 1 configure:18544: $PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.25.10 atk >= 1.29.2 pango >= 1.20 cairo >= 1.6 gdk-pixbuf-2.0 >= 2.21.0" Package glib-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `glib-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'glib-2.0' found configure:18547: $? = 1 configure:18560: result: no No package 'glib-2.0' found configure:18576: error: Package requirements (glib-2.0 >= 2.25.10 atk
= 1.29.2 pango >= 1.20 cairo >= 1.6 gdk-pixbuf-2.0 >= 2.21.0) were not met:
No package 'glib-2.0' found }}} The command 'port installed' lists: {{{ glib1 @1.2.10_6 (active) glib2 @2.26.0_0 glib2 @2.26.0_1 glib2 @2.26.1_0 }}} Missing dependency because glib2 with, hopefully, glib-2.0.pc file is not installed? -- Ticket URL: <https://trac.macports.org/ticket/27392> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27392: gtk+-2.22.1 configure failure: No package 'glib-2.0' found --------------------------------------+------------------------------------- Reporter: Peter_Dyballa@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: gtk2 --------------------------------------+------------------------------------- Changes (by ryandesign@…): * cc: openmaintainer@… (removed) * port: glib2, gtk+-2.22.1 => gtk2 Comment: Activate glib2. {{{ sudo port activate glib2 @2.26.1_0 }}} I can't explain why MacPorts did not do so for you automatically, since glib2 is definitely in gtk2's dependency chain (via pango, and atk, and others). -- Ticket URL: <https://trac.macports.org/ticket/27392#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27392: gtk+-2.22.1 configure failure: No package 'glib-2.0' found --------------------------------------+------------------------------------- Reporter: Peter_Dyballa@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: gtk2 --------------------------------------+------------------------------------- Comment(by Peter_Dyballa@…): I remember now: activation failed some time before and MacPorts updated the glib2 package once or twice: {{{ ---> Activating glib2 @2.26.1_0 Error: port activate failed: Image error: /opt/local/share/gtk- doc/html/gio/gsettings.html already exists and does not belong to a registered port. Unable to activate port glib2. Use 'port -f activate glib2' to force the activation. }}} The directory mentioned contains: {{{ pete 230 /\ l /opt/local/share/gtk-doc/html/gio total 32 -rw-r--r-- 2 root admin 5819 25 Okt 01:13 gsettings.html -rw-r--r-- 2 root admin 5849 4 Okt 21:23 gsettings.html.mp_1288390344 }}} -- Ticket URL: <https://trac.macports.org/ticket/27392#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27392: gtk+-2.22.1 configure failure: No package 'glib-2.0' found --------------------------------------+------------------------------------- Reporter: Peter_Dyballa@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: gtk2 --------------------------------------+------------------------------------- Comment(by ryandesign@…): I cannot explain why you have this file on your system but it does not belong to a port, so you should force the activation. {{{ sudo port -f activate glib2 @2.26.1_0 }}} -- Ticket URL: <https://trac.macports.org/ticket/27392#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27392: gtk+-2.22.1 configure failure: No package 'glib-2.0' found ---------------------------------------+------------------------------------ Reporter: Peter_Dyballa@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: invalid | Keywords: Port: gtk2 | ---------------------------------------+------------------------------------ Changes (by jmr@…): * status: new => closed * resolution: => invalid -- Ticket URL: <https://trac.macports.org/ticket/27392#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27392: gtk+-2.22.1 configure failure: No package 'glib-2.0' found ---------------------------------------+------------------------------------ Reporter: Peter_Dyballa@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: invalid | Keywords: Port: gtk2 | ---------------------------------------+------------------------------------ Comment(by Peter_Dyballa@…): Replying to [comment:3 ryandesign@…]:
I cannot explain why you have this file on your system but it does not belong to a port, so you should force the activation.
They at least belong to glib versions 2.26: {{{ 17987248 -rw-r--r-- 2 root admin 5849 4 Okt 21:23 /opt/local/var/macports/software/glib2/2.26.0_0/opt/local/share/gtk- doc/html/gio/gsettings.html 17987248 -rw-r--r-- 2 root admin 5849 4 Okt 21:23 /opt/local/share /gtk-doc/html/gio/gsettings.html.mp_1288390344 18660323 -rw-r--r-- 2 root admin 5819 25 Okt 01:13 /opt/local/var/macports/software/glib2/2.26.0_1/opt/local/share/gtk- doc/html/gio/gsettings.html 18660323 -rw-r--r-- 2 root admin 5819 25 Okt 01:13 /opt/local/share /gtk-doc/html/gio/gsettings.html.mp_1290211575 19286683 -rw-r--r-- 2 root admin 5903 17 Nov 01:50 /opt/local/var/macports/software/glib2/2.26.1_0/opt/local/share/gtk- doc/html/gio/gsettings.html 19286683 -rw-r--r-- 2 root admin 5903 17 Nov 01:50 /opt/local/share /gtk-doc/html/gio/gsettings.html }}} I'll remove the superfluous files manually. -- Ticket URL: <https://trac.macports.org/ticket/27392#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27392: gtk+-2.22.1 configure failure: No package 'glib-2.0' found ---------------------------------------+------------------------------------ Reporter: Peter_Dyballa@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: invalid | Keywords: Port: gtk2 | ---------------------------------------+------------------------------------ Comment(by ryandesign@…): Yes, certainly, the files are part of the glib2 package, and on a properly-working system, should be registered to the glib2 port. On your system, the files were installed, but not registered to glib2 or any other port, and I don't know how that happened. -- Ticket URL: <https://trac.macports.org/ticket/27392#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27392: gtk+-2.22.1 configure failure: No package 'glib-2.0' found ---------------------------------------+------------------------------------ Reporter: Peter_Dyballa@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: | Keywords: Port: gtk2 | ---------------------------------------+------------------------------------ Changes (by JensErikWeber@…): * status: closed => reopened * resolution: invalid => Comment: I have have more or less the same problem, and I think it's a strange way to solve this bug by declaring it "invalid". I haven't looked into the output in detail, but is it possible that the dependencies are wrong and gtk2 should depend on glib2 instead of glib-2.0, because there is indeed no MacPorts package named glib-2.0? I only took a look at the dependencies of gtk2. As the dependency on glib-2.0 is indirect, I haven't found it there. What is different on my system is that glib2 2.26.1_0 has been compiled, installed and activated with “sudo port -vu upgrade outdated” -- Ticket URL: <https://trac.macports.org/ticket/27392#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27392: gtk+-2.22.1 configure failure: No package 'glib-2.0' found ---------------------------------------+------------------------------------ Reporter: Peter_Dyballa@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: | Keywords: Port: gtk2 | ---------------------------------------+------------------------------------ Comment(by jmr@…): The dependencies are not wrong. {{{ % port provides /opt/local/lib/pkgconfig/glib-2.0.pc /opt/local/lib/pkgconfig/glib-2.0.pc is provided by: glib2 }}} Are you using -p or something? Otherwise port should exit when it fails to activate glib2. -- Ticket URL: <https://trac.macports.org/ticket/27392#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27392: gtk+-2.22.1 configure failure: No package 'glib-2.0' found ---------------------------------------+------------------------------------ Reporter: Peter_Dyballa@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: | Keywords: Port: gtk2 | ---------------------------------------+------------------------------------ Comment(by JensErikWeber@…): Me? I’ve never used -p, just port -vu upgrade outdated. port only exited when it tried to compile the new version of gtk2, but apparently not while upgrading glib2. I only got an error (“No package 'glib-2.0' found” when port is trying to upgrade gtk2. I got {{{ $ port provides /opt/local/lib/pkgconfig/glib-2.0.pc /opt/local/lib/pkgconfig/glib-2.0.pc does not exist. }}} In Porticus it looked like glib2 was activated (“Aktiv: 2.26.1_0”), but in fact it wasn't: {{{ $ port installed glib2 gtk2 The following ports are currently installed: glib2 @2.26.1_0 gtk2 @2.22.0_0+x11 (active) }}} When I tried to activate it in Porticus, I got this error: {{{ Port command started with PID 689 Activating glib2 @2.26.1_0 Error: port activate failed: Image error: /opt/local/share/gtk- doc/html/gio/gsettings.html already exists and does not belong to a registered port. Unable to activate port glib2. Use 'port -f activate glib2' to force the activation. Executing: /opt/local/bin/port -v activate glib2@2.26.1_0 }}} So I forced activation: {{{ $ sudo port -f activate glib2 Password: ---> Activating glib2 Warning: File /opt/local/share/gtk-doc/html/gio/gsettings.html already exists. Moving to: /opt/local/share/gtk-doc/html/gio/gsettings.html.mp_1290428665. Macintosh:~ jens$ port installed glib2 The following ports are currently installed: glib2 @2.26.1_0 (active) }}} Afterwards the new version of gtk2 was building without any problems. Nevertheless there is something wrong in the upgrade process, something that was not caused by me. I use Leopard PPC. -- Ticket URL: <https://trac.macports.org/ticket/27392#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27392: gtk+-2.22.1 configure failure: No package 'glib-2.0' found ---------------------------------------+------------------------------------ Reporter: Peter_Dyballa@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: | Keywords: Port: gtk2 | ---------------------------------------+------------------------------------ Comment(by ryandesign@…): See also #28192 where Peter reported this problem again. -- Ticket URL: <https://trac.macports.org/ticket/27392#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27392: gtk+-2.22.1 configure failure: No package 'glib-2.0' found ---------------------------------------+------------------------------------ Reporter: Peter_Dyballa@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: | Keywords: Port: gtk2 | ---------------------------------------+------------------------------------ Comment(by ryandesign@…): Jens, are you using a case-sensitive filesystem? We know from #28192 that Peter is, and I'm supposing that this relates to the problem somehow. -- Ticket URL: <https://trac.macports.org/ticket/27392#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27392: gtk+-2.22.1 configure failure: No package 'glib-2.0' found ---------------------------------------+------------------------------------ Reporter: Peter_Dyballa@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: | Keywords: Port: gtk2 | ---------------------------------------+------------------------------------ Changes (by jmr@…): * cc: nox@… (removed) -- Ticket URL: <https://trac.macports.org/ticket/27392#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27392: gtk+-2.22.1 configure failure: No package 'glib-2.0' found ---------------------------------------+------------------------------------ Reporter: Peter_Dyballa@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: | Keywords: Port: gtk2 | ---------------------------------------+------------------------------------ Comment(by Peter_Dyballa@…): Meanwhile gtk2 2.24.10_0+x11 is built, installed, and active. (And glib 2.32.1_0.) -- Ticket URL: <https://trac.macports.org/ticket/27392#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27392: gtk+-2.22.1 configure failure: No package 'glib-2.0' found ---------------------------------------+------------------------------------ Reporter: Peter_Dyballa@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: fixed | Keywords: Port: gtk2 | ---------------------------------------+------------------------------------ Changes (by ryandesign@…): * status: reopened => closed * resolution: => fixed Comment: Then I guess we'll assume this got fixed somewhere along the way. -- Ticket URL: <https://trac.macports.org/ticket/27392#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27392: gtk+-2.22.1 configure failure: No package 'glib-2.0' found ---------------------------------------+------------------------------------ Reporter: Peter_Dyballa@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: fixed | Keywords: Port: gtk2 | ---------------------------------------+------------------------------------ Comment(by JensErikWeber@…): Replying to [comment:12 ryandesign@…]:
Jens, are you using a case-sensitive filesystem?
Yes, I used case-sensitive HFS+. Sorry for not answering before, I must have overseen your message 15 months ago. Anyway, it has been working in the meantime, though just recently I got an error with upgrading glib2 again. a header file seemed to be missing though it was there. I uninstalled the old version and installed the new version, then it worked. -- Ticket URL: <https://trac.macports.org/ticket/27392#comment:16> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts