pkgsrc-Users archive

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

Problem building fail2ban with PKG_SYSCONFBASE=/etc



Hi!

I have set up a build infrastructure with pkgtools/pkg_comp on a
NetBSD/amd64 version 9.4_STABLE machine.  I have the following
customizations in /etc/mk.conf:

PKG_DBDIR=              /usr/pkg/libdata/pkgdb
LOCALBASE=              /usr/pkg
VARBASE=                /var
PKG_SYSCONFBASE=        /etc
PKG_TOOLS_BIN=          /usr/pkg/sbin
PKGINFODIR=             info
PKGMANDIR=              man

TOOLS_PLATFORM.sh?=             /bin/sh

I listed security/fail2ban as one of the packages I wanted built.
The build failed during the pbulk chroot install stage, and left
the following error messages in the install.log file:

----------------------------------------------------------------------
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/libdata/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/pkg/sbin/pkg_admin -K /usr/pkg/libdata/pkgdb fetch-pkg-vulnerabilities'.
===> Installing for fail2ban-1.0.2nb2
=> Generating pre-install file lists
=> Creating installation directories
ERROR: INSTALLATION_DIRS: /etc/fail2ban must be in /usr/pkg.
*** Error code 1

Stop.
bmake[1]: stopped making "stage-install" in /pkg_comp/pkgsrc/security/fail2ban
*** Error code 1

Stop.
bmake: stopped making "stage-install" in /pkg_comp/pkgsrc/security/fail2ban
----------------------------------------------------------------------

Is there something specific to this package that I need to set
somewhere?  Or is it a bug in the pkgsrc build configuration
files?  Or something else?
					-jarle
-- 
"There are two ways to write bug-free code; only the third way works."


Home | Main Index | Thread Index | Old Index