FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Alt

 
 
LinkBack Thread Tools
 
Old 01-15-2011, 09:05 AM
Alan Hourihane
 
Default Run script after emerge --sync ?

Is there a way to run a script after an emerge --sync operation ?

Thanks,

Alan.
 
Old 01-15-2011, 09:35 AM
Christopher Warrington
 
Default Run script after emerge --sync ?

On 2011-1-15 2:05 AM, "Alan Hourihane" <alanh@fairlite.co.uk> wrote:
> Is there a way to run a script after an emerge --sync operation ?


If you merge app-portage/portage-utils, you are supposed to be able to
place scripts in ROOT/etc/portage/postsync.d/ that will get run.

However, the script that I have in my ROOT/etc/portage/bin/post_sync has a
hardcoded "/etc/portage/postsync.d/" instead of one based on my root. It
looks like we'll have to fix that. I manually edited the post_sync script
to point it to the proper ROOTed location, and the scripts ran after my
most recent sync.

Some notes can be found at <http://en.gentoo-wiki.com/wiki/Postsync.d>.

--
Christopher Warrington <chris@mygcw.net>
 
Old 01-15-2011, 03:06 PM
Jacob Godserv
 
Default Run script after emerge --sync ?

On Sat, Jan 15, 2011 at 05:05, Alan Hourihane <alanh@fairlite.co.uk> wrote:
> Is there a way to run a script after an emerge --sync *operation ?
>
> Thanks,
>
> Alan.

I've been working on a related feature for a while now. I'm busy with
school so I don't often get time to work on it, but it is almost done.
You can find details here:
https://bugs.gentoo.org/show_bug.cgi?id=272988

--
* * Jacob

* * "For then there will be great distress, unequaled
* * from the beginning of the world until now — and never
* * to be equaled again. If those days had not been cut
* * short, no one would survive, but for the sake of the
* * elect those days will be shortened."

* * Are you ready?
 
Old 01-24-2011, 03:30 PM
Jeremy Olexa
 
Default Run script after emerge --sync ?

On Sat, 15 Jan 2011 05:35:10 -0500, Christopher Warrington wrote:

On 2011-1-15 2:05 AM, "Alan Hourihane" <alanh@fairlite.co.uk> wrote:

Is there a way to run a script after an emerge --sync operation ?



If you merge app-portage/portage-utils, you are supposed to be able
to

place scripts in ROOT/etc/portage/postsync.d/ that will get run.

However, the script that I have in my ROOT/etc/portage/bin/post_sync
has a
hardcoded "/etc/portage/postsync.d/" instead of one based on my root.
It
looks like we'll have to fix that. I manually edited the post_sync
script
to point it to the proper ROOTed location, and the scripts ran after
my

most recent sync.


Fixed without a revbump - you'll need to remerge it. Sorry about the
trouble.

-Jeremy

Some notes can be found at
<http://en.gentoo-wiki.com/wiki/Postsync.d>.
 
Old 01-29-2011, 07:27 AM
Christopher Warrington
 
Default Run script after emerge --sync ?

On 2011-1-24 8:30 AM, "Jeremy Olexa" <darkside@gentoo.org> wrote:

> On Sat, 15 Jan 2011 05:35:10 -0500, Christopher Warrington wrote:
>> On 2011-1-15 2:05 AM, "Alan Hourihane" <alanh@fairlite.co.uk> wrote:
>>> Is there a way to run a script after an emerge --sync operation ?
>>
>> If you merge app-portage/portage-utils, you are supposed to be able
>>to place scripts in ROOT/etc/portage/postsync.d/ that will get run.
>>
>> However, the script that I have in my ROOT/etc/portage/bin/post_sync
>> has a hardcoded "/etc/portage/postsync.d/" instead of one based on my
>>root.
>> It looks like we'll have to fix that. I manually edited the post_sync
>>script to point it to the proper ROOTed location, and the scripts ran
>>after
>>my most recent sync.
> Fixed without a revbump - you'll need to remerge it. Sorry about the
> trouble.

Works for me. Thanks!

However, I wonder if there's a quoting problem in the expansion. Shouldn't
for f in "@GENTOO_PORTAGE_EPREFIX@"/etc/portage/postsync.d/* ; do
be
for f in "@GENTOO_PORTAGE_EPREFIX@/etc/portage/postsync.d/*" ; do
?

For example, on my machine, this expands to
for f in "/Gentoo"/etc/portage/postsync.d/* ; do
which works for me, but doesn't "look" right.

--
Christopher Warrington <chris@mygcw.net>
 
Old 01-29-2011, 08:08 AM
Fabian Groffen
 
Default Run script after emerge --sync ?

On 29-01-2011 03:27:42 -0500, Christopher Warrington wrote:
> Works for me. Thanks!
>
> However, I wonder if there's a quoting problem in the expansion. Shouldn't
> for f in "@GENTOO_PORTAGE_EPREFIX@"/etc/portage/postsync.d/* ; do
> be
> for f in "@GENTOO_PORTAGE_EPREFIX@/etc/portage/postsync.d/*" ; do
> ?
>
> For example, on my machine, this expands to
> for f in "/Gentoo"/etc/portage/postsync.d/* ; do
> which works for me, but doesn't "look" right.

if you include the * in your quote, it doesn't "work" right


--
Fabian Groffen
Gentoo on a different level
 

Thread Tools




All times are GMT. The time now is 09:17 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org