From owner-freebsd-emulation@FreeBSD.ORG Sat Aug 8 14:50:02 2009 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2B0B1065675 for ; Sat, 8 Aug 2009 14:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A21448FC19 for ; Sat, 8 Aug 2009 14:50:02 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n78Eo29W060611 for ; Sat, 8 Aug 2009 14:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n78Eo2ZP060610; Sat, 8 Aug 2009 14:50:02 GMT (envelope-from gnats) Date: Sat, 8 Aug 2009 14:50:02 GMT Message-Id: <200908081450.n78Eo2ZP060610@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Boris Samorodov Cc: Subject: Re: ports/135337: [PATCH] emulators/linux_base-f10: incorrect bash usage X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Boris Samorodov List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Aug 2009 14:50:02 -0000 The following reply was made to PR ports/135337; it has been noted by GNATS. From: Boris Samorodov To: bug-followup@FreeBSD.org,amdmi3@amdmi3.ru Cc: Subject: Re: ports/135337: [PATCH] emulators/linux_base-f10: incorrect bash usage Date: Sat, 08 Aug 2009 18:48:29 +0400 Yep, the first suggestion won't work at chroot. Your second workaround should be added with "... and create a link /usr/local/bin/bash -> /bin/bash". Not good either. The third one does not work. :-( The best I can advice here is to use linux interpreter at command line (so it won't be evaluated while running the script): ----- % /compat/linux/bin/sh /compat/linux/usr/bin/ldd /compat/linux/lib/libz.so.1 libc.so.6 => /lib/libc.so.6 (0x2bc39000) /lib/ld-linux.so.2 (0x00000000) ----- If anyone knows/suggests a better solution/patches -- I'm all ears. Thanks! -- WBR, bsam