From: Mark Hatle <mark.hatle@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/3] package/rootfs_rpm: Implement RPM multilib package handling
Date: Tue, 26 Jul 2011 22:18:55 -0500 [thread overview]
Message-ID: <4E2F839F.70005@windriver.com> (raw)
In-Reply-To: <bfe5838302fbcfe989e3c26c9e04c927c4755e65.1311720062.git.richard.purdie@linuxfoundation.org>
We found a minor bug in the patch since it was first sent out:
On 7/26/11 5:50 PM, Richard Purdie wrote:
> From: Mark Hatle <mark.hatle@windriver.com>
>
> This is a first pass at adding multilib support to the RPM package
> and image handling code.
>
> Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
> ---
> meta/classes/package_rpm.bbclass | 229 ++++++++++++++++++++++++--------------
> meta/classes/rootfs_rpm.bbclass | 17 +++-
> 2 files changed, 160 insertions(+), 86 deletions(-)
>
> diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
> index 2cc5742..05f3929 100644
> --- a/meta/classes/package_rpm.bbclass
> +++ b/meta/classes/package_rpm.bbclass
> @@ -21,67 +21,71 @@ RPMCONF_HOST_BASE = "${DEPLOY_DIR_RPM}/solvedb-sdk"
> # Update the Packages depsolver db in ${DEPLOY_DIR_RPM}
> #
> package_update_index_rpm () {
> - rpmarchs="${PACKAGE_ARCHS}"
> -
> if [ ! -z "${DEPLOY_KEEP_PACKAGES}" ]; then
> return
> fi
>
> - packagedirs=""
> - packagedirs_sdk=""
> - for arch in $rpmarchs ; do
> - sdkarch=`echo $arch | sed -e 's/${HOST_ARCH}/${SDK_ARCH}/'`
> - extension="-nativesdk"
> - if [ "$sdkarch" = "all" -o "$sdkarch" = "any" -o "$sdkarch" = "noarch" ]; then
> - extension=""
> - fi
> - packagedirs="${DEPLOY_DIR_RPM}/$arch $packagedirs"
> - packagedirs_sdk="${DEPLOY_DIR_RPM}/$sdkarch$extension $packagedirs_sdk"
> + base_package_archs="${PACKAGE_ARCHS}"
> + ml_package_archs="${MULTILIB_PACKAGE_ARCHS}"
> +
> + for archvar in base_package_archs ml_package_archs; do
> + eval archs=\${${archvar}}
> + packagedirs=""
> + packagedirs_sdk=""
> + for arch in $archs; do
> + sdkarch=`echo $arch | sed -e 's/${HOST_ARCH}/${SDK_ARCH}/'`
> + extension="-nativesdk"
> + if [ "$sdkarch" = "all" -o "$sdkarch" = "any" -o "$sdkarch" = "noarch" ]; then
> + extension=""
> + fi
> + packagedirs="${DEPLOY_DIR_RPM}/$arch $packagedirs"
> + packagedirs_sdk="${DEPLOY_DIR_RPM}/$sdkarch$extension $packagedirs_sdk"
>
> - rm -rf ${DEPLOY_DIR_RPM}/$arch/solvedb
> - rm -rf ${DEPLOY_DIR_RPM}/$sdkarch$extension/solvedb
> - done
> + rm -rf ${DEPLOY_DIR_RPM}/$arch/solvedb
> + rm -rf ${DEPLOY_DIR_RPM}/$sdkarch$extension/solvedb
> + done
>
> - cat /dev/null > ${RPMCONF_TARGET_BASE}.conf
> - for pkgdir in $packagedirs; do
> - if [ -e $pkgdir/ ]; then
> - echo "Generating solve db for $pkgdir..."
> - echo $pkgdir/solvedb >> ${RPMCONF_TARGET_BASE}.conf
> - if [ -d $pkgdir/solvedb ]; then
> - # We've already processed this and it's a duplicate
> - continue
> + cat /dev/null > ${RPMCONF_TARGET_BASE}-${archvar}.conf
> + for pkgdir in $packagedirs; do
> + if [ -e $pkgdir/ ]; then
> + echo "Generating solve db for $pkgdir..."
> + echo $pkgdir/solvedb >> ${RPMCONF_TARGET_BASE}-${archvar}.conf
> + if [ -d $pkgdir/solvedb ]; then
> + # We've already processed this and it's a duplicate
> + continue
> + fi
> + mkdir -p $pkgdir/solvedb
> + echo "# Dynamically generated solve manifest" >> $pkgdir/solvedb/manifest
> + find $pkgdir -maxdepth 1 -type f >> $pkgdir/solvedb/manifest
> + ${RPM} -i --replacepkgs --replacefiles --oldpackage \
> + -D "_dbpath $pkgdir/solvedb" --justdb \
> + --noaid --nodeps --noorder --noscripts --notriggers --noparentdirs --nolinktos --stats \
> + --ignoresize --nosignature --nodigest \
> + -D "__dbi_txn create nofsync" \
> + $pkgdir/solvedb/manifest
> fi
> - mkdir -p $pkgdir/solvedb
> - echo "# Dynamically generated solve manifest" >> $pkgdir/solvedb/manifest
> - find $pkgdir -maxdepth 1 -type f >> $pkgdir/solvedb/manifest
> - ${RPM} -i --replacepkgs --replacefiles --oldpackage \
> - -D "_dbpath $pkgdir/solvedb" --justdb \
> - --noaid --nodeps --noorder --noscripts --notriggers --noparentdirs --nolinktos --stats \
> - --ignoresize --nosignature --nodigest \
> - -D "__dbi_txn create nofsync" \
> - $pkgdir/solvedb/manifest
> - fi
> - done
> + done
>
> - cat /dev/null > ${RPMCONF_HOST_BASE}.conf
> - for pkgdir in $packagedirs_sdk; do
> - if [ -e $pkgdir/ ]; then
> - echo "Generating solve db for $pkgdir..."
> - echo $pkgdir/solvedb >> ${RPMCONF_HOST_BASE}.conf
> - if [ -d $pkgdir/solvedb ]; then
> - # We've already processed this and it's a duplicate
> - continue
> - fi
> - mkdir -p $pkgdir/solvedb
> - echo "# Dynamically generated solve manifest" >> $pkgdir/solvedb/manifest
> - find $pkgdir -maxdepth 1 -type f >> $pkgdir/solvedb/manifest
> - ${RPM} -i --replacepkgs --replacefiles --oldpackage \
> - -D "_dbpath $pkgdir/solvedb" --justdb \
> - --noaid --nodeps --noorder --noscripts --notriggers --noparentdirs --nolinktos --stats \
> - --ignoresize --nosignature --nodigest \
> - -D "__dbi_txn create nofsync" \
> - $pkgdir/solvedb/manifest
> - fi
> + cat /dev/null > ${RPMCONF_HOST_BASE}.conf
The above line should be:
cat /dev/null > ${RPMCONF_HOST_BASE}-${archvar}.conf
....
next prev parent reply other threads:[~2011-07-27 3:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-26 22:50 [PATCH 0/3] Multilib image/package backend enablement Richard Purdie
2011-07-26 22:50 ` [PATCH 1/3] package/rootfs_rpm: Implement RPM multilib package handling Richard Purdie
2011-07-27 3:18 ` Mark Hatle [this message]
2011-07-26 22:50 ` [PATCH 2/3] package(rootfs)_ipk.bbclass: support multilib in opkg backend Richard Purdie
2011-07-30 16:23 ` Khem Raj
2011-08-01 1:12 ` Lu, Lianhao
2011-07-26 22:50 ` [PATCH 3/3] image.bbclass: Added variables for multilib support Richard Purdie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E2F839F.70005@windriver.com \
--to=mark.hatle@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.