diff options
-rw-r--r-- | meta/recipes-devtools/rpm/rpm_5.4.9.bb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-devtools/rpm/rpm_5.4.9.bb b/meta/recipes-devtools/rpm/rpm_5.4.9.bb index 0b014b61c5..cdfb5ff4bc 100644 --- a/meta/recipes-devtools/rpm/rpm_5.4.9.bb +++ b/meta/recipes-devtools/rpm/rpm_5.4.9.bb | |||
@@ -223,6 +223,7 @@ FILES_${PN} = "${bindir}/rpm \ | |||
223 | ${libdir}/rpm/bin/wget \ | 223 | ${libdir}/rpm/bin/wget \ |
224 | /var/lib/rpm \ | 224 | /var/lib/rpm \ |
225 | /var/cache/rpm \ | 225 | /var/cache/rpm \ |
226 | ${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts \ | ||
226 | " | 227 | " |
227 | 228 | ||
228 | FILES_${PN}-dbg += "${libdir}/rpm/.debug \ | 229 | FILES_${PN}-dbg += "${libdir}/rpm/.debug \ |
@@ -374,6 +375,9 @@ do_configure() { | |||
374 | # | 375 | # |
375 | POSTINSTALL_INITPOSITION ?= "98" | 376 | POSTINSTALL_INITPOSITION ?= "98" |
376 | 377 | ||
378 | POSTLOG ?= "/var/log/postinstall.log" | ||
379 | REDIRECT_CMD = "${@base_contains('IMAGE_FEATURES', 'debug-tweaks', '>>${POSTLOG} 2>&1', '', d)}" | ||
380 | |||
377 | do_install_append() { | 381 | do_install_append() { |
378 | sed -i -e 's,%__check_files,#%%__check_files,' ${D}/${libdir}/rpm/macros | 382 | sed -i -e 's,%__check_files,#%%__check_files,' ${D}/${libdir}/rpm/macros |
379 | sed -i -e 's,%__scriptlet_requires,#%%__scriptlet_requires,' ${D}/${libdir}/rpm/macros | 383 | sed -i -e 's,%__scriptlet_requires,#%%__scriptlet_requires,' ${D}/${libdir}/rpm/macros |
@@ -459,7 +463,7 @@ do_install_append() { | |||
459 | for i in \`ls /etc/rpm-postinsts/\`; do | 463 | for i in \`ls /etc/rpm-postinsts/\`; do |
460 | i=/etc/rpm-postinsts/$i | 464 | i=/etc/rpm-postinsts/$i |
461 | echo "Running postinst $i..." | 465 | echo "Running postinst $i..." |
462 | if [ -f $i ] && $i; then | 466 | if [ -f $i ] && $i ${REDIRECT_CMD}; then |
463 | rm $i | 467 | rm $i |
464 | else | 468 | else |
465 | echo "ERROR: postinst $i failed." | 469 | echo "ERROR: postinst $i failed." |