Subject: print/cups package creation fails
To: None <pkgsrc-users@netbsd.org>
From: Jukka Salmi <j+nbsd@2007.salmi.ch>
List: pkgsrc-users
Date: 03/22/2007 12:26:30
Hi,

since CUPS was updated from 1.2.8 to 1.2.9 creating a package fails
(at least on a NetBSD/i386 -current system):

$ cd pkgsrc/print/cups && make package
[...]
===> package-message [cups-1.2.9] ===> Building binary package for cups-1.2.9
=> Becoming ``root'' to make su-package-all (/usr/bin/su)
Creating package /opt/packages/All/cups-1.2.9.tgz
Using SrcDir value of /usr/pkg
Registering depends: png>=1.2.9nb2 tiff>=3.7.2nb1 jpeg>=6bnb2.
Registering conflicts: LPRng-[0-9]* LPRng-core-[0-9]*.
pkg_create: can't stat `/usr/pkg/share/locale/de/cups_de.po'
pkg_create: can't stat `/usr/pkg/share/locale/es/cups_es.po'
pkg_create: can't stat `/usr/pkg/share/locale/et/cups_et.po'
pkg_create: can't stat `/usr/pkg/share/locale/fr/cups_fr.po'
pkg_create: can't stat `/usr/pkg/share/locale/it/cups_it.po'
pkg_create: can't stat `/usr/pkg/share/locale/ja/cups_ja.po'
pkg_create: can't stat `/usr/pkg/share/locale/pl/cups_pl.po'
pkg_create: can't stat `/usr/pkg/share/locale/sv/cups_sv.po'
tar: Unable to access share/locale/de/cups_de.po (No such file or directory)
tar: Unable to access share/locale/es/cups_es.po (No such file or directory)
tar: Unable to access share/locale/et/cups_et.po (No such file or directory)
tar: Unable to access share/locale/fr/cups_fr.po (No such file or directory)
tar: Unable to access share/locale/it/cups_it.po (No such file or directory)
tar: Unable to access share/locale/ja/cups_ja.po (No such file or directory)
tar: Unable to access share/locale/pl/cups_pl.po (No such file or directory)
tar: Unable to access share/locale/sv/cups_sv.po (No such file or directory)
tar: WARNING! These file names were not selected:
share/locale/de/cups_de.po
share/locale/es/cups_es.po
share/locale/et/cups_et.po
share/locale/fr/cups_fr.po
share/locale/it/cups_it.po
share/locale/ja/cups_ja.po
share/locale/pl/cups_pl.po
share/locale/sv/cups_sv.po
pkg_create: tar command failed with code 1
ERROR: pkg_create -K pkg failed (2)
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/print/cups
*** Error code 1


Removing these files from the PLIST makes package creation complete
successfully, but that's probably not the correct solution. Any hints?


Regards, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~