Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 762931

Summary: gnome-base/libgtop-2.40.0-r2 automagically depends on x11-libs/libXau
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: CONFIRMED ---    
Severity: normal CC: arkamar, polynomial-c, robbat2
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2021-01-01 16:11:25 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-misc/g15stats-1.9.7-r1 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)
Comment 1 Agostino Sarubbo gentoo-dev 2021-01-01 16:11:27 UTC
Created attachment 680515 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-01-01 16:11:28 UTC
Possible context of error(s):

/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libXau.so.6, needed by /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib64/libgtop-2.0.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib64/libgtop-2.0.so: undefined reference to `XauGetAuthByAddr'
collect2: error: ld returned 1 exit status
Comment 3 Petr Vaněk gentoo-dev 2024-09-08 13:18:52 UTC
It looks like some kind of automagic dependency in libgtop, but I cannot reproduce it.
Comment 4 Petr Vaněk gentoo-dev 2024-09-08 13:56:39 UTC
Is it possible that portage did not preserve libs back then as it does today?

I am able to reproduce it when I install libXau, than libgtop-2.40.0, which automagically links with libXau.

  emerge x11-libs/libXau
  emerge =gnome-base/libgtop-2.40*

After that I uninstall libXau but I have to remove libXau.so* by hand because emerge preserves it

  emerge -C x11-libs/libXau
  rm /usr/lib64/libXau.so.6*

And now I am able to reproduce it. Anyway, it is indirect app-misc/g15stats issue.

See this https://gitlab.gnome.org/GNOME/libgtop/-/blob/2.40.0/configure.ac?ref_type=tags#L243