Created attachment 741678 [details]
Compiling dbus-python fails, logs attached.
Created attachment 741681 [details]
Build log && emerge --info
[05:47:45] <@sam_> stuff like bug 815136 is getting very frustrating
[05:47:46] <+willikins> sam_: https://bugs.gentoo.org/815136 "dev-python/dbus-python missing libxcrypt"; Gentoo Linux, Current packages; UNCO; antisocrates:freedesktop-bugs
[05:48:07] <@sam_> they're packages which don't actually need libcrypt, but they're using python-config's --libs and trying to link against it
[05:48:14] <@sam_> libxml2 did the same thing
[05:48:31] <@sam_> I would also appreciate someone who uses virtualbox looking at bug 806326
[05:48:36] <+willikins> sam_: https://bugs.gentoo.org/806326 "app-emulation/virtualbox-6.1.26 cannot find -lcrypt"; Gentoo Linux, Current packages; UNCO; rion4ik:polynomial-c
dev-lang/python has virtual/libcrypt in RDEPEND, so libcrypt should be installed. How did you get to this state?
(In reply to Mike Gilbert from comment #3)
> dev-lang/python has virtual/libcrypt in RDEPEND, so libcrypt should be
> installed. How did you get to this state?
I think this is essentially the same as bug 802210.
(My commment just refers to how in a sense, it shouldn't _really_ matter, but given Python.h includes crypt.h, I guess that's kind of tangential anyway.)
(In reply to Sam James from comment #4)
I would like the reporter to confirm the sequence of events please.
This case is a bit different from bug 815136 in that the dbus-python test programs need to be linked against libpython, whereas libxml2 does not actually need libpython at all.
The AX_PYTHON_DEVEL macro seems to written with the assumption that we will be linking against the static library (libpython.a) instead of the shared library (libpython.so). Linking against the static library might require linking against libcrypt.
I'm not sure if this it is worth trying to "fix" AX_PYTHON_DEVEL. An easy workaround would be to pass EXTRA_PYTHON_LIBS=' ' to configure.
(In reply to Mike Gilbert from comment #5)
> (In reply to Sam James from comment #4)
> I would like the reporter to confirm the sequence of events please.
I have done only a world upgrade for the libxcrypt migration.
The bug has been closed via the following commit(s):
Author: Mike Gilbert <email@example.com>
AuthorDate: 2021-09-29 15:28:19 +0000
Commit: Mike Gilbert <firstname.lastname@example.org>
CommitDate: 2021-09-29 15:28:19 +0000
dev-python/dbus-python: prevent overlinking by AX_PYTHON_DEVEL
Signed-off-by: Mike Gilbert <email@example.com>
dev-python/dbus-python/dbus-python-1.2.16-r1.ebuild | 4 ++++
dev-python/dbus-python/dbus-python-1.2.18.ebuild | 4 ++++
2 files changed, 8 insertions(+)