Skip to contentSkip to conversation

Updates to support UNPACKDIR

PATCH New Ryan Eatmon 1 participant 4 messages May 31, 2024

lore
Share & tools
lore
#0 lore raw

v3 cover Updates to support UNPACKDIR

These are the patches needed to support the change to UNPACKDIR. I am not going to list what changed from v2 to v3 because it was pretty much a full throw out and redo once things solidified, but I still wanted to call this v3 since it is my third attempt.

Ryan Eatmon (3):
recipes: Update to UNPACKDIR for files going into WORKDIR
recipes: Switch away from S = WORKDIR
websocketd: Add required GO_SRCURI_DESTSUFFIX

 .../recipes-core/matrix/matrix-gui_2.0.bb     | 14 +++++-----
 .../matrix/matrix-lighttpd-config.bb          |  5 ++--
 .../bootstrap-initrd/bootstrap-initrd_1.0.bb  |  3 ++-
 .../bt-enable/bt-enable.bb                    |  3 ++-
 .../initscript-telnetd/initscript-telnetd.bb  |  3 ++-
 .../systemd-telnetd/systemd-telnetd.bb        |  5 ++--
 .../arago-gpl-notice/arago-gpl-notice.bb      |  5 ++--
 .../busybox/softap-udhcpd-config_1.0.bb       |  3 ++-
 .../recipes-core/psplash/psplash_git.bbappend |  2 +-
 .../recipes-core/systemd/systemd_%.bbappend   | 26 +++++++++----------
 .../recipes-core/thermal-init/thermal-init.bb |  2 +-
 .../recipes-core/udev/eudev_%.bbappend        |  4 +--
 .../recipes-qt/qt5/qtbase-conf_1.0.bb         |  4 +--
 .../recipes-qt/qt5/qtbase_%.bbappend          |  2 +-
 .../strongswan/strongswan_%.bbappend          |  2 +-
 .../tisdk-readme/tisdk-readme.bb              |  3 ++-
 .../recipes-tisdk/tisdk-uenv/tisdk-uenv.bb    |  3 ++-
 .../recipes-core/llvm/llvm-common.bb          |  4 +--
 .../opkg/opkg-bash-completion.bb              |  2 +-
 .../websocketd/websocketd_0.4.1.bb            |  2 +-
 .../tslib/ts-calibrate-init_1.0.bb            |  5 ++--
 .../netopeer2-server/netopeer2-server_git.bb  |  4 +--
 .../nw-configurator/nw-configurator.bb        |  5 ++--
 .../recipes-sysrepo/sysrepo/sysrepo_git.bb    |  4 +--
 24 files changed, 63 insertions(+), 52 deletions(-)
Signature · 1 line
2.17.1
#1 lore raw

PATCH v3 1/3 recipes: Update to UNPACKDIR for files going into WORKDIR

For recipes that have file:// in SRC_URI, the files are placed into WORKDIR. Moving forward [1], that directory will be UNPACKDIR and eventually move to somewhere other than WORKDIR. So update all references to WORKDIR that are looking for these file to use UNPACKDIR instead.

[1] https://git.openembedded.org/openembedded-core/commit/?id=e022d62ba917790af2121da57646271ef17c03fa

---
 .../recipes-core/matrix/matrix-gui_2.0.bb     | 14 +++++-----
 .../recipes-core/psplash/psplash_git.bbappend |  2 +-
 .../recipes-core/systemd/systemd_%.bbappend   | 26 +++++++++----------
 .../recipes-core/thermal-init/thermal-init.bb |  2 +-
 .../recipes-core/udev/eudev_%.bbappend        |  4 +--
 .../recipes-qt/qt5/qtbase-conf_1.0.bb         |  4 +--
 .../recipes-qt/qt5/qtbase_%.bbappend          |  2 +-
 .../strongswan/strongswan_%.bbappend          |  2 +-
 .../recipes-core/llvm/llvm-common.bb          |  4 +--
 .../opkg/opkg-bash-completion.bb              |  2 +-
 .../netopeer2-server/netopeer2-server_git.bb  |  4 +--
 .../recipes-sysrepo/sysrepo/sysrepo_git.bb    |  4 +--
 12 files changed, 35 insertions(+), 35 deletions(-)
meta-arago-demos/recipes-core/matrix/matrix-gui_2.0.bb +7 -7
index fbff1671..1c1b3bbc 100644
@@ -42,22 +42,22 @@ do_install(){
 	cp -rfL ${S}/* ${D}${MATRIX_WEB_DIR}
 
 	# Install our php.ini file
-	install -m 0644 ${WORKDIR}/php.ini ${D}${MATRIX_BASE_DIR}/
+	install -m 0644 ${UNPACKDIR}/php.ini ${D}${MATRIX_BASE_DIR}/
 
 	# Set the proper path in the init script
-	sed -i -e s=__MATRIX_WEB_DIR__=${MATRIX_WEB_DIR}= ${WORKDIR}/${MATRIX_INITSCRIPT}
-	sed -i -e "s/__MATRIX_FLAGS__/\"${MATRIX_FLAGS}\"/" ${WORKDIR}/${MATRIX_INITSCRIPT}
-	sed -i -e "s/__SWITCH_FOREGROUND_VT__/${SWITCH_FOREGROUND_VT}/" ${WORKDIR}/${MATRIX_INITSCRIPT}
+	sed -i -e s=__MATRIX_WEB_DIR__=${MATRIX_WEB_DIR}= ${UNPACKDIR}/${MATRIX_INITSCRIPT}
+	sed -i -e "s/__MATRIX_FLAGS__/\"${MATRIX_FLAGS}\"/" ${UNPACKDIR}/${MATRIX_INITSCRIPT}
+	sed -i -e "s/__SWITCH_FOREGROUND_VT__/${SWITCH_FOREGROUND_VT}/" ${UNPACKDIR}/${MATRIX_INITSCRIPT}
 
 	# Install the script
 	if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
 		install -d ${D}${sysconfdir}/init.d
-		install -m 0755 ${WORKDIR}/${MATRIX_INITSCRIPT} ${D}${sysconfdir}/init.d/matrix-gui-2.0
+		install -m 0755 ${UNPACKDIR}/${MATRIX_INITSCRIPT} ${D}${sysconfdir}/init.d/matrix-gui-2.0
 	fi
 	if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
 		install -d ${D}${systemd_system_unitdir}
-		install -m 0644 ${WORKDIR}/matrix-gui-2.0.service ${D}${systemd_system_unitdir}
-		install -m 0755 ${WORKDIR}/${MATRIX_INITSCRIPT} ${D}${MATRIX_BASE_DIR}/matrix-gui-2.0
+		install -m 0644 ${UNPACKDIR}/matrix-gui-2.0.service ${D}${systemd_system_unitdir}
+		install -m 0755 ${UNPACKDIR}/${MATRIX_INITSCRIPT} ${D}${MATRIX_BASE_DIR}/matrix-gui-2.0
 	fi
 }
 
meta-arago-distro/recipes-core/psplash/psplash_git.bbappend +1 -1
index 652c71f3..952f13fd 100644
@@ -11,5 +11,5 @@ SRC_URI += "file://psplash-18bpp.patch                      \
 "
 
 do_configure:prepend() {
-    install -m 0644 ${WORKDIR}/psplash-bar-img.h ${S}/
+    install -m 0644 ${UNPACKDIR}/psplash-bar-img.h ${S}/
 }
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +13 -13
index 428a16f7..424f39da 100644
@@ -20,20 +20,20 @@ SRC_URI:append = " \
 
 do_install:append() {
     install -d ${D}${sysconfdir}/udev/rules.d/
-    install -m 0644 ${WORKDIR}/local.rules ${D}${sysconfdir}/udev/rules.d/
+    install -m 0644 ${UNPACKDIR}/local.rules ${D}${sysconfdir}/udev/rules.d/
 
     install -d ${D}${sysconfdir}/udev/scripts/
-    install -m 0755 ${WORKDIR}/usb1-rules.sh ${D}${sysconfdir}/udev/scripts/
-    install -m 0755 ${WORKDIR}/usb2-rules.sh ${D}${sysconfdir}/udev/scripts/
+    install -m 0755 ${UNPACKDIR}/usb1-rules.sh ${D}${sysconfdir}/udev/scripts/
+    install -m 0755 ${UNPACKDIR}/usb2-rules.sh ${D}${sysconfdir}/udev/scripts/
 
     install -d ${D}${sysconfdir}/systemd/network/
-    install -m 0644 ${WORKDIR}/10-eth.network ${D}${sysconfdir}/systemd/network/
-    install -m 0644 ${WORKDIR}/15-eth.network ${D}${sysconfdir}/systemd/network/
-    install -m 0644 ${WORKDIR}/30-wlan.network ${D}${sysconfdir}/systemd/network/
-    install -m 0644 ${WORKDIR}/60-usb.network ${D}${sysconfdir}/systemd/network/
+    install -m 0644 ${UNPACKDIR}/10-eth.network ${D}${sysconfdir}/systemd/network/
+    install -m 0644 ${UNPACKDIR}/15-eth.network ${D}${sysconfdir}/systemd/network/
+    install -m 0644 ${UNPACKDIR}/30-wlan.network ${D}${sysconfdir}/systemd/network/
+    install -m 0644 ${UNPACKDIR}/60-usb.network ${D}${sysconfdir}/systemd/network/
 
     install -d ${D}${sysconfdir}/systemd/system/sysinit.target.wants
-    install -m 0644 ${WORKDIR}/sync-clocks.service ${D}${sysconfdir}/systemd/system/
+    install -m 0644 ${UNPACKDIR}/sync-clocks.service ${D}${sysconfdir}/systemd/system/
     ln -sf ../sync-clocks.service ${D}${sysconfdir}/systemd/system/sysinit.target.wants/sync-clocks.service
 
     # Allow automount from udev
@@ -45,13 +45,13 @@ do_install:append() {
     sed -i 's/PrivateNetwork=yes/PrivateNetwork=no/g' ${D}${sysconfdir}/systemd/system/systemd-hostnamed.service
 
     install -d ${D}${sysconfdir}/systemd/
-    install -m 0644 ${WORKDIR}/timesyncd.conf ${D}${sysconfdir}/systemd/
+    install -m 0644 ${UNPACKDIR}/timesyncd.conf ${D}${sysconfdir}/systemd/
 
     install -d ${D}${libdir}/udev/rules.d
-    install -m 0644 ${WORKDIR}/37-can-j7.rules ${D}${libdir}/udev/rules.d/
-    install -m 0644 ${WORKDIR}/37-can-am62.rules ${D}${libdir}/udev/rules.d/
-    install -m 0644 ${WORKDIR}/37-can-dra7.rules ${D}${libdir}/udev/rules.d/
-    install -m 0644 ${WORKDIR}/37-can-ti33x.rules ${D}${libdir}/udev/rules.d/
+    install -m 0644 ${UNPACKDIR}/37-can-j7.rules ${D}${libdir}/udev/rules.d/
+    install -m 0644 ${UNPACKDIR}/37-can-am62.rules ${D}${libdir}/udev/rules.d/
+    install -m 0644 ${UNPACKDIR}/37-can-dra7.rules ${D}${libdir}/udev/rules.d/
+    install -m 0644 ${UNPACKDIR}/37-can-ti33x.rules ${D}${libdir}/udev/rules.d/
 }
 
 FILES:udev += " \
meta-arago-distro/recipes-core/thermal-init/thermal-init.bb +1 -1
index 56f1ba1a..4f3aa217 100644
@@ -13,7 +13,7 @@ inherit update-rc.d
 
 do_install() {
     install -d ${D}${sysconfdir}/init.d
-    install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
+    install -m 0755 ${UNPACKDIR}/init ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
 }
 
 FILES:${PN} = "${sysconfdir} ${bindir}"
meta-arago-distro/recipes-core/udev/eudev_%.bbappend +2 -2
index 4817e840..c5758a21 100644
@@ -16,7 +16,7 @@ SRC_URI:append = " \
 do_install:append() {
     install -d ${D}/${bindir}
 
-    install -m 0755 ${WORKDIR}/usb1-rules.sh ${D}${bindir}/usb1-rules.sh
-    install -m 0755 ${WORKDIR}/usb2-rules.sh ${D}${bindir}/usb2-rules.sh
+    install -m 0755 ${UNPACKDIR}/usb1-rules.sh ${D}${bindir}/usb1-rules.sh
+    install -m 0755 ${UNPACKDIR}/usb2-rules.sh ${D}${bindir}/usb2-rules.sh
     ln -sf libudev.so.1 ${D}${base_libdir}/libudev.so.0
 }
meta-arago-distro/recipes-qt/qt5/qtbase-conf_1.0.bb +2 -2
index 63894c47..83a2cba3 100644
@@ -12,9 +12,9 @@ SRC_URI = "file://qt_env.sh \
 # Add custom Arago qtbase Environment script and eglfs_kms configuration file
 do_install () {
     install -d ${D}${sysconfdir}/profile.d
-    install -m 0644 ${WORKDIR}/qt_env.sh ${D}${sysconfdir}/profile.d/
+    install -m 0644 ${UNPACKDIR}/qt_env.sh ${D}${sysconfdir}/profile.d/
     install -d ${D}${sysconfdir}/qt5
-    install -m 0644 ${WORKDIR}/eglfs_kms_cfg.json ${D}${sysconfdir}/qt5/
+    install -m 0644 ${UNPACKDIR}/eglfs_kms_cfg.json ${D}${sysconfdir}/qt5/
 }
 
 FILES:${PN} += "${sysconfdir}/profile.d/* ${sysconfdir}/qt5/*"
meta-arago-distro/recipes-qt/qt5/qtbase_%.bbappend +1 -1
index 8ae8110b..b1205b5a 100644
@@ -26,7 +26,7 @@ SRC_URI += "\
 python do_patch:append() {
     import shutil
 
-    work_dir = d.getVar("WORKDIR")
+    work_dir = d.getVar("UNPACKDIR")
     s = d.getVar("S")
 
     if not bb.utils.contains('DISTRO_FEATURES','wayland',True,False,d):
meta-arago-distro/recipes-support/strongswan/strongswan_%.bbappend +1 -1
index ae313c74..efedd7fb 100644
@@ -14,5 +14,5 @@ EXTRA_OECONF += " \
 SRC_URI += "file://pkcs11_plugin.conf"
 
 do_install:append () {
-	install -m 0644 ${WORKDIR}/pkcs11_plugin.conf ${D}${sysconfdir}/strongswan.d/
+	install -m 0644 ${UNPACKDIR}/pkcs11_plugin.conf ${D}${sysconfdir}/strongswan.d/
 }
meta-arago-extras/recipes-core/llvm/llvm-common.bb +2 -2
index b69a5775..9668375e 100644
@@ -9,12 +9,12 @@ SYSROOT_PREPROCESS_FUNCS:append:class-target = " llvm_common_sysroot_preprocess"
 
 llvm_common_sysroot_preprocess() {
     install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/
-    install -m 0755 ${WORKDIR}/llvm-config ${SYSROOT_DESTDIR}${bindir_crossscripts}/
+    install -m 0755 ${UNPACKDIR}/llvm-config ${SYSROOT_DESTDIR}${bindir_crossscripts}/
 }
 
 do_install:class-native() {
     install -d ${D}${bindir}
-    install -m 0755 ${WORKDIR}/llvm-config ${D}${bindir}
+    install -m 0755 ${UNPACKDIR}/llvm-config ${D}${bindir}
 }
 
 BBCLASSEXTEND = "native"
meta-arago-extras/recipes-devtools/opkg/opkg-bash-completion.bb +1 -1
index df0b1440..a5c78ead 100644
@@ -9,7 +9,7 @@ SRC_URI = "file://opkg-bash-completion"
 
 do_install() {
     install -d ${D}${datadir}/bash-completion/completions
-    install -m 0644 ${WORKDIR}/opkg-bash-completion \
+    install -m 0644 ${UNPACKDIR}/opkg-bash-completion \
                     ${D}${datadir}/bash-completion/completions/opkg
 }
 
meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server_git.bb +2 -2
index edd4d60d..7905aa00 100644
@@ -38,10 +38,10 @@ do_install:append () {
     install -d ${D}${sysconfdir}/netopeer2
     install -d ${D}${sysconfdir}/init.d
     if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
-        install -m 0755 ${WORKDIR}/netopeer2-server ${D}${sysconfdir}/init.d/
+        install -m 0755 ${UNPACKDIR}/netopeer2-server ${D}${sysconfdir}/init.d/
     fi
     if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
         install -d ${D}${systemd_system_unitdir}
-        install -m 0644 ${WORKDIR}/netopeer2-serverd.service ${D}${systemd_system_unitdir}
+        install -m 0644 ${UNPACKDIR}/netopeer2-serverd.service ${D}${systemd_system_unitdir}
     fi
 }
meta-arago-extras/recipes-sysrepo/sysrepo/sysrepo_git.bb +2 -2
index 4400df70..ae0e8a27 100644
@@ -40,12 +40,12 @@ do_install:append () {
     install -o root -g root ${S}/modules/ietf-netconf.yang ${D}${sysconfdir}/sysrepo/yang/[email protected]
     install -d ${D}${sysconfdir}/init.d
     if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
-        install -m 0775 ${WORKDIR}/sysrepo ${D}${sysconfdir}/init.d/
+        install -m 0775 ${UNPACKDIR}/sysrepo ${D}${sysconfdir}/init.d/
         install -d ${D}${libdir}/sysrepo/plugins
     fi
 
     if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
         install -d ${D}${systemd_system_unitdir}
-        install -m 0644 ${WORKDIR}/sysrepod.service ${D}${systemd_system_unitdir}
+        install -m 0644 ${UNPACKDIR}/sysrepod.service ${D}${systemd_system_unitdir}
     fi
 }
Signature · 1 line
2.17.1
#2 lore raw

PATCH v3 2/3 recipes: Switch away from S = WORKDIR

In reply to Ryan Eatmon

Follow along with the corresponding patch in upstream. [1]

[1] https://git.openembedded.org/openembedded-core/commit/?h=master-next&id=d9328e3b0b062f0621de3d114584b44f384a1c02

---
 .../recipes-core/matrix/matrix-lighttpd-config.bb            | 5 +++--
 .../recipes-bsp/bootstrap-initrd/bootstrap-initrd_1.0.bb     | 3 ++-
 .../recipes-connectivity/bt-enable/bt-enable.bb              | 3 ++-
 .../initscript-telnetd/initscript-telnetd.bb                 | 3 ++-
 .../recipes-connectivity/systemd-telnetd/systemd-telnetd.bb  | 5 +++--
 .../recipes-core/arago-gpl-notice/arago-gpl-notice.bb        | 5 +++--
 .../recipes-core/busybox/softap-udhcpd-config_1.0.bb         | 3 ++-
 meta-arago-distro/recipes-tisdk/tisdk-readme/tisdk-readme.bb | 3 ++-
 meta-arago-distro/recipes-tisdk/tisdk-uenv/tisdk-uenv.bb     | 3 ++-
 .../recipes-graphics/tslib/ts-calibrate-init_1.0.bb          | 5 +++--
 .../recipes-sysrepo/nw-configurator/nw-configurator.bb       | 5 +++--
 11 files changed, 27 insertions(+), 16 deletions(-)
meta-arago-demos/recipes-core/matrix/matrix-lighttpd-config.bb +3 -2
index c932e67f..d1c51012 100644
@@ -12,11 +12,12 @@ SRC_URI = "file://lighttpd.conf.matrix"
 # Grabbed COPYING file from lighttpd_1.4.30
 SRC_URI += "file://COPYING"
 
-S = "${WORKDIR}"
+S = "${WORKDIR}/sources"
+UNPACKDIR = "${S}"
 
 do_install() {
 	install -d ${D}${sysconfdir}/lighttpd
-	install -m 0644 ${WORKDIR}/lighttpd.conf.matrix ${D}${sysconfdir}/lighttpd/lighttpd.conf.matrix
+	install -m 0644 ${S}/lighttpd.conf.matrix ${D}${sysconfdir}/lighttpd/lighttpd.conf.matrix
 }
 
 FILES:${PN} = "${sysconfdir}/lighttpd/lighttpd.conf.matrix"
meta-arago-distro/recipes-bsp/bootstrap-initrd/bootstrap-initrd_1.0.bb +2 -1
index 0eaf9314..50cf218e 100644
@@ -6,7 +6,8 @@ CLEANBROKEN = "1"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-S = "${WORKDIR}"
+S = "${WORKDIR}/sources"
+UNPACKDIR = "${S}"
 
 BOOSTRAP_IMAGE = "tisdk-bootstrap-base-image"
 
meta-arago-distro/recipes-connectivity/bt-enable/bt-enable.bb +2 -1
index cb7fa93f..0e7b446d 100644
@@ -9,7 +9,8 @@ SRC_URI = " \
 
 PR = "r1"
 
-S = "${WORKDIR}"
+S = "${WORKDIR}/sources"
+UNPACKDIR = "${S}"
 
 INITSCRIPT_NAME = "bt-enable.sh"
 INITSCRIPT_PARAMS = "defaults 99"
meta-arago-distro/recipes-connectivity/initscript-telnetd/initscript-telnetd.bb +2 -1
index e492119b..c71a3fdb 100644
@@ -5,7 +5,8 @@ PR ="r1"
 
 SRC_URI = "file://telnetd"
 
-S = "${WORKDIR}"
+S = "${WORKDIR}/sources"
+UNPACKDIR = "${S}"
 
 INITSCRIPT_NAME = "telnetd"
 INITSCRIPT_PARAMS = "defaults 10"
meta-arago-distro/recipes-connectivity/systemd-telnetd/systemd-telnetd.bb +3 -2
index 3158da5a..4d84bed4 100644
@@ -5,7 +5,8 @@ LIC_FILES_CHKSUM = "file://telnetd.service;beginline=1;endline=17;md5=d134d0d385
 
 SRC_URI = "file://telnetd.service"
 
-S = "${WORKDIR}"
+S = "${WORKDIR}/sources"
+UNPACKDIR = "${S}"
 
 inherit systemd
 
@@ -16,5 +17,5 @@ SYSTEMD_AUTO_ENABLE:${PN} = "enable"
 do_install:append () {
     # install systemd unit files
     install -d ${D}${systemd_system_unitdir}
-    install -m 0644 ${WORKDIR}/telnetd.service ${D}${systemd_system_unitdir}
+    install -m 0644 ${S}/telnetd.service ${D}${systemd_system_unitdir}
 }
meta-arago-distro/recipes-core/arago-gpl-notice/arago-gpl-notice.bb +3 -2
index 6cb428a5..aeb45167 100644
@@ -4,7 +4,8 @@ LIC_FILES_CHKSUM = "file://print-gplv3-packages.sh;beginline=2;endline=18;md5=d1
 
 PR = "r3"
 
-S = "${WORKDIR}"
+S = "${WORKDIR}/sources"
+UNPACKDIR = "${S}"
 
 INITSCRIPT_NAME = "gplv3-notice"
 INITSCRIPT_PARAMS = "defaults 99"
@@ -24,7 +25,7 @@ do_install(){
 		install -d ${D}${bindir}
 		install -d ${D}${systemd_system_unitdir}
 		install -m 0755 ${S}/print-gplv3-packages.sh ${D}${bindir}/gplv3-notice
-		install -m 0644 ${WORKDIR}/gplv3-notice.service ${D}${systemd_system_unitdir}
+		install -m 0644 ${S}/gplv3-notice.service ${D}${systemd_system_unitdir}
 	fi
 }
 
meta-arago-distro/recipes-core/busybox/softap-udhcpd-config_1.0.bb +2 -1
index 0c896fed..a5a3e1d0 100644
@@ -8,7 +8,8 @@ PR = "r1"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-S = "${WORKDIR}"
+S = "${WORKDIR}/sources"
+UNPACKDIR = "${S}"
 
 # Default configuration file is from the base udhcp package
 SRC_URI = "file://udhcpd.conf \
meta-arago-distro/recipes-tisdk/tisdk-readme/tisdk-readme.bb +2 -1
index 59df0c97..157e7354 100644
@@ -11,7 +11,8 @@ PV = "1.0"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-S = "${WORKDIR}"
+S = "${WORKDIR}/sources"
+UNPACKDIR = "${S}"
 
 do_install () {
     install -d ${D}/board-support/prebuilt-images
meta-arago-distro/recipes-tisdk/tisdk-uenv/tisdk-uenv.bb +2 -1
index 76c83e7d..7bd601a0 100644
@@ -11,7 +11,8 @@ PV = "1.0"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-S = "${WORKDIR}"
+S = "${WORKDIR}/sources"
+UNPACKDIR = "${S}"
 
 do_install () {
     install -d ${D}/board-support/prebuilt-images
meta-arago-extras/recipes-graphics/tslib/ts-calibrate-init_1.0.bb +3 -2
index db48d746..1694792c 100644
@@ -8,7 +8,8 @@ LIC_FILES_CHKSUM = "file://init;beginline=2;endline=11;md5=4b2e3b15f01cf63d2cb79
 
 PR = "r4"
 
-S = "${WORKDIR}"
+S = "${WORKDIR}/sources"
+UNPACKDIR = "${S}"
 
 INITSCRIPT_NAME = "ts-calibrate"
 
@@ -26,5 +27,5 @@ do_install(){
 	# Install the init script
 	# TODO: replace init script with systemd files
 	install -d ${D}${sysconfdir}/init.d
-	install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/ts-calibrate
+	install -m 0755 ${S}/init ${D}${sysconfdir}/init.d/ts-calibrate
 }
meta-arago-extras/recipes-sysrepo/nw-configurator/nw-configurator.bb +3 -2
index c5d9a86b..b383571d 100644
@@ -5,7 +5,8 @@ LIC_FILES_CHKSUM = "file://nw-configurator.c;beginline=1;endline=33;md5=3538caaf
 
 SRC_URI = "file://nw-configurator.c"
 
-S = "${WORKDIR}"
+S = "${WORKDIR}/sources"
+UNPACKDIR = "${S}"
 
 FILES_${PN}-dev = "${includedir}"
 
@@ -14,7 +15,7 @@ DEPENDS = "sysrepo"
 inherit autotools pkgconfig
 
 do_compile() {
-	${CC} ${CFLAGS} ${LDFLAGS} -I=${STAGING_INCDIR}	${WORKDIR}/nw-configurator.c -o nw-configurator -lsysrepo
+	${CC} ${CFLAGS} ${LDFLAGS} -I=${STAGING_INCDIR}	${S}/nw-configurator.c -o nw-configurator -lsysrepo
 }
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.17.1
#3 lore raw

PATCH v3 3/3 websocketd: Add required GO_SRCURI_DESTSUFFIX

In reply to Ryan Eatmon

Part of the UNPACKDIR changes for Go modules is the requirement for Go recipes to include ;destsuffix=${GO_SRCURI_DESTSUFFIX} in the SRC_URI.

---
 .../recipes-devtools/websocketd/websocketd_0.4.1.bb             | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arago-extras/recipes-devtools/websocketd/websocketd_0.4.1.bb +1 -1
index 207cd38a..1f5f8f5d 100644
@@ -9,7 +9,7 @@ GO_IMPORT = "github.com/joewalnes/websocketd"
 
 export GOPROXY = "https://proxy.golang.org,direct"
 
-SRC_URI = "git://${GO_IMPORT};protocol=https;branch=master"
+SRC_URI = "git://${GO_IMPORT};protocol=https;branch=master;destsuffix=${GO_SRCURI_DESTSUFFIX}"
 SRCREV = "035c18cc3e6962dabd5ea2ad8845260726a4a99e"
 
 # bitbake only exports proxy variables during fetching, but go handles
Signature · 1 line
2.17.1