Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Another noob question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ceramide
n00b
n00b


Joined: 27 Jun 2022
Posts: 11

PostPosted: Wed Jun 29, 2022 10:39 am    Post subject: [SOLVED] Another noob question Reply with quote

Example scenario: I "emerge x11-misc/tint2" without any USE flags. I later realise that I should've included the "tint2conf" flag. Since I've already emerged in this example tint2, how would I go about getting tint2conf?

Last edited by ceramide on Thu Jun 30, 2022 12:59 am; edited 1 time in total
Back to top
View user's profile Send private message
Banana
Veteran
Veteran


Joined: 21 May 2004
Posts: 1392
Location: Germany

PostPosted: Wed Jun 29, 2022 10:57 am    Post subject: Reply with quote

So you want to change the useflag of https://packages.gentoo.org/packages/x11-misc/tint2 ?

Create a file in /etc/portage/package.use (yes it can be a directory and not a single file) and place x11-misc/tint2 tint2conf in it. Run ermege with the -av flag and will see the changed useflag.

More details about the useflags: https://wiki.gentoo.org/wiki//etc/portage/package.use
_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.


Last edited by Banana on Sun Jul 03, 2022 7:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
ceramide
n00b
n00b


Joined: 27 Jun 2022
Posts: 11

PostPosted: Wed Jun 29, 2022 2:05 pm    Post subject: Reply with quote

Banana wrote:
[...]


My package.use is a directory. What do you mean by "placing" x11-misc/tint2 tint2conf in it? Create a new file and include that line? I can't exactly use a directory as the name of a file.

Also, do you mean emerge -av instead of emerge mit? Thanks!
Back to top
View user's profile Send private message
Leonardo.b
Apprentice
Apprentice


Joined: 10 Oct 2020
Posts: 297

PostPosted: Wed Jun 29, 2022 2:25 pm    Post subject: Reply with quote

https://wiki.gentoo.org/wiki/Handbook:AMD64/Working/Portage
Also, give a look at portage and emerge manual pages.

/etc/portage/package.use is a file read by Portage, looking for USE flags.
The format is like:
Code:
# Set use1 and use2, but not use3 for package foo/bar
foo/bar use1 use2 -use3

If package.use is a directory, all the files inside it are read, in alphabetical order.
It is up to you if you want it to be a directory or a file.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Wed Jun 29, 2022 2:41 pm    Post subject: Reply with quote

ceramide wrote:
Banana wrote:
[...]


My package.use is a directory. What do you mean by "placing" x11-misc/tint2 tint2conf in it? Create a new file and include that line? I can't exactly use a directory as the name of a file.

Also, do you mean emerge -av instead of emerge mit? Thanks!
Yes, x11-misc/tin2 tin2conf would go into a file in the package.use directory. I generally use the name of the package (tint2 in this case).

"mit" is German for with, so I believe that was "emerge with the -av flag".
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1531
Location: South America

PostPosted: Wed Jun 29, 2022 2:51 pm    Post subject: Reply with quote

Quote:
[...] so I believe that was "emerge with the -av flag".

Also, for reinstalling packages with changed USE flags, --oneshot (or its shorter form -1) should also be added, so that they do not accidentally get added to the @selected set...
_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
ceramide
n00b
n00b


Joined: 27 Jun 2022
Posts: 11

PostPosted: Thu Jun 30, 2022 12:59 am    Post subject: Reply with quote

Thanks everyone! And also thanks for referencing the wiki and man pages, I will read through them and also make use of them more, in general, to learn how to deal with typical tasks like these.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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