* [PATCH 1/4] xcb-proto: add multilib support.
2011-07-18 6:01 [PATCH 0/4][PULL] multilib: change hard coded /usr/lib path Dongxiao Xu
@ 2011-07-18 6:01 ` Dongxiao Xu
2011-07-18 6:01 ` [PATCH 2/4] pciutils: Change the hardcoded /usr/lib to support multilib Dongxiao Xu
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Dongxiao Xu @ 2011-07-18 6:01 UTC (permalink / raw)
To: openembedded-core
There is hardcode of /usr/lib dir for some python files.
Fix it to support multilib.
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
.../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
diff --git a/meta/recipes-graphics/xcb/xcb-proto-1.6/aclocal.patch b/meta/recipes-graphics/xcb/xcb-proto-1.6/aclocal.patch
new file mode 100644
index 0000000..51d494d
--- /dev/null
+++ b/meta/recipes-graphics/xcb/xcb-proto-1.6/aclocal.patch
@@ -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'`
diff --git a/meta/recipes-graphics/xcb/xcb-proto.inc b/meta/recipes-graphics/xcb/xcb-proto.inc
index cd7e115..76688c9 100644
--- a/meta/recipes-graphics/xcb/xcb-proto.inc
+++ b/meta/recipes-graphics/xcb/xcb-proto.inc
@@ -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
--
1.7.1
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH 2/4] pciutils: Change the hardcoded /usr/lib to support multilib.
2011-07-18 6:01 [PATCH 0/4][PULL] multilib: change hard coded /usr/lib path Dongxiao Xu
2011-07-18 6:01 ` [PATCH 1/4] xcb-proto: add multilib support Dongxiao Xu
@ 2011-07-18 6:01 ` Dongxiao Xu
2011-07-18 6:01 ` [PATCH 3/4] udev: Change hard coded " Dongxiao Xu
2011-07-18 6:01 ` [PATCH 4/4] perl: revise the RRECOMMENDS_perl-modules for multilib case Dongxiao Xu
3 siblings, 0 replies; 5+ messages in thread
From: Dongxiao Xu @ 2011-07-18 6:01 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
.../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
diff --git a/meta/recipes-bsp/pciutils/pciutils-3.1.7/makefile.patch b/meta/recipes-bsp/pciutils/pciutils-3.1.7/makefile.patch
new file mode 100644
index 0000000..48bedff
--- /dev/null
+++ b/meta/recipes-bsp/pciutils/pciutils-3.1.7/makefile.patch
@@ -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
diff --git a/meta/recipes-bsp/pciutils/pciutils_3.1.7.bb b/meta/recipes-bsp/pciutils/pciutils_3.1.7.bb
index 4e6d4e1..b48aaf0 100644
--- a/meta/recipes-bsp/pciutils/pciutils_3.1.7.bb
+++ b/meta/recipes-bsp/pciutils/pciutils_3.1.7.bb
@@ -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"
--
1.7.1
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH 3/4] udev: Change hard coded /usr/lib to support multilib
2011-07-18 6:01 [PATCH 0/4][PULL] multilib: change hard coded /usr/lib path Dongxiao Xu
2011-07-18 6:01 ` [PATCH 1/4] xcb-proto: add multilib support Dongxiao Xu
2011-07-18 6:01 ` [PATCH 2/4] pciutils: Change the hardcoded /usr/lib to support multilib Dongxiao Xu
@ 2011-07-18 6:01 ` Dongxiao Xu
2011-07-18 6:01 ` [PATCH 4/4] perl: revise the RRECOMMENDS_perl-modules for multilib case Dongxiao Xu
3 siblings, 0 replies; 5+ messages in thread
From: Dongxiao Xu @ 2011-07-18 6:01 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
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
diff --git a/meta/recipes-core/udev/udev-164/makefile.patch b/meta/recipes-core/udev/udev-164/makefile.patch
new file mode 100644
index 0000000..1fb0307
--- /dev/null
+++ b/meta/recipes-core/udev/udev-164/makefile.patch
@@ -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
+
diff --git a/meta/recipes-core/udev/udev-new.inc b/meta/recipes-core/udev/udev-new.inc
index 4c4451f..b482a5a 100644
--- a/meta/recipes-core/udev/udev-new.inc
+++ b/meta/recipes-core/udev/udev-new.inc
@@ -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 \
diff --git a/meta/recipes-core/udev/udev_145.bb b/meta/recipes-core/udev/udev_145.bb
index becef04..e13e0a5 100644
--- a/meta/recipes-core/udev/udev_145.bb
+++ b/meta/recipes-core/udev/udev_145.bb
@@ -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 \
--
1.7.1
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH 4/4] perl: revise the RRECOMMENDS_perl-modules for multilib case
2011-07-18 6:01 [PATCH 0/4][PULL] multilib: change hard coded /usr/lib path Dongxiao Xu
` (2 preceding siblings ...)
2011-07-18 6:01 ` [PATCH 3/4] udev: Change hard coded " Dongxiao Xu
@ 2011-07-18 6:01 ` Dongxiao Xu
3 siblings, 0 replies; 5+ messages in thread
From: Dongxiao Xu @ 2011-07-18 6:01 UTC (permalink / raw)
To: openembedded-core
From: Yu Ke <ke.yu@intel.com>
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
Signed-off-by: Yu Ke <ke.yu@intel.com>
Signed-off-by: Xu Dongxiao <dongxiao.xu@intel.com>
---
meta/recipes-devtools/perl/perl_5.12.3.bb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/meta/recipes-devtools/perl/perl_5.12.3.bb b/meta/recipes-devtools/perl/perl_5.12.3.bb
index c75a532..4b6b5a7 100644
--- a/meta/recipes-devtools/perl/perl_5.12.3.bb
+++ b/meta/recipes-devtools/perl/perl_5.12.3.bb
@@ -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)
--
1.7.1
^ permalink raw reply related [flat|nested] 5+ messages in thread