Bug 269676 - sysutils/gnome-settings-daemon datetime plugin should not be linked with libsoup v.2
Summary: sysutils/gnome-settings-daemon datetime plugin should not be linked with libs...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-19 05:51 UTC by Paul Dufresne
Modified: 2023-02-19 22:59 UTC (History)
1 user (show)

See Also:
nc: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Dufresne 2023-02-19 05:51:28 UTC
Now that https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269434
is fixed, I can start gnome.

But when I clicked on Web Browser in the bottom panel, screen change to "Oh no! Something bad happened." and gsd-datetime.core appears in my home directory.

paul@dufresnep:/usr/home/paul $ cat gsd-datetime-
gsd-datetime-1.txt  gsd-datetime-2.txt 
paul@dufresnep:/usr/home/paul $ cat gsd-datetime-2.txt 
Script started on Sun Feb 19 00:02:53 2023
Command: lldb --core gsd-datetime.core /usr/local/libexec/gsd-datetime
(lldb) target create "/usr/local/libexec/gsd-datetime" --core "gsd-datetime.core"
Core file '/home/paul/gsd-datetime.core' (x86_64) was loaded.
(lldb) bt
* thread #1, name = 'gsd-datetime', stop reason = signal SIGTRAP
  * frame #0: 0x0000000823cd2314 libglib-2.0.so.0`_g_log_abort(breakpoint=1) at gmessages.c:563:5
    frame #1: 0x0000000823cd2afa libglib-2.0.so.0`g_log_structured_array(log_level=G_LOG_LEVEL_ERROR, fields=0x000000082079e820, n_fields=4) at gmessages.c:2000:5
    frame #2: 0x0000000823cd1ff9 libglib-2.0.so.0`g_log_default_handler(log_domain="", log_level=6, message="libsoup2 symbols detected. Using libsoup2 and libsoup3 in the same process is not supported.", unused_data=0x0000000000000000) at gmessages.c:3312:3
    frame #3: 0x0000000823cd1b59 libglib-2.0.so.0`g_logv(log_domain="", log_level=G_LOG_LEVEL_ERROR, format="", args=0x000000082079ee70) at gmessages.c:1402:11
    frame #4: 0x0000000823cd15f5 libglib-2.0.so.0`g_log(log_domain="", log_level=G_LOG_LEVEL_ERROR, format="") at gmessages.c:1471:3
    frame #5: 0x000000082d90f807 libsoup-3.0.so.0`___lldb_unnamed_symbol2855 + 119
    frame #6: 0x00003ade2ba480ad ld-elf.so.1
    frame #7: 0x00003ade2ba466ab ld-elf.so.1
(lldb) q

Command exit status: 0
Script done on Sun Feb 19 00:04:21 2023
paul@dufresnep:/usr/home/paul $ 

It seems that the datetime plugins is linked with both soup2 and soup3:
paul@dufresnep:/usr/home/paul $ ldd /usr/local/libexec/gsd-datetime|grep -i soup 
	libsoup-2.4.so.1 => /usr/local/lib/libsoup-2.4.so.1 (0x2350c2690000)
	libsoup-3.0.so.0 => /usr/local/lib/libsoup-3.0.so.0 (0x2350c73b7000)
paul@dufresnep:/usr/home/paul $ 

I looked a bit at work directory after make to find an option linked to libsoup, but did not found anything... must be something somewhere.

Now that gnome-shell always use libsoup3, I think gsd-datetime should not be linked with libsoup (v.2) anymore.

But I don't know how yet.
Comment 1 commit-hook freebsd_committer freebsd_triage 2023-02-19 06:17:23 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=382541d5c8346168ebadb2c707289a915eab28a1

commit 382541d5c8346168ebadb2c707289a915eab28a1
Author:     Neel Chauhan <nc@FreeBSD.org>
AuthorDate: 2023-02-19 06:16:59 +0000
Commit:     Neel Chauhan <nc@FreeBSD.org>
CommitDate: 2023-02-19 06:16:59 +0000

    sysutils/gnome-settings-daemon: Bump PORTREVISION for libsoup3

    PR:     269676

 sysutils/gnome-settings-daemon/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 2 Jan Beich freebsd_committer freebsd_triage 2023-02-19 10:09:32 UTC
gnome-settings-daemon pulls libsoup 2.* via geocode-glib which builds with -Dsoup2=true. So, that PORTREVISION bump was pointless.
Comment 3 commit-hook freebsd_committer freebsd_triage 2023-02-19 10:15:05 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fd4899a4cc955ec834e88f686491c93330eaa942

commit fd4899a4cc955ec834e88f686491c93330eaa942
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-02-19 10:06:21 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-02-19 10:13:54 +0000

    sysutils/gnome-settings-daemon: actually switch to libsoup3

    $ /usr/local/libexec/gsd-datetime
    (process:1234): libsoup-ERROR **: libsoup2 symbols detected. Using libsoup2 and libsoup3 in the same process is not supported.
    Trace/BPT trap

    PR:             269676

 sysutils/gnome-settings-daemon/Makefile | 7 +++++--
 sysutils/gnome-settings-daemon/distinfo | 2 ++
 2 files changed, 7 insertions(+), 2 deletions(-)
Comment 4 Paul Dufresne 2023-02-19 22:47:58 UTC
Works for me.
In fact writing this comment under Gnome.
Thanks!
Comment 5 Neel Chauhan freebsd_committer freebsd_triage 2023-02-19 22:59:32 UTC
(In reply to Paul Dufresne from comment #4)
Good to hear it worked!

-Neel