diff options
| -rw-r--r-- | meta/recipes-extended/stress-ng/stress-ng/0001-Makefile-quote-CC.patch | 41 | ||||
| -rw-r--r-- | meta/recipes-extended/stress-ng/stress-ng_0.14.00.bb (renamed from meta/recipes-extended/stress-ng/stress-ng_0.13.12.bb) | 11 |
2 files changed, 50 insertions, 2 deletions
diff --git a/meta/recipes-extended/stress-ng/stress-ng/0001-Makefile-quote-CC.patch b/meta/recipes-extended/stress-ng/stress-ng/0001-Makefile-quote-CC.patch new file mode 100644 index 0000000000..498a024830 --- /dev/null +++ b/meta/recipes-extended/stress-ng/stress-ng/0001-Makefile-quote-CC.patch | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | From f6162ced588c17c1141a8f6154475a299a2ebc0d Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alexander Kanavin <alex@linutronix.de> | ||
| 3 | Date: Tue, 26 Apr 2022 22:35:35 +0200 | ||
| 4 | Subject: [PATCH] Makefile: quote CC | ||
| 5 | |||
| 6 | It can contain command line options, and therefore spaces, and so | ||
| 7 | needs to be quoted. | ||
| 8 | |||
| 9 | Upstream-Status: Submitted [https://github.com/ColinIanKing/stress-ng/pull/188] | ||
| 10 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
| 11 | --- | ||
| 12 | Makefile | 2 +- | ||
| 13 | Makefile.config | 2 +- | ||
| 14 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/Makefile b/Makefile | ||
| 17 | index 501093f5..8a454edd 100644 | ||
| 18 | --- a/Makefile | ||
| 19 | +++ b/Makefile | ||
| 20 | @@ -432,7 +432,7 @@ stress-ng: $(OBJS) | ||
| 21 | $(V)sync | ||
| 22 | |||
| 23 | config.h: | ||
| 24 | - $(MAKE) CC=$(CC) STATIC=$(STATIC) -f Makefile.config | ||
| 25 | + $(MAKE) CC="$(CC)" STATIC=$(STATIC) -f Makefile.config | ||
| 26 | |||
| 27 | .PHONY: | ||
| 28 | makeconfig: config.h | ||
| 29 | diff --git a/Makefile.config b/Makefile.config | ||
| 30 | index b76d0903..f03f7a85 100644 | ||
| 31 | --- a/Makefile.config | ||
| 32 | +++ b/Makefile.config | ||
| 33 | @@ -69,7 +69,7 @@ else | ||
| 34 | endif | ||
| 35 | |||
| 36 | |||
| 37 | -MAKE_OPTS=CC=$(CC) -f Makefile.config --no-print-directory | ||
| 38 | +MAKE_OPTS=CC="$(CC)" -f Makefile.config --no-print-directory | ||
| 39 | |||
| 40 | comma = , | ||
| 41 | |||
diff --git a/meta/recipes-extended/stress-ng/stress-ng_0.13.12.bb b/meta/recipes-extended/stress-ng/stress-ng_0.14.00.bb index fe177a4de0..ada35dbc4c 100644 --- a/meta/recipes-extended/stress-ng/stress-ng_0.13.12.bb +++ b/meta/recipes-extended/stress-ng/stress-ng_0.14.00.bb | |||
| @@ -5,8 +5,10 @@ HOMEPAGE = "https://github.com/ColinIanKing/stress-ng#readme" | |||
| 5 | LICENSE = "GPL-2.0-only" | 5 | LICENSE = "GPL-2.0-only" |
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
| 7 | 7 | ||
| 8 | SRC_URI = "git://github.com/ColinIanKing/stress-ng.git;protocol=https;branch=master" | 8 | SRC_URI = "git://github.com/ColinIanKing/stress-ng.git;protocol=https;branch=master \ |
| 9 | SRCREV = "f59bcb2fe1e25042e77d5e4942f72bfa026fa305" | 9 | file://0001-Makefile-quote-CC.patch \ |
| 10 | " | ||
| 11 | SRCREV = "ec7f6c4731a54f0e515bef7f7e84ef9e9b8125a2" | ||
| 10 | S = "${WORKDIR}/git" | 12 | S = "${WORKDIR}/git" |
| 11 | 13 | ||
| 12 | DEPENDS = "coreutils-native" | 14 | DEPENDS = "coreutils-native" |
| @@ -18,6 +20,11 @@ RCONFLICTS:${PN} = "stress" | |||
| 18 | 20 | ||
| 19 | inherit bash-completion | 21 | inherit bash-completion |
| 20 | 22 | ||
| 23 | do_configure:prepend() { | ||
| 24 | mkdir -p configs | ||
| 25 | touch configs/HAVE_APPARMOR | ||
| 26 | } | ||
| 27 | |||
| 21 | do_install() { | 28 | do_install() { |
| 22 | oe_runmake DESTDIR=${D} install | 29 | oe_runmake DESTDIR=${D} install |
| 23 | ln -s stress-ng ${D}${bindir}/stress | 30 | ln -s stress-ng ${D}${bindir}/stress |
