toybox-inittab: unpack to S
PATCH 1/1 toybox-inittab: unpack to S
toybox-inittab does not unpack source files into S, so the archiver cannot see them. We copy them to a sub-directory in order to keep the originals available if running do_configure() (again) without first running do_unpack().
Signed-off-by Joe Slater <[email protected]>
--- .../recipes-core/toybox/toybox-inittab_0.8.2.bb | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-)
meta-oe/recipes-core/toybox/toybox-inittab_0.8.2.bb +9 -6
@@ -2,10 +2,12 @@ SUMMARY = "Toybox Inittab Configuration" LICENSE = "BSD-0-Clause" LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/BSD-0-Clause;md5=81eeb0083e31f11ab1e33ded846d521c" +# Unpack to ${S}/orig +# SRC_URI = "\ - file://inittab \ - file://rcK \ - file://rcS \ + file://inittab;subdir=${BP}/orig \ + file://rcK;subdir=${BP}/orig \ + file://rcS;subdir=${BP}/orig \ " PACKAGE_ARCH = "${MACHINE_ARCH}"
@@ -15,6 +17,9 @@ RCONFLICTS_${PN} = "\ sysvinit-inittab \ " +# Just being sure. +B = "${S}" + # most users may want to have getty enabled by default PACKAGECONFIG ??= "getty"
@@ -26,9 +31,7 @@ do_patch[noexec] = "1" do_configure() { # copy over files now to have a fresh start on each config - for file in ${SRC_URI}; do - cp ${WORKDIR}/${file/file:\/\//} ${S} - done + cp orig/* . for config in ${PACKAGECONFIG_CONFARGS}; do if [[ ${config} == "enable_getty" ]]; then
Signature · 1 line
2.17.1
I cant apply it without conflicts, can you rebase it on top of master-next for my sake and resend ?
Quoted 56 lines · Joe Slater
toybox-inittab does not unpack source files into S, so the archiver cannot see them. We copy them to a sub-directory in order to keep the originals available if running
do_configure()(again) without first runningdo_unpack().Signed-off-by Joe Slater <[email protected]>--- .../recipes-core/toybox/toybox-inittab_0.8.2.bb | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-)meta-oe/recipes-core/toybox/toybox-inittab_0.8.2.bb +9
-7@@ -2,10 +2,12 @@ SUMMARY = "Toybox Inittab Configuration" LICENSE = "BSD-0-Clause" LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/BSD-0-Clause;md5=81eeb0083e31f11ab1e33ded846d521c" +# Unpack to ${S}/orig +# SRC_URI = "\ - file://inittab \ - file://rcK \ - file://rcS \ + file://inittab;subdir=${BP}/orig \ + file://rcK;subdir=${BP}/orig \ + file://rcS;subdir=${BP}/orig \ " PACKAGE_ARCH = "${MACHINE_ARCH}"@@ -15,6 +17,9 @@ RCONFLICTS_${PN} = "\ sysvinit-inittab \ " +# Just being sure. +B = "${S}" + # most users may want to have getty enabled by default PACKAGECONFIG ??= "getty"@@ -26,9 +31,7 @@ do_patch[noexec] = "1" do_configure() { # copy over files now to have a fresh start on each config - for file in ${SRC_URI}; do - cp ${WORKDIR}/${file/file:\/\//} ${S} - done + cp orig/* . for config in ${PACKAGECONFIG_CONFARGS}; do if [[ ${config} == "enable_getty" ]]; then --2.17.1