tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bmake's shell is always /bin/sh?
Hi,
From: Thomas Klausner <wiz%NetBSD.org@localhost>, Date: Sun, 9 Feb 2014
11:57:36 +0100
> On Sun, Feb 09, 2014 at 07:53:05PM +0900, Ryo ONODERA wrote:
>> How to change the shell invoked from bmake?
>
> devel/bmake/Makefile contains some code for shell selection already:
>
> .if !empty(MACHINE_PLATFORM:MSunOS-5.11-*) && exists(/usr/bin/bash)
> CONFIGURE_ARGS+= --with-defshell=/usr/bin/bash
> .elif ${OPSYS} == "SunOS" || ${OPSYS} == "OSF1" || ${OPSYS} == "IRIX"
> DEPENDS+= pdksh-[0-9]*:../../shells/pdksh
> CONFIGURE_ARGS+= --with-defshell=${PREFIX}/bin/pdksh
> .endif
>
> Can you extend that?
Thank youvery much!
With following patch, bmake tests works fine.
Index: bootstrap
===================================================================
RCS file: /cvsroot/pkgsrc/bootstrap/bootstrap,v
retrieving revision 1.200
diff -u -r1.200 bootstrap
--- bootstrap 3 Oct 2013 01:24:57 -0000 1.200
+++ bootstrap 9 Feb 2014 11:07:15 -0000
@@ -744,6 +744,15 @@
whoamiprog="id -un"
machine_arch=`uname -p | sed -e 's/x86/i386/'`
;;
+SCO_SV)
+ root_group=root
+ need_bsd_install=yes
+ set_opsys=no
+ whoamiprog='id -u'
+ groupsprog='id -g'
+ # /bin/sh under OpenServer 5.0.7/3.2 breaks bmake tests.
+ bmakexargs="$bmakexargs --with-defshell=/bin/ksh"
+ ;;
SunOS)
root_group=root
need_bsd_install=yes
--
Ryo ONODERA // ryo_on%yk.rim.or.jp@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB FD1B F404 27FA C7D1 15F3
Home |
Main Index |
Thread Index |
Old Index