You are not logged in.

#1 2016-08-22 16:03:28

daniel_shub
Member
Registered: 2012-06-21
Posts: 82

Can a PKGBUILD use /tmp during the "build" process?

I maintain the matlab package (https://aur.archlinux.org/packages/matlab/). This is basically a proprietary blob package where everything eventually gets dumped into /opt. The software comes with an installer. By default, this installer dumps a huge amount (up to 8 GB) of crud into /tmp/matlab while it is working. The installer takes an option to use an alternative directory. I like using /tmp because I think it is faster (I haven't timed it), but some users are complaining they do not have enough space.

I guess my question is, should the PKGBUILD only make changes to $srcdir and $pkgdir

Offline

#2 2016-08-22 17:30:33

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: Can a PKGBUILD use /tmp during the "build" process?

Definitely only use srcdir or pkgdir.

Users can chose where these are - they can be under /tmp or somewhere else.  If a user has specifically chosen to build somewhere other than /tmp, don't try to override their choice.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB