Check-in [c7c8cee859]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:If host is recent current and building stable/9 or stable/8 then use fmake to build
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:c7c8cee8595acac6f6570afc03a6aabf0f2962c0
User & Date: bapt 2013-06-25 20:53:34
Context
2013-06-25
21:07
Add preliminary support for cross building mips64 and armv6 This consider you have qemu-mips64 or qemu-arm installed in static version on your system This is also considering you have Stacey Son patches and binmisctl on your system: see: http://people.freebsd.org/~sson/imgact_binmisc/ and https://wiki.freebsd.org/QemuUserModeHowTo This patch consider you condigure binmisc expecting qemu-mips64 or qemu-arm being launch from the following path: /usr/bin/qemu-* check-in: f781dc0560 user: bapt tags: trunk
20:53
If host is recent current and building stable/9 or stable/8 then use fmake to build check-in: c7c8cee859 user: bapt tags: trunk
2013-06-24
19:56
jail -s now start the jail with network check-in: f719091f8d user: bapt tags: trunk
Changes

Changes to src/share/poudriere/jail.sh.

   195    195   	if [ -n "${CCACHE_DIR}" -a -d ${CCACHE_PATH}/world ]; then
   196    196   		export CCACHE_DIR
   197    197   		export CC="${CCACHE_PATH}/world/cc"
   198    198   		export CXX="${CCACHE_PATH}/world/c++"
   199    199   		unset CCACHE_TEMPDIR
   200    200   	fi
   201    201   
          202  +	fbsdver=$(awk '/^\#define[[:blank:]]__FreeBSD_version/ {print $$3}' ${JAILMNT}/usr/src/sys/sys/param.h)
          203  +	hostver=$(sysctl -n kern.osreldate)
          204  +	make_cmd=make
          205  +	if [ ${hostver} -gt 1000000 -a ${fbsdver} -lt 1000000 ]; then
          206  +		[ -x `which fmake 2>/dev/null` ] || err 1 "You need fmake installed on the host: devel/fmake"
          207  +		make_cmd=fmake
          208  +	fi
   202    209   	msg "Starting make buildworld with ${PARALLEL_JOBS} jobs"
   203         -	make -C ${JAILMNT}/usr/src buildworld ${MAKE_JOBS} ${MAKEWORLDARGS} || err 1 "Fail to build world"
          210  +	${make_cmd} -C ${JAILMNT}/usr/src buildworld ${MAKE_JOBS} ${MAKEWORLDARGS} || err 1 "Fail to build world"
   204    211   	msg "Starting make installworld"
   205         -	make -C ${JAILMNT}/usr/src installworld DESTDIR=${JAILMNT} DB_FROM_SRC=1 || err 1 "Fail to install world"
   206         -	make -C ${JAILMNT}/usr/src DESTDIR=${JAILMNT} distrib-dirs &&
   207         -	make -C ${JAILMNT}/usr/src DESTDIR=${JAILMNT} distribution
          212  +	${make_cmd} -C ${JAILMNT}/usr/src installworld DESTDIR=${JAILMNT} DB_FROM_SRC=1 || err 1 "Fail to install world"
          213  +	${make_cmd} -C ${JAILMNT}/usr/src DESTDIR=${JAILMNT} distrib-dirs &&
          214  +	${make_cmd} -C ${JAILMNT}/usr/src DESTDIR=${JAILMNT} distribution
   208    215   }
   209    216   
   210    217   install_from_svn() {
   211    218   	local UPDATE=0
   212    219   	local proto
   213    220   	[ -d ${JAILMNT}/usr/src ] && UPDATE=1
   214    221   	mkdir -p ${JAILMNT}/usr/src