Patch for build.sh (iv from hg sources) on Mac OSX

Post Reply
stephanmg
Posts: 68
Joined: Tue Jul 03, 2012 4:40 am

Patch for build.sh (iv from hg sources) on Mac OSX

Post by stephanmg »

Dear all,

here is my patch for build.sh:

Code: Select all

# HG changeset patch
# User stephanmg
# Date 1402038607 -7200
#      Fri Jun 06 09:10:07 2014 +0200
# Node ID 8bdb17f807ee57c14d2b12fe433d8ec55021d285
# Parent  44d6ec5724f4c8b1f22e6e1c7f05168c5bce2bae
Fix for build.sh on Mac OSX for glibtoolize/libtoolize with MacPorts.

diff -r 44d6ec5724f4 -r 8bdb17f807ee build.sh
--- a/build.sh	Wed Jul 31 11:19:44 2013 -0400
+++ b/build.sh	Fri Jun 06 09:10:07 2014 +0200
@@ -2,7 +2,7 @@
 # how to build from just the cvs sources

 ltarg="-i"
-if test -f /usr/bin/glibtoolize ; then
+if test -f "`which glibtoolize`" ; then
 	ltver=`glibtoolize --version | sed -n '1s/.* \([0-9]\).*/\1/p'`
 	if test "${ltver}" = 1 ; then ltarg="" ; fi
 	echo "glibtoolize -c -f $ltarg"
Now build.sh finds libtoolize correctly, in the case we installed libtool via MacPorts for example or other package manager.
I pushed it already via hg to the remote repository but this fails because it's a read-only repository - just letting you know the changes, maybe you wish to incorporate it.

Best,
Stephan
stephanmg
Posts: 68
Joined: Tue Jul 03, 2012 4:40 am

Re: Patch for build.sh (iv from hg sources) on Mac OSX

Post by stephanmg »

Additional,

for building nrn 7.4 from hg source on MacOSX the cython detection fails, even if cython executable is in the PATH.
Manually overriding hardcoded the cython binary location succeeds (testes with cython 2.7)

Hope this helps you,
best Stephan
hines
Site Admin
Posts: 1682
Joined: Wed May 18, 2005 3:32 pm

Re: Patch for build.sh (iv from hg sources) on Mac OSX

Post by hines »

Thanks for the iv patch.
http://www.neuron.yale.edu/hg/neuron/iv ... 4e171f3b41

WIll look into the cython issue.
Post Reply