Opened 14 years ago

Closed 13 years ago

Last modified 11 years ago

#27392 closed defect (fixed)

gtk+-2.22.1 configure failure: No package 'glib-2.0' found

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), JensErikWeber@…, cooljeanius (Eric Gallager)
Port: gtk2

Description

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?

Change History (17)

comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: openmaintainer@… removed
Port: gtk2 added; glib2 gtk+-2.22.1 removed

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).

comment:2 Changed 14 years ago by ballapete (Peter "Pete" 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

comment:3 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

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

comment:4 Changed 14 years ago by jmroot (Joshua Root)

Resolution: invalid
Status: newclosed

comment:5 in reply to:  3 Changed 14 years ago by ballapete (Peter "Pete" Dyballa)

Replying to 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.

comment:6 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

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.

comment:7 Changed 14 years ago by JensErikWeber@…

Cc: JensErikWeber@… added

Cc Me!

comment:8 Changed 14 years ago by JensErikWeber@…

Resolution: invalid
Status: closedreopened

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”

comment:9 Changed 14 years ago by jmroot (Joshua Root)

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.

comment:10 Changed 14 years ago 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.

comment:11 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

See also #28192 where Peter reported this problem again.

comment:12 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

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.

comment:13 Changed 13 years ago by jmroot (Joshua Root)

Cc: nox@… removed

comment:14 Changed 13 years ago by ballapete (Peter "Pete" Dyballa)

Meanwhile gtk2 2.24.10_0+x11 is built, installed, and active. (And glib 2.32.1_0.)

comment:15 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: reopenedclosed

Then I guess we'll assume this got fixed somewhere along the way.

comment:16 in reply to:  12 Changed 13 years ago by JensErikWeber@…

Replying to 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.

comment:17 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.