Remi,
I would suggest we use the attached cernlib2006.info instead which contains
the changes...
Index: cernlib2006.info
===================================================================
RCS file: /cvsroot/fink/dists/10.7/stable/main/finkinfo/sci/cernlib2006.info,v
retrieving revision 1.14
diff -r1.14 cernlib2006.info
4c4
< Revision: 20
---
> Revision: 21
25c25
< Source2-MD5: f0395fa4d9ad2cfc4cdfc7a59e142953
---
> Source2-MD5: b528c1d9cd93b2d52f3c3c6dd191f5c3
37a38,39
> perl -pi -e 's|CDebugFlags -O0|CDebugFlags -O3
> -fno-aggressive-loop-optimizations|g' config/MacOSX.cf
> perl -pi -e 's|OptimisedFortranFlags -O0|OptimisedFortranFlags
> -O3 -fno-aggressive-loop-optimizations|g' config/MacOSX.cf
54,58d55
< if [[ $(sw_vers -productVersion | cut -d. -f1-2) > 10.8 ]]; then
< # actual problem file is kuipcc.c and bug also manifests if kuipc is
compiled with clang rather than gcc-4
< # radr://15442262, "default -D_FORTIFY_SOURCE=2 on 10.9 breaks kuipc from
cernlib2006 on 10.9"
< perl -pi -e 's|CDEBUGFLAGS = -O0 |CDEBUGFLAGS = -O0 -D_FORTIFY_SOURCE=0
|g' %b/packlib/kuip/programs/kuipc/Makefile
< fi
that replaces the compilations using -O0 with -O3
-fno-aggressive-loop-optimizations. If you are interested, we should be
able to identify those specific files which produce warnings on -O3
-Waggressive-loop-optimizations of the form...
fmveri.F: In function 'fmveri':
fmveri.F:664:0: warning: iteration 2 invokes undefined behavior
[-Waggressive-loop-optimizations]
IF(IQ(LADDR+MUSWFA+I).EQ.0) GOTO 50
^
fmveri.F:663:0: note: containing loop
DO 50 I=0,9
^
and patch the respective Imakefile to append a...
SpecialFortranLibObjectRule(fmveri,fmveri,-fno-aggressive-loop-optimizations,NullParameter)
so that only the problem files are built with the required reduced optimiztions
as is described
in http://gcc.gnu.org/ml/gcc-patches/2013-01/msg01364.html.
Jack
Info3: <<
Package: cernlib2006
Version: 2006b
Revision: 21
Description: Paw and other basic executables
Depends: gcc48-shlibs, x11
BuildDepends: <<
freetype219 (>= 2.4.11-1),
gcc48,
llvm-gcc42,
openmotif4,
patchy4-gfortran,
x11-dev,
xcode,
xmkmf
<<
Provides: cernlib
CustomMirror: <<
Primary: http://wwwasd.web.cern.ch/wwwasd/cernlib/download/
<<
Source: mirror:custom:%v_source/tar/2006_src.tar.gz
SourceRename: cernlib-%v.tar.gz
Source-MD5: 750c4804a2366ccd8e80c45a055f8ac5
Source2: http://cern.ch/~mommsen/fink/%f.patch.gz
Source2-MD5: b528c1d9cd93b2d52f3c3c6dd191f5c3
SourceDirectory: 2006/src
PatchScript: <<
#!/bin/sh -ev
case "%m" in
"i386") ARCH="I386" ;;
"x86_64") ARCH="QMLXIA64" ;;
esac
gunzip -c ../../%f.patch.gz | \
/usr/bin/sed -e "{
s|@PREFIX@|%p|g ;
s|@ARCH@|${ARCH}|g
}" | patch -p1
perl -pi -e 's|CDebugFlags -O0|CDebugFlags -O3
-fno-aggressive-loop-optimizations|g' config/MacOSX.cf
perl -pi -e 's|OptimisedFortranFlags -O0|OptimisedFortranFlags -O3
-fno-aggressive-loop-optimizations|g' config/MacOSX.cf
<<
UseMaxBuildJobs: false
CompileScript: <<
#!/bin/sh -ev
rm -rf include
ln -s cernlib/%v/include .
ln -s cernlib/%v/lib .
ln -s cernlib/%v/bin .
export CERN=%b/cernlib
export CERN_LEVEL=%v
export CERN_ROOT=${CERN}/${CERN_LEVEL}
export PATH=${CERN_ROOT}/bin:%p/lib/xmkmf/bin:${PATH}
export CVSCOSRC=%b
export HAVE_MOTIF=yes
${CVSCOSRC}/config/imake_boot
make tree
make install.include CERN_INCLUDEDIR=${CERN_ROOT}/include
pushd packlib/kuip/programs/kuipc
make
make install.bin
popd
make
(cd scripts; make install.bin) || exit 1
(cd packlib; make install.bin) || exit 1
(cd pawlib; make install.bin) || exit 1
(cd graflib; make install.bin) || exit 1
make patchy/Makefile
(cd patchy; make install.bin) || exit 1
<<
InstallScript: <<
install -d %i/bin
install -m 755 cernlib/%v/bin/cdbackup %i/bin
install -m 755 cernlib/%v/bin/cdmake %i/bin
install -m 755 cernlib/%v/bin/cdmove %i/bin
install -m 755 cernlib/%v/bin/cdserv %i/bin
install -m 755 cernlib/%v/bin/cernlib %i/bin
install -m 755 cernlib/%v/bin/disableASLR %i/bin
install -m 755 cernlib/%v/bin/dzedit %i/bin
install -m 755 cernlib/%v/bin/dzeX11 %i/bin
install -m 755 cernlib/%v/bin/fatback %i/bin
install -m 755 cernlib/%v/bin/fatmen %i/bin
install -m 755 cernlib/%v/bin/fatnew %i/bin
install -m 755 cernlib/%v/bin/fatsend %i/bin
install -m 755 cernlib/%v/bin/fatsrv %i/bin
install -m 755 cernlib/%v/bin/hepdb %i/bin
install -m 755 cernlib/%v/bin/kuesvr %i/bin
install -m 755 cernlib/%v/bin/kuipc %i/bin
install -m 755 cernlib/%v/bin/paw %i/bin
install -m 755 cernlib/%v/bin/pawserv %i/bin
install -m 755 cernlib/%v/bin/pawX11 %i/bin
install -m 755 cernlib/%v/bin/zftp %i/bin
install -m 755 cernlib/%v/bin/zserv %i/bin
<<
InfoTest: <<
TestSuiteSize: large
TestScript: <<
#!/bin/sh -ev
pwd
export CERN=%b/cernlib
export CERN_LEVEL=%v
export CERN_ROOT=${CERN}/${CERN_LEVEL}
export PATH=${CERN_ROOT}/bin:%p/lib/xmkmf/bin:${PATH}
export CVSCOSRC=%b
cd packlib
( make test 2>&1 | /usr/bin/tee %b/test.log ) || exit 2
cd ../mathlib
( make test 2>&1 | /usr/bin/tee -a %b/test.log ) || exit 2
cd ../phtools
( make test 2>&1 | /usr/bin/tee -a %b/test.log ) || exit 2
cd ../mclibs
( make test 2>&1 | /usr/bin/tee -a %b/test.log ) || exit 2
cd ../geant321
( make test 2>&1 | /usr/bin/tee -a %b/test.log ) || exit 2
cd ../graflib/higz/examples
( make higzex 2>&1 | /usr/bin/tee -a %b/test.log ) || exit 2
#The following tests need user interaction (and a runnng X11)
#./higzex
cd ../../../pawlib/paw/demo ; rm -f higz_windows.dat
#paw all.kumac
if [ `grep -c "make: \*\*\*" %b/test.log` -ne 0 ] ; then exit 2 ; fi
if [ `grep -c "\*\*\* failed" %b/test.log` -ne 0 ] ; then exit 2 ; fi
if [ `grep "Test result = " %b/test.log | grep -cv 0` -ne 0 ] ; then exit 2
; fi
<<
<<
SplitOff: <<
Description: Paw++: Motif enhanced paw
Package: %N-paw++
Provides: cernlib-paw++
Depends: <<
x11,
gcc48-shlibs,
openmotif4-shlibs,
%N (=%v-%r)
<<
InstallScript: <<
install -d %i/bin
install -m 755 cernlib/%v/bin/paw++ %i/bin/paw++.exe
install -m 755 cernlib/%v/bin/kxterm %i/bin
/usr/bin/printf '#!/bin/sh\n%p/bin/disableASLR %p/bin/paw++.exe\n' >
%i/bin/paw++
chmod 755 %i/bin/paw++
<<
<<
SplitOff2: <<
Description: Basic libraries and include files
Package: %N-dev
Provides: cernlib-dev
Depends: %N (=%v-%r)
InstallScript: <<
install -d %i/lib
install -m 644 cernlib/%v/lib/libgraflib.a %i/lib
install -m 644 cernlib/%v/lib/libgrafX11.a %i/lib
install -m 644 cernlib/%v/lib/libpawlib.a %i/lib
install -m 644 cernlib/%v/lib/libkernlib.a %i/lib
install -m 644 cernlib/%v/lib/libpacklib.a %i/lib
install -m 644 cernlib/%v/lib/libmathlib.a %i/lib
install -m 644 cernlib/%v/lib/libphtools.a %i/lib
ln -s libkernlib.a %i/lib/libkernlib-shift.a
ln -s libpacklib.a %i/lib/libpacklib-shift.a
ranlib -a %i/lib/libgraflib.a
ranlib -a %i/lib/libgrafX11.a
ranlib -a %i/lib/libpawlib.a
ranlib -a %i/lib/libkernlib.a
ranlib -a %i/lib/libpacklib.a
ranlib -a %i/lib/libmathlib.a
ranlib -a %i/lib/libphtools.a
install -d %i/include
cp -r cernlib/%v/include/cfortran %i/include
cp -r cernlib/%v/include/comis %i/include
cp -r cernlib/%v/include/cspack %i/include
cp -r cernlib/%v/include/dzdoc %i/include
cp -r cernlib/%v/include/epio %i/include
cp -r cernlib/%v/include/fatmen %i/include
cp -r cernlib/%v/include/ffread %i/include
cp -r cernlib/%v/include/gen %i/include
cp -r cernlib/%v/include/hbook %i/include
cp -r cernlib/%v/include/hepdb %i/include
cp -r cernlib/%v/include/higz %i/include
cp -r cernlib/%v/include/hplot %i/include
cp -r cernlib/%v/include/kapack %i/include
cp -r cernlib/%v/include/kernbit %i/include
cp -r cernlib/%v/include/kerngen %i/include
cp -r cernlib/%v/include/kernnum %i/include
cp -r cernlib/%v/include/kuip %i/include
cp -r cernlib/%v/include/sigma %i/include
cp -r cernlib/%v/include/zbook %i/include
cp -r cernlib/%v/include/zebra %i/include
<<
<<
SplitOff3: <<
Description: GEANT 3.2.1
Package: %N-geant321
Provides: cernlib-geant321
Depends: %N-dev (=%v-%r)
InstallScript: <<
install -d %i/bin
install -m 755 cernlib/%v/bin/gxint %i/bin
install -d %i/lib
install -m 644 cernlib/%v/lib/libgeant321.a %i/lib
install -m 644 cernlib/%v/lib/gxint321.f %i/lib
install -m 644 cernlib/%v/lib/flukaaf.dat %i/lib
install -m 644 cernlib/%v/lib/xsneut95.dat %i/lib
ln -s gxint321.f %i/lib/gxint.f
ln -s libgeant321.a %i/lib/libgeant.a
ranlib -a %i/lib/libgeant321.a
install -d %i/include
cp -r cernlib/%v/include/geant321 %i/include
<<
<<
SplitOff4: <<
Description: Monte-carlo libraries and files
Package: %N-mclibs
Provides: cernlib-mclibs
Depends: %N-dev (=%v-%r)
InstallScript: <<
install -d %i/lib
install -m 644 cernlib/%v/lib/libariadne.a %i/lib
install -m 644 cernlib/%v/lib/libcojets.a %i/lib
install -m 644 cernlib/%v/lib/libeurodec.a %i/lib
install -m 644 cernlib/%v/lib/libfritiof.a %i/lib
install -m 644 cernlib/%v/lib/libherwig59.a %i/lib
install -m 644 cernlib/%v/lib/libisajet758.a %i/lib
install -m 644 cernlib/%v/lib/libjetset74.a %i/lib
install -m 644 cernlib/%v/lib/libpdflib804.a %i/lib
install -m 644 cernlib/%v/lib/libphotos202.a %i/lib
install -m 644 cernlib/%v/lib/liblepto651.a %i/lib
install -m 644 cernlib/%v/lib/libpythia6205.a %i/lib
install -m 644 cernlib/%v/lib/cojets.dat %i/lib
install -m 644 cernlib/%v/lib/eurodec.dat %i/lib
install -m 644 cernlib/%v/lib/isajet.dat %i/lib
ln -s libherwig59.a %i/lib/libherwig.a
ln -s liblepto651.a %i/lib/liblepto.a
ln -s libisajet758.a %i/lib/libisajet.a
ln -s libjetset74.a %i/lib/libjetset.a
ln -s libpdflib804.a %i/lib/libpdflib.a
ln -s libphotos202.a %i/lib/libphotos.a
ln -s libpythia6205.a %i/lib/libpythia.a
ranlib -a %i/lib/libariadne.a
ranlib -a %i/lib/libcojets.a
ranlib -a %i/lib/libeurodec.a
ranlib -a %i/lib/libfritiof.a
ranlib -a %i/lib/libherwig59.a
ranlib -a %i/lib/libisajet758.a
ranlib -a %i/lib/libjetset74.a
ranlib -a %i/lib/libpdflib804.a
ranlib -a %i/lib/libphotos202.a
ranlib -a %i/lib/liblepto651.a
ranlib -a %i/lib/libpythia6205.a
install -d %i/include
cp -r cernlib/%v/include/cojets %i/include
cp -r cernlib/%v/include/eurodec %i/include
cp -r cernlib/%v/include/herwig59 %i/include
cp -r cernlib/%v/include/isajet758 %i/include
cp -r cernlib/%v/include/jetset74 %i/include
cp -r cernlib/%v/include/pdf804 %i/include
cp -r cernlib/%v/include/pythia6205 %i/include
<<
PostInstScript: <<
echo
echo "**********************************************"
echo "* WARNING *"
echo "* The test case for cojets fails. *"
echo "* Please take care when you use it. *"
echo "* It might produce wrong results! *"
echo "**********************************************"
echo
<<
<<
SplitOff5: <<
Description: CERNLIB patchy utilities
Package: patchy5-gfortran
Provides: patchy, patchy5
Depends: %N-dev (=%v-%r), gcc48-shlibs
InstallScript: <<
#!/bin/sh -ev
install -d %i/bin
install -m 755 cernlib/%v/bin/fcasplit %i/bin/fcasplit5
install -m 755 cernlib/%v/bin/nycheck %i/bin
install -m 755 cernlib/%v/bin/nydiff %i/bin
install -m 755 cernlib/%v/bin/nyindex %i/bin
install -m 755 cernlib/%v/bin/nylist %i/bin
install -m 755 cernlib/%v/bin/nymerge %i/bin
install -m 755 cernlib/%v/bin/nypatchy %i/bin
install -m 755 cernlib/%v/bin/nyshell %i/bin
install -m 755 cernlib/%v/bin/nysynopt %i/bin
install -m 755 cernlib/%v/bin/nytidy %i/bin
install -m 755 cernlib/%v/bin/yexpand %i/bin
<<
PostInstScript: <<
update-alternatives --install %p/bin/fcasplit fcasplit %p/bin/fcasplit5 40
<<
PreRmScript: <<
if [ $1 != "upgrade" ]; then
update-alternatives --remove fcasplit %p/bin/fcasplit5
fi
<<
<<
RuntimeVars: <<
CERN: %p
CERN_LEVEL: '.'
CERN_ROOT: %p
<<
License: GPL
DescDetail: <<
The CERN Program Library is a large collection of general purpose
libraries and modules maintained and offered in both source and
object code form on the CERN central computers. The two most popular
applications based on CERNLIB are PAW and GEANT 3.21. Most of these
programs were developed at CERN and are therefore oriented towards
the needs of a physics research laboratory that is general
mathematics, data analysis, detectors simulation, data-handling
etc... applicable to a wide range of problems.
<<
DescUsage: <<
In order to function properly, CERNLIB needs a few environment
variables set. This is done automatically when you source the
%p/bin/init.(c)sh. Therefore, you need to open a new
terminal after installing CERNLIB for the first time.
<<
DescPort: <<
The patches needed to make CERNLIB work on Mac OS X are largely
based on work done by Keisuke Fujii
(http://www-jlc.kek.jp/~fujiik/macosx/10.4.X/HEPonX/memo/CERNLIBonX.html).
Some of the patches needed for gfortran and 64bit were obtained from Harald
Vogt
(http://www-zeuthen.desy.de/linear_collider/cernlib/new/cernlib_2005.html).
Additional patches were taken from the Fedora project
(http://fedoraproject.org/wiki/EPEL). Thanks to Chris Walter for pointing out
this additional resource. The final touches for 64-bit compliance on Mac OS X
were done by myself.
This port is not officially supported by CERN. Use it at your own risk.
<<
DescPackaging: <<
The CERNLIB is by default installed in a completely separate directory
where the environment CERN_ROOT points to. In order to get it into the
fink file hierarchy, some hacks were needed. The most obvious is the
environment CERN_LEVEL which is set to the local directory ('.').
Using the compile script hack is necessary to pass various environment
variables to the build system. The split-offs are inspired by the
default packaging into tar files, however putting the include files
into the same package as the corresponding libraries.
<<
Homepage: http://cernlib.web.cern.ch/cernlib
Maintainer: Remi Mommsen <remigius.momm...@cern.ch>
<<
------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel