public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* Re: [gentoo-dev] mplayer with dvdread
  2003-04-09 22:48 [gentoo-dev] mplayer with dvdread M. Zuelsdorff
@ 2003-04-09 21:47 ` Martin Schlemmer
  2003-04-10  8:38   ` Henti Smith
  2003-04-10 21:32   ` M. Zuelsdorff
  0 siblings, 2 replies; 15+ messages in thread
From: Martin Schlemmer @ 2003-04-09 21:47 UTC (permalink / raw
  To: M. Zuelsdorff; +Cc: Gentoo-Dev

[-- Attachment #1: Type: text/plain, Size: 666 bytes --]

On Thu, 2003-04-10 at 00:48, M. Zuelsdorff wrote:
> my experience with emerging Gentoo's Mplayer 0.90rc4 out of the box was:
> 
> no DVD in the graphical menu.
> And Martin Schlemmer's "gmplayer -dvd 1" here ends with a:
> "MPlayer was compiled WITHOUT libdvdread support!"
> 
> That's why I did another installation manually in /usr/local/... feeding 
> configure with the appropriate parameters in advance. This version works.
> 

Did you have 'dvd' in USE ?  If so, do:

 # emerge mplayer &> mplayer-build.log

And mail me the log.


-- 

Martin Schlemmer
Gentoo Linux Developer, Desktop/System Team Developer
Cape Town, South Africa




[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [gentoo-dev] mplayer with dvdread
@ 2003-04-09 22:48 M. Zuelsdorff
  2003-04-09 21:47 ` Martin Schlemmer
  0 siblings, 1 reply; 15+ messages in thread
From: M. Zuelsdorff @ 2003-04-09 22:48 UTC (permalink / raw
  To: gentoo-dev

my experience with emerging Gentoo's Mplayer 0.90rc4 out of the box was:

no DVD in the graphical menu.
And Martin Schlemmer's "gmplayer -dvd 1" here ends with a:
"MPlayer was compiled WITHOUT libdvdread support!"

That's why I did another installation manually in /usr/local/... feeding 
configure with the appropriate parameters in advance. This version works.

Regards.

micha
 

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-dev] mplayer with dvdread
  2003-04-09 21:47 ` Martin Schlemmer
@ 2003-04-10  8:38   ` Henti Smith
  2003-04-10 17:49     ` Martin Schlemmer
  2003-04-10 21:32   ` M. Zuelsdorff
  1 sibling, 1 reply; 15+ messages in thread
From: Henti Smith @ 2003-04-10  8:38 UTC (permalink / raw
  To: azarah; +Cc: micha, gentoo-dev

> Did you have 'dvd' in USE ?  If so, do:
> 
>  # emerge mplayer &> mplayer-build.log

hmmm .... very interresting ... 

when I did this on the original box it only compiled mplayer ... on this machine it now wants to install all the dvd libs.

I'll play on the old box again and mail some info .. 

Is the libdvdread and libdvdcss that gets included with USE="dvd" the default libs or just themplayer libs that are stripped out ? 

If so my question about the comments in the mplayer docs still stand about using the default libs resulting in slower performance, bugs and library 
incompatibilities .. 

Henti 

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-dev] mplayer with dvdread
  2003-04-10  8:38   ` Henti Smith
@ 2003-04-10 17:49     ` Martin Schlemmer
  0 siblings, 0 replies; 15+ messages in thread
From: Martin Schlemmer @ 2003-04-10 17:49 UTC (permalink / raw
  To: Henti Smith; +Cc: micha, Gentoo-Dev

[-- Attachment #1: Type: text/plain, Size: 662 bytes --]

On Thu, 2003-04-10 at 10:38, Henti Smith wrote:
> > Did you have 'dvd' in USE ?  If so, do:
> > 
> >  # emerge mplayer &> mplayer-build.log
> 
> hmmm .... very interresting ... 
> 
> when I did this on the original box it only compiled mplayer ... on this machine it now wants to install all the dvd libs.
> 
> I'll play on the old box again and mail some info .. 
> 
> Is the libdvdread and libdvdcss that gets included with USE="dvd" the default libs or just themplayer libs that are stripped out ? 
> 

Just the libdvdnav DEPEND ...

-- 

Martin Schlemmer
Gentoo Linux Developer, Desktop/System Team Developer
Cape Town, South Africa



[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: [gentoo-dev] mplayer with dvdread -- use flag comment
  2003-04-10 21:32   ` M. Zuelsdorff
@ 2003-04-10 20:43     ` Riyad Kalla
  2003-04-10 21:15       ` Martin Schlemmer
  2003-04-10 21:02     ` [gentoo-dev] mplayer with dvdread Martin Schlemmer
                       ` (2 subsequent siblings)
  3 siblings, 1 reply; 15+ messages in thread
From: Riyad Kalla @ 2003-04-10 20:43 UTC (permalink / raw
  To: 'M. Zuelsdorff', gentoo-dev

I'm starting to feel more like this, WGT the use flags... when I
installed gentoo on a server here at work, I left the use flags alone,
figuring "hey it's a server" but then I noticed that certain packages
WANTED to install some rediculous amounts of optional requirements, so I
started using "-" use flags, and that seemed to work. Then I noticed
other packages building without supports for things I needed (like
CUPS). Anywya, after compiling and recompiling KDE about 3 times, mysql
twice, qt 3 times and a few utilities I started to think that before
installing a program, I'd rather just see the "configure --help" options
and decide what I wanted and what I didn't... this use flag business is
kinda trickie... I couldn't imagine trying to code to take it all into
account. Has there ever been talk to get rid of use flags and tackle
optional package params in a different way?

Riyad

> -----Original Message-----
> From: M. Zuelsdorff [mailto:micha@dolbyco.de] 
> Sent: Thursday, April 10, 2003 2:33 PM
> To: gentoo-dev@gentoo.org
> Subject: Re: [gentoo-dev] mplayer with dvdread
> 
> 
> No, I don't make use of "USE" at all, since it's one of the 
> really annoying 
> parts of the Gentoo distribution. There are thousands of 
> packages in the 
> portage tree but not a single line on which USE-var is 
> related to which 
> package.
> All I was able to find was: "dvd adds support for DvDs". 
> Fine. I'd never 
> thought that DvD support is disabled by default in a tool 
> like Mplayer. And 
> in fact it is NOT, when I get the tool from the mplayer site, 
> directly. So, 
> what is it worth this extra little fuzz? In the end, an 
> experience like this 
> can only lead to a blind "better enable everything" since no 
> one is able to 
> keep track of all bells and whistles each package comes with. 
> And this way 
> making the USE mimik more or less obsolete.
> 
> Best regards.
> 
> micha
> 
> On Wednesday 09 April 2003 23:47, Martin Schlemmer wrote:
> > On Thu, 2003-04-10 at 00:48, M. Zuelsdorff wrote:
> > > my experience with emerging Gentoo's Mplayer 0.90rc4 out 
> of the box 
> > > was:
> > >
> > > no DVD in the graphical menu.
> > > And Martin Schlemmer's "gmplayer -dvd 1" here ends with 
> a: "MPlayer 
> > > was compiled WITHOUT libdvdread support!"
> > >
> > > That's why I did another installation manually in /usr/local/... 
> > > feeding configure with the appropriate parameters in 
> advance. This 
> > > version works.
> >
> > Did you have 'dvd' in USE ?  If so, do:
> >
> >  # emerge mplayer &> mplayer-build.log
> >
> > And mail me the log.
> 
> 
> --
> gentoo-dev@gentoo.org mailing list
> 


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-dev] mplayer with dvdread
  2003-04-10 21:32   ` M. Zuelsdorff
  2003-04-10 20:43     ` [gentoo-dev] mplayer with dvdread -- use flag comment Riyad Kalla
@ 2003-04-10 21:02     ` Martin Schlemmer
  2003-04-10 21:22       ` Riyad Kalla
  2003-04-10 21:54     ` Fred Van Andel
  2003-04-11 18:09     ` Thilo Bangert
  3 siblings, 1 reply; 15+ messages in thread
From: Martin Schlemmer @ 2003-04-10 21:02 UTC (permalink / raw
  To: M. Zuelsdorff; +Cc: Gentoo-Dev

[-- Attachment #1: Type: text/plain, Size: 661 bytes --]

On Thu, 2003-04-10 at 23:32, M. Zuelsdorff wrote:
> No, I don't make use of "USE" at all, since it's one of the really annoying 
> parts of the Gentoo distribution. There are thousands of packages in the 
> portage tree but not a single line on which USE-var is related to which 
> package.

The logic was that if 'foo' is in USE, then support for 'foo' gets
build.  If 'foo' not in USE, then support for 'foo' gets disabled.

I think you really need to go and do some reading, and re-evaluate
your stance to using USE ...


Regards,

-- 

Martin Schlemmer
Gentoo Linux Developer, Desktop/System Team Developer
Cape Town, South Africa




[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: [gentoo-dev] mplayer with dvdread -- use flag comment
  2003-04-10 20:43     ` [gentoo-dev] mplayer with dvdread -- use flag comment Riyad Kalla
@ 2003-04-10 21:15       ` Martin Schlemmer
  2003-04-10 21:25         ` Riyad Kalla
  0 siblings, 1 reply; 15+ messages in thread
From: Martin Schlemmer @ 2003-04-10 21:15 UTC (permalink / raw
  To: Riyad Kalla; +Cc: 'M. Zuelsdorff', Gentoo-Dev

[-- Attachment #1: Type: text/plain, Size: 1768 bytes --]

On Thu, 2003-04-10 at 22:43, Riyad Kalla wrote:
> I'm starting to feel more like this, WGT the use flags... when I
> installed gentoo on a server here at work, I left the use flags alone,
> figuring "hey it's a server" but then I noticed that certain packages
> WANTED to install some rediculous amounts of optional requirements, so I
> started using "-" use flags, and that seemed to work. Then I noticed
> other packages building without supports for things I needed (like
> CUPS). Anywya, after compiling and recompiling KDE about 3 times, mysql
> twice, qt 3 times and a few utilities I started to think that before
> installing a program, I'd rather just see the "configure --help" options
> and decide what I wanted and what I didn't... this use flag business is
> kinda trickie... I couldn't imagine trying to code to take it all into
> account. Has there ever been talk to get rid of use flags and tackle
> optional package params in a different way?
> 

The logical would have been:

  - I want a server, so no X, sound, KDE, Gnome, etc, so add
    to USE: -X -gnome -kde -xv -alsa -oss -esd -avi -mikmod -mpeg
            -oggvorbis -opengl -qt -quicktime -sdl -spell -svga
            -truetype -xmms
  - It will be samba print server, so we need cups, so add: cups
  - etc

So USE will be:

USE="-X -gnome -kde -xv -alsa -oss -esd -avi -mikmod -mpeg -oggvorbis
-opengl -qt -quicktime -sdl -spell -svga -truetype -xmms"

No cups is needed, as its already in the default USE flags.  What
those are, look at:

  /etc/make.profile/make.defaults

Note that you should not edit this file by hand.

  
Regards,

-- 

Martin Schlemmer
Gentoo Linux Developer, Desktop/System Team Developer
Cape Town, South Africa




[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: [gentoo-dev] mplayer with dvdread
  2003-04-10 21:02     ` [gentoo-dev] mplayer with dvdread Martin Schlemmer
@ 2003-04-10 21:22       ` Riyad Kalla
  2003-04-10 21:52         ` Martin Schlemmer
  0 siblings, 1 reply; 15+ messages in thread
From: Riyad Kalla @ 2003-04-10 21:22 UTC (permalink / raw
  Cc: 'Gentoo-Dev'

Martin,

Your comment makes it sound like leaving foo out of USE is the same as
"-foo"... but I get quite a different story. I would actually prefer
that USE behave in such a predictable manner, either meaning that not
including foo in the USE automatically includes foo features or
automatically disables foo features, but I found that its completely
unpredictable... let me use QT as an example:

with NO use flags, qt compiled (for me) without GIF support and without
CUPS support (these two I paid attention to in particular, but I'm sure
lots of other build flags got changed too).

When I saw this, I emerged cups and gif, then built QT again (without
changing USE flags). Same thing, still no GIF or CUPS support. So I
added "gif" and "cups" to use and it worked fine.

What I just described agrees with your comment, but when I was building
KDE, I noticed quite a few gnome and gtk dependencies... then I went and
added "-gtk" and "-gnome" to my use flags, and the deps went away (I'm
not 100% if it was KDE or not, but that's beside the point, the point
was that I had to explicity tell emerge NOT to include gnome or gtk
deps, yet I also had to tell it to explicity INCLUDE the cups and gif
deps".

This behavior confuses me, as I never know "what I'm missing" so to
speak until its too late. Is there a way to make emerge behave more
predictably? Either by automatically excluding ALL possible use flags
unless stated otherwise, OR by including all possible use flags unless
stated otherwise?

A gentleman on this list (Sami) gave a good suggestion to me which was
to add ALL of the use flags in alphabetical order to my USE variable,
then run down the list adding a "-" before each one I didn't want. This
seems to be the only way to garuntee the behavior... which is suboptimal
at best.

Thoughts? Comments?

Best,
-Riyad

> -----Original Message-----
> From: Martin Schlemmer [mailto:azarah@gentoo.org] 
> Sent: Thursday, April 10, 2003 2:02 PM
> To: M. Zuelsdorff
> Cc: Gentoo-Dev
> Subject: Re: [gentoo-dev] mplayer with dvdread
> 
> 
> On Thu, 2003-04-10 at 23:32, M. Zuelsdorff wrote:
> > No, I don't make use of "USE" at all, since it's one of the really 
> > annoying
> > parts of the Gentoo distribution. There are thousands of 
> packages in the 
> > portage tree but not a single line on which USE-var is 
> related to which 
> > package.
> 
> The logic was that if 'foo' is in USE, then support for 'foo' 
> gets build.  If 'foo' not in USE, then support for 'foo' gets 
> disabled.
> 
> I think you really need to go and do some reading, and 
> re-evaluate your stance to using USE ...
> 
> 
> Regards,
> 
> -- 
> 
> Martin Schlemmer
> Gentoo Linux Developer, Desktop/System Team Developer
> Cape Town, South Africa
> 
> 
> 
> 


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: [gentoo-dev] mplayer with dvdread -- use flag comment
  2003-04-10 21:15       ` Martin Schlemmer
@ 2003-04-10 21:25         ` Riyad Kalla
  2003-04-10 21:55           ` Martin Schlemmer
  0 siblings, 1 reply; 15+ messages in thread
From: Riyad Kalla @ 2003-04-10 21:25 UTC (permalink / raw
  Cc: 'Gentoo-Dev'

After reading your email I found out what was causing my hearache
(make.defaults)! I hadn't thought about checking that as I didn't
realize the use flags were hierarchical in that fashion...

Does make.defaults include all of the use flags? If I modified
make.defaults (I know you just said not to, but...) to either include
nothing, or include everything, wouldn't I effectively be implementing
the behavior I just asked for? And then fine tune it with my make.conf?

Thanks!

-Riyad

> -----Original Message-----
> From: Martin Schlemmer [mailto:azarah@gentoo.org] 
> Sent: Thursday, April 10, 2003 2:16 PM
> To: Riyad Kalla
> Cc: 'M. Zuelsdorff'; Gentoo-Dev
> Subject: RE: [gentoo-dev] mplayer with dvdread -- use flag comment
> 
> 
> On Thu, 2003-04-10 at 22:43, Riyad Kalla wrote:
> > I'm starting to feel more like this, WGT the use flags... when I 
> > installed gentoo on a server here at work, I left the use 
> flags alone, 
> > figuring "hey it's a server" but then I noticed that 
> certain packages 
> > WANTED to install some rediculous amounts of optional 
> requirements, so 
> > I started using "-" use flags, and that seemed to work. 
> Then I noticed 
> > other packages building without supports for things I needed (like 
> > CUPS). Anywya, after compiling and recompiling KDE about 3 times, 
> > mysql twice, qt 3 times and a few utilities I started to think that 
> > before installing a program, I'd rather just see the "configure 
> > --help" options and decide what I wanted and what I 
> didn't... this use 
> > flag business is kinda trickie... I couldn't imagine trying 
> to code to 
> > take it all into account. Has there ever been talk to get 
> rid of use 
> > flags and tackle optional package params in a different way?
> > 
> 
> The logical would have been:
> 
>   - I want a server, so no X, sound, KDE, Gnome, etc, so add
>     to USE: -X -gnome -kde -xv -alsa -oss -esd -avi -mikmod -mpeg
>             -oggvorbis -opengl -qt -quicktime -sdl -spell -svga
>             -truetype -xmms
>   - It will be samba print server, so we need cups, so add: cups
>   - etc
> 
> So USE will be:
> 
> USE="-X -gnome -kde -xv -alsa -oss -esd -avi -mikmod -mpeg 
> -oggvorbis -opengl -qt -quicktime -sdl -spell -svga -truetype -xmms"
> 
> No cups is needed, as its already in the default USE flags.  
> What those are, look at:
> 
>   /etc/make.profile/make.defaults
> 
> Note that you should not edit this file by hand.
> 
>   
> Regards,
> 
> -- 
> 
> Martin Schlemmer
> Gentoo Linux Developer, Desktop/System Team Developer
> Cape Town, South Africa
> 
> 
> 
> 


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-dev] mplayer with dvdread
  2003-04-09 21:47 ` Martin Schlemmer
  2003-04-10  8:38   ` Henti Smith
@ 2003-04-10 21:32   ` M. Zuelsdorff
  2003-04-10 20:43     ` [gentoo-dev] mplayer with dvdread -- use flag comment Riyad Kalla
                       ` (3 more replies)
  1 sibling, 4 replies; 15+ messages in thread
From: M. Zuelsdorff @ 2003-04-10 21:32 UTC (permalink / raw
  To: gentoo-dev

No, I don't make use of "USE" at all, since it's one of the really annoying 
parts of the Gentoo distribution. There are thousands of packages in the 
portage tree but not a single line on which USE-var is related to which 
package.
All I was able to find was: "dvd adds support for DvDs". Fine. I'd never 
thought that DvD support is disabled by default in a tool like Mplayer. And 
in fact it is NOT, when I get the tool from the mplayer site, directly. So, 
what is it worth this extra little fuzz? In the end, an experience like this 
can only lead to a blind "better enable everything" since no one is able to 
keep track of all bells and whistles each package comes with. And this way 
making the USE mimik more or less obsolete.

Best regards.

micha

On Wednesday 09 April 2003 23:47, Martin Schlemmer wrote:
> On Thu, 2003-04-10 at 00:48, M. Zuelsdorff wrote:
> > my experience with emerging Gentoo's Mplayer 0.90rc4 out of the box was:
> >
> > no DVD in the graphical menu.
> > And Martin Schlemmer's "gmplayer -dvd 1" here ends with a:
> > "MPlayer was compiled WITHOUT libdvdread support!"
> >
> > That's why I did another installation manually in /usr/local/... feeding
> > configure with the appropriate parameters in advance. This version works.
>
> Did you have 'dvd' in USE ?  If so, do:
>
>  # emerge mplayer &> mplayer-build.log
>
> And mail me the log.


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: [gentoo-dev] mplayer with dvdread
  2003-04-10 21:22       ` Riyad Kalla
@ 2003-04-10 21:52         ` Martin Schlemmer
  0 siblings, 0 replies; 15+ messages in thread
From: Martin Schlemmer @ 2003-04-10 21:52 UTC (permalink / raw
  To: Riyad Kalla; +Cc: 'Gentoo-Dev'

[-- Attachment #1: Type: text/plain, Size: 1832 bytes --]

On Thu, 2003-04-10 at 23:22, Riyad Kalla wrote:

> What I just described agrees with your comment, but when I was building
> KDE, I noticed quite a few gnome and gtk dependencies... then I went and
> added "-gtk" and "-gnome" to my use flags, and the deps went away (I'm
> not 100% if it was KDE or not, but that's beside the point, the point
> was that I had to explicity tell emerge NOT to include gnome or gtk
> deps, yet I also had to tell it to explicity INCLUDE the cups and gif
> deps".
> 
> This behavior confuses me, as I never know "what I'm missing" so to
> speak until its too late. Is there a way to make emerge behave more
> predictably? Either by automatically excluding ALL possible use flags
> unless stated otherwise, OR by including all possible use flags unless
> stated otherwise?
> 

See, because there was a problem with new users that they did not add
USE flags for common stuff, and then was upset later on, we added
'default' use flags ...  You can view them with:

 # grep -A 3  USE /etc/make.profile/make.defaults

> A gentleman on this list (Sami) gave a good suggestion to me which was
> to add ALL of the use flags in alphabetical order to my USE variable,
> then run down the list adding a "-" before each one I didn't want. This
> seems to be the only way to garuntee the behavior... which is suboptimal
> at best.
> 

To start with a clean slate, do in /etc/make.conf:

----------------------------------------------
USE="-* whatever_USE_flags_you_may_want"
----------------------------------------------

The '-*' means to remove all default USE flags defined in
/etc/make.profile/make.defaults ...

Hope this clears some issues.


Regards,

-- 

Martin Schlemmer
Gentoo Linux Developer, Desktop/System Team Developer
Cape Town, South Africa




[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-dev] mplayer with dvdread
  2003-04-10 21:32   ` M. Zuelsdorff
  2003-04-10 20:43     ` [gentoo-dev] mplayer with dvdread -- use flag comment Riyad Kalla
  2003-04-10 21:02     ` [gentoo-dev] mplayer with dvdread Martin Schlemmer
@ 2003-04-10 21:54     ` Fred Van Andel
  2003-04-11 19:55       ` Fred Van Andel
  2003-04-11 18:09     ` Thilo Bangert
  3 siblings, 1 reply; 15+ messages in thread
From: Fred Van Andel @ 2003-04-10 21:54 UTC (permalink / raw
  To: gentoo-dev

"M. Zuelsdorff" <micha@dolbyco.de> wrote:
(04/10/2003 14:32)

>No, I don't make use of "USE" at all, since it's one of the really annoying 
>parts of the Gentoo distribution. There are thousands of packages in the 
>portage tree but not a single line on which USE-var is related to which 
>package.

You are in luck.  This afternoon I finished a program that creates a list 
of 
which packages are associated with which use flag and vice versa.

The code is not quite ready for prime time so I don't want distribute the 
source yet. But if you or anyone wants a copy or the output let me know
and I will email you a copy off-list (its 85K).  

Fred Van Andel
fred@vanandel.net



--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: [gentoo-dev] mplayer with dvdread -- use flag comment
  2003-04-10 21:25         ` Riyad Kalla
@ 2003-04-10 21:55           ` Martin Schlemmer
  0 siblings, 0 replies; 15+ messages in thread
From: Martin Schlemmer @ 2003-04-10 21:55 UTC (permalink / raw
  To: Riyad Kalla; +Cc: 'Gentoo-Dev'

[-- Attachment #1: Type: text/plain, Size: 1089 bytes --]

On Thu, 2003-04-10 at 23:25, Riyad Kalla wrote:
> After reading your email I found out what was causing my hearache
> (make.defaults)! I hadn't thought about checking that as I didn't
> realize the use flags were hierarchical in that fashion...
> 
> Does make.defaults include all of the use flags?

No, just ones we think is ok for a generic desktop system with nice
functionality ....

> If I modified
> make.defaults (I know you just said not to, but...) to either include
> nothing, or include everything, wouldn't I effectively be implementing
> the behavior I just asked for? And then fine tune it with my make.conf?
> 

If you do not just want to '-foo' the flags you do not want, do in
/etc/make.conf:

----------------------------------------------
USE="-* whatever_flags_you_want"
----------------------------------------------

Where the '-*' means to remove all the default USE flags.  Do not
edit make.default directly ....


Regards,

-- 

Martin Schlemmer
Gentoo Linux Developer, Desktop/System Team Developer
Cape Town, South Africa




[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-dev] mplayer with dvdread
  2003-04-10 21:32   ` M. Zuelsdorff
                       ` (2 preceding siblings ...)
  2003-04-10 21:54     ` Fred Van Andel
@ 2003-04-11 18:09     ` Thilo Bangert
  3 siblings, 0 replies; 15+ messages in thread
From: Thilo Bangert @ 2003-04-11 18:09 UTC (permalink / raw
  To: gentoo-dev

On Thursday 10 April 2003 23:32, M. Zuelsdorff wrote:
> No, I don't make use of "USE" at all, since it's one of the really
> annoying parts of the Gentoo distribution.

actually, its one of  the best parts. although improvement certainly 
could be possible...

> There are thousands of
> packages in the portage tree but not a single line on which USE-var
> is related to which package.

# emerge --pretend -v [package_name]

-- 
regards
Thilo

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-dev] mplayer with dvdread
  2003-04-10 21:54     ` Fred Van Andel
@ 2003-04-11 19:55       ` Fred Van Andel
  0 siblings, 0 replies; 15+ messages in thread
From: Fred Van Andel @ 2003-04-11 19:55 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 852 bytes --]

Fred Van Andel <fred@vanandel.net> wrote:
(04/10/2003 14:54)

>The code is not quite ready for prime time so I don't want distribute the 
>source yet. But if you or anyone wants a copy or the output let me know
>and I will email you a copy off-list (its 85K).  

Sorry for replying to myself but the code is complete and attached to this
email.

To run either type:
     perl extractuse.pl
or set the executable bit and run it directly.

It will print to stdout 2 lists, the first is a list of packages and the
use flags associated with them.  The second list is of the use flags
and which packages use them.

You will probable want to redirect the output to a file or use
a pager, the output is > 3000 lines.

Depending on the speed of your machine it can take a couple of 
minutes before it produces any output so be patient.

Enjoy

Fred Van Andel


[-- Attachment #2: extractuse.pl --]
[-- Type: application/octet-stream, Size: 2680 bytes --]

#!/usr/bin/perl

#  Copyright 2003 by Fred Van Andel (fred@vanandel.net)
#
#  Licenced under the GPL
#
#  Extract USE flags information from the /usr/portage/ directory
#  and print lists to stdout showing how they are used.
#
#  Note: Sometimes different versions of a package will have 
#        different USE flags, this software will show them all
#        under the base package name.
#


use File::Find;
use strict vars;

our(%Packages, %UseFlags);

sub ProcessEachFile 
   {
      our($Pname, @UseList, $tmp, $i, $last);
      
      if(($File::Find::name =~ m!\.ebuild$!) != 0)
         {
            open(EBUILD, "<" . $File::Find::name);
            $/ = '<<NON EXISTENT SEPARATOR>>';   # Set slurp mode
            $_ = <EBUILD>; 
            close(EBUILD);
        
            # extract the use flags from the IUSE variable 
            m!IUSE[ \t]*=[ \t]*"([^"]*)"!ig;
            $tmp = $1;
	         $tmp =~ s!\n! !;
            @UseList = split(m![ ]+!, $tmp);

            # produce the package name from the file name            
            if($File::Find::name =~ m!^/usr/portage/([^/]*/[^/]*)/! != 0)
               { $Pname = $1; }
            else
	            { $Pname = ""; }     

            # if we have use flags and a package name then save them for later processing
            if(($#UseList != -1) && ($Pname ne ""))
               {
                  $last = "";
                  for $i (sort(@UseList))
                    {  
                       if($last ne $i) 
                          {
                             $last = $i;
                             $Packages{$i} .= "$Pname\t"; 
                             $UseFlags{$Pname} .= "$i\t";
                          }
                    }
               } 

         }
   }


find(\&ProcessEachFile, ("/usr/portage/"));

our(@FlagList, @UseList, $i, $j, $last);

# print out the list of use flags for each package
for $i (sort(keys %UseFlags))
   {
      
      @FlagList = sort(split(m!\t!, $UseFlags{$i}));
      print "$i:";
      $last = "";
      for $j (@FlagList)
         { 
            if($last ne $j)
               {
                  print " $j";
                  $last = $j;
               }	
         }
      print "\n";           
   } 

print "\n\n\n";

# print out the packages for each use flag
for $i (sort(keys %Packages))
   {
      our(@UseList, $i, $j, $last);
      
      @UseList = sort(split(m!\t!, $Packages{$i}));
      print "$i:\n";
      $last = "";
      for $j (@UseList)
         { 
            if($last ne $j)
               {
                  print "    $j\n";
                  $last = $j;
               }		  
         }
           
   } 

[-- Attachment #3: Type: text/plain, Size: 37 bytes --]

--
gentoo-dev@gentoo.org mailing list

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2003-04-11 19:55 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-09 22:48 [gentoo-dev] mplayer with dvdread M. Zuelsdorff
2003-04-09 21:47 ` Martin Schlemmer
2003-04-10  8:38   ` Henti Smith
2003-04-10 17:49     ` Martin Schlemmer
2003-04-10 21:32   ` M. Zuelsdorff
2003-04-10 20:43     ` [gentoo-dev] mplayer with dvdread -- use flag comment Riyad Kalla
2003-04-10 21:15       ` Martin Schlemmer
2003-04-10 21:25         ` Riyad Kalla
2003-04-10 21:55           ` Martin Schlemmer
2003-04-10 21:02     ` [gentoo-dev] mplayer with dvdread Martin Schlemmer
2003-04-10 21:22       ` Riyad Kalla
2003-04-10 21:52         ` Martin Schlemmer
2003-04-10 21:54     ` Fred Van Andel
2003-04-11 19:55       ` Fred Van Andel
2003-04-11 18:09     ` Thilo Bangert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox