Print

Print


Hi Nikolay

thanks for reporting it. It has been fixed at the SVN trunk.

cheers
Costas

On 4 May 2010, at 14:17, Nikolay Dyankov wrote:

> Hi, Costas!
> 
> I'd like to report a minor bug in file $GENIE/src/scripts/setup/genie-config:
> 
> ===========
> #!/bin/sh
> ....
> ### Source GENIE config options::
> source $GENIE/src/make/Make.config
> ....
> ===========
> 
> The usage of 'source' is a bash feature rather than strict sh and thus
> leads to build failure on systems where /bin/sh is not a symlink to
> /bin/bash. In my case the build fails when building the Genie stdapps.
> It passes fine after changing the same line to:
> ==========
> . $GENIE/src/make/Make.config
> ==========
> 
> This can be supported by the following - an Ubuntu machine
> =====================
> ndyankov@fe001:~$ ls -l `which sh`
> lrwxrwxrwx 1 root root 4 2009-06-10 23:35 /bin/sh -> dash
> ndyankov@fe001:~$ cat /etc/debian_version
> lenny/sid
> ndyankov@fe001:~$ sh
> $ source
> sh: source: not found
> =====================
> 
> On a CentOS machine:
> ===================
> :proxy:root > ls -l `which sh`
> lrwxrwxrwx 1 root root 4 May 14  2009 /bin/sh -> bash
> :proxy:root > cat /etc/redhat-release
> CentOS release 5.3 (Final)
> :proxy:root > sh
> :proxy:root > source
> sh: source: filename argument required
> source: usage: source filename [arguments]
> ===================
> 
> I think this bug prevented me some time ago from installing Genie and
> I lost a lot of time then trying to understand what the problem is.
> 
> Regards,
> Nikolay Dyankov