Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 704788 - media-libs/glew-2.1.0-r1 creates /tmp/glew.XXXXXX directories
Summary: media-libs/glew-2.1.0-r1 creates /tmp/glew.XXXXXX directories
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-01-04 18:52 UTC by Fedja Beader
Modified: 2021-03-16 22:29 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fedja Beader 2020-01-04 18:52:15 UTC
tmp # for e in glew.* tmp*; do printf "\n\n\n\nSearching culprit for %s...\n" "$e"; find /var/portage/packages/ -cnewer "$e"  -printf '%T+ %p\n' | sort | head -2; done




Searching culprit for glew.APx7Mv...
2019-12-22+21:34:31.5370761680 /var/portage/packages/amd64-hardened-nossp-core2/media-libs/glew
2019-12-22+21:34:31.5370761680 /var/portage/packages/amd64-hardened-nossp-core2/media-libs/glew/glew-2.1.0-r1-2.xpak



Searching culprit for glew.PiZt29...
2019-12-22+21:34:31.5370761680 /var/portage/packages/amd64-hardened-nossp-core2/media-libs/glew
2019-12-22+21:34:31.5370761680 /var/portage/packages/amd64-hardened-nossp-core2/media-libs/glew/glew-2.1.0-r1-2.xpak



# ebuild /var/portage/tree//media-libs/glew/glew-2.1.0-r1.ebuild unpack
# cd /tmp/portage/media-libs/glew-2.1.0-r1/work
# grep -r 'glew.XXXXXX'
glew-2.1.0/Makefile:DIST_DIR := $(shell mktemp -d /tmp/glew.XXXXXX)/$(DIST_NAME)



The fix:

--- glew-2.1.0/Makefile
+++ glew-2.1.0/Makefile
@@ -56,7 +56,7 @@
 DIST_SRC_TGZ ?= $(shell pwd)/$(DIST_NAME).tgz
 DIST_WIN32   ?= $(shell pwd)/$(DIST_NAME)-win32.zip

-DIST_DIR := $(shell mktemp -d /tmp/glew.XXXXXX)/$(DIST_NAME)
+DIST_DIR := $(shell mktemp -d glew.XXXXXX)/$(DIST_NAME)

 # To disable stripping of linked binaries either:
 #   - use STRIP= on gmake command-line


Reproducible: Always




1.
2.
3.
Comment 1 wolfgang 2021-01-04 06:34:44 UTC
Unable to reprouce with glew-2.2.0.ebuild, can this bug be closed, or do we need to fix this with older glew?