summaryrefslogtreecommitdiff
path: root/recipes-support
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2020-09-22 18:05:09 -0500
committerJohn Klug <john.klug@multitech.com>2020-09-24 09:44:04 -0500
commit6c1f0a51c700839be1ecca52ab06ec890c13762f (patch)
treea3f6b2f5dabd4cd9303cd7c64b3b9fc6d3413464 /recipes-support
parent1c30425f849d500cf47bb8208adc17454526d9c2 (diff)
downloadmeta-mlinux-6c1f0a51c700839be1ecca52ab06ec890c13762f.tar.gz
meta-mlinux-6c1f0a51c700839be1ecca52ab06ec890c13762f.tar.bz2
meta-mlinux-6c1f0a51c700839be1ecca52ab06ec890c13762f.zip
Workaround for busybox patch -N failures, files missing from backup list
Diffstat (limited to 'recipes-support')
-rw-r--r--recipes-support/libpwquality/libpwquality_1.3.0.bb14
1 files changed, 8 insertions, 6 deletions
diff --git a/recipes-support/libpwquality/libpwquality_1.3.0.bb b/recipes-support/libpwquality/libpwquality_1.3.0.bb
index e5179c9..d7b04d4 100644
--- a/recipes-support/libpwquality/libpwquality_1.3.0.bb
+++ b/recipes-support/libpwquality/libpwquality_1.3.0.bb
@@ -83,12 +83,14 @@ pkg_postinst_${PN}() {
LOG="logger -s -p user.info -t opkg\ libpwquality"
cd /
fi
- logsave=$(patch -p1 -N < "$PAM_CONFIGURE" 2>&1 || true)
- if [[ -n ${logsave} ]] ; then
- ${LOG} "In directory $(pwd)"
- ${LOG} "patch -p1 -N < $PAM_CONFIGURE"
- ${LOG} "${PN} patch: ${logsave}"
-
+ # -N busybox option for patch is broken
+ if patch --dry-run -p1 < "$PAM_CONFIGURE" ; then
+ logsave=$(patch -p1 < "$PAM_CONFIGURE" 2>&1 || true)
+ if [[ -n ${logsave} ]] ; then
+ ${LOG} "In directory $(pwd)"
+ ${LOG} "patch -p1 < $PAM_CONFIGURE"
+ ${LOG} "${PN} patch: ${logsave}"
+ fi
fi
}