pkgsrc-Bugs archive

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

pkg/52481: print/cups build fails in packaging phase



>Number:         52481
>Category:       pkg
>Synopsis:       print/cups build fails in packaging phase
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 11 09:20:00 +0000 2017
>Originator:     Hauke Fath
>Release:        NetBSD 8.0_BETA
>Organization:
Technische Universitaet Darmstadt
>Environment:
	
	
System: NetBSD Gstoder 8.0_BETA NetBSD 8.0_BETA (MONOLITHIC) #0: Wed Aug 2 15:50:01 CEST 2017 hf@Hochstuhl:/var/obj/netbsd-builds/8/i386/sys/arch/i386/compile/MONOLITHIC i386
Architecture: i386
Machine: i386
>Description:

	As of today, the print/cups build fails with

% make package
=> Bootstrap dependency digest>=20010302: found digest-20160304
===> Installing for cups-2.2.3nb2
=> Generating pre-install file lists
=> Creating installation directories
ERROR: INSTALLATION_DIRS: /etc/pkg/cups must be in /usr/pkg.
*** Error code 1

Stop.
make[1]: stopped in /misc/pkgsrc/print/cups
*** Error code 1

Stop.
make: stopped in /misc/pkgsrc/print/cups
%

	The package Makefile adds CUPS_CONFDIR (really PKG_SYSCONFDIR,
	and the gratuitous rename is probably part of the problem) -
	to INSTALLATION_DIRS, about which pkgsrc.txt says

INSTALLATION_DIRS

    A list of directories relative to PREFIX that are created by
    pkgsrc at the beginning of the install phase. The package is
    supposed to create all needed directories itself before installing
    files to it and list all other directories here.


	It is also added to OWNDIRS, while to my understanding,
	configuration files installed under PKG_SYSCONFDIR are treated
	specially.

	The same problem appears to happen in print/cups15

	
>How-To-Repeat:

	Attempt to build print/cups{,15}.

	
>Fix:

	Remove CUPS_CONFDIR (= PKG_SYSCONFDIR) from INSTALLATION_DIRS
	and OWN_DIRS, I guess. 

	Also, just use PKG_SYSCONFDIR instead of inflating the
	variable zoo.

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index