Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 634090 - sys-libs/ldb-1.2.2 ERROR: Python module pytevent of version 0.9.33 not found
Summary: sys-libs/ldb-1.2.2 ERROR: Python module pytevent of version 0.9.33 not found
Status: RESOLVED DUPLICATE of bug 590026
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-12 11:22 UTC by Flo Gravo
Modified: 2021-06-05 11:46 UTC (History)
4 users (show)

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


Attachments
emerge --info (emerge.info,10.92 KB, text/plain)
2017-10-12 11:22 UTC, Flo Gravo
Details
sys-libs/ldb-1.2.2/temp/build.log (build.log,46.09 KB, text/x-log)
2017-10-12 11:23 UTC, Flo Gravo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Flo Gravo 2017-10-12 11:22:33 UTC
Created attachment 498432 [details]
emerge --info

Updating ldb:

> emerge -v1 sys-libs/tevent sys-libs/ldb
...
[ebuild   R    ] sys-libs/tevent-0.9.33::gentoo  USE="python" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7" 0 KiB
[ebuild     U  ] sys-libs/ldb-1.2.2:0/1.2.2::gentoo [1.1.29-r1:0/1.1.29::gentoo] USE="ldap python -doc" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7" 0 KiB
...
results in:
...
Checking for system tevent (>=0.9.33) : yes 
ERROR: Python module pytevent of version 0.9.33 not found, and bundling disabled
 * ERROR: sys-libs/ldb-1.2.2::gentoo failed (configure phase):
 *   configure failed
...
Comment 1 Flo Gravo 2017-10-12 11:23:56 UTC
Created attachment 498434 [details]
sys-libs/ldb-1.2.2/temp/build.log
Comment 2 zym 2017-10-15 16:04:01 UTC
I dig into this issue here, and find out that tevent python plugin so had linking issue when dealing with libreplace-tevent.so => /usr/lib64/tevent/libreplace-tevent.so

that is in the /usr/lib64/tevent, which I have to put it into /etc/ld.so.conf.d in a config.

please take a look at the result on your host:

ldd /usr/lib64/python2.7/site-packages/_tevent.so
Comment 3 Steve Arnold archtester gentoo-dev 2017-10-15 20:10:24 UTC
I hit this too on world update, and what's weird is an "older" system already had 0.9.33 installed but without any libreplace-tevent.so files (???) but another machine with newer base install did have them and failed as above.

I took a look at the waf build stuff, but didn't see an obvious fix for this one; the samba packages apparently do the same thing with LIBDIR/samba and ldb has a config option for that (didn't work with tevent since tevent can't find itself).

Anyway, making an environment file for tevent package with LDPATH for tevent subdir *does* work, but there's probably a cleaner fix in waf build config somewhere (either fix the linking or get it to not install libreplace-tevent).

This is what i put in multilib_src_install:

  # fix lib not found error - see Bug 634090
  echo "LDPATH=/usr/$(get_libdir)/tevent" > "${T}"/99${PN} || die "echo failed"
  doenvd "${T}"/99${PN}
Comment 4 Forza 2017-12-03 09:33:29 UTC
Having same issue with samba-4.6 and samba-4.7 emerge.

Checking for system tevent (>=0.9.29) : yes
ERROR: Python module pytevent of version 0.9.29 not found, and bundling disabled
 * ERROR: net-fs/samba-4.5.15::gentoo failed (configure phase):
Comment 5 Marek Duranik 2017-12-26 17:10:06 UTC
I had same issue with the package ldb and tevent. Solution in my case was a compilation of ldb without python flag.

USE="-python" emerge ldb.

Then python modulele of tevent isn't needed and a compilation of ldb and samba finished successfully.
Comment 6 Joe Harvell 2018-03-05 01:43:33 UTC
I could not work around this by installing sys-libs/ldb with -python because of other packages that required it.

Instead, I added the following file and ran env-update:

path: /etc/ld.so.conf.d/50tevent-ldb-workaround.conf
permissions: 0644
contents: (one line) /usr/lib64/tevent
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2018-03-26 17:56:39 UTC
ERROR: Python module pytevent of version 0.9.36 not found, and bundling disabled
 * ERROR: sys-libs/ldb-1.3.2::gentoo failed (configure phase):
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2018-04-04 15:17:06 UTC

*** This bug has been marked as a duplicate of bug 590026 ***
Comment 9 Viorel Munteanu gentoo-dev 2021-06-05 11:46:46 UTC
(In reply to Joe Harvell from comment #6)
> I could not work around this by installing sys-libs/ldb with -python because
> of other packages that required it.
> 
> Instead, I added the following file and ran env-update:
> 
> path: /etc/ld.so.conf.d/50tevent-ldb-workaround.conf
> permissions: 0644
> contents: (one line) /usr/lib64/tevent

This worked for me for sys-libs/ldb-2.2.1

Thanks