* [gentoo-user] /etc/portage
@ 2006-11-24 10:48 Arnau Bria
2006-11-24 11:13 ` Alan McKinnon
2006-11-24 11:24 ` Bo Ørsted Andresen
0 siblings, 2 replies; 4+ messages in thread
From: Arnau Bria @ 2006-11-24 10:48 UTC (permalink / raw
To: gentoo-user
Hi,
I have recently updated my laptop and found some new files
under /etc/portage:
# ls -lsa
total 36
[...]
4 drwxr-xr-x 2 root root 4096 nov 20 22:42 bin
4 drwxr-xr-x 2 root root 4096 nov 21 11:14 postsync.d
4 drwxrwsr-x 2 root portage 4096 oct 27 2004 sets
I'm comparing them with same dir in my work pc and those files/dires
are not present... The sync difference between them is about a week...
Anyone could explain me what are this files for?
(contents of each dir/file):
# cat bin/post_sync
#!/bin/sh
# Copyright 2006-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
if [ -d /etc/portage/postsync.d/ ]; then
for f in /etc/portage/postsync.d/* ; do
if [ -x ${f} ] ; then
${f}
fi
done
else
:
fi
# cat postsync.d/q-reinitialize
[ -x /usr/bin/q ] && /usr/bin/q -r
# cat postsync.d/q-reinitialize
[ -x /usr/bin/q ] && /usr/bin/q -r
Cheers!
Arnau
--
Arnau Bria
http://blog.emergetux.net
Wiggum: Dispara a las ruedas Lou.
Lou: eee, es un tanque jefe.
Wiggum: Me tienes hartito con todas tus excusas.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] /etc/portage
2006-11-24 10:48 [gentoo-user] /etc/portage Arnau Bria
@ 2006-11-24 11:13 ` Alan McKinnon
2006-11-25 16:10 ` Bo Ørsted Andresen
2006-11-24 11:24 ` Bo Ørsted Andresen
1 sibling, 1 reply; 4+ messages in thread
From: Alan McKinnon @ 2006-11-24 11:13 UTC (permalink / raw
To: gentoo-user
On Friday 24 November 2006 12:48, Arnau Bria wrote:
> Hi,
>
> I have recently updated my laptop and found some new files
> under /etc/portage:
>
> # ls -lsa
> total 36
> [...]
> 4 drwxr-xr-x 2 root root 4096 nov 20 22:42 bin
> 4 drwxr-xr-x 2 root root 4096 nov 21 11:14 postsync.d
> 4 drwxrwsr-x 2 root portage 4096 oct 27 2004 sets
>
> I'm comparing them with same dir in my work pc and those files/dires
> are not present... The sync difference between them is about a
> week...
>
> Anyone could explain me what are this files for?
It would appear that portage put them there, on my system they were
probably created around Aug 21. What the files do is:
- bin contains a script called post-sync
- it looks for a directory called postsync.d and if it finds executables
there, it executes them all.
- Currently the only script there is q-reinitialize, which runs q -r
- Running q shows:
-r, --reinitialize * Reinitialize ebuild cache
So, without even having to look into the portage source, I can predict
that this gets run after emerge --sync and it's purpose it to easily
automate things like reinitializing the ebuild cache without having to
hard code it into portage
Strangely enough, no package claims ownership of these files:
nazgul portage # equery belongs /etc/portage/bin/post_sync
[ Searching for file(s) /etc/portage/bin/post_sync in *... ]
nazgul portage #
alan
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] /etc/portage
2006-11-24 10:48 [gentoo-user] /etc/portage Arnau Bria
2006-11-24 11:13 ` Alan McKinnon
@ 2006-11-24 11:24 ` Bo Ørsted Andresen
1 sibling, 0 replies; 4+ messages in thread
From: Bo Ørsted Andresen @ 2006-11-24 11:24 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 485 bytes --]
On Friday 24 November 2006 11:48, Arnau Bria wrote:
> I have recently updated my laptop and found some new files
> under /etc/portage:
>
> # ls -lsa
> total 36
> [...]
> 4 drwxr-xr-x 2 root root 4096 nov 20 22:42 bin
> 4 drwxr-xr-x 2 root root 4096 nov 21 11:14 postsync.d
They are added in pkg_postinst() by the app-portage/portage-utils ebuilds.
> 4 drwxrwsr-x 2 root portage 4096 oct 27 2004 sets
This appears to be an orphaned file.
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] /etc/portage
2006-11-24 11:13 ` Alan McKinnon
@ 2006-11-25 16:10 ` Bo Ørsted Andresen
0 siblings, 0 replies; 4+ messages in thread
From: Bo Ørsted Andresen @ 2006-11-25 16:10 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 572 bytes --]
On Friday 24 November 2006 12:13, Alan McKinnon wrote:
> Strangely enough, no package claims ownership of these files:
>
> nazgul portage # equery belongs /etc/portage/bin/post_sync
> [ Searching for file(s) /etc/portage/bin/post_sync in *... ]
> nazgul portage #
That's because it is created in the pkg_postinst() phase after the list of
files installed by portage-utils (the CONTENTS file) has been created. I
consider that a bug.
And yes /etc/portage/bin/post_sync is executed after sync by portage if it
exists and is executable.
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-11-25 16:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-24 10:48 [gentoo-user] /etc/portage Arnau Bria
2006-11-24 11:13 ` Alan McKinnon
2006-11-25 16:10 ` Bo Ørsted Andresen
2006-11-24 11:24 ` Bo Ørsted Andresen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox