public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] equery depends ----> Invalid db entry:
@ 2007-11-30  4:13 David Relson
  2007-11-30  5:58 ` ezotrank
  2007-11-30  6:52 ` Marc Joliet
  0 siblings, 2 replies; 10+ messages in thread
From: David Relson @ 2007-11-30  4:13 UTC (permalink / raw
  To: gentoo-user



$$$ equery depends /etc/init.d/samba

[ Searching for packages depending on /etc/init.d/samba... ]
!!! Invalid db entry: /var/db/pkg//app-misc
!!! Invalid db entry: /var/db/pkg//dev-perl
!!! Invalid db entry: /var/db/pkg//app-crypt
!!! Invalid db entry: /var/db/pkg//virtual
!!! Invalid db entry: /var/db/pkg//dev-util
!!! Invalid db entry: /var/db/pkg//sys-devel
!!! Invalid db entry: /var/db/pkg//sys-libs
!!! Invalid db entry: /var/db/pkg//dev-libs
!!! Invalid db entry: /var/db/pkg//app-admin


Any thoughts why equery is complaining?  

As an experiment I ran eix-update to try to clear up the problem, but
it didn't have any effect.

Regards,

David

-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] equery depends ----> Invalid db entry:
  2007-11-30  4:13 [gentoo-user] equery depends ----> Invalid db entry: David Relson
@ 2007-11-30  5:58 ` ezotrank
  2007-11-30  6:52 ` Marc Joliet
  1 sibling, 0 replies; 10+ messages in thread
From: ezotrank @ 2007-11-30  5:58 UTC (permalink / raw
  To: gentoo-user

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

On 23:13 Thu 29 Nov     , David Relson wrote:
> 
> 
> $$$ equery depends /etc/init.d/samba
> 
> [ Searching for packages depending on /etc/init.d/samba... ]
> !!! Invalid db entry: /var/db/pkg//app-misc
> !!! Invalid db entry: /var/db/pkg//dev-perl
> !!! Invalid db entry: /var/db/pkg//app-crypt
> !!! Invalid db entry: /var/db/pkg//virtual
> !!! Invalid db entry: /var/db/pkg//dev-util
> !!! Invalid db entry: /var/db/pkg//sys-devel
> !!! Invalid db entry: /var/db/pkg//sys-libs
> !!! Invalid db entry: /var/db/pkg//dev-libs
> !!! Invalid db entry: /var/db/pkg//app-admin
> 
> 
> Any thoughts why equery is complaining?  
> 
> As an experiment I ran eix-update to try to clear up the problem, but
> it didn't have any effect.
> 
> Regards,
> 
> David
> 
> -- 
> gentoo-user@gentoo.org mailing list

maybe you help revdep-rebuild
-- 
--
With best regards, ezotrank
kernel 2.6.23-gentoo-r2, system uptime: 07:58:21 up 8:38, 4 users, load average: 0.00, 0.02, 0.04
--

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [gentoo-user] equery depends ----> Invalid db entry:
  2007-11-30  4:13 [gentoo-user] equery depends ----> Invalid db entry: David Relson
  2007-11-30  5:58 ` ezotrank
@ 2007-11-30  6:52 ` Marc Joliet
  2007-11-30 12:29   ` David Relson
  1 sibling, 1 reply; 10+ messages in thread
From: Marc Joliet @ 2007-11-30  6:52 UTC (permalink / raw
  To: gentoo-user

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

Am Thu, 29 Nov 2007 23:13:10 -0500
schrieb David Relson <relson@osagesoftware.com>:

> 
> 
> $$$ equery depends /etc/init.d/samba
> 
> [ Searching for packages depending on /etc/init.d/samba... ]
> !!! Invalid db entry: /var/db/pkg//app-misc
> !!! Invalid db entry: /var/db/pkg//dev-perl
> !!! Invalid db entry: /var/db/pkg//app-crypt
> !!! Invalid db entry: /var/db/pkg//virtual
> !!! Invalid db entry: /var/db/pkg//dev-util
> !!! Invalid db entry: /var/db/pkg//sys-devel
> !!! Invalid db entry: /var/db/pkg//sys-libs
> !!! Invalid db entry: /var/db/pkg//dev-libs
> !!! Invalid db entry: /var/db/pkg//app-admin
> 
> 
> Any thoughts why equery is complaining?  
> 
> As an experiment I ran eix-update to try to clear up the problem, but
> it didn't have any effect.
> 
> Regards,
> 
> David
> 

Relevant snip from the manpage:

depends <local-opts> pkgspec
              This command displays all dependencies matching pkgspec.
              <local-opts> is either or both of:
              -a, --all-packages search in all available packages (slow)
              -d, --direct search direct dependencies only (default)
              -D, --indirect search indirect dependencies (very slow)
              --depth=n Limit depth of indirect dependency tree to n
levels. Setting --depth=0 is the same as not specifing --indirect.

So "equery depends" expects a package name, not a file name. What
exactly are you trying to do?

-- 
Marc Joliet
--
"People who think they know everything really annoy those of us who
know we don't" - Bjarne Stroustrup

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [gentoo-user] equery depends ----> Invalid db entry:
  2007-11-30  6:52 ` Marc Joliet
@ 2007-11-30 12:29   ` David Relson
  2007-11-30 12:40     ` Dale
  0 siblings, 1 reply; 10+ messages in thread
From: David Relson @ 2007-11-30 12:29 UTC (permalink / raw
  To: gentoo-user

On Fri, 30 Nov 2007 07:52:03 +0100
Marc Joliet wrote:

..[snip]..
 
> Relevant snip from the manpage:
> 
> depends <local-opts> pkgspec
>               This command displays all dependencies matching pkgspec.
>               <local-opts> is either or both of:
>               -a, --all-packages search in all available packages
> (slow) -d, --direct search direct dependencies only (default)
>               -D, --indirect search indirect dependencies (very slow)
>               --depth=n Limit depth of indirect dependency tree to n
> levels. Setting --depth=0 is the same as not specifing --indirect.
> 
> So "equery depends" expects a package name, not a file name. What
> exactly are you trying to do?
> 
> -- 
> Marc Joliet

Hello Marc,

Right you are, I was using the wrong command.  

If I recall, last night I wanted to find which package _provides_ a
given file.  Obviously the file in my sample, i.e. /etc/init.d/samba,
is from net-fs/samba but the general question remains:  How does one
find the package from which a file came?

Regards,

David
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] equery depends ----> Invalid db entry:
  2007-11-30 12:29   ` David Relson
@ 2007-11-30 12:40     ` Dale
  2007-11-30 12:50       ` David Relson
  2007-11-30 21:50       ` Neil Bothwick
  0 siblings, 2 replies; 10+ messages in thread
From: Dale @ 2007-11-30 12:40 UTC (permalink / raw
  To: gentoo-user

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

David Relson wrote:
> On Fri, 30 Nov 2007 07:52:03 +0100
> Marc Joliet wrote:
>
> ..[snip]..
>  
>   
>> Relevant snip from the manpage:
>>
>> depends <local-opts> pkgspec
>>               This command displays all dependencies matching pkgspec.
>>               <local-opts> is either or both of:
>>               -a, --all-packages search in all available packages
>> (slow) -d, --direct search direct dependencies only (default)
>>               -D, --indirect search indirect dependencies (very slow)
>>               --depth=n Limit depth of indirect dependency tree to n
>> levels. Setting --depth=0 is the same as not specifing --indirect.
>>
>> So "equery depends" expects a package name, not a file name. What
>> exactly are you trying to do?
>>
>> -- 
>> Marc Joliet
>>     
>
> Hello Marc,
>
> Right you are, I was using the wrong command.  
>
> If I recall, last night I wanted to find which package _provides_ a
> given file.  Obviously the file in my sample, i.e. /etc/init.d/samba,
> is from net-fs/samba but the general question remains:  How does one
> find the package from which a file came?
>
> Regards,
>
> David
>   

equery belongs <file name>

That help?

Dale

:-)  :-)  :-) 

[-- Attachment #2: Type: text/html, Size: 1633 bytes --]

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

* Re: [gentoo-user] equery depends ----> Invalid db entry:
  2007-11-30 12:40     ` Dale
@ 2007-11-30 12:50       ` David Relson
  2007-11-30 21:50       ` Neil Bothwick
  1 sibling, 0 replies; 10+ messages in thread
From: David Relson @ 2007-11-30 12:50 UTC (permalink / raw
  To: gentoo-user

On Fri, 30 Nov 2007 06:40:17 -0600
Dale wrote:

> David Relson wrote:
> > On Fri, 30 Nov 2007 07:52:03 +0100
> > Marc Joliet wrote:
> >
> > ..[snip]..
> >  
> >   
> >> Relevant snip from the manpage:
> >>
> >> depends <local-opts> pkgspec
> >>               This command displays all dependencies matching
> >> pkgspec. <local-opts> is either or both of:
> >>               -a, --all-packages search in all available packages
> >> (slow) -d, --direct search direct dependencies only (default)
> >>               -D, --indirect search indirect dependencies (very
> >> slow) --depth=n Limit depth of indirect dependency tree to n
> >> levels. Setting --depth=0 is the same as not specifing --indirect.
> >>
> >> So "equery depends" expects a package name, not a file name. What
> >> exactly are you trying to do?
> >>
> >> -- 
> >> Marc Joliet
> >>     
> >
> > Hello Marc,
> >
> > Right you are, I was using the wrong command.  
> >
> > If I recall, last night I wanted to find which package _provides_ a
> > given file.  Obviously the file in my sample,
> > i.e. /etc/init.d/samba, is from net-fs/samba but the general
> > question remains:  How does one find the package from which a file
> > came?
> >
> > Regards,
> >
> > David
> >   
> 
> equery belongs <file name>
> 
> That help?
> 
> Dale

Indeed it does!

Thanks, Dale.
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] equery depends ----> Invalid db entry:
  2007-11-30 12:40     ` Dale
  2007-11-30 12:50       ` David Relson
@ 2007-11-30 21:50       ` Neil Bothwick
  2007-11-30 22:49         ` Stroller
  2007-11-30 22:54         ` David Relson
  1 sibling, 2 replies; 10+ messages in thread
From: Neil Bothwick @ 2007-11-30 21:50 UTC (permalink / raw
  To: gentoo-user

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

On Fri, 30 Nov 2007 06:40:17 -0600, Dale wrote:

> equery belongs <file name>

Or, if you want the result quickly, qfile <file name>

qfile is part of portage-utils.


-- 
Neil Bothwick

Illiterate? Write today for free help.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [gentoo-user] equery depends ----> Invalid db entry:
  2007-11-30 21:50       ` Neil Bothwick
@ 2007-11-30 22:49         ` Stroller
  2007-11-30 23:48           ` Neil Bothwick
  2007-11-30 22:54         ` David Relson
  1 sibling, 1 reply; 10+ messages in thread
From: Stroller @ 2007-11-30 22:49 UTC (permalink / raw
  To: gentoo-user


On 30 Nov 2007, at 21:50, Neil Bothwick wrote:

> On Fri, 30 Nov 2007 06:40:17 -0600, Dale wrote:
>
>> equery belongs <file name>
>
> Or, if you want the result quickly, qfile <file name>
>
> qfile is part of portage-utils.

Installing this I find that:

* //etc/portage/postsync.d/q-reinitialize has been installed for  
convenience
* If you wish for it to be automatically run at the end of every -- 
sync simply chmod +x //etc/portage/postsync.d/q-reinitialize
* Normally this should only take a few seconds to run but file  
systems such as ext3 can take a lot longer.
* If ever you find this to be an inconvenience simply chmod -x //etc/ 
portage/postsync.d/q-reinitialize

I see that this "/etc/portage/postsync.d/q-reinitialize" simply calls  
the core portage-utils binary with the --quiet & --reinitialize  
parameters.

Am I correct in assuming that portage-utils does not work stuff out  
"on the fly" but needs to rebuild its database after each `emerge -- 
sync`?

Stroller.
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] equery depends ----> Invalid db entry:
  2007-11-30 21:50       ` Neil Bothwick
  2007-11-30 22:49         ` Stroller
@ 2007-11-30 22:54         ` David Relson
  1 sibling, 0 replies; 10+ messages in thread
From: David Relson @ 2007-11-30 22:54 UTC (permalink / raw
  To: gentoo-user

On Fri, 30 Nov 2007 21:50:55 +0000
Neil Bothwick wrote:

> On Fri, 30 Nov 2007 06:40:17 -0600, Dale wrote:
> 
> > equery belongs <file name>
> 
> Or, if you want the result quickly, qfile <file name>
> 
> qfile is part of portage-utils.
> 
> 
> -- 
> Neil Bothwick

Indeed it is faster!  Thanks.


David
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] equery depends ----> Invalid db entry:
  2007-11-30 22:49         ` Stroller
@ 2007-11-30 23:48           ` Neil Bothwick
  0 siblings, 0 replies; 10+ messages in thread
From: Neil Bothwick @ 2007-11-30 23:48 UTC (permalink / raw
  To: gentoo-user

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

On Fri, 30 Nov 2007 22:49:18 +0000, Stroller wrote:

> Am I correct in assuming that portage-utils does not work stuff out  
> "on the fly" but needs to rebuild its database after each `emerge -- 
> sync`?

No, it works without that. I think it's simply rebuilding its cache to
save time the next time you run it.


-- 
Neil Bothwick

All right, set phasers to deep fat fry!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2007-11-30 23:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-30  4:13 [gentoo-user] equery depends ----> Invalid db entry: David Relson
2007-11-30  5:58 ` ezotrank
2007-11-30  6:52 ` Marc Joliet
2007-11-30 12:29   ` David Relson
2007-11-30 12:40     ` Dale
2007-11-30 12:50       ` David Relson
2007-11-30 21:50       ` Neil Bothwick
2007-11-30 22:49         ` Stroller
2007-11-30 23:48           ` Neil Bothwick
2007-11-30 22:54         ` David Relson

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