[gentoo-user] Re: /etc/portage/patches/

2011-09-18 Thread Nikos Chantziaras

On 09/12/2011 05:42 PM, Nikos Chantziaras wrote:

Thanks! A bashrc with the following in it seems to work here just fine:

post_src_unpack() {
epatch_user
}

Also, the epatch_user() docs mention that it's safe to call epatch_user
multiple times, so I support no breakages should be expected with
ebuilds and eclasses that call this function on their own.


I came across some ebuilds that result in:

 * QA Notice: command not found:
 *
 *  /etc/portage/bashrc: line 3: epatch_user: command not found

How do I solve that one?




[gentoo-user] Re: /etc/portage/patches/

2011-09-18 Thread walt
On 09/18/2011 09:42 AM, Nikos Chantziaras wrote:
 On 09/12/2011 05:42 PM, Nikos Chantziaras wrote:
 Thanks! A bashrc with the following in it seems to work here just fine:

 post_src_unpack() {
 epatch_user
 }

 Also, the epatch_user() docs mention that it's safe to call epatch_user
 multiple times, so I support no breakages should be expected with
 ebuilds and eclasses that call this function on their own.
 
 I came across some ebuilds that result in:
 
  * QA Notice: command not found:
  *
  *  /etc/portage/bashrc: line 3: epatch_user: command not found
 
 How do I solve that one?

The epatch_user() is defined in /usr/portage/ebuild/eutils.eclass, so
I would guess that the ebuild would need the line inherit eutils, or
at least inherit some other eclass that inherits it.






[gentoo-user] Re: /etc/portage/patches/

2011-09-18 Thread Nikos Chantziaras

On 09/18/2011 11:27 PM, walt wrote:

On 09/18/2011 09:42 AM, Nikos Chantziaras wrote:

On 09/12/2011 05:42 PM, Nikos Chantziaras wrote:

Thanks! A bashrc with the following in it seems to work here just fine:

post_src_unpack() {
epatch_user
}

Also, the epatch_user() docs mention that it's safe to call epatch_user
multiple times, so I support no breakages should be expected with
ebuilds and eclasses that call this function on their own.


I came across some ebuilds that result in:

  * QA Notice: command not found:
  *
  *  /etc/portage/bashrc: line 3: epatch_user: command not found

How do I solve that one?


The epatch_user() is defined in /usr/portage/ebuild/eutils.eclass, so
I would guess that the ebuild would need the line inherit eutils, or
at least inherit some other eclass that inherits it.


The whole point is to not touch the ebuild but utilize bashrc instead :-/




Re: [gentoo-user] Re: /etc/portage/patches/

2011-09-18 Thread Alex Schuster
Nikos Chantziaras writes:

 On 09/18/2011 11:27 PM, walt wrote:
  On 09/18/2011 09:42 AM, Nikos Chantziaras wrote:

  I came across some ebuilds that result in:
 
* QA Notice: command not found:
*
*  /etc/portage/bashrc: line 3: epatch_user: command not found
 
  How do I solve that one?
 
  The epatch_user() is defined in /usr/portage/ebuild/eutils.eclass, so
  I would guess that the ebuild would need the line inherit eutils, or
  at least inherit some other eclass that inherits it.
 
 The whole point is to not touch the ebuild but utilize bashrc
 instead :-/

Do these ebuilds also need to apply the patches, or do you just want to
get rid of the error message?

Wonko



[gentoo-user] Re: /etc/portage/patches/

2011-09-18 Thread Nikos Chantziaras

On 09/18/2011 11:50 PM, Alex Schuster wrote:

Nikos Chantziaras writes:


On 09/18/2011 11:27 PM, walt wrote:

On 09/18/2011 09:42 AM, Nikos Chantziaras wrote:



I came across some ebuilds that result in:

   * QA Notice: command not found:
   *
   *  /etc/portage/bashrc: line 3: epatch_user: command not found

How do I solve that one?


The epatch_user() is defined in /usr/portage/ebuild/eutils.eclass, so
I would guess that the ebuild would need the line inherit eutils, or
at least inherit some other eclass that inherits it.


The whole point is to not touch the ebuild but utilize bashrc
instead :-/


Do these ebuilds also need to apply the patches, or do you just want to
get rid of the error message?


It's just the error message.  Which means this isn't an issue for now. 
It will become one if one of them will need patches though.


Too bad that I can't put inherit eutils in bashrc though.  But even I 
could, inheriting an eclass twice would probably not work to begin with.





Re: [gentoo-user] Re: /etc/portage/patches/

2011-09-18 Thread Alex Schuster
Nikos Chantziaras writes:

 On 09/18/2011 11:50 PM, Alex Schuster wrote:

  Do these ebuilds also need to apply the patches, or do you just want
  to get rid of the error message?
 
 It's just the error message.  Which means this isn't an issue for now. 
 It will become one if one of them will need patches though.

post_src_unpack()
{
if type epatch_user  /dev/null
then
cd ${S}
epatch_user
fi
}

 Too bad that I can't put inherit eutils in bashrc though.

It seems to be bash shell code, so you could try sourcing it from bash:
. /usr/portage/eclass/eutils.eclass

Or copy the epatch_user() shell function from that file into
your /etc/portage/bashrc.

 But even I 
 could, inheriting an eclass twice would probably not work to begin with.

Maybe, I have no idea.

Wonko



[gentoo-user] Re: /etc/portage/patches/

2011-09-12 Thread Nikos Chantziaras

On 09/12/2011 04:41 PM, justin wrote:

On 9/12/11 3:21 PM, Nikos Chantziaras wrote:

Some packages can apply patches from /etc/portage/patches/, other don't.
  Why don't all packages do that?  Is there a way to make all packages
use /etc/portage/patches?




It a specific function which needs to be added to the ebuild by the
writer. To make all ebuilds respect user patches (where there are pros
and cons) the package manager must handle that function internally.


This sucks.  Is there anything I can in /etc/portage/env to make all 
ebuilds call epatch_user() ?





Re: [gentoo-user] Re: /etc/portage/patches/

2011-09-12 Thread justin
A hacky trick would be to implement it yourself by adding the
appropriate function to post_src_unpack of post_src_prepare in
/etc/portage/bashrc.

Nut this is out of warranty, but should work




On 9/12/11 3:51 PM, Nikos Chantziaras wrote:
 On 09/12/2011 04:41 PM, justin wrote:
 On 9/12/11 3:21 PM, Nikos Chantziaras wrote:
 Some packages can apply patches from /etc/portage/patches/, other don't.
   Why don't all packages do that?  Is there a way to make all packages
 use /etc/portage/patches?



 It a specific function which needs to be added to the ebuild by the
 writer. To make all ebuilds respect user patches (where there are pros
 and cons) the package manager must handle that function internally.
 
 This sucks.  Is there anything I can in /etc/portage/env to make all
 ebuilds call epatch_user() ?
 
 




signature.asc
Description: OpenPGP digital signature


[gentoo-user] Re: /etc/portage/patches/

2011-09-12 Thread Nikos Chantziaras

Thanks!  A bashrc with the following in it seems to work here just fine:

  post_src_unpack() {
  epatch_user
  }

Also, the epatch_user() docs mention that it's safe to call epatch_user 
multiple times, so I support no breakages should be expected with 
ebuilds and eclasses that call this function on their own.



On 09/12/2011 05:14 PM, justin wrote:

A hacky trick would be to implement it yourself by adding the
appropriate function to post_src_unpack of post_src_prepare in
/etc/portage/bashrc.

Nut this is out of warranty, but should work

On 9/12/11 3:51 PM, Nikos Chantziaras wrote:

On 09/12/2011 04:41 PM, justin wrote:

On 9/12/11 3:21 PM, Nikos Chantziaras wrote:

Some packages can apply patches from /etc/portage/patches/, other don't.
   Why don't all packages do that?  Is there a way to make all packages
use /etc/portage/patches?


It a specific function which needs to be added to the ebuild by the
writer. To make all ebuilds respect user patches (where there are pros
and cons) the package manager must handle that function internally.


This sucks.  Is there anything I can in /etc/portage/env to make all
ebuilds call epatch_user() ?





[gentoo-user] Re: /etc/portage/patches/

2011-09-12 Thread Nikos Chantziaras

On 09/12/2011 05:42 PM, Nikos Chantziaras wrote:

Thanks! A bashrc with the following in it seems to work here just fine:

  post_src_unpack() {
  epatch_user
  }


In case anyone else is trying this, the above should be:

  post_src_unpack() {
  cd ${S}
  epatch_user
  }