[pacman-dev] Makepkg should set environment variables of dependencies before continuing build()

Allan McRae allan at archlinux.org
Sun Dec 30 10:58:47 EST 2012


On 31/12/12 01:48, Eric Fernandez wrote:

> Note that "source /etc/profile" in build() is not a good solution, as
> it runs all profile.d scripts and if one script fails, then the build
> process is aborted. It is better to fix makepkg upstream. I had a look
> at the code, and do not understand why run_pacman does not set the
> variables, but maybe it is a problem of variable space?
> 

How about:

source /etc/profile &>/dev/null

on line 483 of makepkg in the handle_deps function right after
installing dependencies?




More information about the pacman-dev mailing list