multilib: change hard coded /usr/lib path.
Hi Richard,
This pull request fixes some hard coded /usr/lib path in recipes within minimal image. Please help to review and pull.
Thanks,
Dongxiao
The following changes since commit fa4bcfdb73167f8159b88e5a4d711c0d37627a70:
bb-matrix: correct BB and PM number canonicalization (2011-07-14 22:23:09 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib dxu4/multilib
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dxu4/multilib
Dongxiao Xu (3):
xcb-proto: add multilib support.
pciutils: Change the hardcoded /usr/lib to support multilib.
udev: Change hard coded /usr/lib to support multilib
Yu Ke (1):
perl: revise the RRECOMMENDS_perl-modules for multilib case
.../pciutils/pciutils-3.1.7/makefile.patch | 12 ++++++++++++ meta/recipes-bsp/pciutils/pciutils_3.1.7.bb | 5 +++-- meta/recipes-core/udev/udev-164/makefile.patch | 14 ++++++++++++++ meta/recipes-core/udev/udev-new.inc | 1 + meta/recipes-core/udev/udev_145.bb | 2 +- meta/recipes-devtools/perl/perl_5.12.3.bb | 2 +- .../xcb/xcb-proto-1.6/aclocal.patch | 20 ++++++++++++++++++++ meta/recipes-graphics/xcb/xcb-proto.inc | 3 ++- 8 files changed, 54 insertions(+), 5 deletions(-) create mode 100644 meta/recipes-bsp/pciutils/pciutils-3.1.7/makefile.patch create mode 100644 meta/recipes-core/udev/udev-164/makefile.patch create mode 100644 meta/recipes-graphics/xcb/xcb-proto-1.6/aclocal.patch
PATCH 1/4 xcb-proto: add multilib support.
There is hardcode of /usr/lib dir for some python files. Fix it to support multilib.
--- .../xcb/xcb-proto-1.6/aclocal.patch | 20 ++++++++++++++++++++ meta/recipes-graphics/xcb/xcb-proto.inc | 3 ++- 2 files changed, 22 insertions(+), 1 deletions(-) create mode 100644 meta/recipes-graphics/xcb/xcb-proto-1.6/aclocal.patch
meta/recipes-graphics/xcb/xcb-proto-1.6/aclocal.patch new file +20 -0
@@ -0,0 +1,20 @@ +diff -ruN xcb-proto-1.6-orig/aclocal.m4 xcb-proto-1.6/aclocal.m4 +--- xcb-proto-1.6-orig/aclocal.m4 2011-07-08 15:45:33.000000000 +0800 ++++ xcb-proto-1.6/aclocal.m4 2011-07-08 15:48:19.000000000 +0800 +@@ -518,6 +518,7 @@ + dnl general consensus is that you shouldn't need this ability. + + AC_SUBST([PYTHON_PREFIX], ['${prefix}']) ++ AC_SUBST([PYTHON_LIB_PREFIX], ['${libdir}']) + AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}']) + + dnl At times (like when building shared libraries) you may want +@@ -546,7 +547,7 @@ + am_py_prefix=$prefix + fi + am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null || +- echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"` ++ echo "$PYTHON_LIB_PREFIX/python$PYTHON_VERSION/site-packages"` + case $am_cv_python_pythondir in + $am_py_prefix*) + am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
meta/recipes-graphics/xcb/xcb-proto.inc +2 -1
@@ -9,7 +9,8 @@ BUGTRACKER = "https://bugs.freedesktop.org/enter_bug.cgi?product=XCB" SECTION = "x11/libs" LICENSE = "MIT-X" -SRC_URI = "http://xcb.freedesktop.org/dist/xcb-proto-${PV}.tar.bz2" +SRC_URI = "http://xcb.freedesktop.org/dist/xcb-proto-${PV}.tar.bz2 \ + file://aclocal.patch" inherit autotools pkgconfig
Signature · 1 line
1.7.1
PATCH 2/4 pciutils: Change the hardcoded /usr/lib to support multilib.
In reply to Dongxiao Xu--- .../pciutils/pciutils-3.1.7/makefile.patch | 12 ++++++++++++ meta/recipes-bsp/pciutils/pciutils_3.1.7.bb | 5 +++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-bsp/pciutils/pciutils-3.1.7/makefile.patch
meta/recipes-bsp/pciutils/pciutils-3.1.7/makefile.patch new file +12 -0
@@ -0,0 +1,12 @@ +diff -ruN pciutils-3.1.7-orig/Makefile pciutils-3.1.7/Makefile +--- pciutils-3.1.7-orig/Makefile 2011-07-11 14:41:59.000000000 +0800 ++++ pciutils-3.1.7/Makefile 2011-07-11 14:42:31.000000000 +0800 +@@ -31,7 +31,7 @@ + IDSDIR=$(SHAREDIR) + MANDIR:=$(shell if [ -d $(PREFIX)/share/man ] ; then echo $(PREFIX)/share/man ; else echo $(PREFIX)/man ; fi) + INCDIR=$(PREFIX)/include +-LIBDIR=$(PREFIX)/lib ++LIBDIR=$(libdir) + PKGCFDIR=$(LIBDIR)/pkgconfig + + # Commands
meta/recipes-bsp/pciutils/pciutils_3.1.7.bb +3 -2
@@ -9,13 +9,14 @@ LICENSE = "GPLv2+" LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" DEPENDS = "zlib" RDEPENDS_${PN} = "${PN}-ids" -PR = "r1" +PR = "r2" SRC_URI = "${KERNELORG_MIRROR}/software/utils/pciutils/pciutils-${PV}.tar.bz2 \ file://configure.patch \ file://pcimodules-pciutils.diff \ file://lib-build-fix.patch \ - file://guess-fix.patch" + file://guess-fix.patch \ + file://makefile.patch" SRC_URI[md5sum] = "35222edb86b50a6641352c66fe829b2e" SRC_URI[sha256sum] = "d8fe23b6966c1abf29b3b38b08b0cf33f731cd6e6a89d9b8d2b8d5e982c3f544"
Signature · 1 line
1.7.1
PATCH 3/4 udev: Change hard coded /usr/lib to support multilib
In reply to Dongxiao Xu--- meta/recipes-core/udev/udev-164/makefile.patch | 14 ++++++++++++++ meta/recipes-core/udev/udev-new.inc | 1 + meta/recipes-core/udev/udev_145.bb | 2 +- 3 files changed, 16 insertions(+), 1 deletions(-) create mode 100644 meta/recipes-core/udev/udev-164/makefile.patch
meta/recipes-core/udev/udev-164/makefile.patch new file +14 -0
@@ -0,0 +1,14 @@ +diff -ruN udev-164-orig/Makefile.am udev-164/Makefile.am +--- udev-164-orig/Makefile.am 2011-07-11 16:10:26.000000000 +0800 ++++ udev-164/Makefile.am 2011-07-11 16:11:14.000000000 +0800 +@@ -468,8 +468,8 @@ + libexec_PROGRAMS += extras/udev-acl/udev-acl + + udevacl-install-hook: +- mkdir -p $(DESTDIR)$(prefix)/lib/ConsoleKit/run-seat.d +- ln -sf $(libexecdir)/udev-acl $(DESTDIR)$(prefix)/lib/ConsoleKit/run-seat.d/udev-acl.ck ++ mkdir -p $(DESTDIR)$(libdir)/ConsoleKit/run-seat.d ++ ln -sf $(libexecdir)/udev-acl $(DESTDIR)$(libdir)/ConsoleKit/run-seat.d/udev-acl.ck + + INSTALL_EXEC_HOOKS += udevacl-install-hook +
meta/recipes-core/udev/udev-new.inc +1 -0
@@ -16,6 +16,7 @@ RRECOMMENDS_${PN} += "udev-extraconf udev-cache usbutils-ids pciutils-ids" RDEPENDS_libudev = "${PN} (= ${EXTENDPKGV})" SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \ + file://makefile.patch \ file://run.rules \ file://udev.rules \ file://devfs-udev.rules \
meta/recipes-core/udev/udev_145.bb +1 -1
@@ -1,6 +1,6 @@ RPROVIDES_${PN} = "hotplug" -PR = "r11" +PR = "r12" SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \ file://enable-gudev.patch;patch=1 \
Signature · 1 line
1.7.1
PATCH 4/4 perl: revise the RRECOMMENDS_perl-modules for multilib case
In reply to Dongxiao XuFrom: Yu Ke <[email protected]>
current RRECOMMENDS_perl-modules replace the hardcode "perl-dbg", "perl-misc" etc. which does not work in multilib case. Instead, it should replace the "lib64-perl-dbg", "lib-64-perl-misc". without doing this, current code will produce RRECOMMENDS=lib64-lib64-xxx etc
This patch revise the code to fix this issue
--- meta/recipes-devtools/perl/perl_5.12.3.bb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
meta/recipes-devtools/perl/perl_5.12.3.bb +1 -1
@@ -282,7 +282,7 @@ FILES_perl-module-unicore += "${libdir}/perl/${PV}/unicore" # packages (actually the non modules packages and not created too) ALLOW_EMPTY_perl-modules = "1" PACKAGES_append = " perl-modules " -RRECOMMENDS_perl-modules = "${@bb.data.getVar('PACKAGES', d, 1).replace('perl-modules ', '').replace('perl-dbg ', '').replace('perl-misc ', '').replace('perl-dev ', '').replace('perl-pod ', '').replace('perl-doc ', '')}" +RRECOMMENDS_perl-modules = "${@bb.data.getVar('PACKAGES', d, 1).replace('${PN}-modules ', '').replace('${PN}-dbg ', '').replace('${PN}-misc ', '').replace('${PN}-dev ', '').replace('${PN}-pod ', '').replace('${PN}-doc ', '')}" python populate_packages_prepend () { libdir = bb.data.expand('${libdir}/perl/${PV}', d)
Signature · 1 line
1.7.1