diff --git a/dev-python/python-blivet/files/python-blivet-udev-path.patch b/dev-python/python-blivet/files/python-blivet-udev-path.patch new file mode 100644 index 000000000..013080b84 --- /dev/null +++ b/dev-python/python-blivet/files/python-blivet-udev-path.patch @@ -0,0 +1,11 @@ +--- a/blivet/pyudev.py ++++ b/blivet/pyudev.py +@@ -9,7 +9,7 @@ from ctypes import CDLL, c_char_p, c_int + # XXX this one may need some tweaking... + def find_library(name, somajor=0): + env = os.environ.get("LD_LIBRARY_PATH") +- common = ["/lib64", "/lib"] ++ common = ["/lib64", "/lib", "/usr/lib64", "/usr/lib"] + + if env: + libdirs = env.split(":") + common diff --git a/dev-python/python-blivet/python-blivet-0.50-r1.ebuild b/dev-python/python-blivet/python-blivet-0.50-r1.ebuild index 48b40eb49..ae7a453bd 100644 --- a/dev-python/python-blivet/python-blivet-0.50-r1.ebuild +++ b/dev-python/python-blivet/python-blivet-0.50-r1.ebuild @@ -1,7 +1,11 @@ -EAPI="3" +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="5" SUPPORT_PYTHON_ABIS="1" -inherit distutils +inherit eutils distutils REAL_PN="${PN/python-}" if [ "${PR}" != "r0" ]; then @@ -33,3 +37,10 @@ RDEPEND=">=dev-util/pykickstart-1.99.22 DEPEND="${RDEPEND}" S="${WORKDIR}/${REAL_PN}-${REAL_PN}-${PV}${REAL_PR}" + +src_prepare() { + # libudev in Gentoo is in /usr/lib64 if systemd + epatch "${FILESDIR}/${PN}-udev-path.patch" + + distutils_src_prepare +}