[dev-python/python-blivet] add libudev patch

This commit is contained in:
Fabio Erculiani
2014-04-27 16:05:24 +01:00
parent 6e8202dadd
commit f78559bc32
2 changed files with 24 additions and 2 deletions
@@ -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
@@ -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
}