You are not logged in.
Pages: 1
I would like your input on this:
i am using noexec on my /tmp for security reasons
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noexec,relatime)
I struggle every time that I build a package using makepkg from a PKGBUILD (custom, abs or AUR)
and forgetting to change my TMPDIR shell variable to something else, like `pwd -P/tmpdir`
I've changed the BUILDDIR at my makepkg.conf
BUILDDIR=./tmpdir/makepkg
but pretty fast i 've realized that this was wrong
Would it be a sanity feature request to ask for pacman (makepkg) to create a ./tmpdir and use it as TMPDIR with an option like -t (or something).
or is just me
https://balaskas.gr
Linux System Engineer - Registered Linux User #420129
Offline
As far as I know, makepkg doesn't use /tmp, unless you save the PKGBUILD to /tmp and call makepkg there.
EDIT, tell a lie, I just saw several temporary files appear in there while building a package. I don't think this is makepkg's fault though, it's more likely to be the compiler. 'man gcc' says that:
TMPDIR
If TMPDIR is set, it specifies the directory to use for temporary files. GCC uses
temporary files to hold the output of one stage of compilation which is to be used as
input to the next stage: for example, the output of the preprocessor, which is the
input to the compiler proper.
You could try setting TMPDIR to something like /dev/shm.
Last edited by WorMzy (2013-05-21 11:05:18)
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
No, it isnt makepkg fault this behaviour
yes it is the configuration step that use TMPDIR
eg. i want to enable-spice on qemu so
./configure: line 1358: /tmp/qemu-conf-5543-27601-13933.exe: Permission denied
but it would be nice to do this :
mkdir -pv ./tmpdir
export TMPDIR=./tmpdir
transparently, with an option on makepkg
i wanted to discuss with you people if it make sense to ask for something like that
https://balaskas.gr
Linux System Engineer - Registered Linux User #420129
Offline
try to add export to your makepkg.conf. This file gets sourced, so this should be possible. Don't use mkdir, but use an existing absolute path. Otherwise you will get the directory in the wrong places each time you call makepkg.
Last edited by progandy (2013-05-21 12:19:43)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
Pages: 1