[dev-python/python-blivet] add libudev patch
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user