Skip to content

Instantly share code, notes, and snippets.

@kaworu
Created December 17, 2014 11:40
Show Gist options
  • Save kaworu/dcbf909449e1ea3bc61e to your computer and use it in GitHub Desktop.
Save kaworu/dcbf909449e1ea3bc61e to your computer and use it in GitHub Desktop.
# cd /usr/pkgsrc/cross/libtool-base
# make package
=> Bootstrap dependency digest>=20010302: found digest-20121220
===> Skipping vulnerability checks.
WARNING: No /usr/obj/destdir.evbarm/var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/pkg/sbin/pkg_admin -K /usr/obj/destdir.evbarm/var/db/pkg fetch-pkg-vulnerabilities'.
=> Checksum SHA1 OK for libtool-2.4.2.tar.gz
=> Checksum RMD160 OK for libtool-2.4.2.tar.gz
===> Installing dependencies for cross-libtool-base-earmv6hf-2.4.2nb2
=> Full dependency gcc>=2.95.3nb7: NOT found
=> Verifying package-install for ../../lang/gcc
ERROR: This package is not available for these platforms: Darwin-*-* Interix-*-* *-*-x86_64 DragonFly-*-* NetBSD-[6789]*-*.
ERROR: This package has set PKG_FAIL_REASON:
ERROR: gcc-2.95.3nb7 is not available for NetBSD-7.99.3-earmv6hf
*** Error code 1
Stop.
make[1]: stopped in /usr/pkgsrc/lang/gcc
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/cross/libtool-base
# make -V CROSS_DESTDIR
/usr/obj/destdir.evbarm
# make -V TOOLDIR
/usr/obj/tooldir.NetBSD-7.99.3-amd64
# Cross-compile by default.
#
# XXX This currently can't be set to `yes' on the command line,
# which is a bug.
USE_CROSS_COMPILE?=yes
# This is a kludge for cross-libtool.
#
# XXX Should not need this.
CROSSBASE= ${LOCALBASE}/cross-${TARGET_ARCH:U${MACHINE_ARCH}}
.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
# Specify the machine architecture of target packages.
#
# XXX This currently can't be set on the command line, which is a
# bug.
MACHINE_ARCH=earmv6hf
# Point pkgsrc at the NetBSD tooldir and destdir.
#
# XXX There is no obvious variable that is set to amd64 so that we
# could use
#
# TOOLDIR= /usr/obj/tooldir.${OPSYS}-${OS_VERSION}.${NATIVE_xyz}
#
# MACHINE is amd64 but, since it's not NATIVE_xyz, it's wrong.
# NATIVE_MACHINE_ARCH is x86_64, not amd64.
TOOLDIR= /usr/obj/tooldir.NetBSD-7.99.3-amd64
CROSS_DESTDIR= /usr/obj/destdir.evbarm
# Put target work and packages in separate directories. (You might
# use OBJMACHINE=yes or WRKOBJDIR=/tmp/work.${MACHINE_ARCH} instead
# for the work directories.)
#
# XXX Should not need this.
PACKAGES= ${PKGSRCDIR}/packages.${MACHINE_ARCH}
WRKDIR_BASENAME= work.${MACHINE_ARCH}
.endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment