From owner-freebsd-bugs@freebsd.org Mon Nov 26 21:10:49 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F302E11447E4 for ; Mon, 26 Nov 2018 21:10:48 +0000 (UTC) (envelope-from bugzilla-noreply@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 8B8D06B30D for ; Mon, 26 Nov 2018 21:10:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 4E02D11447E3; Mon, 26 Nov 2018 21:10:48 +0000 (UTC) Delivered-To: bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 114A811447E2 for ; Mon, 26 Nov 2018 21:10:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A49676B308 for ; Mon, 26 Nov 2018 21:10:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id D6BE8109E for ; Mon, 26 Nov 2018 21:10:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id wAQLAkcB011581 for ; Mon, 26 Nov 2018 21:10:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id wAQLAkTD011572 for bugs@FreeBSD.org; Mon, 26 Nov 2018 21:10:46 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 233545] bin/sh: "export VAR" always defines VAR unlike other shells Date: Mon, 26 Nov 2018 21:10:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Rspamd-Queue-Id: 8B8D06B30D X-Spamd-Result: default: False [2.00 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_SPAM_LONG(0.79)[0.792,0]; NEURAL_SPAM_MEDIUM(0.52)[0.525,0]; ASN(0.00)[asn:10310, ipnet:2001:1900:2254::/48, country:US]; NEURAL_SPAM_SHORT(0.69)[0.686,0] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Nov 2018 21:10:49 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233545 --- Comment #1 from Jan Beich --- For a real example see https://github.com/unicorn-engine/unicorn/blob/73f457353543/make.sh#L120 fo= und via $ pkg install git cmake gmake ninja sdl2 $ git clone https://github.com/yuzu-emu/yuzu/ $ mkdir yuzu_build; cd yuzu_build $ cmake -GNinja -DENABLE_QT=3DOFF ../yuzu [..] FAILED: /path/to/yuzu/externals/unicorn/libunicorn.a cd /path/to/yuzu/externals/unicorn && /usr/local/bin/cmake -E env UNICORN_ARCHS=3D"aarch64" PYTHON=3D"/usr/local/bin/python2.7" /bin/sh make.= sh macos-universal-no g -shared qemu/aarch64-softmmu/tcg/tcg.o ... uc.o list.o -o libunicorn.so.1 -Wl,-Bsymbolic-functions,-soname,libunicorn.so.1 -lm gmake: g: Command not found gmake: [Makefile:232: libunicorn.so.1] Error 127 (ignored) ln -sf libunicorn.so.1 libunicorn.so gmake -C samples gmake[1]: Entering directory '/path/to/yuzu/externals/unicorn/samples' g -Wall -Werror -I../include -c sample_arm64.c -o sample_arm64.o gmake[1]: g: Command not found gmake[1]: [Makefile:129: sample_arm64.o] Error 127 (ignored) g -Wall -Werror -I../include -c sample_arm64eb.c -o sample_arm64eb.o gmake[1]: g: Command not found gmake[1]: [Makefile:129: sample_arm64eb.o] Error 127 (ignored) sample_arm64.o -L.. -lunicorn -lpthread -lm -o sample_arm64 gmake[1]: sample_arm64.o: Command not found gmake[1]: *** [Makefile:105: sample_arm64] Error 127 gmake[1]: Leaving directory '/path/to/yuzu/externals/unicorn/samples' gmake: *** [Makefile:214: all] Error 2 --=20 You are receiving this mail because: You are the assignee for the bug.=