USE flag ignored by emerge [Solved]

Anything that pertains to Portage

Moderator: Moderators

USE flag ignored by emerge [Solved]

Postby franzrogar » Sat Nov 13, 2010 13:17

Hello,

I did a Sabayon fresh install and after that, I run this:
Code: Select all
$ equo update && equo install eix
$ layman -a sabayon
$ layman -S && eix-sync


Looking for package, eix returns:
Code: Select all
$ eix -C media-video mkvtoolnix
[U] media-video/mkvtoolnix
     Available versions:  2.9.9 (~)3.2.0 (~)3.3.0 (~)3.4.0 (~)4.1.1 (~)4.2.0 (~)4.3.0 (~)4.4.0 {bzip2 debug doc flac lzo qt4 wxwidgets}
     Installed versions:  4.2.0(15:46:53 17/08/10)(bzip2 flac lzo qt4 -debug -doc -wxwidgets)
     Homepage:            http://www.bunkus.org/videotools/mkvtoolnix
     Description:         Tools to create, alter, and inspect Matroska files


I want the mkvtoolnix gui so I modified "/etc/portage/package.use" mkvtoolnix line as follow:
Code: Select all
media-video/mkvtoolnix flac qt4 wxwidgets


When I run emerge -av, it returns:
Code: Select all
$ emerge -av =mkvtoolnix-4.4.0
[...]
Calculating dependencies... done!
[ebuild     U ] media-video/mkvtoolnix-4.4.0 [4.2.0] USE="bzip2 lzo wxwidgets* -debug (-doc%) (-flac%*) (-qt4%*)" 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB


It does add wxwidgets but refuses to use qt4 and flac.

I even tried to run with "USE="flac wxwidgets flac" emerge -av =mkvtoolnix-4.4.0" but still returns the same info and it doesn't buil qt4.

Does anyone know why this could be happening?

Thanks in advance,
Franz Rogar
franzrogar
Baby Hen
 
Posts: 4
Joined: Fri Nov 12, 2010 22:14

Re: USE flag ignored by emerge

Postby sabayonino » Sat Nov 13, 2010 13:34

The command must be run as root !

use sudo or su


at prompt: ----> $ show your shell is running as user
at prompt ([after su)----> # show your shell is running as root


run again :

su
(type root password)
equo update
etc etc
User avatar
sabayonino
Sagely Hen
 
Posts: 1602
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: USE flag ignored by emerge

Postby wolfden » Sat Nov 13, 2010 13:37

sudo or su does not matter, isn't going to change the fact of USE flag not pulling

check the /etc/make.conf file for the flag, make sure also not already in package.use with different flags
User avatar
wolfden
Sharecropper
 
Posts: 8824
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: USE flag ignored by emerge

Postby franzrogar » Sat Nov 13, 2010 14:39

sabayonino wrote:The command must be run as root !

I runned them as root, it's just I copied just from the command start and added wrongly a "$" instead of "#".

wolfden wrote:sudo or su does not matter, isn't going to change the fact of USE flag not pulling

check the /etc/make.conf file for the flag, make sure also not already in package.use with different flags

In /etc/make.conf, "qt4" is in SAB_XSYS, "flac" is in SAB_CODECS (both for USE) and wxwidgets is nowhere.

I've tried even removing the line in package.use with no luck.

What I found quite weird is that wxwidgets response to changes in package.use properly (it's not in make.conf) but the other two flags doesn't work (they're in make.conf).

Any idea?
Thank you both for your answers :-)
franzrogar
Baby Hen
 
Posts: 4
Joined: Fri Nov 12, 2010 22:14

Re: USE flag ignored by emerge

Postby micia » Sat Nov 13, 2010 15:46

it seems that since mkvtoolnix 4.3.0 the use flags qt4 and flac (as well as doc) have been removed,
flac is required for these versions of mkvtoolnix, see:
http://gentoo-portage.com/media-video/mkvtoolnix

if you want a GUI, wxwidgets use flag should be enough, I think.
you can check with:
Code: Select all
equery uses mkvtoolnix


I'm not a portage expert, but I think that the brackets indicates that the use flag is being removed because it no more exists (or vice versa if it is with a +)...
User avatar
micia
Sagely Hen
 
Posts: 2710
Joined: Wed Nov 26, 2008 16:41

Re: USE flag ignored by emerge

Postby franzrogar » Sat Nov 13, 2010 16:15

micia wrote:it seems that since mkvtoolnix 4.3.0 the use flags qt4 and flac (as well as doc) have been removed,
flac is required for these versions of mkvtoolnix, see:
http://gentoo-portage.com/media-video/mkvtoolnix

if you want a GUI, wxwidgets use flag should be enough, I think.
you can check with:
Code: Select all
equery uses mkvtoolnix


I'm not a portage expert, but I think that the brackets indicates that the use flag is being removed because it no more exists (or vice versa if it is with a +)...

You may not be a portage expert, but you're clever :-) Indeed, it seems it's not needed those flags anymore to build "mmg" (mkvmerge gui).

Thank you very much and also for the lesson about brackets and other stuff in USE flags. :D
franzrogar
Baby Hen
 
Posts: 4
Joined: Fri Nov 12, 2010 22:14

Re: USE flag ignored by emerge

Postby Fitzcarraldo » Sat Nov 13, 2010 17:38

When you have solved your problem, please mark the thread solved. To do this click on the EDIT button in the first post and append " [Solved]" to the Subject text. I'll do it for you this time.

:arrow: Why, and how to add "[Solved]" to your post. Please read.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7340
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: USE flag ignored by emerge

Postby franzrogar » Sat Nov 13, 2010 17:43

Fitzcarraldo wrote:When you have solved your problem, please mark the thread solved. To do this click on the EDIT button in the first post and append " [Solved]" to the Subject text. I'll do it for you this time.

:arrow: Why, and how to add "[Solved]" to your post. Please read.

True, I'm sorry. I forgot it completly. It won't happen again.

Thank you very much.
franzrogar
Baby Hen
 
Posts: 4
Joined: Fri Nov 12, 2010 22:14

Re: USE flag ignored by emerge [Solved]

Postby espressofan » Tue Nov 16, 2010 1:10

First congrats on a nice os. Just installed the e17 spin of Sabayon 5.4.

As both a Sabayon and Gentoo newbie this topic took me a while to get through. Ten years on other distros so I am not helpless however it did take learning about the config files associated with portage. No problem. Only after doing everything that was in this thread as far as adding use flags to package.use and looking over make.conf I still could not get mkvmerge to show a gui. Tried the overlay but ran in to other errors dealing with eix-sync not being recognized. Running the equery uses mkvtoolnix command go me an error saying no package mkvtoolnix found. This was just after installing it for the third time. So I found a way and wanted to share how I did it as well as provide steps on how.

The only way I could get a gui to work on mkvmerge was to download the source from bunkus dot org. Made sure wxGTK was installed through Sulfur and left the standard non gui version installed from previous attempts. During the configure dialog I saw that there was a profile error on wxwidgets. Read the output and did a
Code: Select all
sudo eselect wxwidgets set 3
for my unicode requirements and then ran
Code: Select all
sh configure
again. This time I could see that wxwidgets was getting recognized. Up to that point no gui would have been built.

Seems mkvtoolnix-4.4 wanted rake instead of make. Not sure if the make.conf mentioned earlier will do much as a result. After waiting for rake to compile and a very fast
Code: Select all
sudo rake install
I had a new menu entry in the multimedia menu and voila. mkvmerge-gui popped up in all of its beauty.

Steps again were:

download source code from bunkus.org decompress it to your home folder
Make sure mkvtoolnix is installed from package manager (sulfur) as it will handle the dependencies for mkvtoolnix
make sure wxGTK is installed
in a terminal type
Code: Select all
sudo eselect wxwidgets
read output and then
Code: Select all
sudo eselect wxwidgets set _
replacing _ with the character set you need.
make sure rake and rake compiler are installed through package manager (sulfur for me)
open a terminal in the decompressed mkvtoolnix folder within your home directory
type
Code: Select all
sh configure

Read the last few lines to make sure that a gui will be built once its finished
type
Code: Select all
rake

then
Code: Select all
sudo rake install


Thats it. Enjoy the gui version of mkvmerge.


My apologies for posting on the end of a solved thread however this is the only thread that shows on google when searching "mkvtoolnix gui sabayon" and it did not help in getting a gui. That and if a newbie tried to follow this they would likely distro hop. Hopefully this helps others who are trying to get a gui on their favorite matroska tool while enjoying Sabayon.
espressofan
Baby Hen
 
Posts: 1
Joined: Tue Nov 16, 2010 0:42

Re: USE flag ignored by emerge [Solved]

Postby micia » Tue Nov 16, 2010 12:20

thank you for posting how you solved it, but it is not the right way to proceed on Sabayon, since manual installs are unsupported and discouraged.

This is the step by step recommended way to do this:
Code: Select all
emerge --sync && layman -S

to update the portage packages list.
Add the wxwidgets USE flag to /etc/portage/package.use, this is done adding a line for the mkvtoolnix package, if it is not there, after the package name there are the USE flags for that package, for example:
Code: Select all
media-video/mkvtoolnix wxwidgets

now, since mkvtoolnix requires rake to build, if you want to minimize the use of portage in your system you install it using entropy, so:
Code: Select all
equo install rake

otherwise just skip this step.

now you install mkvtoolnix using emerge:
Code: Select all
emerge -av mkvtoolnix


You have to now sync entropy with portage using:
Code: Select all
equo rescue spmsync

and, since you used portage for a package that is also on entropy, you should disable the attempts of entropy to reinstall its own version editing /etc/entropy/client.conf, changing the line:
Code: Select all
ignore-spm-downgrades|disable

to
Code: Select all
ignore-smp-downgrades|enable
User avatar
micia
Sagely Hen
 
Posts: 2710
Joined: Wed Nov 26, 2008 16:41


Return to Portage|Emerge Package Managers

Who is online

Users browsing this forum: No registered users and 0 guests