From owner-freebsd-emulation@freebsd.org Mon Jul 13 21:24:35 2015 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D729B99C3D2 for ; Mon, 13 Jul 2015 21:24:35 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id BA341185F for ; Mon, 13 Jul 2015 21:24:35 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id B716299C3D0; Mon, 13 Jul 2015 21:24:35 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B6A5E99C3CF for ; Mon, 13 Jul 2015 21:24:35 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id A1127185E for ; Mon, 13 Jul 2015 21:24:35 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: by freefall.freebsd.org (Postfix) id 9F6FC1DA6; Mon, 13 Jul 2015 21:24:35 +0000 (UTC) Delivered-To: vbox@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by freefall.freebsd.org (Postfix) with ESMTP id 9ED2F1DA5 for ; Mon, 13 Jul 2015 21:24:35 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:1900:2254:206a::19:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx2.freebsd.org", Issuer "Gandi Standard SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8EAF9185C for ; Mon, 13 Jul 2015 21:24:35 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from hammer.pct.niksun.com (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx2.freebsd.org (Postfix) with ESMTP id 35FAE65CA6; Mon, 13 Jul 2015 21:24:35 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Message-ID: <55A42C92.3050404@FreeBSD.org> Date: Mon, 13 Jul 2015 17:24:34 -0400 From: Jung-uk Kim User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= , vbox@FreeBSD.org Subject: Re: oddity in virtualbox-ose-additions References: <86k2u454q7.fsf@nine.des.no> In-Reply-To: <86k2u454q7.fsf@nine.des.no> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Mon, 13 Jul 2015 23:36:55 +0000 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jul 2015 21:24:36 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 07/13/2015 13:48, Dag-Erling Smørgrav wrote: > While trying to build $subj on 10.2, I noticed an oddity in the > Makefile: > > cd ${WRKSRC} && ${SH} env.sh && \ ${KMK_CONFIG} > ${LOCALBASE}/bin/kmk ${KMK_FLAGS} > > the last two lines are wrong - env.sh sets environment variables > and needs to be sourced into the shell before kmk is invoked, like > virtualbox-ose des: > > cd ${WRKSRC} && \ ${SH} -c '. env.sh && ${KMK_CONFIG} > ${LOCALBASE}/bin/kmk ${KMK_FLAGS}' > > although I don't think it will fix the problem, which is that kmk > just hangs on wait channel umtxn. I changed the Makefile so it > reads: > > cd ${WRKSRC} && (. env.sh && ktrace -di env \ ${KMK_CONFIG} > ${LOCALBASE}/bin/kmk ${KMK_FLAGS}) No, it does not make any difference but fixed. https://svnweb.freebsd.org/changeset/ports/391963 > "make build" now shows: > > ===> Building for virtualbox-ose-additions-4.3.30 cd > /usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-4.3.30 > && (. env.sh && ktrace -di env VBOX_LIBPATH_X11=/usr/local > /usr/local/bin/kmk ) Config.kmk:2463: > /usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-4.3.30/o ut/freebsd.amd64/release/DynamicConfig.kmk: > No such file or directory Config.kmk:5741: > /usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-4.3.30/o ut/freebsd.amd64/release/revision.kmk: > No such file or directory > > ktracing kmk shows: ... > It ignores the SIGINT and remains stuck in the backgrounf until I > SIGKILL it (pkill -9 kmk). There maybe a bug in kmk as it is relatively old fork of GNU make 3.82. However, I can't reproduce the problem. Probably there's a libthr issue for you? Jung-uk Kim -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJVpCyLAAoJEHyflib82/FGSb0IAJK8J3c/NpHXsKy4b5yBRzcH SCKwRTcbhHHLOorQSULKbxwQZWQSkVFU2qb3aTzHgxiDzVC2yY5yyf0Ma6kqtq0S QAAqn4rQ5e0AbgFjK/1RmuxaXZUSrnuU0wGcPMg8nrAMt6Ye5djNh1HDkos9g1QP n73RXnyYLZoFwyoIjEs86MaU9hZ2YePS18fOQw0CLyvoTnjCypyD8NUpTufNnVFo 46GcG+Qz7829DFy3OQzKuftFD8ZJKeSkwFS67K3uf548v8tDKsdmPB8UTBQ78eE0 guSQKbtJKMtUmOfNWQNC05B+2D6vpmCPe3+jcq0S4wxz4wxLdOKTkEiHEhazjsw= =s+12 -----END PGP SIGNATURE-----