[Dev] [Libretools - Bug #46] Sourcing PKGBUILDs might change variables used

labs at parabola.nu labs at parabola.nu
Thu Jun 6 03:26:34 GMT 2013

Issue #46 has been updated by lukeshu.

Definitely source makepkg.conf (actually, <tt>load_files makepkg</tt>) if we need to set CARCH. But is setting CARCH important?

Also, as far as exporting arrays from a subshell:

eval "$(. FILE &>/dev/null; declare -ap VARNAME)"

Other than the possibility of FILE having side-effects, I believe that the only caveat to that is that if it is done in a function, it will be local to that function.
Bug #46: Sourcing PKGBUILDs might change variables used

Author: mtjm
Status: open
Priority: bug
Target version: 

E.g. toru used _repo while a PKGBUILD changed the value of this variable, making fullpkg ignore dependencies from the community repo.  There should be another solution which wouldn't lead to difficult to debug problems.

You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://labs.parabola.nu/my/account

More information about the Dev mailing list