Multilib: various fixes
Hi Richard,
This pull request contains several multilib fixes, especially for rpm side. Please help to review and pull.
Current status for rpm sato is, most of the error dependency issues have been solved except one error while do_rootfs:
error: Failed dependencies:
/bin/sh is needed by dbus-1.4.12-r0.x86_64
/bin/sh is needed by psplash-0.0+svnr424-r6.x86_64
/bin/sh is needed by portmap-6.0-r7.x86_64
/bin/sh is needed by dropbear-0.52-r3.x86_64
...I am looking into that currently. Any suggestion would be appreciated.
Thanks,
Dongxiao
The following changes since commit 07864a16baf18046b726ec72b688594a91c6e4b4:
local.conf.sample: Fix TUNENAME reference (should be DEFAULTTUNE) (2011-08-02 14:40:54 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib dxu4/ml
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dxu4/ml
Dongxiao Xu (7):
eglibc-locale: Specially handle FILES_eglibc-gconv for multilib
libxml-simple-perl: Use BBCLASSEXTEND insteand of *-native recipe
openjade-native: Change RDEPENDS of sgml-common-native
multilib: Use BPN instead of PN for style like lib${PN}
multilib: remove MULTILIB_PACKAGE_ARCHS variable
package_rpm: fix strip_multilib function
package_rpm: Fix package rename issue in multilib case
meta/classes/libc-package.bbclass | 2 +- meta/classes/package_rpm.bbclass | 31 +++++++------------- meta/classes/populate_sdk_rpm.bbclass | 3 -- meta/classes/rootfs_rpm.bbclass | 3 -- meta/recipes-core/eglibc/eglibc-locale.inc | 5 ++- .../openjade/openjade-native_1.3.2.bb | 2 +- .../perl/libxml-simple-perl-native_2.18.bb | 7 ---- .../perl/libxml-simple-perl_2.18.bb | 2 + meta/recipes-devtools/python/python_2.6.6.bb | 4 +- meta/recipes-extended/augeas/augeas.inc | 12 ++++---- meta/recipes-extended/gamin/gamin_0.1.10.bb | 8 ++-- meta/recipes-support/attr/ea-acl.inc | 2 +- meta/recipes-support/sqlite/sqlite3.inc | 6 ++-- 13 files changed, 35 insertions(+), 52 deletions(-) delete mode 100644 meta/recipes-devtools/perl/libxml-simple-perl-native_2.18.bb
PATCH 1/7 eglibc-locale: Specially handle FILES_eglibc-gconv for multilib
In multilib support, it iterate values in PACKAGES and then extend name for variables like "FILES_xxx", "SUMMARY_xxx", etc.
However eglibc-gconv is dynamically put in PACKAGES by package_do_split_gconv function. Therefore the name will not be extended automatically.
Specially handle the FILES variable for eglibc-gconv to fix the issue of missing "lib32-eglibc-gconv" issue in doing multilib do_rootfs.
Also when set PACKAGES, add the MLPREFIX.
--- meta/classes/libc-package.bbclass | 2 +- meta/recipes-core/eglibc/eglibc-locale.inc | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-)
meta/classes/libc-package.bbclass +1 -1
@@ -191,7 +191,7 @@ python package_do_split_gconvs () { do_split_packages(d, locales_dir, file_regex='(.*)', output_pattern=bpn+'-localedata-%s', \ description='locale definition for %s', hook=calc_locale_deps, extra_depends='') - bb.data.setVar('PACKAGES', bb.data.getVar('PACKAGES', d) + ' ' + bpn + '-gconv', d) + bb.data.setVar('PACKAGES', bb.data.getVar('PACKAGES', d) + ' ' + bb.data.getVar('MLPREFIX', d) + bpn + '-gconv', d) use_bin = bb.data.getVar("GLIBC_INTERNAL_USE_BINARY_LOCALE", d, 1)
meta/recipes-core/eglibc/eglibc-locale.inc +4 -1
@@ -41,7 +41,10 @@ PACKAGES_DYNAMIC = "locale-base-* \ DESCRIPTION_localedef = "eglibc: compile locale definition files" -FILES_eglibc-gconv = "${libdir}/gconv/*" +# eglibc-gconv is dynamically added into PACKAGES, thus +# FILES_eglibc-gconv will not be automatically extended in multilib. +# Explicitly add ${MLPREFIX} for FILES_eglibc-gconv. +FILES_${MLPREFIX}eglibc-gconv = "${libdir}/gconv/*" FILES_${PN}-dbg += "${libdir}/gconv/.debug/*" FILES_localedef${PKGSUFFIX} = "${bindir}/localedef"
Signature · 1 line
1.7.1
PATCH 2/7 libxml-simple-perl: Use BBCLASSEXTEND insteand of *-native recipe
In reply to Dongxiao XuIt's not appropriate to require xxx.bb in xxx-native.bb, causing that xxx-native depends on target recipe.
Use BBCLASSEXTEND to solve this issue.
--- .../perl/libxml-simple-perl-native_2.18.bb | 7 ------- .../perl/libxml-simple-perl_2.18.bb | 2 ++ 2 files changed, 2 insertions(+), 7 deletions(-) delete mode 100644 meta/recipes-devtools/perl/libxml-simple-perl-native_2.18.bb
meta/recipes-devtools/perl/libxml-simple-perl-native_2.18.bb deleted +0 -7
@@ -1,7 +0,0 @@ -SECTION = "libs" - -inherit native - -require libxml-simple-perl_${PV}.bb - -DEPENDS += "libxml-parser-perl-native"
meta/recipes-devtools/perl/libxml-simple-perl_2.18.bb +2 -0
@@ -14,3 +14,5 @@ S = "${WORKDIR}/XML-Simple-${PV}" EXTRA_PERLFLAGS = "-I ${STAGING_LIBDIR_NATIVE}/perl-native/perl/${@get_perl_version(d)}" inherit cpan + +BBCLASSEXTEND = "native"
Signature · 1 line
1.7.1
PATCH 3/7 openjade-native: Change RDEPENDS of sgml-common-native
In reply to Dongxiao Xuopenjade-native should RDEPENDS on sgml-common-native but not sgml-common
--- .../openjade/openjade-native_1.3.2.bb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
meta/recipes-devtools/openjade/openjade-native_1.3.2.bb +1 -1
@@ -10,7 +10,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=641ff1e4511f0a87044ad42f87cb1045" PR = "r4" DEPENDS = "opensp-native sgml-common-native" -RDEPENDS_${PN} = "sgml-common" +RDEPENDS_${PN} = "sgml-common-native" SRC_URI = "${SOURCEFORGE_MIRROR}/openjade/openjade-${PV}.tar.gz \ file://makefile.patch \
Signature · 1 line
1.7.1
PATCH 4/7 multilib: Use BPN instead of PN for style like lib${PN}
In reply to Dongxiao XuWhen supporting multilib, ${PN} will be extended with MLPREFIX. However if a package name contains ${PN} with styles like lib${PN}, such extension will cause error. Use BPN in this case.
--- meta/recipes-devtools/python/python_2.6.6.bb | 4 ++-- meta/recipes-extended/augeas/augeas.inc | 12 ++++++------ meta/recipes-extended/gamin/gamin_0.1.10.bb | 8 ++++---- meta/recipes-support/attr/ea-acl.inc | 2 +- meta/recipes-support/sqlite/sqlite3.inc | 6 +++--- 5 files changed, 16 insertions(+), 16 deletions(-)
meta/recipes-devtools/python/python_2.6.6.bb +2 -2
@@ -116,8 +116,8 @@ FILES_${PN}-core += "${libdir}/python${PYTHON_MAJMIN}/sitecustomize.py" FILES_${PN}-core += "${bindir}/2to3" # package libpython2 -PACKAGES =+ "lib${PN}2" -FILES_lib${PN}2 = "${libdir}/libpython*.so.*" +PACKAGES =+ "lib${BPN}2" +FILES_lib${BPN}2 = "${libdir}/libpython*.so.*" # additional stuff -dev
meta/recipes-extended/augeas/augeas.inc +6 -6
@@ -11,15 +11,15 @@ DEPENDS = "readline" inherit autotools -PACKAGES =+ "${PN}-lenses lib${PN} lib${PN}-dev lib${PN}-dbg" +PACKAGES =+ "${PN}-lenses lib${BPN} lib${BPN}-dev lib${BPN}-dbg" FILES_${PN}-lenses = "${datadir}/augeas/lenses" -FILES_lib${PN} = "${libdir}/*.so.*" -FILES_lib${PN}-dev = "${libdir}/*.so ${libdir}/*.a ${libdir}/*.la ${includedir} ${libdir}/pkgconfig" -FILES_lib${PN}-dbg = "${libdir}/.debug" +FILES_lib${BPN} = "${libdir}/*.so.*" +FILES_lib${BPN}-dev = "${libdir}/*.so ${libdir}/*.a ${libdir}/*.la ${includedir} ${libdir}/pkgconfig" +FILES_lib${BPN}-dbg = "${libdir}/.debug" -RDEPENDS_lib${PN} += "${PN}-lenses" -RRECOMMENDS_lib${PN} += "${PN}" +RDEPENDS_lib${BPN} += "${PN}-lenses" +RRECOMMENDS_lib${BPN} += "${PN}" LEAD_SONAME = "libaugeas.so"
meta/recipes-extended/gamin/gamin_0.1.10.bb +4 -4
@@ -20,14 +20,14 @@ inherit autotools pkgconfig EXTRA_OECONF = "--without-python" -PACKAGES += "lib${PN} lib${PN}-dev" +PACKAGES += "lib${BPN} lib${BPN}-dev" FILES_${PN} = "${libexecdir}" FILES_${PN}-dbg += "${libexecdir}/.debug" -FILES_lib${PN} = "${libdir}/lib*.so.*" -FILES_lib${PN}-dev = "${includedir} ${libdir}/pkgconfig ${libdir}/lib*.la \ +FILES_lib${BPN} = "${libdir}/lib*.so.*" +FILES_lib${BPN}-dev = "${includedir} ${libdir}/pkgconfig ${libdir}/lib*.la \ ${libdir}/lib*.a ${libdir}/lib*.so" -RDEPENDS_lib${PN} = "${PN}" +RDEPENDS_lib${BPN} = "${PN}" LEAD_SONAME = "libgamin-1.so"
meta/recipes-support/attr/ea-acl.inc +1 -1
@@ -16,7 +16,7 @@ do_install () { oe_runmake install install-lib install-dev DIST_ROOT="${D}" } -PACKAGES =+ "lib${PN} lib${PN}-dev lib${PN}-doc" +PACKAGES =+ "lib${BPN} lib${BPN}-dev lib${BPN}-doc" FILES_lib${PN} = "${base_libdir}/lib*.so.*"
meta/recipes-support/sqlite/sqlite3.inc +3 -3
@@ -17,12 +17,12 @@ export config_TARGET_LINK = "${CCLD}" export config_TARGET_CFLAGS = "${CFLAGS}" export config_TARGET_LFLAGS = "${LDFLAGS}" -PACKAGES = "lib${PN} lib${PN}-dev lib${PN}-doc ${PN} ${PN}-dbg" +PACKAGES = "lib${BPN} lib${BPN}-dev lib${BPN}-doc ${PN} ${PN}-dbg" FILES_${PN} = "${bindir}/*" FILES_lib${PN} = "${libdir}/*.so.*" FILES_lib${PN}-dev = "${libdir}/*.a ${libdir}/*.la ${libdir}/*.so \ ${libdir}/pkgconfig ${includedir}" -FILES_lib${PN}-doc = "${docdir} ${mandir} ${infodir}" -AUTO_LIBNAME_PKGS = "lib${PN}" +FILES_lib${BPN}-doc = "${docdir} ${mandir} ${infodir}" +AUTO_LIBNAME_PKGS = "lib${BPN}" BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
1.7.1
PATCH 5/7 multilib: remove MULTILIB_PACKAGE_ARCHS variable
In reply to Dongxiao Xumultilib package and normal package shares the same architecture deploy folder, thus we do not need the ${MULTILIB_PACKAGE_ARCHS}.
--- meta/classes/package_rpm.bbclass | 13 ++----------- meta/classes/populate_sdk_rpm.bbclass | 3 --- meta/classes/rootfs_rpm.bbclass | 3 --- 3 files changed, 2 insertions(+), 17 deletions(-)
meta/classes/package_rpm.bbclass +2 -11
@@ -27,8 +27,7 @@ package_update_index_rpm () { # Update target packages base_archs="${PACKAGE_ARCHS}" - ml_archs="${MULTILIB_PACKAGE_ARCHS}" - package_update_index_rpm_common "${RPMCONF_TARGET_BASE}" base_archs ml_archs + package_update_index_rpm_common "${RPMCONF_TARGET_BASE}" base_archs # Update SDK packages base_archs="${SDK_PACKAGE_ARCHS}"
@@ -76,7 +75,7 @@ package_update_index_rpm_common () { # package_generate_rpm_conf () { # Update target packages - package_generate_rpm_conf_common "${RPMCONF_TARGET_BASE}" base_archs ml_archs + package_generate_rpm_conf_common "${RPMCONF_TARGET_BASE}" base_archs # Update SDK packages package_generate_rpm_conf_common "${RPMCONF_HOST_BASE}" base_archs
@@ -203,10 +202,6 @@ package_install_internal_rpm () { archvar=base_archs ml_pkg=$(echo ${pkg} | sed "s,^${MLPREFIX}\(.*\),\1,") - if [ "${ml_pkg}" != "${pkg}" ]; then - archvar=ml_archs - fi - pkg_name=$(resolve_package_rpm ${confbase}-${archvar}.conf ${ml_pkg}) if [ -z "$pkg_name" ]; then echo "Unable to find package $pkg ($ml_pkg)!"
@@ -223,10 +218,6 @@ package_install_internal_rpm () { archvar=base_archs ml_pkg=$(echo ${pkg} | sed "s,^${MLPREFIX}\(.*\),\1,") - if [ "${ml_pkg}" != "${pkg}" ]; then - archvar=ml_archs - fi - pkg_name=$(resolve_package_rpm ${confbase}-${archvar}.conf ${ml_pkg}) if [ -z "$pkg_name" ]; then echo "Unable to find package $pkg ($ml_pkg)!"
meta/classes/populate_sdk_rpm.bbclass +0 -3
@@ -115,7 +115,6 @@ EOF } python () { - ml_package_archs = "" multilibs = d.getVar('MULTILIBS', True) or "" for ext in multilibs.split(): eext = ext.split(':')
@@ -125,8 +124,6 @@ python () { localdata.setVar("OVERRIDES", overrides) # TEMP: OVERRIDES isn't working right localdata.setVar("DEFAULTTUNE", localdata.getVar("DEFAULTTUNE_virtclass-multilib-" + eext[1], False) or "") - ml_package_archs += localdata.getVar("PACKAGE_ARCHS", True) or "" #bb.note("ML_PACKAGE_ARCHS %s %s %s" % (eext[1], localdata.getVar("PACKAGE_ARCHS", True) or "(none)", overrides)) - bb.data.setVar('MULTILIB_PACKAGE_ARCHS', ml_package_archs, d) }
meta/classes/rootfs_rpm.bbclass +0 -3
@@ -209,7 +209,6 @@ python () { bb.data.setVar('RPM_PREPROCESS_COMMANDS', '', d) bb.data.setVar('RPM_POSTPROCESS_COMMANDS', '', d) - ml_package_archs = "" multilibs = d.getVar('MULTILIBS', True) or "" for ext in multilibs.split(): eext = ext.split(':')
@@ -219,7 +218,5 @@ python () { localdata.setVar("OVERRIDES", overrides) # TEMP: OVERRIDES isn't working right localdata.setVar("DEFAULTTUNE", localdata.getVar("DEFAULTTUNE_virtclass-multilib-" + eext[1], False) or "") - ml_package_archs += localdata.getVar("PACKAGE_ARCHS", True) or "" #bb.note("ML_PACKAGE_ARCHS %s %s %s" % (eext[1], localdata.getVar("PACKAGE_ARCHS", True) or "(none)", overrides)) - bb.data.setVar('MULTILIB_PACKAGE_ARCHS', ml_package_archs, d) }
Signature · 1 line
1.7.1
Re: [PATCH 5/7] multilib: remove MULTILIB_PACKAGE_ARCHS variable
Quoted 2 lines · Dongxiao Xu
multilib package and normal package shares the same architecture deploy folder, thus we do not need the ${MULTILIB_PACKAGE_ARCHS}.
This is incorrect behavior, at least for RPM. The folder should have the pkgarch specific to the tuning used to generate the multilib. (Behavior may be correct for deb/ipk.)
(If RPM sees two packages with the same .arch, it assumes that it's an upgrade operation. If the .arch is different then it goes into the multilib mode and will be able to install both packages together, assuming the conflict resolution results in a working -- non-conflicting -- install solution.)
--Mark
Quoted 94 lines
CC Mark Hatle <[email protected]>Signed-off-by Dongxiao Xu <[email protected]>--- meta/classes/package_rpm.bbclass | 13 ++----------- meta/classes/populate_sdk_rpm.bbclass | 3 --- meta/classes/rootfs_rpm.bbclass | 3 --- 3 files changed, 2 insertions(+), 17 deletions(-)meta/classes/package_rpm.bbclass +2
-11@@ -27,8 +27,7 @@ package_update_index_rpm () { # Update target packages base_archs="${PACKAGE_ARCHS}" - ml_archs="${MULTILIB_PACKAGE_ARCHS}" - package_update_index_rpm_common "${RPMCONF_TARGET_BASE}" base_archs ml_archs + package_update_index_rpm_common "${RPMCONF_TARGET_BASE}" base_archs # Update SDK packages base_archs="${SDK_PACKAGE_ARCHS}"@@ -76,7 +75,7 @@ package_update_index_rpm_common () { # package_generate_rpm_conf () { # Update target packages - package_generate_rpm_conf_common "${RPMCONF_TARGET_BASE}" base_archs ml_archs + package_generate_rpm_conf_common "${RPMCONF_TARGET_BASE}" base_archs # Update SDK packages package_generate_rpm_conf_common "${RPMCONF_HOST_BASE}" base_archs@@ -203,10 +202,6 @@ package_install_internal_rpm () { archvar=base_archs ml_pkg=$(echo ${pkg} | sed "s,^${MLPREFIX}\(.*\),\1,") - if [ "${ml_pkg}" != "${pkg}" ]; then - archvar=ml_archs - fi - pkg_name=$(resolve_package_rpm ${confbase}-${archvar}.conf ${ml_pkg}) if [ -z "$pkg_name" ]; then echo "Unable to find package $pkg ($ml_pkg)!"@@ -223,10 +218,6 @@ package_install_internal_rpm () { archvar=base_archs ml_pkg=$(echo ${pkg} | sed "s,^${MLPREFIX}\(.*\),\1,") - if [ "${ml_pkg}" != "${pkg}" ]; then - archvar=ml_archs - fi - pkg_name=$(resolve_package_rpm ${confbase}-${archvar}.conf ${ml_pkg}) if [ -z "$pkg_name" ]; then echo "Unable to find package $pkg ($ml_pkg)!"meta/classes/populate_sdk_rpm.bbclass +0
-3@@ -115,7 +115,6 @@ EOF } python () { - ml_package_archs = "" multilibs = d.getVar('MULTILIBS', True) or "" for ext in multilibs.split(): eext = ext.split(':')@@ -125,8 +124,6 @@ python () { localdata.setVar("OVERRIDES", overrides) # TEMP: OVERRIDES isn't working right localdata.setVar("DEFAULTTUNE", localdata.getVar("DEFAULTTUNE_virtclass-multilib-" + eext[1], False) or "") - ml_package_archs += localdata.getVar("PACKAGE_ARCHS", True) or "" #bb.note("ML_PACKAGE_ARCHS %s %s %s" % (eext[1], localdata.getVar("PACKAGE_ARCHS", True) or "(none)", overrides)) - bb.data.setVar('MULTILIB_PACKAGE_ARCHS', ml_package_archs, d) }meta/classes/rootfs_rpm.bbclass +0
-3@@ -209,7 +209,6 @@ python () { bb.data.setVar('RPM_PREPROCESS_COMMANDS', '', d) bb.data.setVar('RPM_POSTPROCESS_COMMANDS', '', d) - ml_package_archs = "" multilibs = d.getVar('MULTILIBS', True) or "" for ext in multilibs.split(): eext = ext.split(':')@@ -219,7 +218,5 @@ python () { localdata.setVar("OVERRIDES", overrides) # TEMP: OVERRIDES isn't working right localdata.setVar("DEFAULTTUNE", localdata.getVar("DEFAULTTUNE_virtclass-multilib-" + eext[1], False) or "") - ml_package_archs += localdata.getVar("PACKAGE_ARCHS", True) or "" #bb.note("ML_PACKAGE_ARCHS %s %s %s" % (eext[1], localdata.getVar("PACKAGE_ARCHS", True) or "(none)", overrides)) - bb.data.setVar('MULTILIB_PACKAGE_ARCHS', ml_package_archs, d) }
Re: [PATCH 5/7] multilib: remove MULTILIB_PACKAGE_ARCHS variable
Hi Mark,
Quoted 9 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Mark Hatle
Sent: Wednesday, August 03, 2011 11:32 PM
To: [email protected]
Subject: Re: [OE-core] [PATCH 5/7] multilib: removeMULTILIB_PACKAGE_ARCHSvariable
Quoted 7 lines
Quoted 2 lines · Dongxiao Xu
multilib package and normal package shares the same architecture deploy folder, thus we do not need the ${MULTILIB_PACKAGE_ARCHS}.
This is incorrect behavior, at least for RPM. The folder should have the pkgarch specific to the tuning used to generate the multilib. (Behavior may be correct for deb/ipk.)
Yes, ipk package name is different between normal package and multilib package (tagged with MLPREFIX), so even they are put in the same deploy folder, there should be no problem.
However for currently for rpm multilib, the normal package and multilib package are in the same folder with same name, thus one will override the other.
Take "initscript" as an example, the normal rpm package name is: "initscripts-1.0-r127.x86_64.rpm". However the lib32 version of initscript's rpm package is also named as "initscripts-1.0-r127.x86_64.rpm", putting in the same deploy folder: "tmp/deploy/rpm/x86_64".
I think this should be an issue to fix, also we need to think about how to co-work with ipk side.
Thanks,
Dongxiao
Quoted 122 lines
(If RPM sees two packages with the same .arch, it assumes that it's an upgrade operation. If the .arch is different then it goes into the multilib mode and will be able to install both packages together, assuming the conflict resolution results in a working -- non-conflicting -- install solution.)
--Mark
Quoted 14 lines
CC Mark Hatle <[email protected]>Signed-off-by Dongxiao Xu <[email protected]>--- meta/classes/package_rpm.bbclass | 13 ++----------- meta/classes/populate_sdk_rpm.bbclass | 3 --- meta/classes/rootfs_rpm.bbclass | 3 --- 3 files changed, 2 insertions(+), 17 deletions(-)meta/classes/package_rpm.bbclass +0
-0meta/classes/package_rpm.bbclass package_update_index_rpm () { · line 31
Quoted 5 lines
meta/classes/package_rpm.bbclass +0
-2@@ -27,8 +27,7 @@ package_update_index_rpm () { # Update target packages base_archs="${PACKAGE_ARCHS}" - ml_archs="${MULTILIB_PACKAGE_ARCHS}" - package_update_index_rpm_common "${RPMCONF_TARGET_BASE}"
base_archsml_archsmeta/classes/package_rpm.bbclass package_update_index_rpm () { · line 30
Quoted 1 line
meta/classes/package_rpm.bbclass +1
-0+ package_update_index_rpm_common "${RPMCONF_TARGET_BASE}"
base_archsmeta/classes/package_rpm.bbclass package_update_index_rpm_common () { # · line 78
Quoted 7 lines
meta/classes/package_rpm.bbclass +0
-1# Update SDK packages base_archs="${SDK_PACKAGE_ARCHS}"@@ -76,7 +75,7 @@ package_update_index_rpm_common () { # package_generate_rpm_conf () { # Update target packages - package_generate_rpm_conf_common "${RPMCONF_TARGET_BASE}"
base_archsml_archsmeta/classes/package_rpm.bbclass package_update_index_rpm_common () { # · line 77
Quoted 1 line
meta/classes/package_rpm.bbclass +1
-0+ package_generate_rpm_conf_common "${RPMCONF_TARGET_BASE}"
base_archsmeta/classes/package_rpm.bbclass package_update_index_rpm_common () { # · line 79
Quoted 3 lines
meta/classes/package_rpm.bbclass +0
-0# Update SDK packages package_generate_rpm_conf_common "${RPMCONF_HOST_BASE}"
base_archsmeta/classes/package_rpm.bbclass package_install_internal_rpm () { · line 205
Quoted 9 lines
meta/classes/package_rpm.bbclass +0
-4@@ -203,10 +202,6 @@ package_install_internal_rpm () { archvar=base_archs ml_pkg=$(echo ${pkg} | sed "s,^${MLPREFIX}\(.*\),\1,") - if [ "${ml_pkg}" != "${pkg}" ]; then - archvar=ml_archs - fi - pkg_name=$(resolve_package_rpm${confbase}-${archvar}.conf ${ml_pkg})
meta/classes/package_rpm.bbclass package_install_internal_rpm () { · line 221
Quoted 11 lines
meta/classes/package_rpm.bbclass +0
-4if [ -z "$pkg_name" ]; then echo "Unable to find package $pkg ($ml_pkg)!"@@ -223,10 +218,6 @@ package_install_internal_rpm () { archvar=base_archs ml_pkg=$(echo ${pkg} | sed "s,^${MLPREFIX}\(.*\),\1,") - if [ "${ml_pkg}" != "${pkg}" ]; then - archvar=ml_archs - fi - pkg_name=$(resolve_package_rpm ${confbase}-${archvar}.conf${ml_pkg})
Quoted 16 lines
meta/classes/package_rpm.bbclass +0
-0if [ -z "$pkg_name" ]; then echo "Unable to find package $pkg ($ml_pkg)!"meta/classes/populate_sdk_rpm.bbclass +0
-1@@ -115,7 +115,6 @@ EOF } python () { - ml_package_archs = "" multilibs = d.getVar('MULTILIBS', True) or "" for ext in multilibs.split(): eext = ext.split(':')meta/classes/populate_sdk_rpm.bbclass python () { · line 126
Quoted 3 lines
meta/classes/populate_sdk_rpm.bbclass +0
-0@@ -125,8 +124,6 @@ python () { localdata.setVar("OVERRIDES", overrides) # TEMP: OVERRIDES isn't working right localdata.setVar("DEFAULTTUNE",
localdata.getVar("DEFAULTTUNE_virtclass-multilib-" + eext[1], False)or "")meta/classes/populate_sdk_rpm.bbclass python () { · line 128
Quoted 1 line
meta/classes/populate_sdk_rpm.bbclass +0
-1- ml_package_archs += localdata.getVar("PACKAGE_ARCHS",True) or ""
meta/classes/populate_sdk_rpm.bbclass python () { · line 127
Quoted 1 line
meta/classes/populate_sdk_rpm.bbclass +0
-0#bb.note("ML_PACKAGE_ARCHS %s %s %s" % (eext[1],
localdata.getVar("PACKAGE_ARCHS", True)or "(none)", overrides))Quoted 16 lines
meta/classes/populate_sdk_rpm.bbclass +0
-1- bb.data.setVar('MULTILIB_PACKAGE_ARCHS', ml_package_archs, d) }(quoted diff) +0
-0b/meta/classes/rootfs_rpm.bbclass index 7c06064..c188d27 100644
meta/classes/rootfs_rpm.bbclass +0
-1@@ -209,7 +209,6 @@ python () { bb.data.setVar('RPM_PREPROCESS_COMMANDS', '', d) bb.data.setVar('RPM_POSTPROCESS_COMMANDS', '', d) - ml_package_archs = "" multilibs = d.getVar('MULTILIBS', True) or "" for ext in multilibs.split(): eext = ext.split(':')meta/classes/rootfs_rpm.bbclass python () { · line 220
Quoted 3 lines
meta/classes/rootfs_rpm.bbclass +0
-0@@ -219,7 +218,5 @@ python () { localdata.setVar("OVERRIDES", overrides) # TEMP: OVERRIDES isn't working right localdata.setVar("DEFAULTTUNE",
localdata.getVar("DEFAULTTUNE_virtclass-multilib-" + eext[1], False)or "")meta/classes/rootfs_rpm.bbclass python () { · line 222
Quoted 1 line
meta/classes/rootfs_rpm.bbclass +0
-1- ml_package_archs += localdata.getVar("PACKAGE_ARCHS",True) or ""
meta/classes/rootfs_rpm.bbclass python () { · line 221
Quoted 1 line
meta/classes/rootfs_rpm.bbclass +0
-0#bb.note("ML_PACKAGE_ARCHS %s %s %s" % (eext[1],
localdata.getVar("PACKAGE_ARCHS", True)or "(none)", overrides))meta/classes/rootfs_rpm.bbclass python () { · line 222
Quoted 2 lines
meta/classes/rootfs_rpm.bbclass +0
-1- bb.data.setVar('MULTILIB_PACKAGE_ARCHS', ml_package_archs, d) }_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Re: [PATCH 5/7] multilib: remove MULTILIB_PACKAGE_ARCHS variable
Quoted 33 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Xu, Dongxiao
Sent: Thursday, August 04, 2011 9:00 AM
To: Patches and discussions about the oe-core layer
Subject: Re: [OE-core] [PATCH 5/7] multilib: removeMULTILIB_PACKAGE_ARCHSvariableHi Mark,
Quoted 3 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On BehalfOf
Quoted 6 lines
Mark Hatle
Sent: Wednesday, August 03, 2011 11:32 PM
To: [email protected]
Subject: Re: [OE-core] [PATCH 5/7] multilib: removeMULTILIB_PACKAGE_ARCHSvariableQuoted 7 lines
Quoted 2 lines · Dongxiao Xu
multilib package and normal package shares the same architecture deploy folder, thus we do not need the ${MULTILIB_PACKAGE_ARCHS}.
This is incorrect behavior, at least for RPM. The folder should have the pkgarch specific to the tuning used to generate the multilib. (Behavior may be correct for deb/ipk.)
Yes, ipk package name is different between normal package and multilib package (tagged with MLPREFIX), so even they are put in the same deploy folder, there should be no problem.
Quoted 9 lines
However for currently for rpm multilib, the normal package and multilib package are in the same folder with same name, thus one will override the other.
Take "initscript" as an example, the normal rpm package name is:
"initscripts-1.0-r127.x86_64.rpm". However the lib32 version of initscript's rpm package is also named as "initscripts-1.0-r127.x86_64.rpm", putting in the same deploy folder: "tmp/deploy/rpm/x86_64".
Hi Mark,
Do you have updates on the above issue?
Thanks,
Dongxiao
Quoted 140 lines
I think this should be an issue to fix, also we need to think about how to co-work with ipk side.
Thanks,
DongxiaoQuoted 24 lines
(If RPM sees two packages with the same .arch, it assumes that it's an upgrade operation. If the .arch is different then it goes into the multilib mode and will be able to install both packages together, assuming the conflict resolution results in a working -- non-conflicting -- install solution.)
--Mark
Quoted 15 lines
CC Mark Hatle <[email protected]>Signed-off-by Dongxiao Xu <[email protected]>--- meta/classes/package_rpm.bbclass | 13 ++----------- meta/classes/populate_sdk_rpm.bbclass | 3 --- meta/classes/rootfs_rpm.bbclass | 3 --- 3 files changed, 2 insertions(+), 17 deletions(-)meta/classes/package_rpm.bbclass +0
-0@@ -27,8 +27,7 @@ package_update_index_rpm () {Quoted 6 lines
meta/classes/package_rpm.bbclass package_update_index_rpm () {
Quoted 4 lines
meta/classes/package_rpm.bbclass +0
-2# Update target packages base_archs="${PACKAGE_ARCHS}" - ml_archs="${MULTILIB_PACKAGE_ARCHS}" - package_update_index_rpm_common "${RPMCONF_TARGET_BASE}"
base_archsml_archsmeta/classes/package_rpm.bbclass package_update_index_rpm () { · line 30
Quoted 1 line
meta/classes/package_rpm.bbclass +1
-0+ package_update_index_rpm_common"${RPMCONF_TARGET_BASE}"
Quoted 10 lines
base_archsmeta/classes/package_rpm.bbclass package_update_index_rpm_common () { # · line 78
Quoted 7 lines
meta/classes/package_rpm.bbclass +0
-1# Update SDK packages base_archs="${SDK_PACKAGE_ARCHS}"@@ -76,7 +75,7 @@ package_update_index_rpm_common () { # package_generate_rpm_conf () { # Update target packages - package_generate_rpm_conf_common "${RPMCONF_TARGET_BASE}"
base_archsml_archsmeta/classes/package_rpm.bbclass package_update_index_rpm_common () { # · line 77
Quoted 1 line
meta/classes/package_rpm.bbclass +1
-0+ package_generate_rpm_conf_common"${RPMCONF_TARGET_BASE}"
Quoted 9 lines
base_archsmeta/classes/package_rpm.bbclass package_update_index_rpm_common () { # · line 79
Quoted 3 lines
meta/classes/package_rpm.bbclass +0
-0# Update SDK packages package_generate_rpm_conf_common "${RPMCONF_HOST_BASE}"
base_archsmeta/classes/package_rpm.bbclass package_install_internal_rpm () { · line 204
Quoted 4 lines
meta/classes/package_rpm.bbclass +0
-0@@ -203,10 +202,6 @@ package_install_internal_rpm () { archvar=base_archs ml_pkg=$(echo ${pkg} | sed"s,^${MLPREFIX}\(.*\),\1,")
Quoted 10 lines
meta/classes/package_rpm.bbclass package_install_internal_rpm () {
Quoted 5 lines
meta/classes/package_rpm.bbclass +0
-4- if [ "${ml_pkg}" != "${pkg}" ]; then - archvar=ml_archs - fi - pkg_name=$(resolve_package_rpm${confbase}-${archvar}.conf ${ml_pkg})
Quoted 4 lines
meta/classes/package_rpm.bbclass +0
-0if [ -z "$pkg_name" ]; then echo "Unable to find package $pkg ($ml_pkg)!"@@ -223,10 +218,6 @@ package_install_internal_rpm () {Quoted 7 lines
meta/classes/package_rpm.bbclass package_install_internal_rpm () {
Quoted 7 lines
meta/classes/package_rpm.bbclass +0
-4archvar=base_archs ml_pkg=$(echo ${pkg} | sed "s,^${MLPREFIX}\(.*\),\1,") - if [ "${ml_pkg}" != "${pkg}" ]; then - archvar=ml_archs - fi - pkg_name=$(resolve_package_rpm${confbase}-${archvar}.conf
Quoted 51 lines
${ml_pkg})
Quoted 16 lines
meta/classes/package_rpm.bbclass +0
-0if [ -z "$pkg_name" ]; then echo "Unable to find package $pkg ($ml_pkg)!"meta/classes/populate_sdk_rpm.bbclass +0
-1@@ -115,7 +115,6 @@ EOF } python () { - ml_package_archs = "" multilibs = d.getVar('MULTILIBS', True) or "" for ext in multilibs.split(): eext = ext.split(':')meta/classes/populate_sdk_rpm.bbclass python () { · line 126
Quoted 3 lines
meta/classes/populate_sdk_rpm.bbclass +0
-0@@ -125,8 +124,6 @@ python () { localdata.setVar("OVERRIDES", overrides) # TEMP: OVERRIDES isn't working right localdata.setVar("DEFAULTTUNE",
localdata.getVar("DEFAULTTUNE_virtclass-multilib-" + eext[1], False)or "")meta/classes/populate_sdk_rpm.bbclass python () { · line 128
Quoted 1 line
meta/classes/populate_sdk_rpm.bbclass +0
-1- ml_package_archs += localdata.getVar("PACKAGE_ARCHS",True) or ""
meta/classes/populate_sdk_rpm.bbclass python () { · line 127
Quoted 1 line
meta/classes/populate_sdk_rpm.bbclass +0
-0#bb.note("ML_PACKAGE_ARCHS %s %s %s" % (eext[1],
localdata.getVar("PACKAGE_ARCHS", True)or "(none)", overrides))Quoted 16 lines
meta/classes/populate_sdk_rpm.bbclass +0
-1- bb.data.setVar('MULTILIB_PACKAGE_ARCHS', ml_package_archs, d) }(quoted diff) +0
-0b/meta/classes/rootfs_rpm.bbclass index 7c06064..c188d27 100644
meta/classes/rootfs_rpm.bbclass +0
-1@@ -209,7 +209,6 @@ python () { bb.data.setVar('RPM_PREPROCESS_COMMANDS', '', d) bb.data.setVar('RPM_POSTPROCESS_COMMANDS', '', d) - ml_package_archs = "" multilibs = d.getVar('MULTILIBS', True) or "" for ext in multilibs.split(): eext = ext.split(':')meta/classes/rootfs_rpm.bbclass python () { · line 220
Quoted 3 lines
meta/classes/rootfs_rpm.bbclass +0
-0@@ -219,7 +218,5 @@ python () { localdata.setVar("OVERRIDES", overrides) # TEMP: OVERRIDES isn't working right localdata.setVar("DEFAULTTUNE",
localdata.getVar("DEFAULTTUNE_virtclass-multilib-" + eext[1], False)or "")meta/classes/rootfs_rpm.bbclass python () { · line 222
Quoted 1 line
meta/classes/rootfs_rpm.bbclass +0
-1- ml_package_archs += localdata.getVar("PACKAGE_ARCHS",True) or ""
meta/classes/rootfs_rpm.bbclass python () { · line 221
Quoted 1 line
meta/classes/rootfs_rpm.bbclass +0
-0#bb.note("ML_PACKAGE_ARCHS %s %s %s" % (eext[1],
localdata.getVar("PACKAGE_ARCHS", True)or "(none)", overrides))Quoted 8 lines
meta/classes/rootfs_rpm.bbclass python () { · line 222
Quoted 2 lines
meta/classes/rootfs_rpm.bbclass +0
-1- bb.data.setVar('MULTILIB_PACKAGE_ARCHS', ml_package_archs, d) }_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Re: [PATCH 5/7] multilib: remove MULTILIB_PACKAGE_ARCHS variable
Quoted 43 lines · Dongxiao
Quoted 33 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Xu, Dongxiao
Sent: Thursday, August 04, 2011 9:00 AM
To: Patches and discussions about the oe-core layer
Subject: Re: [OE-core] [PATCH 5/7] multilib: removeMULTILIB_PACKAGE_ARCHSvariableHi Mark,
Quoted 3 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On BehalfOf
Quoted 6 lines
Mark Hatle
Sent: Wednesday, August 03, 2011 11:32 PM
To: [email protected]
Subject: Re: [OE-core] [PATCH 5/7] multilib: removeMULTILIB_PACKAGE_ARCHSvariableQuoted 7 lines
Quoted 2 lines · Dongxiao Xu
multilib package and normal package shares the same architecture deploy folder, thus we do not need the ${MULTILIB_PACKAGE_ARCHS}.
This is incorrect behavior, at least for RPM. The folder should have the pkgarch specific to the tuning used to generate the multilib. (Behavior may be correct for deb/ipk.)
Yes, ipk package name is different between normal package and multilib package (tagged with MLPREFIX), so even they are put in the same deploy folder, there should be no problem.
Quoted 9 lines
However for currently for rpm multilib, the normal package and multilib package are in the same folder with same name, thus one will override the other.
Take "initscript" as an example, the normal rpm package name is:
"initscripts-1.0-r127.x86_64.rpm". However the lib32 version of initscript's rpm package is also named as "initscripts-1.0-r127.x86_64.rpm", putting in the same deploy folder: "tmp/deploy/rpm/x86_64".
Quoted 3 lines
Hi Mark,
Do you have updates on the above issue?
As presently implemented this is not a problem. The target (package) arch is used to select where the software is installed. So a 32-bit version, using i586 will be placed into tmp/deploy/rpm/i586, while a 64-bit version using x86_64 will be placed into tmp/deploy/rpm/x86_64.
It's important that the various package architectures are set appropriately for the various build system types. If on ipkg/deb we need to use the same arch as the "base" system that should be fine. (I'm not an expert there, so I really don't know if that's a good idea or not.) However, on RPM, the package manager fully expects various arches to be set.. and a compatibility set to be defined to control the way things are installed. (i.e. what is there now works, and I believe it is correct.)
--Mark
Quoted 144 lines
Thanks,
DongxiaoQuoted 140 lines
I think this should be an issue to fix, also we need to think about how to co-work with ipk side.
Thanks,
DongxiaoQuoted 24 lines
(If RPM sees two packages with the same .arch, it assumes that it's an upgrade operation. If the .arch is different then it goes into the multilib mode and will be able to install both packages together, assuming the conflict resolution results in a working -- non-conflicting -- install solution.)
--Mark
Quoted 15 lines
CC Mark Hatle <[email protected]>Signed-off-by Dongxiao Xu <[email protected]>--- meta/classes/package_rpm.bbclass | 13 ++----------- meta/classes/populate_sdk_rpm.bbclass | 3 --- meta/classes/rootfs_rpm.bbclass | 3 --- 3 files changed, 2 insertions(+), 17 deletions(-)meta/classes/package_rpm.bbclass +0
-0@@ -27,8 +27,7 @@ package_update_index_rpm () {Quoted 6 lines
meta/classes/package_rpm.bbclass package_update_index_rpm () {
Quoted 4 lines
meta/classes/package_rpm.bbclass +0
-2# Update target packages base_archs="${PACKAGE_ARCHS}" - ml_archs="${MULTILIB_PACKAGE_ARCHS}" - package_update_index_rpm_common "${RPMCONF_TARGET_BASE}"
base_archsml_archsmeta/classes/package_rpm.bbclass package_update_index_rpm () { · line 30
Quoted 1 line
meta/classes/package_rpm.bbclass +1
-0+ package_update_index_rpm_common"${RPMCONF_TARGET_BASE}"
Quoted 10 lines
base_archsmeta/classes/package_rpm.bbclass package_update_index_rpm_common () { # · line 78
Quoted 7 lines
meta/classes/package_rpm.bbclass +0
-1# Update SDK packages base_archs="${SDK_PACKAGE_ARCHS}"@@ -76,7 +75,7 @@ package_update_index_rpm_common () { # package_generate_rpm_conf () { # Update target packages - package_generate_rpm_conf_common "${RPMCONF_TARGET_BASE}"
base_archsml_archsmeta/classes/package_rpm.bbclass package_update_index_rpm_common () { # · line 77
Quoted 1 line
meta/classes/package_rpm.bbclass +1
-0+ package_generate_rpm_conf_common"${RPMCONF_TARGET_BASE}"
Quoted 9 lines
base_archsmeta/classes/package_rpm.bbclass package_update_index_rpm_common () { # · line 79
Quoted 3 lines
meta/classes/package_rpm.bbclass +0
-0# Update SDK packages package_generate_rpm_conf_common "${RPMCONF_HOST_BASE}"
base_archsmeta/classes/package_rpm.bbclass package_install_internal_rpm () { · line 204
Quoted 4 lines
meta/classes/package_rpm.bbclass +0
-0@@ -203,10 +202,6 @@ package_install_internal_rpm () { archvar=base_archs ml_pkg=$(echo ${pkg} | sed"s,^${MLPREFIX}\(.*\),\1,")
Quoted 10 lines
meta/classes/package_rpm.bbclass package_install_internal_rpm () {
Quoted 5 lines
meta/classes/package_rpm.bbclass +0
-4- if [ "${ml_pkg}" != "${pkg}" ]; then - archvar=ml_archs - fi - pkg_name=$(resolve_package_rpm${confbase}-${archvar}.conf ${ml_pkg})
Quoted 4 lines
meta/classes/package_rpm.bbclass +0
-0if [ -z "$pkg_name" ]; then echo "Unable to find package $pkg ($ml_pkg)!"@@ -223,10 +218,6 @@ package_install_internal_rpm () {Quoted 7 lines
meta/classes/package_rpm.bbclass package_install_internal_rpm () {
Quoted 7 lines
meta/classes/package_rpm.bbclass +0
-4archvar=base_archs ml_pkg=$(echo ${pkg} | sed "s,^${MLPREFIX}\(.*\),\1,") - if [ "${ml_pkg}" != "${pkg}" ]; then - archvar=ml_archs - fi - pkg_name=$(resolve_package_rpm${confbase}-${archvar}.conf
Quoted 51 lines
${ml_pkg})
Quoted 16 lines
meta/classes/package_rpm.bbclass +0
-0if [ -z "$pkg_name" ]; then echo "Unable to find package $pkg ($ml_pkg)!"meta/classes/populate_sdk_rpm.bbclass +0
-1@@ -115,7 +115,6 @@ EOF } python () { - ml_package_archs = "" multilibs = d.getVar('MULTILIBS', True) or "" for ext in multilibs.split(): eext = ext.split(':')meta/classes/populate_sdk_rpm.bbclass python () { · line 126
Quoted 3 lines
meta/classes/populate_sdk_rpm.bbclass +0
-0@@ -125,8 +124,6 @@ python () { localdata.setVar("OVERRIDES", overrides) # TEMP: OVERRIDES isn't working right localdata.setVar("DEFAULTTUNE",
localdata.getVar("DEFAULTTUNE_virtclass-multilib-" + eext[1], False)or "")meta/classes/populate_sdk_rpm.bbclass python () { · line 128
Quoted 1 line
meta/classes/populate_sdk_rpm.bbclass +0
-1- ml_package_archs += localdata.getVar("PACKAGE_ARCHS",True) or ""
meta/classes/populate_sdk_rpm.bbclass python () { · line 127
Quoted 1 line
meta/classes/populate_sdk_rpm.bbclass +0
-0#bb.note("ML_PACKAGE_ARCHS %s %s %s" % (eext[1],
localdata.getVar("PACKAGE_ARCHS", True)or "(none)", overrides))Quoted 16 lines
meta/classes/populate_sdk_rpm.bbclass +0
-1- bb.data.setVar('MULTILIB_PACKAGE_ARCHS', ml_package_archs, d) }(quoted diff) +0
-0b/meta/classes/rootfs_rpm.bbclass index 7c06064..c188d27 100644
meta/classes/rootfs_rpm.bbclass +0
-1@@ -209,7 +209,6 @@ python () { bb.data.setVar('RPM_PREPROCESS_COMMANDS', '', d) bb.data.setVar('RPM_POSTPROCESS_COMMANDS', '', d) - ml_package_archs = "" multilibs = d.getVar('MULTILIBS', True) or "" for ext in multilibs.split(): eext = ext.split(':')meta/classes/rootfs_rpm.bbclass python () { · line 220
Quoted 3 lines
meta/classes/rootfs_rpm.bbclass +0
-0@@ -219,7 +218,5 @@ python () { localdata.setVar("OVERRIDES", overrides) # TEMP: OVERRIDES isn't working right localdata.setVar("DEFAULTTUNE",
localdata.getVar("DEFAULTTUNE_virtclass-multilib-" + eext[1], False)or "")meta/classes/rootfs_rpm.bbclass python () { · line 222
Quoted 1 line
meta/classes/rootfs_rpm.bbclass +0
-1- ml_package_archs += localdata.getVar("PACKAGE_ARCHS",True) or ""
meta/classes/rootfs_rpm.bbclass python () { · line 221
Quoted 1 line
meta/classes/rootfs_rpm.bbclass +0
-0#bb.note("ML_PACKAGE_ARCHS %s %s %s" % (eext[1],
localdata.getVar("PACKAGE_ARCHS", True)or "(none)", overrides))Quoted 8 lines
meta/classes/rootfs_rpm.bbclass python () { · line 222
Quoted 2 lines
meta/classes/rootfs_rpm.bbclass +0
-1- bb.data.setVar('MULTILIB_PACKAGE_ARCHS', ml_package_archs, d) }_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
PATCH 6/7 package_rpm: fix strip_multilib function
In reply to Dongxiao XuThe previous logic could only strip MLPREFIX from the first element in an array, take an example, strip_multilib the [lib32-a lib32-b lib32-c] will result in [a lib32-b lib32-c]. This commit change it to strip all elements' multilib prefix.
--- meta/classes/package_rpm.bbclass | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
meta/classes/package_rpm.bbclass +2 -2
@@ -326,7 +326,7 @@ python write_specfile () { for ext in multilibs.split(): eext = ext.split(':') if len(eext) > 1 and eext[0] == 'multilib' and name and name.find(eext[1] + '-') == 0: - name = (eext[1] + '-').join(name.split(eext[1] + '-', 1)[1:]) + name = " ".join(name.split(eext[1] + '-')[1:]) return name # ml = bb.data.getVar("MLPREFIX", d, True)
@@ -720,7 +720,7 @@ python do_package_rpm () { def strip_multilib(name, d): ml = bb.data.getVar("MLPREFIX", d, True) if ml and name and len(ml) != 0 and name.find(ml) == 0: - return ml.join(name.split(ml, 1)[1:]) + return " ".join(name.split(ml)[1:]) return name workdir = bb.data.getVar('WORKDIR', d, True)
Signature · 1 line
1.7.1
Re: [PATCH 6/7] package_rpm: fix strip_multilib function
Quoted 16 lines · Dongxiao Xu
The previous logic could only strip MLPREFIX from the first element in an array, take an example,
strip_multilibthe [lib32-a lib32-b lib32-c] will result in [a lib32-b lib32-c]. This commit change it to strip all elements' multilib prefix.CC Mark Hatle <[email protected]>Signed-off-by Dongxiao Xu <[email protected]>--- meta/classes/package_rpm.bbclass | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)meta/classes/package_rpm.bbclass +0
-0
meta/classes/package_rpm.bbclass python write_specfile () { · line 329
Quoted 5 lines
meta/classes/package_rpm.bbclass +1
-1@@ -326,7 +326,7 @@ python write_specfile () { for ext in multilibs.split(): eext = ext.split(':') if len(eext) > 1 and eext[0] == 'multilib' and name and name.find(eext[1] + '-') == 0: - name = (eext[1] + '-').join(name.split(eext[1] + '-', 1)[1:]) + name = " ".join(name.split(eext[1] + '-')[1:])
This looks incorrect to me, with the " ".join, it's going to join multiple elements with a whitespace between them. The original code was written to work on one item at a time within the list of multilibs.
How well has this been tested? Since I don't have all of the context this very well might be correct within the current scope of the multilib implementation.
Quoted 12 lines
meta/classes/package_rpm.bbclass +1
-1return name # ml = bb.data.getVar("MLPREFIX", d, True)@@ -720,7 +720,7 @@ python do_package_rpm () { def strip_multilib(name, d): ml = bb.data.getVar("MLPREFIX", d, True) if ml and name and len(ml) != 0 and name.find(ml) == 0: - return ml.join(name.split(ml, 1)[1:]) + return " ".join(name.split(ml)[1:]) return name workdir = bb.data.getVar('WORKDIR', d, True)
Re: [PATCH 6/7] package_rpm: fix strip_multilib function
Hi Mark,
Quoted 37 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Mark Hatle
Sent: Wednesday, August 03, 2011 11:39 PM
To: [email protected]
Subject: Re: [OE-core] [PATCH 6/7]package_rpm: fixstrip_multilibfunctionQuoted 17 lines · Dongxiao Xu
The previous logic could only strip MLPREFIX from the first element in an array, take an example,
strip_multilibthe [lib32-a lib32-b lib32-c] will result in [a lib32-b lib32-c]. This commit change it to strip all elements' multilib prefix.CC Mark Hatle <[email protected]>Signed-off-by Dongxiao Xu <[email protected]>--- meta/classes/package_rpm.bbclass | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)meta/classes/package_rpm.bbclass +0
-0meta/classes/package_rpm.bbclass python write_specfile () { · line 328
Quoted 3 lines
meta/classes/package_rpm.bbclass +0
-0@@ -326,7 +326,7 @@ python write_specfile () { for ext in multilibs.split(): eext = ext.split(':') if len(eext) > 1 and eext[0] == 'multilib' and name and
name.find(eext[1] + '-')== 0:meta/classes/package_rpm.bbclass python write_specfile () { · line 329
Quoted 2 lines
meta/classes/package_rpm.bbclass +1
-1- name = (eext[1] + '-').join(name.split(eext[1] + '-', 1)[1:]) + name = " ".join(name.split(eext[1] + '-')[1:])This looks incorrect to me, with the " ".join, it's going to join multiple elements with a whitespace between them. The original code was written to work on one item at a time within the list of multilibs.
Quoted 2 lines
How well has this been tested? Since I don't have all of the context this very well might be correct within the current scope of the multilib implementation.
The original usage for this strip_multilib() is in translate_vers() function, which strip the MLPREFIX one by one and then write the value back into variable "d".
As in the last patch (PATCH 7/7), we move strip_multilib() out of translate_vers() to fix the package rename issue we met in multilib.
Therefore for our new usage, we need it to remove MLPREFIX for all elements in a list at one time, thus I changed its working style.
Thanks,
Dongxiao
Quoted 19 lines
meta/classes/package_rpm.bbclass python do_package_rpm () { · line 726
Quoted 13 lines
meta/classes/package_rpm.bbclass +1
-1return name # ml = bb.data.getVar("MLPREFIX", d, True)@@ -720,7 +720,7 @@ python do_package_rpm () { def strip_multilib(name, d): ml = bb.data.getVar("MLPREFIX", d, True) if ml and name and len(ml) != 0 and name.find(ml) == 0: - return ml.join(name.split(ml, 1)[1:]) + return " ".join(name.split(ml)[1:]) return name workdir = bb.data.getVar('WORKDIR', d, True)_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
PATCH 7/7 package_rpm: Fix package rename issue in multilib case
In reply to Dongxiao Xudo_package task will write information into pkgdata and do_package_write_rpm will read them out. Take lib32-dates as an example, one of its RDEPENDS is li32-gtk+, and PKG_lib32-gtk+ = "libgtk-2.0", these info is stored at:
tmp/pkgdata/x86_64-pokymllib32-linux/runtime/lib32-dates.
Function "mapping_rename_hook" in do_package_write_rpm is to handle those renamed packages. However before it executes, translate_vers has stripped the multilib prefix out, making it failed to find PKG_gtk+ value in pkgdata.
This commit moves the strip_multilib out of translate_vers and call it after "mapping_rename_hook".
--- meta/classes/package_rpm.bbclass | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-)
meta/classes/package_rpm.bbclass +7 -7
@@ -362,7 +362,7 @@ python write_specfile () { pv = subd['PKGV'] reppv = pv.replace('-', '+') ver = ver.replace(pv, reppv) - newdeps_dict[strip_multilib(dep, d)] = ver + newdeps_dict[dep] = ver depends = bb.utils.join_deps(newdeps_dict) bb.data.setVar(varname, depends.strip(), d)
@@ -484,12 +484,12 @@ python write_specfile () { # Map the dependencies into their final form bb.build.exec_func("mapping_rename_hook", localdata) - splitrdepends = bb.data.getVar('RDEPENDS', localdata, True) or "" - splitrrecommends = bb.data.getVar('RRECOMMENDS', localdata, True) or "" - splitrsuggests = bb.data.getVar('RSUGGESTS', localdata, True) or "" - splitrprovides = bb.data.getVar('RPROVIDES', localdata, True) or "" - splitrreplaces = bb.data.getVar('RREPLACES', localdata, True) or "" - splitrconflicts = bb.data.getVar('RCONFLICTS', localdata, True) or "" + splitrdepends = strip_multilib(bb.data.getVar('RDEPENDS', localdata, True), d) or "" + splitrrecommends = strip_multilib(bb.data.getVar('RRECOMMENDS', localdata, True), d) or "" + splitrsuggests = strip_multilib(bb.data.getVar('RSUGGESTS', localdata, True), d) or "" + splitrprovides = strip_multilib(bb.data.getVar('RPROVIDES', localdata, True), d) or "" + splitrreplaces = strip_multilib(bb.data.getVar('RREPLACES', localdata, True), d) or "" + splitrconflicts = strip_multilib(bb.data.getVar('RCONFLICTS', localdata, True), d) or "" splitrobsoletes = [] # Gather special src/first package data
Signature · 1 line
1.7.1
Quoted 7 lines · Dongxiao Xu
Hi Richard,
This pull request contains several multilib fixes, especially for rpm side. Please help to review and pull.
Current status for rpm sato is, most of the error dependency issues have been solved except one error while
do_rootfs:
Quoted 8 lines
error: Failed dependencies:
/bin/sh is needed by dbus-1.4.12-r0.x86_64 /bin/sh is needed by psplash-0.0+svnr424-r6.x86_64 /bin/sh is needed by portmap-6.0-r7.x86_64 /bin/sh is needed by dropbear-0.52-r3.x86_64 ...I am looking into that currently. Any suggestion would be appreciated.
The issue is due to nothing providing /bin/sh currently. /bin/sh is provide via the alternatives mechanism, we need a way to use this mechanism to tell RPM the required component is available. (A discussion is already going on within the oe-core mailing list, topic is "[PATCH 5/5] update-alternatives: Add alternatives as a runtime provide".
Quoted 41 lines
Thanks,
DongxiaoThe following changes since commit
07864a16baf18046b726ec72b688594a91c6e4b4:local.conf.sample: Fix TUNENAME reference (should be DEFAULTTUNE) (2011-08-02 14:40:54 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contribdxu4/ml
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dxu4/mlDongxiao Xu (7):
eglibc-locale: Specially handle FILES_eglibc-gconv for multilib
libxml-simple-perl: Use BBCLASSEXTEND insteand of *-native recipe
openjade-native: Change RDEPENDS of sgml-common-native
multilib: Use BPN instead of PN for style like lib${PN}
multilib: removeMULTILIB_PACKAGE_ARCHSvariable
package_rpm: fixstrip_multilibfunction
package_rpm: Fix package rename issue in multilib casemeta/classes/libc-package.bbclass | 2 +- meta/classes/package_rpm.bbclass | 31 +++++++------------- meta/classes/populate_sdk_rpm.bbclass | 3 -- meta/classes/rootfs_rpm.bbclass | 3 -- meta/recipes-core/eglibc/eglibc-locale.inc | 5 ++- .../openjade/openjade-native_1.3.2.bb | 2 +- .../perl/libxml-simple-perl-native_2.18.bb | 7 ---- .../perl/libxml-simple-perl_2.18.bb | 2 + meta/recipes-devtools/python/python_2.6.6.bb | 4 +- meta/recipes-extended/augeas/augeas.inc | 12 ++++---- meta/recipes-extended/gamin/gamin_0.1.10.bb | 8 ++-- meta/recipes-support/attr/ea-acl.inc | 2 +- meta/recipes-support/sqlite/sqlite3.inc | 6 ++-- 13 files changed, 35 insertions(+), 52 deletions(-) delete mode 100644 meta/recipes-devtools/perl/libxml-simple-perl-native_2.18.bb_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Quoted 7 lines · Dongxiao Xu
Hi Richard,
This pull request contains several multilib fixes, especially for rpm side. Please help to review and pull.
Current status for rpm sato is, most of the error dependency issues have been solved except one error while
do_rootfs:
Quoted 8 lines
error: Failed dependencies:
/bin/sh is needed by dbus-1.4.12-r0.x86_64 /bin/sh is needed by psplash-0.0+svnr424-r6.x86_64 /bin/sh is needed by portmap-6.0-r7.x86_64 /bin/sh is needed by dropbear-0.52-r3.x86_64 ...I am looking into that currently. Any suggestion would be appreciated.
There should be a fix merged for that issue now :)
Quoted 8 lines
The following changes since commit
07864a16baf18046b726ec72b688594a91c6e4b4:local.conf.sample: Fix TUNENAME reference (should be DEFAULTTUNE) (2011-08-02 14:40:54 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contribdxu4/ml
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dxu4/ml
Quoted 5 lines
Dongxiao Xu (7):
eglibc-locale: Specially handle FILES_eglibc-gconv for multilib
libxml-simple-perl: Use BBCLASSEXTEND insteand of *-native recipe
openjade-native: Change RDEPENDS of sgml-common-native
multilib: Use BPN instead of PN for style like lib${PN}
I've merged these.
Quoted 3 lines
multilib: remove
MULTILIB_PACKAGE_ARCHSvariable
package_rpm: fixstrip_multilibfunction
package_rpm: Fix package rename issue in multilib case
These look like they need more discussion with Mark.
Cheers,
Richard