[MacPorts] #45003: Cannot install control package in Octave 3.8.1 on Mac OSX

MacPorts noreply at macports.org
Tue Sep 16 23:52:25 PDT 2014


#45003: Cannot install control package in Octave 3.8.1 on Mac OSX
-------------------------------------+--------------------------------
  Reporter:  MacPorts@…              |      Owner:  macports-tickets@…
      Type:  defect                  |     Status:  new
  Priority:  Normal                  |  Milestone:
 Component:  ports                   |    Version:  2.3.1
Resolution:                          |   Keywords:
      Port:  octave, octave-control  |
-------------------------------------+--------------------------------

Comment (by MacPorts@…):

 I downloaded the latest octave-control package from Octave Forge, and it
 fails to make as follows:
 {{{
 > cd control/src
 > make
 tar -xzf slicot.tar.gz
 mkdir sltmp
 mv slicot/src/*.f ./sltmp
 mv slicot/src_aux/*.f ./sltmp
 cp TG04BX.fortran ./sltmp/TG04BX.f
 cd sltmp; mkoctfile -c *.f
 /bin/sh: line 0: cd: sltmp: No such file or directory
 gfortran-mp-4.8: error: *.f: No such file or directory
 gfortran-mp-4.8: fatal error: no input files
 compilation terminated.
 ar -rc slicotlibrary.a ./sltmp/*.o
 ar: ./sltmp/*.o: No such file or directory
 make: *** [slicotlibrary.a] Error 1
 }}}
 This is similar to the "pkg -forge install control" failure.
 Interestingly, slicotlibrary.a is there, but only 8 bytes, so clearly not
 really there.  I repeated the above by hand and it worked fine, then
 rewrote the Makefile until it worked also.  It appears the problem is
 simply missing parens to put the mkoctfile line in its own subshell.  The
 following patch works for me (Darwin localhost 13.3.0 Darwin Kernel
 Version 13.3.0: Tue Jun  3 21:27:35 PDT 2014;
 root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64):

 {{{
 diff -rcb control/src/Makefile control-jos/src/Makefile
 *** control/src/Makefile        2014-06-16 12:26:55.000000000 -0600
 --- control-jos/src/Makefile    2014-09-17 00:48:12.000000000 -0600
 ***************
 *** 31,37 ****
         mv slicot/src/*.f ./sltmp
         mv slicot/src_aux/*.f ./sltmp
         cp TG04BX.fortran ./sltmp/TG04BX.f
 !       cd sltmp; $(MKOCTFILE) -c *.f
         ar -rc slicotlibrary.a ./sltmp/*.o
         rm -rf sltmp slicot

 --- 31,37 ----
         mv slicot/src/*.f ./sltmp
         mv slicot/src_aux/*.f ./sltmp
         cp TG04BX.fortran ./sltmp/TG04BX.f
 !       (cd ./sltmp; $(MKOCTFILE) -c *.f)
         ar -rc slicotlibrary.a ./sltmp/*.o
         rm -rf sltmp slicot
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/45003#comment:4>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list