pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

ghostscript packaging fails with native cups



Hi,

I was just building print/ghostscript on Darwin, pkgsrc-2007Q4. This is in /etc/mk.conf...

USE_BUILTIN.cups= yes
PKG_OPTIONS.ghostscript += cups

... and it builds ok. But won't package...

===> Building binary package for ghostscript-8.60nb1
Creating package /Volumes/Chacachacare/pkgsrc-packages/All/ghostscript-8.60nb1.tgz
Using SrcDir value of /usr/pkg
Registering conflicts: ghostscript-afpl-[0-9]* ghostscript-esp{,-nox11}-[0-9]* ghostscript-gnu{,-nox11,-x11}-[0-9]*.
pkg_create: can't stat `/usr/pkg/libexec/cups/filter/pstopxl'
pkg_create: can't stat `/usr/pkg/libexec/cups/filter/pstoraster'
pkg_create: can't stat `/usr/pkg/share/cups/model/pxlcolor.ppd'
pkg_create: can't stat `/usr/pkg/share/cups/model/pxlmono.ppd'
tar: Unable to access libexec/cups/filter/pstopxl (No such file or directory) tar: Unable to access libexec/cups/filter/pstoraster (No such file or directory) tar: Unable to access share/cups/model/pxlcolor.ppd (No such file or directory) tar: Unable to access share/cups/model/pxlmono.ppd (No such file or directory)
tar: WARNING! These file names were not selected:
libexec/cups/filter/pstopxl
libexec/cups/filter/pstoraster
share/cups/model/pxlcolor.ppd
share/cups/model/pxlmono.ppd
pkg_create: /usr/pkg/bin/tar command failed with code 1
*** Error code 2


Installation does the right thing...

./src/instcopy -c -m 755 cups/pstoraster `cups-config --serverbin`/filter
./src/instcopy -c -m 755 cups/pstopxl `cups-config --serverbin`/filter


Binary packaging cannot know where ServerBin will be on the target system. I'm not sure if pkg_add can discover this either.

So maybe these filters and ppds should go in ${PREFIX} somewhere so packaging is consistent. Then a message can be included to note that these are not installed in the normal place and should be moved or symlinked to ServerBin/whatever if needed. Kind of like how rc scripts are kept in the examples directory.

Maybe the install target can put these items in both ServerBin and in the pkgsrc examples directory.


Louis





Home | Main Index | Thread Index | Old Index