Skip to contentSkip to conversation

Yocto 5.1 (styhead): S = ${WORKDIR} no longer supported

PATCH New Geoff Parker 1 participant 1 message May 29, 2024

lore
Share & tools
lore
#0 lore raw

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.

---
 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
index 874bd99..250df91 100644
@@ -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
index d75b7a0..4d1c0ea 100644
@@ -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
index 2f3cc97..266e40e 100644
@@ -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
index 063525d..a5bbe12 100644
@@ -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
index 48ec357..0160a2c 100644
@@ -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
index b2cd4d9..994c5bf 100644
@@ -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