Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 815136 - dev-python/dbus-python missing libxcrypt
Summary: dev-python/dbus-python missing libxcrypt
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 798963
  Show dependency tree
 
Reported: 2021-09-27 11:36 UTC by Jisarpoz88
Modified: 2021-09-29 15:29 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Config log (Config.log,33.56 KB, text/plain)
2021-09-27 11:36 UTC, Jisarpoz88
Details
Build log && emerge --info (Build.log,16.78 KB, text/plain)
2021-09-27 11:37 UTC, Jisarpoz88
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jisarpoz88 2021-09-27 11:36:06 UTC
Created attachment 741678 [details]
Config log

Compiling dbus-python fails, logs attached.
Comment 1 Jisarpoz88 2021-09-27 11:37:03 UTC
Created attachment 741681 [details]
Build log && emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-28 19:16:35 UTC
[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
Comment 3 Mike Gilbert gentoo-dev 2021-09-28 19:36:16 UTC
dev-lang/python has virtual/libcrypt in RDEPEND, so libcrypt should be installed. How did you get to this state?
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-28 19:37:45 UTC
(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.)
Comment 5 Mike Gilbert gentoo-dev 2021-09-28 19:42:09 UTC
(In reply to Sam James from comment #4)

I would like the reporter to confirm the sequence of events please.
Comment 6 Mike Gilbert gentoo-dev 2021-09-28 20:03:17 UTC
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.
Comment 7 Jisarpoz88 2021-09-28 23:51:22 UTC
(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.
Comment 8 Larry the Git Cow gentoo-dev 2021-09-29 15:29:18 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebc20350041f9a721ba60a7aef5303289c316c49

commit ebc20350041f9a721ba60a7aef5303289c316c49
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2021-09-29 15:28:19 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2021-09-29 15:28:19 +0000

    dev-python/dbus-python: prevent overlinking by AX_PYTHON_DEVEL
    
    Closes: https://bugs.gentoo.org/815136
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 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(+)