Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 161296
Alias:
Product:
Component:
Status: CLOSED
Resolution: DUPLICATE of bug 156183
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Ulrich Müller <ulm@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 161296 depends on: Show dependency tree
Bug 161296 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.




View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-01-10 11:13 0000
pciutils-2.2.4 uses a cron job to update /usr/share/misc/pci.ids.gz. This does
not work for a read-only /usr partition.

According to the FHS 2.3 (chpater 4):
| /usr is shareable, read-only data. That means that /usr should
| be shareable between various FHS-compliant hosts and must not be
| written to. Any information that is host-specific or varies with
| time is stored elsewhere.

pci.ids.gz should be moved to /var/lib/misc (probably with a symlink to its old
location).

Another question is, if it is a good idea to unconditionally enable that
periodic update.

------- Comment #1 From Jakub Moc (RETIRED) 2007-01-10 12:10:15 0000 -------
*** Bug 161298 has been marked as a duplicate of this bug. ***

------- Comment #2 From Jakub Moc (RETIRED) 2007-01-10 12:13:51 0000 -------
So remove the cronjob if you can't live with it or ask upstream to make
pciutils search for the IDs in /var/lib. (And noone said that Gentoo is FHS
compliant in cases when it doesn't make sense).

------- Comment #3 From Ulrich Müller 2007-01-10 13:35:55 0000 -------
This is _not_ an upstream issue. The cron file is a Gentoo addition.
Reopening.

(And yes, sometimes it does make sense to have /usr mounted read-only. If you
have several client machines with NFS-mounted /usr you definitely don't want to
have this automatic update feature. At least not per default.)

------- Comment #4 From Jakub Moc (RETIRED) 2007-01-10 13:47:30 0000 -------
(In reply to comment #3)
> This is _not_ an upstream issue. The cron file is a Gentoo addition.
> Reopening.

Huh? The pci.ids file location is a Gentoo issue? Has nothing to do w/ the
cronjob in case you missed that.

------- Comment #5 From Ulrich Müller 2007-01-10 13:53:14 0000 -------
(In reply to comment #4)
> Huh? The pci.ids file location is a Gentoo issue?
> Has nothing to do w/ the cronjob in case you missed that.

The programs from the vanilla package will not write to /usr, only the Gentoo
cronjob does that.

------- Comment #6 From SpanKY 2007-01-10 14:22:14 0000 -------

*** This bug has been marked as a duplicate of bug 156183 ***

------- Comment #7 From Jakub Moc (RETIRED) 2007-01-10 14:48:05 0000 -------
(In reply to comment #5)
> (In reply to comment #4)
> The programs from the vanilla package will not write to /usr, only the Gentoo
> cronjob does that.

WTH are you talking about?

# equery f pciutils | grep pci.ids.gz
/usr/share/misc/pci.ids.gz

------- Comment #8 From Ulrich Müller 2007-01-10 15:38:23 0000 -------
(In reply to comment #7)
> WTH are you talking about?
> 
> # equery f pciutils | grep pci.ids.gz
> /usr/share/misc/pci.ids.gz

The file belongs to the package, so what?

The point is that the vanilla/upstream package will install the file once, and
then will happily function even with a readonly /usr partition.
The cron job will only work if /usr is mounted r/w.

Is it so difficult to understand?

------- Comment #9 From SpanKY 2007-01-10 16:56:47 0000 -------
we're tracking the user-opt-in aspect of cronjob in the duplicate bug

------- Comment #10 From Jakub Moc (RETIRED) 2007-01-10 18:24:00 0000 -------
(In reply to comment #8)
> Is it so difficult to understand?

Yeah, it's indeed difficult to understand why are you not trying to fix the
*real* issue upstream and instead are bugging us w/ a cronjob.

------- Comment #11 From SpanKY 2007-01-10 22:08:59 0000 -------
will you just shut up

the issue is Gentoo's cronjob

------- Comment #12 From Ulrich Müller 2007-01-11 00:10:21 0000 -------
vapier: Thanks for the moral backing. ;)

Concerning /usr vs. /var, I'd like to point you to the following short thread
in freestandards-fhs-discuss:
<http://sourceforge.net/mailarchive/message.php?msg_id=15170824>
Their conclusion is that having pci.ids in /usr/share is o.k. if update-pciids
is invoked manually.

It looks like Debian has moved the file from /usr to /var and back to /usr
again, see
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=278479>
They don't have a cronjob, though.

------- Comment #13 From SpanKY 2007-01-11 00:56:50 0000 -------
we're not moving the file from its current location ... we'll just be making
the cronjob a USE flag

------- Comment #14 From Radek Podgorny 2007-01-11 01:16:28 0000 -------
What about a symlink? Wouldn't that satisfy both of you (and me)? :-)

------- Comment #15 From Ulrich Müller 2007-01-11 02:01:04 0000 -------
> What about a symlink? Wouldn't that satisfy both of you (and me)? :-)

In most configurations where you have a readonly /usr (e.g. NFS mounted) you
problably wouldn't want to have that auto-update feature at all.

I believe the USE flag is the better solution.

------- Comment #16 From SpanKY 2007-02-10 00:30:54 0000 -------
update-pciids now checks to see if the file is read-only and if so, skips
updating the file

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug