Opened 4 months ago

Last modified 2 months ago

#70437 assigned defect

glib2 @2.78.4_0+debug+universal+x11 upgrade fails, opportunistic use of dbus

Reported by: TheLastLovemark Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: Cc:
Port: glib2

Description

trying to upgrade a bunch of ports to debug variants as I want to relearn to program. glib2 failed after a lot of dependents successfully installed. Log file indicates i386 architecture may be the problem. Not sure how "clean" this was. the initial upgrade command was given cleanly.

Attachments (1)

glib2-main.log.bz2 (70.2 KB) - added by jmroot (Joshua Root) 4 months ago.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 4 months ago by jmroot (Joshua Root)

Cc: mascguy removed
Owner: set to mascguy
Status: newassigned

comment:2 Changed 4 months ago by jmroot (Joshua Root)

Summary: glib2 variant upgrade fails, log hints it is because I am on deprecated architectureglib2 @2.78.4_0+debug+universal+x11 upgrade fails, opportunistic use of dbus
:info:build FAILED: gio/tests/gdbus-server-auth 
:info:build /usr/bin/clang  -o gio/tests/gdbus-server-auth gio/tests/gdbus-server-auth.p/gdbus-server-auth.c.o -L/opt/local/lib -I/opt/local/include -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-headerpad_max_install_names -lresolv -bind_at_load -arch i386 -pipe -Wno-deprecated-declarations -g -O0 -arch i386 -g -O0 -Wl,-rpath,@loader_path/../../glib -Wl,-rpath,@loader_path/../../gmodule -Wl,-rpath,@loader_path/../../gobject -Wl,-rpath,@loader_path/.. -Wl,-rpath,/opt/local/lib glib/libglib-2.0.0.dylib gmodule/libgmodule-2.0.0.dylib gobject/libgobject-2.0.0.dylib gio/libgio-2.0.0.dylib -lintl -L/opt/local/lib -ldbus-1
:info:build ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
:info:build ld: warning: ignoring file /opt/local/lib/libdbus-1.dylib, file was built for x86_64 which is not the architecture being linked (i386): /opt/local/lib/libdbus-1.dylib
:info:build Undefined symbols for architecture i386:
:info:build   "_dbus_connection_close", referenced from:
:info:build       _do_test_server_auth in gdbus-server-auth.c.o
:info:build   "_dbus_connection_open_private", referenced from:
:info:build       _do_test_server_auth in gdbus-server-auth.c.o
:info:build   "_dbus_connection_send_with_reply_and_block", referenced from:
:info:build       _libdbus_call_task_cb in gdbus-server-auth.c.o
:info:build   "_dbus_connection_unref", referenced from:
:info:build       _do_test_server_auth in gdbus-server-auth.c.o
:info:build   "_dbus_message_get_args", referenced from:
:info:build       _do_test_server_auth in gdbus-server-auth.c.o
:info:build   "_dbus_message_new_method_call", referenced from:
:info:build       _do_test_server_auth in gdbus-server-auth.c.o
:info:build   "_dbus_message_unref", referenced from:
:info:build       _do_test_server_auth in gdbus-server-auth.c.o

There's no dependency on dbus listed.

Changed 4 months ago by jmroot (Joshua Root)

Attachment: glib2-main.log.bz2 added

comment:3 Changed 4 months ago by TheLastLovemark

Is that a your side thing or a my side thing?

comment:4 Changed 4 months ago by mascguy (Christopher Nielsen)

Can you provide the output from port -v installed dbus?

comment:5 Changed 4 months ago by TheLastLovemark

sh-3.2# port -v installed dbus
The following ports are currently installed:
  dbus @1.14.10_1 (active) requested_variants='' platform='darwin 17' archs='x86_64' date='2024-07-22T12:43:53-0400'

comment:6 in reply to:  5 Changed 4 months ago by mascguy (Christopher Nielsen)

Replying to TheLastLovemark:

sh-3.2# port -v installed dbus
The following ports are currently installed:
  dbus @1.14.10_1 (active) requested_variants='' platform='darwin 17' archs='x86_64' date='2024-07-22T12:43:53-0400'

Okay, dbus isn't installed +universal, which makes sense since it isn't a dependency.

For now, can you try the following:

$ sudo port -f deactivate dbus
$ sudo port clean glib2
$ sudo port upgrade glib2
$ sudo port activate dbus

Ultimately I need to fix the opportunistic use of dbus, per Josh's earlier comment. But for now, temporarily deactivating it first might solve your problem.

Give it a shot, and let me know if it works.

comment:7 Changed 4 months ago by TheLastLovemark

It worked.

Thank you!

comment:8 Changed 2 months ago by TheLastLovemark

This can be closed

Note: See TracTickets for help on using tickets.