All of lore.kernel.org
 help / color / mirror / Atom feed
* dpkg's admindir: /var/dpkg or /var/lib/dpkg?
@ 2011-05-18  9:27 Cui, Dexuan
  2011-05-18 13:39 ` Mark Hatle
  0 siblings, 1 reply; 3+ messages in thread
From: Cui, Dexuan @ 2011-05-18  9:27 UTC (permalink / raw)
  To: 'Richard Purdie',
	'Patches and discussions about the oe-core layer'

Hi, I happened to find a bug: in target,  "dpkg --list" shows "dpkg-query: failed to open package info file `/var/lib/dpkg/status' for reading: No such file or directory"

Actually the files(status and available) does exist, but not in /var/lib/dpkg/ -- they're in /var/dpkg/. "ln -s /var/dpkg/{status, available} /var/lib/dpkg" can resolve the issue.

grepping '/var/dpkg' shows there are many files(package_deb.bbclass, rootfs_deb.bbclass, populate_sdk_deb.bbclas, apt.conf ) in which '/var/dpkg' is used and /var/lib/dpkg is not used at all.

However, looks dpkg's default admindir is /var/lib/dpkg -- e.g., Ubuntu uses this.

What should we do? Looks fixing the package dpkg's admindir in the do_configure needs the least coding.

Thanks,
-- Dexuan
 



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

* Re: dpkg's admindir: /var/dpkg or /var/lib/dpkg?
  2011-05-18  9:27 dpkg's admindir: /var/dpkg or /var/lib/dpkg? Cui, Dexuan
@ 2011-05-18 13:39 ` Mark Hatle
  2011-05-19  1:48   ` Cui, Dexuan
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Hatle @ 2011-05-18 13:39 UTC (permalink / raw)
  To: openembedded-core

On 5/18/11 4:27 AM, Cui, Dexuan wrote:
> Hi, I happened to find a bug: in target,  "dpkg --list" shows "dpkg-query: failed to open package info file `/var/lib/dpkg/status' for reading: No such file or directory"
> 
> Actually the files(status and available) does exist, but not in /var/lib/dpkg/ -- they're in /var/dpkg/. "ln -s /var/dpkg/{status, available} /var/lib/dpkg" can resolve the issue.
> 
> grepping '/var/dpkg' shows there are many files(package_deb.bbclass, rootfs_deb.bbclass, populate_sdk_deb.bbclas, apt.conf ) in which '/var/dpkg' is used and /var/lib/dpkg is not used at all.
> 
> However, looks dpkg's default admindir is /var/lib/dpkg -- e.g., Ubuntu uses this.
> 
> What should we do? Looks fixing the package dpkg's admindir in the do_configure needs the least coding.

I would say that /var/lib/dpkg is the "correct" directory to use.  This matches
the behavior on other deb bases systems.  (It also mimics other pkg managers who
place their data into /var/lib/...)

--Mark

> Thanks,
> -- Dexuan
>  
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core




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

* Re: dpkg's admindir: /var/dpkg or /var/lib/dpkg?
  2011-05-18 13:39 ` Mark Hatle
@ 2011-05-19  1:48   ` Cui, Dexuan
  0 siblings, 0 replies; 3+ messages in thread
From: Cui, Dexuan @ 2011-05-19  1:48 UTC (permalink / raw)
  To: 'Patches and discussions about the oe-core layer'

Mark Hatle wrote:
> On 5/18/11 4:27 AM, Cui, Dexuan wrote:
>> Hi, I happened to find a bug: in target,  "dpkg --list" shows
>> "dpkg-query: failed to open package info file `/var/lib/dpkg/status'
>> for reading: No such file or directory"  
>> 
>> Actually the files(status and available) does exist, but not in
>> /var/lib/dpkg/ -- they're in /var/dpkg/. "ln -s /var/dpkg/{status,
>> available} /var/lib/dpkg" can resolve the issue.  
>> 
>> grepping '/var/dpkg' shows there are many files(package_deb.bbclass,
>> rootfs_deb.bbclass, populate_sdk_deb.bbclas, apt.conf ) in which
>> '/var/dpkg' is used and /var/lib/dpkg is not used at all.  
>> 
>> However, looks dpkg's default admindir is /var/lib/dpkg -- e.g.,
>> Ubuntu uses this. 
>> 
>> What should we do? Looks fixing the package dpkg's admindir in the
>> do_configure needs the least coding. 
> 
> I would say that /var/lib/dpkg is the "correct" directory to use. 
> This matches the behavior on other deb bases systems.  (It also
> mimics other pkg managers who place their data into /var/lib/...)
> 
Mark, thank you for the comment!
So looks we should fix any recipe that uses /var/dpkg?

The fact in poky /var/dpkg is widely used and /var/lib/dpkg is not used at all may imply we chose /var/dpkg for some reason?  Even meta/recipes-devtools/dpkg/run-postinsts/run-postinsts and meta/recipes-devtools/dpkg/run-postinsts/run-postinsts.awk use /var/dpkg.

Is it possible there is some story behind this?  Please let me Cc more people who touched this.

Thanks,
-- Dexuan



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

end of thread, other threads:[~2011-05-19  1:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-18  9:27 dpkg's admindir: /var/dpkg or /var/lib/dpkg? Cui, Dexuan
2011-05-18 13:39 ` Mark Hatle
2011-05-19  1:48   ` Cui, Dexuan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.