[pacman-dev] /etc/makepkg.local
Just a suggestion. If this was the last line in /etc/makepkg.conf then it would allow anyone to append functions that could be used inside a PKGBUILD. Potentionally good bang for buck for one extra line added to the official makepkg package. [ -f /etc/makepkg.local ] && source /etc/makepkg.local --markc
Perhaps testing for executability instead would be better? Regardless, I like the idea. --Teran (sega01) On Sat, Jul 26, 2008 at 14:43, Mark Constable <markc@renta.net> wrote:
Just a suggestion. If this was the last line in /etc/makepkg.conf then it would allow anyone to append functions that could be used inside a PKGBUILD. Potentionally good bang for buck for one extra line added to the official makepkg package.
[ -f /etc/makepkg.local ] && source /etc/makepkg.local
--markc
_______________________________________________ pacman-dev mailing list pacman-dev@archlinux.org http://archlinux.org/mailman/listinfo/pacman-dev
On Sun, Jul 27, 2008 at 12:43:39AM +1000, Mark Constable wrote:
Just a suggestion. If this was the last line in /etc/makepkg.conf then it would allow anyone to append functions that could be used inside a PKGBUILD. Potentionally good bang for buck for one extra line added to the official makepkg package.
[ -f /etc/makepkg.local ] && source /etc/makepkg.local
I think you can add functions in makepkg.conf. Then you can even have different functions per user.
Mark Constable wrote:
Just a suggestion. If this was the last line in /etc/makepkg.conf then it would allow anyone to append functions that could be used inside a PKGBUILD. Potentionally good bang for buck for one extra line added to the official makepkg package.
[ -f /etc/makepkg.local ] && source /etc/makepkg.local
--markc
And if everyone has different functions in makepkg.local then PKGBUILDs become non-transferable across users. Bad! A "better" idea, but still not necessarily a good one, is to make a library that can be sourced: http://bugs.archlinux.org/task/10375 http://bugs.archlinux.org/task/1588 http://bugs.archlinux.org/task/1571 Comment in the top bug report if you have ideas for useful functions. Allan
On 2008-07-27, Allan McRae wrote:
[ -f /etc/makepkg.local ] && source /etc/makepkg.local
And if everyone has different functions in makepkg.local then PKGBUILDs become non-transferable across users. Bad!
That is vaguely possible if someone tried hard enough to write non-conforming functions but the main idea is to assist those that want their own *local* hooks and would prefer not to have to patch makepkg.conf.
A "better" idea, but still not necessarily a good one, is to make a library that can be sourced: http://bugs.archlinux.org/task/10375 http://bugs.archlinux.org/task/1588 http://bugs.archlinux.org/task/1571
Comment in the top bug report if you have ideas for useful functions.
But that depends on someone else accepting proposed functions and kind of defeats the purpose of allowing someone to use custom *local* functions for their own reasons. --markc
Mark Constable wrote:
On 2008-07-27, Allan McRae wrote:
[ -f /etc/makepkg.local ] && source /etc/makepkg.local And if everyone has different functions in makepkg.local then PKGBUILDs become non-transferable across users. Bad!
That is vaguely possible if someone tried hard enough to write non-conforming functions but the main idea is to assist those that want their own *local* hooks and would prefer not to have to patch makepkg.conf.
You are not willing to patch makepkg.conf, but you are willing to write non-transferable PKGBUILDs? I really don't get the point.
participants (5)
-
Allan McRae
-
Loui
-
Mark Constable
-
Teran McKinney
-
Xavier