Yocto 5.1 (styhead): S = ${WORKDIR} no longer supported
PATCH 1/1 Yocto 5.1 (styhead): S = ${WORKDIR} no longer supported
From: Geoff Parker <[email protected]>
Fix errors during parse due to S = ${WORKDIR}
https://docs.yoctoproject.org/next/migration-guides/migration-5.1.html#workdir-changes :
S = ${WORKDIR} no longer supported
If a recipe has S set to be WORKDIR, this is no longer supported, and an error will be issued. The recipe should be changed to:
S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"
Any WORKDIR references where files from SRC_URI are referenced should be changed to S. These are commonly in do_compile, do_compile, do_install and LIC_FILES_CHKSUM.
Signed-off-by Geoff Parker <[email protected]>
--- recipes-core/ecj/ecj-bootstrap-native.bb | 3 ++- recipes-core/ecj/ecj-initial-native.bb | 3 ++- recipes-core/ecj/libecj-bootstrap.inc | 3 ++- recipes-core/jikes/jikes-initial-native.bb | 3 ++- recipes-core/jlex/jlex_1.2.6.bb | 3 ++- recipes-core/junit/junit4_4.3.1.bb | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-)
recipes-core/ecj/ecj-bootstrap-native.bb +2 -1
@@ -18,7 +18,8 @@ PROVIDES = "virtual/javac-native" SRC_URI = "file://ecj.in" -S = "${WORKDIR}" +S = "${WORKDIR}/sources" +UNPACKDIR = "${S}" JAR = "ecj-bootstrap.jar"
recipes-core/ecj/ecj-initial-native.bb +2 -1
@@ -12,7 +12,8 @@ DEPENDS = "libecj-bootstrap-native" SRC_URI = "file://ecj-initial.in" -S = "${WORKDIR}" +S = "${WORKDIR}/sources" +UNPACKDIR = "${S}" inherit native
recipes-core/ecj/libecj-bootstrap.inc +2 -1
@@ -11,7 +11,8 @@ INC_PR = "r5" inherit java native -S = "${WORKDIR}" +S = "${WORKDIR}/sources" +UNPACKDIR = "${S}" JAR = "ecj-bootstrap-${PV}.jar"
recipes-core/jikes/jikes-initial-native.bb +2 -1
@@ -3,7 +3,8 @@ LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" DEPENDS = "jikes-native classpath-initial-native" -S = "${WORKDIR}" +S = "${WORKDIR}/sources" +UNPACKDIR = "${S}" inherit native
recipes-core/jlex/jlex_1.2.6.bb +2 -1
@@ -16,7 +16,8 @@ SRC_URI = "http://www.cs.princeton.edu/~appel/modern/java/JLex/Archive/${PV}/Mai file://jlex \ " -S = "${WORKDIR}" +S = "${WORKDIR}/sources" +UNPACKDIR = "${S}" do_configure() { sed -i \
recipes-core/junit/junit4_4.3.1.bb +2 -1
@@ -6,7 +6,8 @@ HOMEPAGE = "http://www.junit.org" SRC_URI = "http://downloads.sourceforge.net/junit/junit-${PV}-src.jar" -S = "${WORKDIR}" +S = "${WORKDIR}/sources" +UNPACKDIR = "${S}" inherit java-library
Signature · 1 line
2.30.2