Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
who is cheating: emerge vs equery [solved]
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
zubb
n00b
n00b


Joined: 20 Jul 2007
Posts: 68
Location: Ukraine

PostPosted: Mon Jun 01, 2009 6:15 pm    Post subject: who is cheating: emerge vs equery [solved] Reply with quote

Hi!

Recently I decided to do a some cleanup of package.use. Entity of mplayer was the biggest one, so it was reviewed most accuracy.

I dropped all use flag that I found useless/outdated/moved to ffmpeg/etc. Also I used an "emerge -pvt mplayer" from time to time to check that everything is OK. After all was done I reemerged mplayer and ffmpeg to be sure that everething will be OK. Since its was gonig on laptop, I did not make a real try.

My wonder was huge after I tried to play a flv movie downloaded from youtube. System did not responce. On attempt to play some mpeg4 video, it gone into reboot.. After that I thought that it is a fault of xorg-server (Also I have a couple of problems with it too after well known update :) )

I did not remember how I discover that, but anywasy, emerge says that there is no "changed" use flags for mplayer and "equery u [package]" says opposite. See screen for some details.

I guess due to that disabled flags video is not being played correctly.
Who is guilty & whats to do? :)

PS: Profile has not been changed.

Code:
crusader ~ # grep mplayer /etc/portage/package.use
media-video/mplayer a52 aac amrnb encode mmxext musepack rtc win32codecs theora -gtk -dv -directfb -live


Code:

crusader ~ # cat /etc/make.conf | grep -v \^#
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"

CXXFLAGS="${CFLAGS}"

CHOST="i686-pc-linux-gnu"

USE="mmx sse sse2 ssse3 smp \
    acpi alsa dbus hal \
    opengl X gtk -qt png jpeg gif tiff \
    -oss -arts -esd mp3 ogg vorbis \
    unicode nls truetype \
    spell bash-completion xml zip \
    -kde -gnome -cups -perl -kerberos"

MAKEOPTS="-j5"

PORTAGE_RSYNC_RETRIES="3"

GENTOO_MIRRORS="http://gentoo.virginmedia.com/
http://www.ibiblio.org/pub/Linux/distributions/gentoo
http://distfiles.gentoo.org"

SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"

  FEATURES="${FEATURES} parallel-fetch notitles collision-protect strict"

AUTOCLEAN="yes"

INPUT_DEVICES="keyboard mouse evdev"

VIDEO_CARDS="intel"

ALSA_CARDS="hda-intel"

PORTAGE_ELOG_SYSTEM="save"
PORTAGE_ELOG_CLASSES="warn error info log qa"

APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm
       authn_default authn_file authz_dbm authz_default
       authz_groupfile authz_host authz_owner authz_user autoindex
       cache dav dav_fs dav_lock deflate dir disk_cache env expires
       ext_filter file_cache filter headers include info log_config
       logio mem_cache mime mime_magic negotiation rewrite setenvif
       speling status unique_id userdir usertrack vhost_alias proxy"
crusader ~ #

_________________
Feel free to correct my English


Last edited by zubb on Mon Jun 08, 2009 3:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9653
Location: almost Mile High in the USA

PostPosted: Tue Jun 02, 2009 4:07 pm    Post subject: Reply with quote

I'm not sure of your question, but if the machine crashes when you run some software in user mode, likely it's due to drivers, kernel, or hardware issues, and USE flags shouldn't cause this unless you're telling the hardware to pick unusable drivers (due to bad/incompatible hardware) or unstable code.

Make sure you use the -N or --newuse to help emerge pick up new USE flags. They change from time to time.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
zubb
n00b
n00b


Joined: 20 Jul 2007
Posts: 68
Location: Ukraine

PostPosted: Tue Jun 02, 2009 6:13 pm    Post subject: Reply with quote

Thanks for reply!

I would like to hear an answer for following questions:
* who is lying about use flags for mplayer: emerge or equery?
* how this could happen?
* how to prevent this for future? (possibly emerge/equery needs some fixes..)

If mplayer really has some flags that were enabled in the previous installation, than possibly I figure out why video is not being played on my laptop (xv use flag and others are disabled now. See *output of equery* on screen accurately)

Code:
crusader ~ # emerge -pvtuDNe mplayer | grep "*"
crusader ~ #


Output that is above shows that there is not any package (dependence of mplayer) that has changed use flags
_________________
Feel free to correct my English
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Tue Jun 02, 2009 6:19 pm    Post subject: Reply with quote

zubb wrote:
Code:
crusader ~ # emerge -pvtuDNe mplayer | grep "*"
crusader ~ #
Output that is above shows that there is not any package (dependence of mplayer) that has changed use flags
I think not. You have included the -e (--emptytree) switch, which tells emerge to ignore all installed package information and (re-)merge all dependencies of the package. Since Portage is pretending no packages are installed, by definition it cannot detect whether any USE flags have changed.

Drop the -e option and see whether the results make more sense.
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
zubb
n00b
n00b


Joined: 20 Jul 2007
Posts: 68
Location: Ukraine

PostPosted: Tue Jun 02, 2009 6:29 pm    Post subject: Reply with quote

Dropping "-e" does not change the result :(
_________________
Feel free to correct my English
Back to top
View user's profile Send private message
zubb
n00b
n00b


Joined: 20 Jul 2007
Posts: 68
Location: Ukraine

PostPosted: Tue Jun 02, 2009 7:23 pm    Post subject: Reply with quote

timeBandit wrote:
which tells emerge to ignore all installed package information and (re-)merge all dependencies of the package.


Could you please point where I can read about "ignoring"?
_________________
Feel free to correct my English
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Tue Jun 02, 2009 7:49 pm    Post subject: Reply with quote

man emerge, see --emptytree.
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
zubb
n00b
n00b


Joined: 20 Jul 2007
Posts: 68
Location: Ukraine

PostPosted: Wed Jun 03, 2009 11:46 am    Post subject: Reply with quote

Just to clarify how emptytree option works: for test I added an "vanilla" use flag for sys-devel/libtool (which is a dependence of media-libs/jpeg that is direct dependence of mplayer) package in package.use file. Than I did following:

Code:

crusader ~ # emerge -pvtuDNe mplayer | grep "*"
[ebuild   R   ]   sys-devel/libtool-1.5.26  USE="vanilla*" 0 kB
crusader ~ # emerge -pvtuDN mplayer | grep "*"
crusader ~ #


Seems that emptytree option works else than you said..

But nevertheless, I would like to hear

  • who is lying about use flags for mplayer: emerge or equery?
  • how this could happen?
  • how to prevent this for future? (possibly emerge/equery needs some fixes..)

_________________
Feel free to correct my English
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 720

PostPosted: Wed Jun 03, 2009 10:40 pm    Post subject: Reply with quote

To see which flags were used on install:
Code:
cat /var/db/pkg/media-video/mplayer-*/USE
Back to top
View user's profile Send private message
tgR10
Apprentice
Apprentice


Joined: 23 Oct 2007
Posts: 262
Location: caly ten ambaras

PostPosted: Thu Jun 04, 2009 1:25 am    Post subject: Reply with quote

Nerevar wrote:
To see which flags were used on install:
Code:
cat /var/db/pkg/media-video/mplayer-*/USE

ain't that what equery do ?
zubb wrote:
[*]who is lying about use flags for mplayer: emerge or equery?
[*]how this could happen?

nobody ? check equery legend, and look for that plusk mark next to that useflags :) it's under sections "I" which means " I - package is installed with flag "
zubb wrote:
[*]how to prevent this for future? (possibly emerge/equery needs some fixes..)

read read and read once more what is on the screen <-;
_________________
"bo kto ma racje ? ten kto z bliska zobaczy"
"moge nie wiedziec,wchlaniam niewiedze z malych torebek"
http://i12.tinypic.com/4pow0mu.png
http://userbar.tgr.debil.eu/userbar.jpg
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 720

PostPosted: Thu Jun 04, 2009 6:23 am    Post subject: Reply with quote

tgR10, I think the problem the OP is trying to figure out is why are the xscreensaver, xv and xvid USE flags shown as unset by equery (blue) when emerge shows them as set. If mplayer wasn't built with xv support, that could cause playback to be slow.

You can see if mplayer has xv support with
Code:
# mplayer -vo help
and you can see if it has xvid support with
Code:
# mplayer -vc help | grep xvid
xvid        xvid      working   Xvid (MPEG-4)  [libxvidcore.a]
Back to top
View user's profile Send private message
zubb
n00b
n00b


Joined: 20 Jul 2007
Posts: 68
Location: Ukraine

PostPosted: Thu Jun 04, 2009 3:07 pm    Post subject: Reply with quote

Hi!

Thanks for replies! Its apparently that competent people went into thread :)

Quote:

trying to figure out is why are the xscreensaver, xv and xvid USE flags shown as unset by equery (blue) when emerge shows them as set


Just vice versa: accordingly to screen emerge says they are unset, and equery - set..

But here is one more quest:
Code:

vv@crusader ~ $ mplayer -vc help | grep xvid
xvid        xvid      working   Xvid (MPEG-4)  [libxvidcore.a]

vv@crusader ~ $ mplayer -vo help | grep -i xv
   xv   X11/Xv
vv@crusader ~ $


Here is a IUSE section from last stable ebuild of mplayer
Code:

IUSE="3dnow 3dnowext +a52 +aac -aalib +alsa altivec amrnb amrwb -arts +ass bidi bl
bindist cddb cdio cdparanoia -cpudetection -custom-cflags -custom-cpuopts debug
dga dirac doc +dts dvb directfb +dvd dvdnav +dv dxr3 enca +encode esd -fbcon ftp
+gif ggi
-gtk iconv ipv6 jack joystick +jpeg kernel_linux ladspa -libcaca lirc +live lzo
+mad +md5sum +mmx mmxext mng +mp2 +mp3 musepack nas nemesi opengl
openal +oss +png -pnm pulseaudio -pvr +quicktime radio -rar real rtc -samba schroedinger sdl
speex sse sse2 ssse3 svga teletext tga +theora +truetype unicode v4l v4l2
vidix +vorbis win32codecs +X +x264 xanim xinerama +xscreensaver +xv +xvid xvmc zoran"


Is all OK with it? (I am not an expert in "ebuild`ing". Yet :) )

PS: I do not use "~", if this may be important
_________________
Feel free to correct my English
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 720

PostPosted: Fri Jun 05, 2009 1:01 am    Post subject: Reply with quote

The emerge output won't show a plus sign in front of enabled USE flags if that's what you were expecting. It only shows minus signs in front of disabled flags. So emerge is saying that X through xvid in your screenshot are enabled and the rest are disabled. This is the same as your partial equery listing shows of installed flags. The only question I have is why the coloring of equery seems odd, but that's not a big enough deal to worry about in my opinion.

Perhaps you're wondering how the xcreensaver, xv and xvid flags are being set since they aren't in your package.use or make.conf? My guess is that they're set in your profile. Personally I don't like for the profile to set any USE flags, so I use "-*" as the first USE flag in /etc/make.conf. That way I know that only the flags I deem necessary are enabled. I realize this is not ideal for people new to gentoo, but you might want to keep that trick in mind for the future.

So, to address your problem, first make sure you're using the xv output driver with mplayer.
If you are and you still have problems, check the Xorg log for warnings/errors:
Code:
egrep "EE|WW" /var/log/Xorg.0.log

You'll probably want to start a new thread in Multimedia or Desktop Environments if you find any issues. Good luck!
Back to top
View user's profile Send private message
zubb
n00b
n00b


Joined: 20 Jul 2007
Posts: 68
Location: Ukraine

PostPosted: Mon Jun 08, 2009 3:52 pm    Post subject: Reply with quote

Thanks to all for replies. Its was my fault. I really had to read carefully.
_________________
Feel free to correct my English
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