------- Comment From hegdevas...@in.ibm.com 2015-09-15 05:40 EDT-------
(In reply to comment #6)
> Shipping a file under /var in a package is normally incorrect.  In this case
> it appears that the file is only ever used as a stamp file - its contents
> never change, it's only an IPC mechanism between udev and libvpd to trigger
> an update of the database on a device change.  So it is not an outright
> packaging bug to ship this file in the package.

Correct. We just stamp that file and used to trigger vpdupdate automatically..
So if timestamp of this file is newer than last updated vpd information (vpd.db 
file), then next time when someone run lsvpd/lscfg tools vpdupdate will be 
triggered automatically.

>
> However, I don't understand how the absence of this file is causing a
> problem.  The udev rule will always cause the stamp file to be created on
> boot, or on the first device change after the installation of the libvpd
> package.  If the file does not exist, then the database created by the lsvpd
> package on install must already be up to date.  The behavior of libvpd in
> this case appears to be correct.

Impact is, if we don't have this file, then  if something changes in VPD 
information, someone has to run vpdupdate manually.
If we have this file, then it will trigger vpd database update automatically..

Earlier we had several bugs for this purpose.. (like after hotplug I
don't see information in VPD database) and people don't wanted to run
vpdupdate command manually. Hence we used this method.

>
> And putting a file such as this into a shared library package means that any
> new version of the library with a new ABI will have to declare a Replaces:
> against the older versions of the library, which is not ideal - however this
> problem already exists because of the udev rules file.
>
> In any case, please explain why you believe the absence of this file is a
> bug.

As explained above without this file, user has to run vpdupdate command 
manually after changing device configuration.. Otherwise they will endup 
getting stale data..
And one might think that its VPD bug! (In the past we had several bug reported 
related to this issue).

-Vasant

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1492895

Title:
  Ubuntu 14.04.03 Missing file - run.vpdupdate in libvpd package

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvpd/+bug/1492895/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to