[pacman-dev] /etc/makepkg.local

2008-07-26 Thread Mark Constable
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


Re: [pacman-dev] /etc/makepkg.local

2008-07-26 Thread Teran McKinney
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 [EMAIL PROTECTED] 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


___
pacman-dev mailing list
pacman-dev@archlinux.org
http://archlinux.org/mailman/listinfo/pacman-dev


Re: [pacman-dev] /etc/makepkg.local

2008-07-26 Thread Loui
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.


___
pacman-dev mailing list
pacman-dev@archlinux.org
http://archlinux.org/mailman/listinfo/pacman-dev


Re: [pacman-dev] /etc/makepkg.local

2008-07-26 Thread Mark Constable
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

___
pacman-dev mailing list
pacman-dev@archlinux.org
http://archlinux.org/mailman/listinfo/pacman-dev