diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-27 10:58:08 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-28 17:55:04 +0100 |
commit | da9409d26e5b29359d56484b9bef294cccc23bfe (patch) | |
tree | d373ddb20b197f2df50090dcb811e609d65bf98f /meta/recipes-graphics | |
parent | 4ba745f8286a49e7d78c87288c96505d8898060c (diff) | |
download | poky-da9409d26e5b29359d56484b9bef294cccc23bfe.tar.gz |
glew: Stop polluting /tmp during builds
Currently the glew code creates a new directory in /tmp for each make
invocation. This is a bit ugly, don't do that. The patch does break the
dist targets but we don't use them.
(From OE-Core rev: 3a55194f90e11da5671b24391a4aaf2b86a8e1e6)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r-- | meta/recipes-graphics/glew/glew/notempdir.patch | 19 | ||||
-rw-r--r-- | meta/recipes-graphics/glew/glew_2.2.0.bb | 1 |
2 files changed, 20 insertions, 0 deletions
diff --git a/meta/recipes-graphics/glew/glew/notempdir.patch b/meta/recipes-graphics/glew/glew/notempdir.patch new file mode 100644 index 0000000000..8d79ce0cdf --- /dev/null +++ b/meta/recipes-graphics/glew/glew/notempdir.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | We don't use the dist-* targets and hence DIST_DIR isn't used. The current code | ||
2 | creates a new temp directory in /tmp/ for every invocation of make. Lets | ||
3 | not do that. | ||
4 | |||
5 | Upstream-Status: Pending [a revised version would be needed for upstream] | ||
6 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
7 | |||
8 | Index: glew-2.2.0/Makefile | ||
9 | =================================================================== | ||
10 | --- glew-2.2.0.orig/Makefile | ||
11 | +++ glew-2.2.0/Makefile | ||
12 | @@ -56,7 +56,6 @@ DIST_SRC_ZIP ?= $(shell pwd)/$(DIST_NAME | ||
13 | DIST_SRC_TGZ ?= $(shell pwd)/$(DIST_NAME).tgz | ||
14 | DIST_WIN32 ?= $(shell pwd)/$(DIST_NAME)-win32.zip | ||
15 | |||
16 | -DIST_DIR := $(shell mktemp -d /tmp/glew.XXXXXX)/$(DIST_NAME) | ||
17 | |||
18 | # To disable stripping of linked binaries either: | ||
19 | # - use STRIP= on gmake command-line | ||
diff --git a/meta/recipes-graphics/glew/glew_2.2.0.bb b/meta/recipes-graphics/glew/glew_2.2.0.bb index 92b6083648..d7a26a3438 100644 --- a/meta/recipes-graphics/glew/glew_2.2.0.bb +++ b/meta/recipes-graphics/glew/glew_2.2.0.bb | |||
@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2ac251558de685c6b9478d89be3149c2" | |||
7 | 7 | ||
8 | SRC_URI = "${SOURCEFORGE_MIRROR}/project/glew/glew/${PV}/glew-${PV}.tgz \ | 8 | SRC_URI = "${SOURCEFORGE_MIRROR}/project/glew/glew/${PV}/glew-${PV}.tgz \ |
9 | file://0001-Fix-build-race-in-Makefile.patch \ | 9 | file://0001-Fix-build-race-in-Makefile.patch \ |
10 | file://notempdir.patch \ | ||
10 | file://no-strip.patch" | 11 | file://no-strip.patch" |
11 | 12 | ||
12 | SRC_URI[md5sum] = "3579164bccaef09e36c0af7f4fd5c7c7" | 13 | SRC_URI[md5sum] = "3579164bccaef09e36c0af7f4fd5c7c7" |