kisslinux / kiss

KISS Linux - Package Manager
https://kisslinux.github.io
MIT License
464 stars 62 forks source link

Source kiss_hooks #281

Closed TAAPArthur closed 3 years ago

TAAPArthur commented 3 years ago

Source hooks rather than running them in a separate shell. This restores the ability to modify environmental variables like CC from hooks.

My specific use case is to be able to change compilers from tcc to gcc depending on the package because some programs don't compile with tcc.

dylanaraps commented 3 years ago

Sourcing hooks enables a lot of configuration potential but also opens a hole whereby package manager internals can be modified. These internals are not stable and are subject to change at any time. It is still on my TODO list to overhaul hooks but I do not have the time at the moment.

Thanks for the PR.