Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Comments in world file (?)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
hujuice
Apprentice
Apprentice


Joined: 16 Oct 2007
Posts: 263
Location: Rome, Italy

PostPosted: Sat Apr 23, 2011 11:32 am    Post subject: Comments in world file (?) Reply with quote

Hello everybody.
What exposed in the odd topic is a need that I cannot please.
Maybe I should know better something about portage or maybe it is an unsatisfied desire.

The topic, for what I understand, is a weird idea.
Manually editing the /var/lib/portage/world file is quite similar to a hack and cannot include improvements.
So, take the topic as a way to explain.

Sometimes I emerge a packet for reasons that I can call an 'indirect' need.
The last example: I' enjoying LXC containers and to have a Debian VM I need dev-util/debootstrap.
This is not a dependency, but at the same time this not a 'wanted' package for my system management.
I could be happy to write somewhere 'Emerged to install debian VMs in LXC, see bla bla bla'.

The best for me could be an option:
Code:
emerge --comment="bla bla bla" category/package

resulting, eg, in an unsynced file in the portage.

Before filing this as a wanted feature in the bugzilla, I prefer double check my portage knowledge. :roll:

Does someone has any solution/workaroud/reading about?

Regards,
HUjuice
_________________
Who hasn't a spine, should have a method.
Chi non ha carattere, deve pur avere un metodo.
Back to top
View user's profile Send private message
XQYZ
Apprentice
Apprentice


Joined: 19 Jul 2009
Posts: 231
Location: Europe

PostPosted: Sat Apr 23, 2011 12:14 pm    Post subject: Reply with quote

I'm not sure I understand this. When exactly would this information become relevant? That is, when would you look at this comment again? Every time you update the package?
Plus that syntax would be awkward if you wanted to emerge multiple packages all at once and I doubt any other package manager offers this.

Code:
emerge --comment="Used to watch porn" www-plugins/adobe-flash
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6726

PostPosted: Sat Apr 23, 2011 1:21 pm    Post subject: Reply with quote

and it looks like you're just looking for --oneshot option

--oneshot package == if it's not a dep of anything, it will never be update by portage && candidate for removing when using --depclean
Back to top
View user's profile Send private message
hujuice
Apprentice
Apprentice


Joined: 16 Oct 2007
Posts: 263
Location: Rome, Italy

PostPosted: Sat Apr 23, 2011 1:40 pm    Post subject: Reply with quote

Thanks XQYZ for the answer.

This is the most relevant need:
XQYZ wrote:
... when would you look at this comment again? ...

The comment will be useful one year later, when you ask yourself: «why did I emerge www-plugins/adobe-flash? Do I really need it?».
I manage... mmhh... I believe at least a dozen of Gentoo machines (work and home) and it is difficult to keep everything in mind.
For example, here at home I have app-emulation/emul-linux-x86-sdl in my world file. No portage packages depend on it and I cannot remember why I installed it. If I want to keep the system working and clean, I have to remove it and see if something goes wrong.

XQYZ wrote:
Plus that syntax would be awkward if you wanted to emerge multiple packages...

It is just an idea born while writing the post, not a proposal. Commenting a bulk emerge, anyway, is not related to what I mean.
On the other hand, what I want is to stick the comment to a package, even though you don't install it.

What I can do is to drop a file in the portage and tweak rsync to avoid deleting it.
Allow comment files:
echo "PORTAGE_RSYNC_EXTRA_OPTS=\"--exclude=comments\"" >> /etc/make.conf
echo "Used to watch porn" >> /usr/portage/www-plugins/adobe-flash/comments

Actually, I don't know what rsync will do if the involved package (and so the directory) should disappear.

Regards,
HUjuice
_________________
Who hasn't a spine, should have a method.
Chi non ha carattere, deve pur avere un metodo.
Back to top
View user's profile Send private message
hujuice
Apprentice
Apprentice


Joined: 16 Oct 2007
Posts: 263
Location: Rome, Italy

PostPosted: Sat Apr 23, 2011 1:44 pm    Post subject: Reply with quote

krinn wrote:
and it looks like you're just looking for --oneshot option

--oneshot package == if it's not a dep of anything, it will never be update by portage && candidate for removing when using --depclean


I'm obstinate :lol:
I *want* the package in the world file and regularly updated.
I just want remember why, on that machine, I emerged it (or maybe why NOT, or what reading about, or what precaution I need).

HUjuice
_________________
Who hasn't a spine, should have a method.
Chi non ha carattere, deve pur avere un metodo.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum