Subject: pkg_comp compiling for 2.0 release
To: None <tech-pkg@netbsd.org>
From: Tim Jakobsen <tja@jakobsen.vg>
List: tech-pkg
Date: 01/14/2005 11:09:06
Hi there,

I've just installed pkg_comp on a 2.0G NetBSD. I am trying to compile
packages for a 2.0 release system. Whenever I've built a package using
pkg_comp(eg. pkg_comp build security/sudo) and try to install it on the
2.0 release system is says: 

pkg_add: Package 'sudo-1.6.8pl5.tgz' OS mismatch
pkg_add: NetBSD/i386 2.0G (pkg) vs. NetBSD/i386 2.0 (this host)

I've tried to do a strings on /netbsd in the sandbox and it tells me:
@(#)NetBSD 2.0 (GENERIC) #0: Wed Dec  1 10:58:25 UTC 2004

So I supposed it should compile 2.0 release packages. Am I wrong ?

I've included my pkg_comp/default.conf below. In DESTDIR/etc/mk.conf
I've added: 

DEPENDS_TARGET=package
UPDATE_TARGET=package

Any help to solve this problem is appreciated.

Thanks in advance.

h -*-
#
# pkg_comp - configuration file
# See pkg_comp(8) for a detailed description of each variable.
#

# Variables used internally by pkg_comp.
AUTO_PACKAGES=""
AUTO_TARGET="package"
BUILD_PACKAGES=""
BUILD_TARGET="package"
COPYROOTCFG="no"
DESTDIR="/NetBSD/pkg_comp/chroot/pkg_comp/"
DISTRIBDIR="/mnt/i386/"
MOUNT_HOOKS=""
NETBSD_RELEASE="2.0"
REAL_CCACHE=""
REAL_DISTFILES="/usr/pkgsrc/distfiles"
REAL_DISTFILES_OPTS="-t null -o rw"
REAL_PACKAGES="/NetBSD/pkg_comp/pkgsrc/packages"
REAL_PACKAGES_OPTS="-t null -o rw"
REAL_PKGSRC="/NetBSD/pkg_comp/pkgsrc/"
REAL_PKGSRC_OPTS="-t null -o ro"
REAL_PKGVULNDIR="/usr/pkgsrc/distfiles"
REAL_SRC="/usr/src"
REAL_SRC_OPTS="-t null -o ro"
ROOTSHELL="/bin/ksh"
SETS="base.tgz comp.tgz etc.tgz kern-GENERIC.tgz text.tgz"
SETS_X11="xbase.tgz xcomp.tgz xetc.tgz xfont.tgz xserver.tgz"
SYNC_UMOUNT="no"
UMOUNT_HOOKS=""

# Default variables written to the generated mk.conf.
BSDSRCDIR="/usr/src"
CFLAGS=""
CLEANDEPENDS="yes"
CPPFLAGS=""
CXXFLAGS=""
DISTDIR="/pkg_comp/distfiles"
LOCALBASE="/usr/pkg"
MKOBJDIRS="yes"
PACKAGES="/pkg_comp/packages"
PKGSRC_COMPILER="gcc"
PKGVULNDIR="/usr/pkg/share"
PKG_DEVELOPER="yes"
PKG_SYSCONFBASE=""
USE_AUDIT_PACKAGES="yes"
USE_XPKGWEDGE="yes"
WRKDIR_BASENAME="default"
WRKOBJDIR="/pkg_comp/obj/pkgsrc"

-- 
Regards.,
 Tim