Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-15 Thread mathieu perrenoud
On Monday 15 December 2003 04:10, Joel Konkle-Parker wrote:
 I'm switching over from OSS to ALSA, so I need to find all the installed
 packages that were merged with -alsa. Is this possible?

 Thanks in advance.

what about this one?
emerge -evp world | grep '-alsa' | awk '{print $4}'

it doesn't look like a jpeg's bindump.
Is it missing something?

-- 
mathieu


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-15 Thread Jason Stubbs
On Monday 15 December 2003 16:40, mathieu perrenoud wrote:
 On Monday 15 December 2003 04:10, Joel Konkle-Parker wrote:
  I'm switching over from OSS to ALSA, so I need to find all the installed
  packages that were merged with -alsa. Is this possible?
 
  Thanks in advance.

 what about this one?
 emerge -evp world | grep '-alsa' | awk '{print $4}'

 it doesn't look like a jpeg's bindump.
 Is it missing something?

Packages that aren't listed in or aren't a dependency of a package in world. 
Other than that, it is the simplest solution.

-- 
Regards,
Jason Stubbs

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-15 Thread Norbert Kamenicky
mathieu perrenoud wrote:

On Monday 15 December 2003 04:10, Joel Konkle-Parker wrote:
 

I'm switching over from OSS to ALSA, so I need to find all the installed
packages that were merged with -alsa. Is this possible?
Thanks in advance.
   

what about this one?
emerge -evp world | grep '-alsa' | awk '{print $4}'
it doesn't look like a jpeg's bindump.
Is it missing something?
 

Definitelly this is not the script which gives the proper answer
to given question!
This answers which package will, (but not was - it's a BIG difference)
be emerged  without alsa flag ... so if alsa flag is set the output is null,
but there is no reason to say ebuild wasn't emerged without the flag.
noro

--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-15 Thread Joel Konkle-Parker
Quoting Norbert Kamenicky [EMAIL PROTECTED]:

 mathieu perrenoud wrote:
 
 On Monday 15 December 2003 04:10, Joel Konkle-Parker wrote:
   
 
 I'm switching over from OSS to ALSA, so I need to find all the
 installed
 packages that were merged with -alsa. Is this possible?
 
 Thanks in advance.
 
 
 
 what about this one?
 emerge -evp world | grep '-alsa' | awk '{print $4}'
 
 it doesn't look like a jpeg's bindump.
 Is it missing something?
 
   
 
 Definitelly this is not the script which gives the proper answer
 to given question!
 
 This answers which package will, (but not was - it's a BIG difference)
 be emerged  without alsa flag ... so if alsa flag is set the output is
 null,
 but there is no reason to say ebuild wasn't emerged without the flag.
 
 noro

Well, my take from this whole thread is that it's not possible without some
shell hacking.

I hope this is on the portage-ng roadmap...


-- 
Joel Konkle-Parker
Webmaster [Ballsome.com]

Phone [662-518-1636]
E-mail[EMAIL PROTECTED]

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-15 Thread Norbert Kamenicky
Joel Konkle-Parker wrote:

Well, my take from this whole thread is that it's not possible without some
shell hacking.
 

h ...   shell scripting is one of the thing  which give us
freedom/power and  easy way to solve different daily problems
in simple/easy way (indeed after some experience).
Let see microshit ... even for simple tasks havy guns like C/C++ ...
BASIC ;-)  (S cames from stupid)  are needed :-o.
noro



--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-15 Thread Przemysaw Macig
W licie z pon, 15-12-2003, godz. 14:18, Joel Konkle-Parker pisze: 
 Quoting Norbert Kamenicky [EMAIL PROTECTED]:
 
  mathieu perrenoud wrote:
  
  On Monday 15 December 2003 04:10, Joel Konkle-Parker wrote:

  
  I'm switching over from OSS to ALSA, so I need to find all the
  installed
  packages that were merged with -alsa. Is this possible?
  
  Thanks in advance.
 Well, my take from this whole thread is that it's not possible without some
 shell hacking.
There is a very nice app called epm - very similar to rpm.

Simply:
emerge epm
epm -qa | grep -alsa

Regards,
Przemek
-- 

Email:pmaciag(at)inx.pm.waw.pl  |  Email:troll(at)trollmoors.dyndns.org
Reg Linux User#: 303556
JID#: [EMAIL PROTECTED] ycie jest jak pudeko czekoladek...
JID#: [EMAIL PROTECTED] Nigdy nie wiesz na co trafisz.



--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-15 Thread mathieu perrenoud
Le Lundi, 15 Décembre 2003 14.45, Norbert Kamenicky a écrit :
 Well, my take from this whole thread is that it's not possible without
  some shell hacking.
   

 h ...   shell scripting is one of the thing  which give us
 freedom/power and  easy way to solve different daily problems
 in simple/easy way (indeed after some experience).

I fully agree. But emerge -ep world | grep '-alsa' can hardly be called shell
hacking.

-- 
mathieu perrenoud

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-15 Thread Joel Konkle-Parker
Quoting mathieu perrenoud [EMAIL PROTECTED]:

 Le Lundi, 15 Décembre 2003 14.45, Norbert Kamenicky a écrit :
  Well, my take from this whole thread is that it's not possible
 without
   some shell hacking.

 
  h ...   shell scripting is one of the thing  which give us
  freedom/power and  easy way to solve different daily problems
  in simple/easy way (indeed after some experience).
 
 I fully agree. But emerge -ep world | grep '-alsa' can hardly be called
 shell
 hacking.

Ok, so maybe not shell hacking. But there needs to be some sort of easy way to
do the following:

- Build system using OSS (+oss -alsa)
- Decide later to switch to ALSA (+/-oss +alsa)
- Tell portage to remerge everything previously merged with -alsa to reflect
the change

This seems like a pretty common scenario, and something that should definately
be doable without a lot of trouble.


-- 
Joel Konkle-Parker
Webmaster [Ballsome.com]

Phone [662-518-1636]
E-mail[EMAIL PROTECTED]

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-15 Thread Oliver Lange
Norbert Kamenicky wrote:
h ...   shell scripting is one of the thing  which give us
freedom/power and  easy way to solve different daily problems
in simple/easy way (indeed after some experience).
Let see microshit ... even for simple tasks havy guns like C/C++ ...
BASIC ;-)  (S cames from stupid)  are needed :-o.
Yep, using Windows is like using a car without having the ignition key..

But, on the other hand, i've learned to love GUI applications.
In the earlier days (on the Amiga), i also used to call myself as
'shell lover', nothing could come between me and my shell - then I
started using DirectoryOpus, and my shell bias was over.
Under Windows, you need to know which tools you need, else better
sell your computer and search for another hobby. With professional
GUI tools which make intelligent use of keyboard shortcuts for
everything, I eventually used a shell for approx. 5 minutes per month.
With Linux, it's all about back to oldskool (shell), because most
GUI applications are lightyears away from comfort. For example,
when i use something like a search dialog, and i cannot close it
with the escape key (just to name one of a zillion things),
i can understand why everybody prefers using the shell, and why
everybody says that shell stands for flexibility and speed..
The trouble is that one needs years of hard learning to get things
done quick  efficiently..
blablabla. :)



--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-15 Thread Oliver Lange
mathieu perrenoud wrote:


I fully agree. But emerge -ep world | grep '-alsa' can hardly be called shell
hacking.
Instead of that cryptic shell stuff (i mean in general), I'd like to have the
portage tree and all it's stuff put into a simple SQL database. Then you could
talk to your computer in clear english, like this:
select name from packages where USE = '-alsa'

(something like that)

Doesn't that look pretty easy to learn  bear in mind ?

This would also reduce the enourmous number of files  dirs on the harddisk.
I just wrote my own updatedb script which excludes /usr/portage and
/var/cache/edb, else each locate command completely floods the shell
line buffer(s) with hits from these two paths..
Not to mention the extreme high speed which an SQL database would provide,
compared to qpkg searches thru' the filesys...
--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-15 Thread Oliver Lange
Joel Konkle-Parker wrote:
Ok, so maybe not shell hacking. But there needs to be some sort of easy way to
do the following:
- Build system using OSS (+oss -alsa)
- Decide later to switch to ALSA (+/-oss +alsa)
- Tell portage to remerge everything previously merged with -alsa to reflect
the change
This seems like a pretty common scenario, and something that should definately
be doable without a lot of trouble.
I already asked myself what to do with my full-blown destop box if I'd decide to
switch from gnome to kde.. :)
--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-15 Thread Norbert Kamenicky
Oliver Lange wrote:

Norbert Kamenicky wrote:

h ...   shell scripting is one of the thing  which give us
freedom/power and  easy way to solve different daily problems
in simple/easy way (indeed after some experience).
Let see microshit ... even for simple tasks havy guns like C/C++ ...
BASIC ;-)  (S cames from stupid)  are needed :-o.
Yep, using Windows is like using a car without having the ignition key..

But, on the other hand, i've learned to love GUI applications.
In the earlier days (on the Amiga), i also used to call myself as
'shell lover', nothing could come between me and my shell - then I
started using DirectoryOpus, and my shell bias was over.
Under Windows, you need to know which tools you need, else better
sell your computer and search for another hobby. With professional
GUI tools which make intelligent use of keyboard shortcuts for
everything, I eventually used a shell for approx. 5 minutes per month.
With Linux, it's all about back to oldskool (shell), because most
GUI applications are lightyears away from comfort. For example,
when i use something like a search dialog, and i cannot close it
with the escape key (just to name one of a zillion things),
i can understand why everybody prefers using the shell, and why
everybody says that shell stands for flexibility and speed..
The trouble is that one needs years of hard learning to get things
done quick  efficiently..
blablabla. :)

If somebody is singing oda's about GUI and clicking,
I like to ask him to solve this problem:
Give me the first 2000 most frequently used words
in english newspapers!
First part - collecting some newspapers pages from
web site is quite simple ...
but then they have to start to count words on fingers
or using russian invention called sczoty
(balls on wire) :-)
or start to programm havy application.
On the other hand in linux/unix environment
it's possible to write relatively simple shell
script  in couple of minutes (which will run terrible
slow comparing to C/C++), but anyway
the output will be available much faster ...
noro

PS.
Some people like to spend time with cross-word,
but it's only because they doesn't know shell ! :-)






--
[EMAIL PROTECTED] mailing list


RE: [gentoo-user] Find all installed packages with -alsa?

2003-12-15 Thread Van Eps, Nathan D. (James Tower)
-Original Message-
From: Oliver Lange

mathieu perrenoud wrote:
 
 
 I fully agree. But emerge -ep world | grep '-alsa' can hardly be called
shell hacking.
 

Instead of that cryptic shell stuff (i mean in general), I'd like to have
the
portage tree and all it's stuff put into a simple SQL database. Then you
could
talk to your computer in clear english, like this:

select name from packages where USE = '-alsa'

(something like that)

Doesn't that look pretty easy to learn  bear in mind ?

This would also reduce the enourmous number of files  dirs on the
harddisk.
I just wrote my own updatedb script which excludes /usr/portage and
/var/cache/edb, else each locate command completely floods the shell
line buffer(s) with hits from these two paths..

Not to mention the extreme high speed which an SQL database would provide,
compared to qpkg searches thru' the filesys...

Using a SQL DB would increase the data stored on the harddisk. It is also
slower than raw file access. The deal breaker is that you don't want to
depend on a SQL DB for minimal installs.

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-15 Thread Oliver Lange
Norbert Kamenicky wrote:
Oliver Lange wrote:

If somebody is singing oda's about GUI and clicking,
I like to ask him to solve this problem:
Give me the first 2000 most frequently used words
in english newspapers!
Okay okay, you're right, no-one will ever add a menu entry
in a GUI-driven tool named 'Give me the first n most frequently
used words in language newspapers'.
For such tasks we have got the shell, perl, python, php, C/C++, ...

But: this example is a little unfair. Tell me: how many people
would click on such a button (or menu entry) during all-day
desktop sessions ?
IMHO, typical user action might be kinda more basic, like searching
for installed software, or searching any non-binary file for
strings, and the like.
Believe it or not: i couldn't find a really good file manager for
Linux. I tried many, like Krusader, gnome-commander, gentoo, worker,
nautilus, x-files... the smartest thing i could find is still the
good old Midnight Commander, but that thing also lacks of lotsa
features, not to mention that it's shell-based.. unfortunately,
WindowsCommander (now named TotalCommander), started under wine,
won't do good because it doesn't know about Linux file properties
(permissions etc.).
Without good power tools, the shell is, unfortunately, the only
good answer when it comes to all-day system  file management.
Ever used Nautilus or Windows Explorer ? OMG... i feel sorry for
people who don't know better tools.. :)
--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-15 Thread Andrew Gaffney
Andrew Gaffney wrote:
Jason Stubbs wrote:

On Monday 15 December 2003 12:10, Joel Konkle-Parker wrote:

I'm switching over from OSS to ALSA, so I need to find all the installed
packages that were merged with -alsa. Is this possible?
Thanks in advance.


# grep -l '-alsa' `find /var/db/pkg/*/*/USE`


That will likely give you *every* package. Try something like:

cd /var/db/pkg
for i in $(grep -l 'alsa' */*/IUSE | cut -d '/' -f 1-2); do grep 
\-alsa ${i}/USE; done
That's what I get for posting without testing. This will work a little better.

for i in $(grep -l 'ssl' */*/IUSE | cut -d '/' -f 1-2); do grep \-ssl ${i}/USE  
/dev/null  echo ${i}; done

--
Andrew Gaffney
--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-15 Thread Oliver Lange
Van Eps, Nathan D. (James Tower) wrote:
Using a SQL DB would increase the data stored on the harddisk. It is also
slower than raw file access. The deal breaker is that you don't want to
depend on a SQL DB for minimal installs.
?? Did you ever use a SQL db ? Responses for queries within such 'tiny' databases
(only 70,000 entries) come within a finger snap. qpkg needs several seconds
for a query on a 2 GHz machine.
You're right about the problem of choosing the right SQL database to be installed.
If i'd suggest to add MySQL or Postgres to gentoo-stage-2, i would no doubt
get a million of answers from people who'd call me crazy.
Of course it would have to be a *tiny* and *independent* instance of a database
which shouldn't conflict with any other installation of the same
(or other) database(s) for other purposes. I see that this is kinda problem,
but the advantages were great, especially for beginners who could
easily learn to handle things, and - as a side effect - learn SQL..
Well, just an idea.

--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-15 Thread Przemysaw Macig
W licie z pon, 15-12-2003, godz. 14:52, Przemysaw Macig pisze: 
 W licie z pon, 15-12-2003, godz. 14:18, Joel Konkle-Parker pisze: 
  Quoting Norbert Kamenicky [EMAIL PROTECTED]:
  
   mathieu perrenoud wrote:
   
   On Monday 15 December 2003 04:10, Joel Konkle-Parker wrote:
 
   
   I'm switching over from OSS to ALSA, so I need to find all the
   installed
   packages that were merged with -alsa. Is this possible?
   
   Thanks in advance.
  Well, my take from this whole thread is that it's not possible without some
  shell hacking.
 There is a very nice app called epm - very similar to rpm.
 
 Simply:
 emerge epm
 epm -qa | grep -alsa
Usss Sorry - of course epm isn't the right tool for doing this.
My mistake! :(

Regards,
Przemek
-- 

Email:pmaciag(at)inx.pm.waw.pl  |  Email:troll(at)trollmoors.dyndns.org
Reg Linux User#: 303556
JID#: [EMAIL PROTECTED] ycie jest jak pudeko czekoladek...
JID#: [EMAIL PROTECTED] Nigdy nie wiesz na co trafisz.



--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-15 Thread Simon
just: emerge --emptytree -vp world | grep -alsa

On Monday 15 December 2003 18:09, Przemysaw Macig wrote:
 W licie z pon, 15-12-2003, godz. 14:52, Przemysaw Macig pisze:
  W licie z pon, 15-12-2003, godz. 14:18, Joel Konkle-Parker pisze:
   Quoting Norbert Kamenicky [EMAIL PROTECTED]:
mathieu perrenoud wrote:
On Monday 15 December 2003 04:10, Joel Konkle-Parker wrote:
I'm switching over from OSS to ALSA, so I need to find all the
   
installed
   
packages that were merged with -alsa. Is this possible?

Thanks in advance.
  
   Well, my take from this whole thread is that it's not possible without
   some shell hacking.
 
  There is a very nice app called epm - very similar to rpm.
 
  Simply:
  emerge epm
  epm -qa | grep -alsa

 Usss Sorry - of course epm isn't the right tool for doing this.
 My mistake! :(

 Regards,
 Przemek


--
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] Find all installed packages with -alsa?

2003-12-15 Thread Van Eps, Nathan D. (James Tower)
Sure I've used a SQL DB. A file stored in a DB is slower to load than a file
on disk. This doesn't speak to indexing and cacheing that a DB might have
(not to mention that DBs are usually way better machines than your desktop).
Of course, you can apply these techniques to files on disk as well.

-Original Message-
From: Oliver Lange

Van Eps, Nathan D. (James Tower) wrote:
 
 Using a SQL DB would increase the data stored on the harddisk. It is also
 slower than raw file access. The deal breaker is that you don't want to
 depend on a SQL DB for minimal installs.

?? Did you ever use a SQL db ? Responses for queries within such 'tiny'
databases
(only 70,000 entries) come within a finger snap. qpkg needs several seconds
for a query on a 2 GHz machine.

You're right about the problem of choosing the right SQL database to be
installed.
If i'd suggest to add MySQL or Postgres to gentoo-stage-2, i would no doubt
get a million of answers from people who'd call me crazy.

Of course it would have to be a *tiny* and *independent* instance of a
database
which shouldn't conflict with any other installation of the same
(or other) database(s) for other purposes. I see that this is kinda problem,
but the advantages were great, especially for beginners who could
easily learn to handle things, and - as a side effect - learn SQL..

Well, just an idea.


--
[EMAIL PROTECTED] mailing list

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-15 Thread Oliver Lange
Van Eps, Nathan D. (James Tower) wrote:
Sure I've used a SQL DB. A file stored in a DB is slower to load than a file
on disk. This doesn't speak to indexing and cacheing that a DB might have
(not to mention that DBs are usually way better machines than your desktop).
Of course, you can apply these techniques to files on disk as well.
Yes, 'a file'. Just have a look into:

/usr/portage
/var/cache/edb
/var/db/pgk
Where i found more than 75,000 files in more than 12,500 directories...
Actions like fopen() and dir reads take much more steps than fetching
the info from a database. On the other hand, one can modify things
manually with the current system. However.. :)
--
[EMAIL PROTECTED] mailing list


[gentoo-user] Find all installed packages with -alsa?

2003-12-14 Thread Joel Konkle-Parker
I'm switching over from OSS to ALSA, so I need to find all the installed 
packages that were merged with -alsa. Is this possible?

Thanks in advance.

--
Joel Konkle-Parker
Webmaster [Ballsome.com]
Phone [+1 662-518-1636]
E-mail[EMAIL PROTECTED]


pgp0.pgp
Description: PGP signature


Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-14 Thread Jason Stubbs
On Monday 15 December 2003 12:10, Joel Konkle-Parker wrote:
 I'm switching over from OSS to ALSA, so I need to find all the installed
 packages that were merged with -alsa. Is this possible?

 Thanks in advance.

# grep -l '-alsa' `find /var/db/pkg/*/*/USE`

-- 
Regards,
Jason Stubbs

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-14 Thread Oliver Lange
Jason Stubbs wrote:
On Monday 15 December 2003 12:10, Joel Konkle-Parker wrote:

I'm switching over from OSS to ALSA, so I need to find all the installed
packages that were merged with -alsa. Is this possible?
Thanks in advance.


# grep -l '-alsa' `find /var/db/pkg/*/*/USE`

Aha, very interesting.

--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-14 Thread Andrew Gaffney
Jason Stubbs wrote:
On Monday 15 December 2003 12:10, Joel Konkle-Parker wrote:

I'm switching over from OSS to ALSA, so I need to find all the installed
packages that were merged with -alsa. Is this possible?
Thanks in advance.


# grep -l '-alsa' `find /var/db/pkg/*/*/USE`
That will likely give you *every* package. Try something like:

cd /var/db/pkg
for i in $(grep -l 'alsa' */*/IUSE | cut -d '/' -f 1-2); do grep \-alsa ${i}/USE; 
done
--
Andrew Gaffney
--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-14 Thread Joel Konkle-Parker
Jason Stubbs wrote:
On Monday 15 December 2003 12:10, Joel Konkle-Parker wrote:

I'm switching over from OSS to ALSA, so I need to find all the installed
packages that were merged with -alsa. Is this possible?
Thanks in advance.


# grep -l '-alsa' `find /var/db/pkg/*/*/USE`
Interestingly, this didn't work. Here's the session:

--
# cat /var/db/pkg/media-sound/esound-0.2.32/USE
x86 arts avi crypt cups encode foomaticdb gif gpm imlib jpeg libg++ 
libwww mad mikmod motif mpeg ncurses nls oggvorbis pdflib png quicktime 
sdl spell svga truetype xml2 xmms xv zlib gdbm berkdb slang readline 
tcpd pam ssl perl python opengl acpi -alsa -apm doc gnome gtk gtk2 java 
-kde mmx oss pnp -qt sse tcltk X
# grep -l '-alsa' `find /var/db/pkg/*/*/USE`
#
--

No output from grep, even though there is obviously a match in 
esound-0.2.32.

--
Joel Konkle-Parker
Webmaster [Ballsome.com]
Phone [+1 662-518-1636]
E-mail[EMAIL PROTECTED]


pgp0.pgp
Description: PGP signature


Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-14 Thread Renat Golubchyk
Hi!

On Monday 15 December 2003 04:10, Joel Konkle-Parker wrote:
 I'm switching over from OSS to ALSA, so I need to find all the installed
 packages that were merged with -alsa. Is this possible?


Try this one (everything in one line):

for pack in $(find /var/db/pkg/ -type f -name IUSE -exec grep -l 'alsa' '{}' 
';' |sed 's#IUSE$#USE#'); do grep -l '\-alsa' $pack; done |sed 
's#.*pkg/\(.*\)-[0-9].*/USE#\1#'



Cheers,
Renat


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-14 Thread Joel Konkle-Parker
Andrew Gaffney wrote:
Jason Stubbs wrote:

On Monday 15 December 2003 12:10, Joel Konkle-Parker wrote:

I'm switching over from OSS to ALSA, so I need to find all the installed
packages that were merged with -alsa. Is this possible?
Thanks in advance.


# grep -l '-alsa' `find /var/db/pkg/*/*/USE`


That will likely give you *every* package. Try something like:

cd /var/db/pkg
for i in $(grep -l 'alsa' */*/IUSE | cut -d '/' -f 1-2); do grep 
\-alsa ${i}/USE; done
Hmm, this is interesting, but ultimately not very useful. Here's the output:

--
# cd /var/db/pkg
# for i in $(grep -l 'alsa' */*/IUSE | cut -d '/' -f 1-2); do grep 
\-alsa ${i}/USE; done
x86 avi crypt cups encode foomaticdb gif jpeg libg++ libwww mad mikmod 
motif mpeg ncurses nls pdflib png quicktime sdl spell svga truetype xml2 
xmms xv zlib gtkhtml gdbm berkdb slang readline bonobo guile tcpd pam 
ssl perl python esd imlib oggvorbis opengl mozilla acpi -alsa -apm -arts 
cdr doc gnome -gpm gtk gtk2 hbci java -kde mmx mozcalendar mozxmlterm 
ofx oss pnp -qt slp sse tcltk tiff X xml
x86 arts avi crypt cups encode foomaticdb gif gpm imlib jpeg libg++ 
libwww mad mikmod motif mpeg ncurses nls oggvorbis pdflib png quicktime 
sdl spell svga truetype xml2 xmms xv zlib gdbm berkdb slang readline 
tcpd pam ssl perl python opengl acpi -alsa -apm doc gnome gtk gtk2 java 
-kde mmx oss pnp -qt sse tcltk X
#
--

It spits out the flags, but not the packages they came from.

--
Joel Konkle-Parker
Webmaster [Ballsome.com]
Phone [+1 662-518-1636]
E-mail[EMAIL PROTECTED]


pgp0.pgp
Description: PGP signature


Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-14 Thread Joel Konkle-Parker
Renat Golubchyk wrote:
Hi!

On Monday 15 December 2003 04:10, Joel Konkle-Parker wrote:

I'm switching over from OSS to ALSA, so I need to find all the installed
packages that were merged with -alsa. Is this possible?


Try this one (everything in one line):

for pack in $(find /var/db/pkg/ -type f -name IUSE -exec grep -l 'alsa' '{}' 
';' |sed 's#IUSE$#USE#'); do grep -l '\-alsa' $pack; done |sed 
's#.*pkg/\(.*\)-[0-9].*/USE#\1#'
Ding ding ding! Congrats, you got it!

--
Joel Konkle-Parker
Webmaster [Ballsome.com]
Phone [+1 662-518-1636]
E-mail[EMAIL PROTECTED]


pgp0.pgp
Description: PGP signature


Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-14 Thread Oliver Lange
Joel Konkle-Parker wrote:
Try this one (everything in one line):

for pack in $(find /var/db/pkg/ -type f -name IUSE -exec grep -l 
'alsa' '{}' ';' |sed 's#IUSE$#USE#'); do grep -l '\-alsa' $pack; done 
|sed 's#.*pkg/\(.*\)-[0-9].*/USE#\1#'


Ding ding ding! Congrats, you got it!

Dong dong dong.. looks like a bindump of a jpeg image :)

I wonder how many years pass by until I construct such commands for myself..

--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-14 Thread Jason Stubbs
On Monday 15 December 2003 12:36, Joel Konkle-Parker wrote:
 Jason Stubbs wrote:
  On Monday 15 December 2003 12:10, Joel Konkle-Parker wrote:
 I'm switching over from OSS to ALSA, so I need to find all the installed
 packages that were merged with -alsa. Is this possible?
 
 Thanks in advance.
 
  # grep -l '-alsa' `find /var/db/pkg/*/*/USE`

 Interestingly, this didn't work. Here's the session:

 --
 # cat /var/db/pkg/media-sound/esound-0.2.32/USE
 x86 arts avi crypt cups encode foomaticdb gif gpm imlib jpeg libg++
 libwww mad mikmod motif mpeg ncurses nls oggvorbis pdflib png quicktime
 sdl spell svga truetype xml2 xmms xv zlib gdbm berkdb slang readline
 tcpd pam ssl perl python opengl acpi -alsa -apm doc gnome gtk gtk2 java
 -kde mmx oss pnp -qt sse tcltk X
 # grep -l '-alsa' `find /var/db/pkg/*/*/USE`
 #
 --

 No output from grep, even though there is obviously a match in
 esound-0.2.32.

Okay, even though a successful answer has already been given, I want to have 
another go to save face ;-) How's the following?

for pkg in /var/db/pkg/*/* ; do grep -q alsa $pkg/IUSE  grep -L alsa 
$pkg/USE ; done

-- 
Regards,
Jason Stubbs

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-14 Thread Jason Stubbs
On Monday 15 December 2003 12:39, Renat Golubchyk wrote:
 Hi!

 On Monday 15 December 2003 04:10, Joel Konkle-Parker wrote:
  I'm switching over from OSS to ALSA, so I need to find all the installed
  packages that were merged with -alsa. Is this possible?

 Try this one (everything in one line):

 for pack in $(find /var/db/pkg/ -type f -name IUSE -exec grep -l 'alsa'
 '{}' ';' |sed 's#IUSE$#USE#'); do grep -l '\-alsa' $pack; done |sed
 's#.*pkg/\(.*\)-[0-9].*/USE#\1#'

Hmm, interestingly enough, this doesn't work for me. The reason is that the 
USE for each package only contains the flags that were enabled. I don't know 
if this is due to a different portage version (2.0.49-r18) or the fact that 
my USE flags begins with -* followed by the flags that I want, but I suspect 
the latter. Here's an alternative that should catch either situation:

for pkg in /var/db/pkg/*/* ; do grep -q 'alsa' $pkg/IUSE  (grep -L 'alsa' 
$pkg/USE || grep -l '\-alsa' $pkg/USE) ; done | sed 
's#.*pkg/\(.*\)-[0-9].*/USE#\1#'

Yes, I plagerized your sed script to clean up the output ;-)

--
Regards,
Jason Stubbs

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-14 Thread David Mallwitz

 Hmm, this is interesting, but ultimately not very useful. Here's the
 output:

 --
 # cd /var/db/pkg
 # for i in $(grep -l 'alsa' */*/IUSE | cut -d '/' -f 1-2); do grep
 \-alsa ${i}/USE; done
 x86 avi crypt cups encode foomaticdb gif jpeg libg++ libwww mad
 mikmod motif mpeg ncurses nls pdflib png quicktime sdl spell svga
 truetype xml2 xmms xv zlib gtkhtml gdbm berkdb slang readline bonobo
 guile tcpd pam ssl perl python esd imlib oggvorbis opengl mozilla
 acpi -alsa -apm -arts cdr doc gnome -gpm gtk gtk2 hbci java -kde mmx
 mozcalendar mozxmlterm ofx oss pnp -qt slp sse tcltk tiff X xml
 x86 arts avi crypt cups encode foomaticdb gif gpm imlib jpeg libg++
 libwww mad mikmod motif mpeg ncurses nls oggvorbis pdflib png
 quicktime sdl spell svga truetype xml2 xmms xv zlib gdbm berkdb slang
 readline tcpd pam ssl perl python opengl acpi -alsa -apm doc gnome
 gtk gtk2 java -kde mmx oss pnp -qt sse tcltk X
 #
 --

 It spits out the flags, but not the packages they came from.


egrep -r -alsa /var/db/pkg/*/*/USE | cut -d: -f1


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Find all installed packages with -alsa?

2003-12-14 Thread Ciaran McCreesh
On Sun, 14 Dec 2003 22:10:58 -0500 Joel Konkle-Parker [EMAIL PROTECTED]
wrote:
| I'm switching over from OSS to ALSA, so I need to find all the
| installed packages that were merged with -alsa. Is this possible?

for p in `qpkg -v -I -nc` ; do etcat -u $p | grep '^ . - alsa ' 
/dev/null  echo $p | sed 's,\(.*\)-[0-9].*,\1,'; done

It'll take aaages to run (etcat -u is almost slow enough to be a
KDE utility), but it should work. It needs gentoolkit installed.

This one isn't portage-version sensitive, and it's actually pretty
readable as well.

-- 
Ciaran McCreesh
Mail:ciaranm at gentoo.org
Web: http://dev.gentoo.org/~ciaranm



pgp0.pgp
Description: PGP signature