]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
pseudo-test: add dummy recipe to reproduce YOCTO #12434
authorMartin Jansa <Martin.Jansa@gmail.com>
Sun, 4 Mar 2018 11:49:08 +0000 (11:49 +0000)
committerMartin Jansa <Martin.Jansa@gmail.com>
Mon, 20 May 2019 15:56:01 +0000 (15:56 +0000)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
meta/recipes-devtools/pseudo/pseudo-test.bb [new file with mode: 0644]

diff --git a/meta/recipes-devtools/pseudo/pseudo-test.bb b/meta/recipes-devtools/pseudo/pseudo-test.bb
new file mode 100644 (file)
index 0000000..440a400
--- /dev/null
@@ -0,0 +1,29 @@
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
+
+DEPENDS = "qtbase-native"
+CLEANBROKEN = "1"
+
+inherit qmake5_paths
+
+RULES = "999"
+PARALLEL_MAKE = "-j 30"
+
+do_compile() {
+    # with normall install command it doesn't trigger the issue
+    # echo "QINSTALL      = ${STAGING_BINDIR_NATIVE}/install" > Makefile
+    /bin/echo "QINSTALL      = ${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/qmake -install qinstall" > Makefile
+    ALL="all: "
+    for i in `seq -w 1 ${RULES}`; do
+        /bin/echo $i > ${S}/$i.txt
+        /bin/echo -e "R$i:\n\t\$(QINSTALL) ${S}/$i.txt ${D}/$i.txt && mv ${D}/$i.txt ${D}/`expr $i + 1`.txt" >> Makefile;
+        ALL="$ALL R$i"
+    done
+    /bin/echo ${ALL} >> Makefile
+}
+
+do_install() {
+    oe_runmake all
+}
+
+FILES_${PN} = "/"