Opened 2 years ago

Last modified 22 months ago

#70274 new defect

gtk3 @3.24.41_2+quartz: review active_variants check against glib2

Reported by: cooljeanius (Eric Gallager) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: Cc: mohd-akram (Mohamed Akram), mascguy (Christopher Nielsen)
Port: gtk3

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Basically, see discussion on commit [d0aca0012c93f2bf9c7f83c46d15040ad2b83d78/macports-ports]. I can understand doing the variant check one way around for the missing symbol, but that doesn't necessarily mean it's necessary to do it the other way around, too. I have gtk3 installed with +quartz and glib2 installed with +x11 and this is breaking upgrading of all of my gnome ports. Getting issue #63680 fixed would probably resolve this.

Change History (17)

comment:1 Changed 2 years ago by mohd-akram (Mohamed Akram)

Just install glib2 +quartz?

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

Description: modified (diff)

comment:3 in reply to:  1 ; Changed 2 years ago by cooljeanius (Eric Gallager)

Replying to mohd-akram:

Just install glib2 +quartz?

I have no way of knowing if that might break whichever port might have required me to install glib2 +x11 in the first place, though...

comment:4 in reply to:  3 Changed 2 years ago by cooljeanius (Eric Gallager)

Replying to cooljeanius:

Replying to mohd-akram:

Just install glib2 +quartz?

I have no way of knowing if that might break whichever port might have required me to install glib2 +x11 in the first place, though...

Update: it's possible that I only have glib2 installed with +x11 just because I installed it prior to [45c59fe0a66e382927fbf6fe629d37898eb42b6b/macports-ports], but even if that's the case, that doesn't mean it's safe for me to remove the variant, though, as some port I installed afterwards could have had an active_variants check for +x11 on it that I've forgotten about... it'd be nice if you could do an active_variants search in reverse, i.e., when viewing a port's variants, see what other ports require those variants... but I guess that'd just be resurrecting #126 again...

comment:5 Changed 2 years ago by cooljeanius (Eric Gallager)

Ah, maybe my situation is pulseaudio's fault, since it has a default +x11 variant, and depends on glib2...

comment:6 in reply to:  5 Changed 2 years ago by cooljeanius (Eric Gallager)

Replying to cooljeanius:

Ah, maybe my situation is pulseaudio's fault, since it has a default +x11 variant, and depends on glib2...

...and this in turn might be because of multimon-ng @1.2.0+debug+pulseaudio+x11...

comment:7 Changed 2 years ago by cooljeanius (Eric Gallager)

looks like the libepoxy active_variants check added in [a85cc86813b8a49cd1422b5cf7ba01d1711ac623/macports-ports] may require review, too...

(also this applies to gtk3-devel as well as just gtk3)

comment:8 Changed 2 years ago by cooljeanius (Eric Gallager)

comment:9 Changed 2 years ago by mohd-akram (Mohamed Akram)

Neither multimon-ng nor pulseaudio specifies an active variant for glib2. We should probably figure out what's causing the problem for you before attempting a fix.

comment:10 in reply to:  9 Changed 2 years ago by cooljeanius (Eric Gallager)

Replying to mohd-akram:

Neither multimon-ng nor pulseaudio specifies an active variant for glib2. We should probably figure out what's causing the problem for you before attempting a fix.

What's causing the problem is that unnecessary active_variants checks have been blocking the upgrading of all my gtk-based ports for over 4 months now, leaving my MacPorts installation in an extremely broken state. I am done postponing my attempt at a fix; it's been long enough already.

comment:11 in reply to:  8 ; Changed 2 years ago by cooljeanius (Eric Gallager)

Replying to cooljeanius:

I opened PR 26062 to address this: ​https://github.com/macports/macports-ports/pull/26062

Copying and pasting some terminal output from this PR that shows why I need glib2 installed with the +x11 variant:

$ git grep "require_active_variants path:lib/pkgconfig/glib-2.0.pc:glib2 x11"
devel/geoclue2/Portfile:    require_active_variants path:lib/pkgconfig/glib-2.0.pc:glib2 x11
devel/glibmm-2.4/Portfile:    require_active_variants path:lib/pkgconfig/glib-2.0.pc:glib2 x11
gnome/gtk3-devel/Portfile:    require_active_variants path:lib/pkgconfig/glib-2.0.pc:glib2 x11
gnome/gtk3/Portfile:    require_active_variants path:lib/pkgconfig/glib-2.0.pc:glib2 x11
python/py-gobject/Portfile:        require_active_variants path:lib/pkgconfig/glib-2.0.pc:glib2 x11
$ port installed geoclue2 glibmm-2.4 "gtk3*" "py*gobject*"
The following ports are currently installed:
  geoclue2 @2.4.13_0+demoagent+nmea+x11 (active)
  glibmm-2.4 @2.62.0_0+x11 (active)
  gtk3 @3.24.41_1+quartz (active)
  py-gobject @2.28.7_2 (active)
  py-gobject3 @3.46.0_0 (active)
  py27-gobject @2.28.7_2+x11 (active)
  py27-gobject3 @3.36.1_3 (active)
  py35-gobject @2.28.7_2+x11 (active)
  py36-gobject @2.28.7_2+x11 (active)
  py36-gobject3 @3.44.1_0 (active)
  py37-gobject @2.28.7_2+x11 (active)
  py37-gobject3 @3.44.1_0 (active)
  py38-gobject @2.28.7_2+x11 (active)
  py38-gobject3 @3.46.0_0 (active)
  py39-gobject @2.28.7_2+x11 (active)
  py39-gobject3 @3.46.0_0 (active)
  py310-gobject3 @3.46.0_0 (active)
  py311-gobject3 @3.46.0_0 (active)
  py312-gobject3 @3.46.0_0 (active)
$ port echo rdependentof:geoclue2 | xargs port installed | grep "+x11"
  glom @1.32.0_13+mysql57+postgresql11+x11 (active)
$ port echo rdependentof:glibmm-2.4 | xargs port installed | grep "+x11"
  glibmm @2.78.0_0+x11 (active)
  glom @1.32.0_13+mysql57+postgresql11+x11 (active)
  pangomm @2.52.0_0+quartz+x11 (active)
  pangomm-1.4 @2.42.1_0+quartz+x11 (active)

(so basically, geoclue2, glibmm-2.4, py*gobject, glom, glibmm, pangomm, and pangomm-1.4)

comment:12 in reply to:  11 ; Changed 2 years ago by mascguy (Christopher Nielsen)

Replying to cooljeanius:

Copying and pasting some terminal output from this PR that shows why I need glib2 installed with the +x11 variant:

[...]

(so basically, geoclue2, glibmm-2.4, py*gobject, glom, glibmm, pangomm, and pangomm-1.4)

Let me ask you this: If you were to install MacPorts fresh on a new system, would you selectively install some of these ports with x11?

There's no reason you can't simply install them all as quartz, and be done with it.

Otherwise you're asking that we change our variant checks purely for your unsupported setup.

comment:13 in reply to:  12 ; Changed 2 years ago by cooljeanius (Eric Gallager)

Replying to mascguy:

Replying to cooljeanius:

Copying and pasting some terminal output from this PR that shows why I need glib2 installed with the +x11 variant:

[...]

(so basically, geoclue2, glibmm-2.4, py*gobject, glom, glibmm, pangomm, and pangomm-1.4)

Let me ask you this: If you were to install MacPorts fresh on a new system, would you selectively install some of these ports with x11?

Yes.

There's no reason you can't simply install them all as quartz, and be done with it.

geoclue2's +demoagent variant depends on +x11, so I can't use +quartz for that.

Otherwise you're asking that we change our variant checks purely for your unsupported setup.

It was supported previously. It should continue to be supported.

comment:14 in reply to:  13 Changed 2 years ago by cooljeanius (Eric Gallager)

Replying to cooljeanius:

Replying to mascguy:

There's no reason you can't simply install them all as quartz, and be done with it.

geoclue2's +demoagent variant depends on +x11, so I can't use +quartz for that.

OK, I opened #71542 for this part.

comment:15 Changed 2 years ago by cooljeanius (Eric Gallager)

One other reason I can't just install glib2 with +quartz: it currently fails to build for me with:

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_NSUserNotification", referenced from:
      objc-class-ref in gcocoanotificationbackend.m.o
  "_OBJC_CLASS_$_NSUserNotificationCenter", referenced from:
      objc-class-ref in gcocoanotificationbackend.m.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

...which I think is the same basic issue as #67675

comment:16 Changed 22 months ago by cooljeanius (Eric Gallager)

2 more tickets that are related here: #40116 and #55345

comment:17 in reply to:  11 Changed 22 months ago by cooljeanius (Eric Gallager)

Replying to cooljeanius:

Replying to cooljeanius:

I opened PR 26062 to address this: ​https://github.com/macports/macports-ports/pull/26062

Copying and pasting some terminal output from this PR that shows why I need glib2 installed with the +x11 variant:

$ git grep "require_active_variants path:lib/pkgconfig/glib-2.0.pc:glib2 x11"
devel/geoclue2/Portfile:    require_active_variants path:lib/pkgconfig/glib-2.0.pc:glib2 x11
devel/glibmm-2.4/Portfile:    require_active_variants path:lib/pkgconfig/glib-2.0.pc:glib2 x11
gnome/gtk3-devel/Portfile:    require_active_variants path:lib/pkgconfig/glib-2.0.pc:glib2 x11
gnome/gtk3/Portfile:    require_active_variants path:lib/pkgconfig/glib-2.0.pc:glib2 x11
python/py-gobject/Portfile:        require_active_variants path:lib/pkgconfig/glib-2.0.pc:glib2 x11
$ port installed geoclue2 glibmm-2.4 "gtk3*" "py*gobject*"
The following ports are currently installed:
  geoclue2 @2.4.13_0+demoagent+nmea+x11 (active)
  glibmm-2.4 @2.62.0_0+x11 (active)
  gtk3 @3.24.41_1+quartz (active)
  py-gobject @2.28.7_2 (active)
  py-gobject3 @3.46.0_0 (active)
  py27-gobject @2.28.7_2+x11 (active)
  py27-gobject3 @3.36.1_3 (active)
  py35-gobject @2.28.7_2+x11 (active)
  py36-gobject @2.28.7_2+x11 (active)
  py36-gobject3 @3.44.1_0 (active)
  py37-gobject @2.28.7_2+x11 (active)
  py37-gobject3 @3.44.1_0 (active)
  py38-gobject @2.28.7_2+x11 (active)
  py38-gobject3 @3.46.0_0 (active)
  py39-gobject @2.28.7_2+x11 (active)
  py39-gobject3 @3.46.0_0 (active)
  py310-gobject3 @3.46.0_0 (active)
  py311-gobject3 @3.46.0_0 (active)
  py312-gobject3 @3.46.0_0 (active)
$ port echo rdependentof:geoclue2 | xargs port installed | grep "+x11"
  glom @1.32.0_13+mysql57+postgresql11+x11 (active)
$ port echo rdependentof:glibmm-2.4 | xargs port installed | grep "+x11"
  glibmm @2.78.0_0+x11 (active)
  glom @1.32.0_13+mysql57+postgresql11+x11 (active)
  pangomm @2.52.0_0+quartz+x11 (active)
  pangomm-1.4 @2.42.1_0+quartz+x11 (active)

(so basically, geoclue2, glibmm-2.4, py*gobject, glom, glibmm, pangomm, and pangomm-1.4)

1 more port that should have been added to this list since I posted it: epiphany in [83765558ee31af78ef20961b47bb26a998501e41/macports-ports]

Note: See TracTickets for help on using tickets.