diff options
-rw-r--r-- | meta/classes/package_rpm.bbclass | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index fa0d8c3457..7f425837be 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass | |||
@@ -354,6 +354,8 @@ package_install_internal_rpm () { | |||
354 | -D "__dbi_txn create nofsync private" \ | 354 | -D "__dbi_txn create nofsync private" \ |
355 | | grep -i 'Packageorigin' | cut -d : -f 2 > ${target_rootfs}/install/install_solution.manifest | 355 | | grep -i 'Packageorigin' | cut -d : -f 2 > ${target_rootfs}/install/install_solution.manifest |
356 | 356 | ||
357 | touch ${target_rootfs}/install/install_multilib_solution.manifest | ||
358 | |||
357 | if [ ! -z "${multilib_to_install}" ]; then | 359 | if [ ! -z "${multilib_to_install}" ]; then |
358 | for pkg in ${multilib_to_install} ; do | 360 | for pkg in ${multilib_to_install} ; do |
359 | echo "Processing $pkg..." | 361 | echo "Processing $pkg..." |
@@ -376,24 +378,25 @@ package_install_internal_rpm () { | |||
376 | fi | 378 | fi |
377 | echo $pkg_name >> ${target_rootfs}/install/install_multilib.manifest | 379 | echo $pkg_name >> ${target_rootfs}/install/install_multilib.manifest |
378 | done | 380 | done |
379 | fi | ||
380 | 381 | ||
381 | # multilib package installation | 382 | # multilib package installation |
382 | 383 | ||
383 | # Generate an install solution by doing a --justdb install, then recreate it with | 384 | # Generate an install solution by doing a --justdb install, then recreate it with |
384 | # an actual package install! | 385 | # an actual package install! |
385 | ${RPM} --predefine "_rpmds_sysinfo_path ${target_rootfs}/etc/rpm/sysinfo" \ | 386 | ${RPM} --predefine "_rpmds_sysinfo_path ${target_rootfs}/etc/rpm/sysinfo" \ |
386 | --predefine "_rpmrc_platform_path ${target_rootfs}/etc/rpm/platform" \ | 387 | --predefine "_rpmrc_platform_path ${target_rootfs}/etc/rpm/platform" \ |
387 | -D "_dbpath ${target_rootfs}/install" -D "`cat ${confbase}-ml_archs.macro`" \ | 388 | -D "_dbpath ${target_rootfs}/install" -D "`cat ${confbase}-ml_archs.macro`" \ |
388 | -D "__dbi_txn create nofsync" \ | 389 | -D "__dbi_txn create nofsync" \ |
389 | -U --justdb --noscripts --notriggers --noparentdirs --nolinktos --ignoresize \ | 390 | -U --justdb --noscripts --notriggers --noparentdirs --nolinktos --ignoresize \ |
390 | ${target_rootfs}/install/install_multilib.manifest | 391 | ${target_rootfs}/install/install_multilib.manifest |
392 | |||
393 | # Now that we have a solution, pull out a list of what to install... | ||
394 | echo "Manifest: ${target_rootfs}/install/install_multilib.manifest" | ||
395 | ${RPM} -D "_dbpath ${target_rootfs}/install" -qa --yaml \ | ||
396 | -D "__dbi_txn create nofsync private" \ | ||
397 | | grep -i 'Packageorigin' | cut -d : -f 2 > ${target_rootfs}/install/install_multilib_solution.manifest | ||
391 | 398 | ||
392 | # Now that we have a solution, pull out a list of what to install... | 399 | fi |
393 | echo "Manifest: ${target_rootfs}/install/install_multilib.manifest" | ||
394 | ${RPM} -D "_dbpath ${target_rootfs}/install" -qa --yaml \ | ||
395 | -D "__dbi_txn create nofsync private" \ | ||
396 | | grep -i 'Packageorigin' | cut -d : -f 2 > ${target_rootfs}/install/install_multilib_solution.manifest | ||
397 | 400 | ||
398 | cat ${target_rootfs}/install/install_solution.manifest > ${target_rootfs}/install/total_solution.manifest | 401 | cat ${target_rootfs}/install/install_solution.manifest > ${target_rootfs}/install/total_solution.manifest |
399 | cat ${target_rootfs}/install/install_multilib_solution.manifest >> ${target_rootfs}/install/total_solution.manifest | 402 | cat ${target_rootfs}/install/install_multilib_solution.manifest >> ${target_rootfs}/install/total_solution.manifest |