Skip to contentSkip to conversation

resend notes from last week

Printing-architecture Wendy Phillips 3 participants 5 messages Jul 20, 2006 – Jul 24, 2006

lore
Share & tools
lore
#0 lore raw

Apparently, this didn't go out to the alias; could be that I fumbled it on the keyboard. So here tis again ...

I have purposely not included the follow-on discussions about fhs standard; this is a summary of the meeting as it occurred.

-Wendy

1. Installation path for ppd files

/usr/share/ppd/<supplier>/<manufacturer>/

2. PPD file naming convention

        <MFGString>-<MDLString>-<driver>-<language>.ppd

3. Installation path for print drivers

/usr/lib/printdrivers/<supplier>

The contents of this directory are entirely determine by the supplier. The path to a driver is found by using an absolute path in the ppd file.

4. It was agreed that install scripts be written in Bourne Shell without any extensions.

5. We decided to eliminate /usr/lib/printdrivers/bin

#1 lore raw
Quoted 16 lines · Wendy Phillips

Apparently, this didn't go out to the alias; could be that I fumbled it on the keyboard. So here tis again ...

I have purposely not included the follow-on discussions about fhs standard; this is a summary of the meeting as it occurred.

-Wendy

1. Installation path for ppd files

/usr/share/ppd/<supplier>/<manufacturer>/

2. PPD file naming convention

         <MFGString>-<MDLString>-<driver>-<language>.ppd
Quoted 8 lines

3. Installation path for print drivers

/usr/lib/printdrivers/<supplier>

The contents of this directory are entirely determine by the supplier. The path to a driver is found by using an absolute path in the ppd file.

Paths in /usr to accomodate 3rd-party software do not comply the FHS standard. Therefore alternative paths were suggested in other threads. But note that CUPS violates FHS, too, as CUPS requires drivers in /usr/lib/cups/filter.

Quoted 3 lines

4. It was agreed that install scripts be written in Bourne Shell without any extensions.

OK.

Is there a compliance test program to check whether one has no bashisms in the scripts?

Quoted 2 lines

5. We decided to eliminate /usr/lib/printdrivers/bin

OK, with absolute paths in the PPDs this is not needed.

Till

#2 lore raw
Quoted 26 lines · Till Kamppeter
Quoted 16 lines · Wendy Phillips

Apparently, this didn't go out to the alias; could be that I fumbled it on the keyboard. So here tis again ...

I have purposely not included the follow-on discussions about fhs standard; this is a summary of the meeting as it occurred.

-Wendy

1. Installation path for ppd files

/usr/share/ppd/<supplier>/<manufacturer>/

2. PPD file naming convention

         <MFGString>-<MDLString>-<driver>-<language>.ppd
Quoted 8 lines

3. Installation path for print drivers

/usr/lib/printdrivers/<supplier>

The contents of this directory are entirely determine by the supplier. The path to a driver is found by using an absolute path in the ppd file.

Quoted 4 lines

Paths in /usr to accomodate 3rd-party software do not comply the FHS standard. Therefore alternative paths were suggested in other threads. But note that CUPS violates FHS, too, as CUPS requires drivers in /usr/lib/cups/filter.

Bzzzt, wrong.

The separation of /usr, /usr/local, and /opt/vendor does not apply since CUPS provides a core OS function - printing. If you installed CUPS in /opt/cups (or like *BSD does, in /usr/local), you'd quickly find out that a LOT of software expects lp, lpr, etc. in /usr, leading to VERY frustrated users. Moreover, the LSB requires the print commands in /usr, and FHS and LSB are pretty closely tied together.

That said, nothing would prevent you from making symlinks everywhere, and Red Hat (at least) did this for a while to allow both LPRng and CUPS to coexist, but that goes against the intent of /usr being used as a shared (read-only) filesystem among multiple systems and is just plain fragile...

The CUPS build system accommodates almost any directory organization, and if you stick with using --prefix you'll end up with /usr, /usr/local, or /opt/foo directory structures that follow the FHS exactly. You can also relocate individual pieces (like putting ServerBin in /opt/cups/bin, DataDir in /opt/cups/share, etc.), but again you will need to do symlinks to preserve compatibility.

Signature · 3 lines
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Document Software          http://www.easysw.com
#3 lore raw
Quoted 52 lines · Michael Sweet
Quoted 28 lines · Till Kamppeter
Quoted 17 lines · Wendy Phillips

Apparently, this didn't go out to the alias; could be that I fumbled it on the keyboard. So here tis again ...

I have purposely not included the follow-on discussions about fhs standard;
this is a summary of the meeting as it occurred.

-Wendy

1. Installation path for ppd files

/usr/share/ppd/<supplier>/<manufacturer>/

2. PPD file naming convention

         <MFGString>-<MDLString>-<driver>-<language>.ppd
Quoted 8 lines

3. Installation path for print drivers

/usr/lib/printdrivers/<supplier>

The contents of this directory are entirely determine by the supplier. The path to a driver is found by using an absolute path in the ppd file.

Quoted 4 lines

Paths in /usr to accomodate 3rd-party software do not comply the FHS standard. Therefore alternative paths were suggested in other threads. But note that CUPS violates FHS, too, as CUPS requires drivers in /usr/lib/cups/filter.

Bzzzt, wrong.

The separation of /usr, /usr/local, and /opt/vendor does not apply since CUPS provides a core OS function - printing. If you installed CUPS in /opt/cups (or like *BSD does, in /usr/local), you'd quickly find out that a LOT of software expects lp, lpr, etc. in /usr, leading to VERY frustrated users. Moreover, the LSB requires the print commands in /usr, and FHS and LSB are pretty closely tied together.

That said, nothing would prevent you from making symlinks everywhere, and Red Hat (at least) did this for a while to allow both LPRng and CUPS to coexist, but that goes against the intent of /usr being used as a shared (read-only) filesystem among multiple systems and is just plain fragile...

Quoted 7 lines

The CUPS build system accommodates almost any directory organization, and if you stick with using --prefix you'll end up with /usr, /usr/local, or /opt/foo directory structures that follow the FHS exactly. You can also relocate individual pieces (like putting ServerBin in /opt/cups/bin, DataDir in /opt/cups/share, etc.), but again you will need to do symlinks to preserve compatibility.

Does this mean that putting a third-party CUPS filter into /usr/lib/cups/filter/ is no violation of FHS?

Would then putting a driver and its PPD into the directories

/usr/share/ppd/<supplier>/<manufacturer>/

and

/usr/lib/printdrivers/<supplier>

because these directories are a core part of the OS?

Or do we still need the alternative location /opt/printing/?

Till

#4 lore raw
Quoted 3 lines · Till Kamppeter

...
Does this mean that putting a third-party CUPS filter into /usr/lib/cups/filter/ is no violation of FHS?

Technically yes, since they aren't part of the standard printing system. That said, there is a long history of putting drivers (or interface scripts, or filters, etc.) in /usr/share, so it might make sense to add a grandfather clause for this, or make it one of several possible directories - OS vendors put them in /usr/share, other vendors in /opt/printing/share, local drivers in /usr/local/share, etc.

Quoted 11 lines

Would then putting a driver and its PPD into the directories

/usr/share/ppd/<supplier>/<manufacturer>/

and

/usr/lib/printdrivers/<supplier>

because these directories are a core part of the OS?

Or do we still need the alternative location /opt/printing/?

I'd say to support both - /usr for OS-supplied stuff, /opt and /usr/local for locally-installed stuff.

Signature · 3 lines
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Document Software          http://www.easysw.com