summaryrefslogtreecommitdiff
path: root/sci-physics/cernlib/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-physics/cernlib/files
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-physics/cernlib/files')
-rw-r--r--sci-physics/cernlib/files/cernlib-2006-fgets.patch20
-rw-r--r--sci-physics/cernlib/files/cernlib-2006-nogfortran.patch56
-rw-r--r--sci-physics/cernlib/files/cernlib-2006-ypatchy-short-name.patch11
3 files changed, 87 insertions, 0 deletions
diff --git a/sci-physics/cernlib/files/cernlib-2006-fgets.patch b/sci-physics/cernlib/files/cernlib-2006-fgets.patch
new file mode 100644
index 000000000000..e42eaf833b35
--- /dev/null
+++ b/sci-physics/cernlib/files/cernlib-2006-fgets.patch
@@ -0,0 +1,20 @@
+--- src/packlib/cspack/tcpaw/tcpaw.c.old 2011-01-30 21:18:35.326089059 +0000
++++ src/packlib/cspack/tcpaw/tcpaw.c 2011-01-30 21:18:01.876081979 +0000
+@@ -984,7 +984,7 @@
+ int s, addrlen;
+ int sx, nn = 0; /* REXEC */
+ #ifndef IBM
+- char get[50], *getp = get; /* REXEC */
++ char get[80], *getp = get; /* REXEC */
+ #endif /*^IBM */
+ char sys[30];
+ register int i, j, k;
+@@ -1036,7 +1036,7 @@
+ char buff[100];
+ char *get;
+ char *getp;
+- char getbuf[50]; /* REXEC */
++ char getbuf[80]; /* REXEC */
+ getp = getbuf; /* REXEC */
+ get = getbuf; /* REXEC */
+ /* j = 80; */ /* (crude kludge) length of srvc in Fortran */
diff --git a/sci-physics/cernlib/files/cernlib-2006-nogfortran.patch b/sci-physics/cernlib/files/cernlib-2006-nogfortran.patch
new file mode 100644
index 000000000000..63883274403f
--- /dev/null
+++ b/sci-physics/cernlib/files/cernlib-2006-nogfortran.patch
@@ -0,0 +1,56 @@
+--- debian/add-ons/Makefile.orig 2008-03-15 16:46:46.000000000 +0000
++++ debian/add-ons/Makefile 2008-03-15 16:47:51.000000000 +0000
+@@ -28,6 +28,9 @@
+ ifneq (,$(findstring ifort,$(DEB_BUILD_OPTIONS)))
+ sed -i -e 's/-lgfortran/-limf/' $(CERN_BINDIR)/cernlib
+ endif
++ifneq (,$(findstring g77,$(DEB_BUILD_OPTIONS)))
++ sed -i -e 's/-lgfortran/-lg2c/' $(CERN_BINDIR)/cernlib
++endif
+ chmod a+x $(CERN_BINDIR)/cernlib
+
+ # target to install include files for development packages
+--- debian/add-ons/cernlib.mk.orig 2008-03-15 16:48:05.000000000 +0000
++++ debian/add-ons/cernlib.mk 2008-03-15 17:09:14.000000000 +0000
+@@ -35,6 +35,10 @@
+ export TOOL_SONAME = _gfortran
+ export TOOL_NAME = _gfortran
+ endif
++ifeq (,$(findstring g77,$(DEB_BUILD_OPTIONS)))
++ export TOOL_SONAME = _gfortran
++ export TOOL_NAME = _gfortran
++endif
+ export PATH := $(CERN_BINDIR):$(ADDONDIR)/bin:$(datadir)/cernlib:${PATH}
+ export INSTALL_OPTS ?= -s
+ export CC ?= gcc
+@@ -118,6 +122,8 @@
+ endif
+ ifneq (,$(findstring ifort,$(DEB_BUILD_OPTIONS)))
+ echo '#define HasIntelifc YES' >> $(CVSCOSRC)/config/host.def
++else ifneq (,$(findstring g77,$(DEB_BUILD_OPTIONS)))
++ echo >> $(CVSCOSRC)/config/host.def
+ else
+ echo '#define Hasgfortran YES' >> $(CVSCOSRC)/config/host.def
+ endif
+--- debian/patches/320-support-ifort.dpatch.orig 2008-03-15 17:31:34.000000000 +0000
++++ debian/patches/320-support-ifort.dpatch 2008-03-15 17:31:56.000000000 +0000
+@@ -27,7 +27,7 @@
+ #if defined(CERNLIB_UNIX)
+ CLIBS= -G Motif kernlib
+ +# if defined(CERNLIB_INTELIFC)
+-+CLIBS= $(CLIBS) -nofor_main
+++CLIBS:= $(CLIBS) -nofor_main
+ +# endif
+ #endif
+
+--- debian/patches/803-link-binaries-dynamically.dpatch.orig 2008-03-15 17:48:38.000000000 +0000
++++ debian/patches/803-link-binaries-dynamically.dpatch 2008-03-15 17:49:17.000000000 +0000
+@@ -64,7 +64,7 @@
+ -CLIBS= -G Motif kernlib
+ +CLIBS= -G Motif -u Xm
+ # if defined(CERNLIB_INTELIFC)
+- CLIBS= $(CLIBS) -nofor_main
++ CLIBS:= $(CLIBS) -nofor_main
+ # endif
+ #endif
+
diff --git a/sci-physics/cernlib/files/cernlib-2006-ypatchy-short-name.patch b/sci-physics/cernlib/files/cernlib-2006-ypatchy-short-name.patch
new file mode 100644
index 000000000000..706ab3671672
--- /dev/null
+++ b/sci-physics/cernlib/files/cernlib-2006-ypatchy-short-name.patch
@@ -0,0 +1,11 @@
+--- src/patchy/Imakefile.orig 2013-01-16 13:45:07.161828513 -0800
++++ src/patchy/Imakefile 2013-01-16 13:45:34.768966597 -0800
+@@ -77,7 +77,7 @@
+ @ ln -s $< $@
+
+ %.f: $(LDIR)%.cra $(LDIR)patchy.car
+- ypatchy - :$@ :$< TTY .go
++ ypatchy - :$@ :$(shell basename $<) TTY .go
+
+ .f.o:
+ $(FC) -c $(FORTRANOPTIONS) $(FDEBUGFLAGS) $<