From b2c16e66b5fa6278fdd7ff342b3f02feda9f44fc Mon Sep 17 00:00:00 2001 From: Peter Teuben Date: Fri, 24 Jun 2022 23:25:49 -0400 Subject: [PATCH 01/13] temporary patch for modern gfortran --- install/compile.generic.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/compile.generic.in b/install/compile.generic.in index 9d45c2d8..38e59564 100644 --- a/install/compile.generic.in +++ b/install/compile.generic.in @@ -55,8 +55,8 @@ endif # DSO linking might need this patch for AS_NEEDED, X11 is the usual offender for libpgplot.so set X11=($need[1] -lX11 $need[2]) setenv Fcompile "@F77@" -setenv Foptions "-O $slib_flags" -setenv FoptionsN "$slib_flags" +setenv Foptions "-O -std=legacy $slib_flags" +setenv FoptionsN "-std=legacy $slib_flags" setenv Flinkdir "-L`echo $mmir/lib/$mhost $MIRXLIB | sed 's/ / -L/g'`" setenv Flinklib "$lfs -lmir -llinpack -lpgplot $wcslib $X11 -lm" setenv Finclude "-I`echo $mmir/src/inc $MIRXINC | sed 's/ / -I/g'`" From 3c31907cf2faa111495fb686d00414030fb54b3d Mon Sep 17 00:00:00 2001 From: Peter Teuben Date: Fri, 24 Jun 2022 23:26:13 -0400 Subject: [PATCH 02/13] has moved on both redhat7 and ubunt22. turns out this code doesnt seem to need it. --- src/subs/sma_mirRead.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/subs/sma_mirRead.c b/src/subs/sma_mirRead.c index fc3e1a84..3e7bb839 100644 --- a/src/subs/sma_mirRead.c +++ b/src/subs/sma_mirRead.c @@ -231,7 +231,8 @@ #endif #include -#include +//#include // in recent glibc header this was moved. Both redhat and ubuntu now have issues finding it + // which might be solved with the lib(n)tirpc-dev(el) - seems like a messy "upgrade" to me. #include #include #include From c56b0042d65cf590435f32f5af4fe3404f7b9a3a Mon Sep 17 00:00:00 2001 From: Peter Teuben Date: Sat, 28 Jan 2023 06:54:32 -0500 Subject: [PATCH 03/13] miriad is getting old.... --- src/sys/bin/compile.linux_gfortran | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sys/bin/compile.linux_gfortran b/src/sys/bin/compile.linux_gfortran index d2ae550b..87254571 100644 --- a/src/sys/bin/compile.linux_gfortran +++ b/src/sys/bin/compile.linux_gfortran @@ -26,8 +26,8 @@ else set gold="" endif setenv Fcompile "gfortran" -setenv Foptions "$gold -O -fPIC" -setenv FoptionsN "$gold -fPIC" +setenv Foptions "$gold -O -fPIC -std=legacy" +setenv FoptionsN "$gold -fPIC -std=legacy" setenv Flinkdir "-L`echo $mmir/lib/$mhost $MIRXLIB | sed 's/ / -L/g'`" setenv Flinklib "$lfs -lmir -llinpack -lpgplot $wcslib -lX11 -lm" setenv Finclude "-I`echo $mmir/src/inc $MIRXINC | sed 's/ / -I/g'`" From 1289e7a1ecfef8c8a2f9beb137d237ee6ff7a0ed Mon Sep 17 00:00:00 2001 From: Peter Teuben Date: Sat, 28 Jan 2023 07:11:38 -0500 Subject: [PATCH 04/13] make it work with miriad=. --- docs/install_miriad.sh | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/docs/install_miriad.sh b/docs/install_miriad.sh index 5347bb7d..fdd8f2f0 100755 --- a/docs/install_miriad.sh +++ b/docs/install_miriad.sh @@ -3,7 +3,7 @@ # new V6.0+ install # -echo "install_miriad.sh: Version 1.0 -- 29-may-2020" +echo "install_miriad.sh: Version 1.0 -- 28-jan-2023" opt=1 miriad=miriad @@ -49,11 +49,19 @@ fi date0=$(date) -rm -rf $miriad -git clone $url $miriad -cd $miriad -git checkout $branch - +if [ $miriad == "." ]; then + if [ -d .git ]; then + git pull + else + echo Not a miriad with git? + exit 0 + fi +else + rm -rf $miriad + git clone $url $miriad + cd $miriad + git checkout $branch +fi # default use the GNU compiler export F77=gfortran From a593b26965c9db95763de75898e7b6f91b7eff1d Mon Sep 17 00:00:00 2001 From: Peter Teuben Date: Fri, 20 Oct 2023 13:17:06 -0400 Subject: [PATCH 05/13] use the -std=legacy for gfortran --- borrow/pgplot/sys_linux/gfortran_gcc.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borrow/pgplot/sys_linux/gfortran_gcc.conf b/borrow/pgplot/sys_linux/gfortran_gcc.conf index b4be5131..ab4dc2ef 100644 --- a/borrow/pgplot/sys_linux/gfortran_gcc.conf +++ b/borrow/pgplot/sys_linux/gfortran_gcc.conf @@ -40,7 +40,7 @@ # The FORTRAN compiler flags to use when compiling the pgplot library. # (NB. makemake prepends -c to $FFLAGC where needed) - FFLAGC="-u -Wall -fPIC -O" + FFLAGC="-u -Wall -fPIC -O -std=legacy" # Mandatory. # The FORTRAN compiler flags to use when compiling fortran demo programs. From bec52f7bc0afb2c68d6989a0533aea7f85f42cae Mon Sep 17 00:00:00 2001 From: Peter Teuben Date: Wed, 22 Nov 2023 14:34:15 -0500 Subject: [PATCH 06/13] attempt to document the branches --- VERSIONS | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/VERSIONS b/VERSIONS index 088598bf..d48a9b6a 100644 --- a/VERSIONS +++ b/VERSIONS @@ -37,3 +37,13 @@ ATNF miriad: http://www.atnf.csiro.au/computing/software/miriad/ 5.x Never released - the MIR5 branch was meant to merge the ATNF and CARMA versions 6.0.0 29may20 Moved the repo from CVS to GIT, finally. + + +Branches: +--------- +MIR3 - deprecated +MIR4 - deprecated +MIR5 - deprecated +memallox - expanded 64 bit memory allocation? +rpfits225 - attempt to use the new RPFITS, only used by ATNF routines +wcslib - From 9026737aad3e9d51493e947959d1e35377ff4b27 Mon Sep 17 00:00:00 2001 From: Peter Teuben Date: Sat, 24 Feb 2024 10:13:07 -0500 Subject: [PATCH 07/13] clearify the new rpc situation (we don't even need it) --- src/subs/sma_mirRead.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/subs/sma_mirRead.c b/src/subs/sma_mirRead.c index 3e7bb839..8cf5f563 100644 --- a/src/subs/sma_mirRead.c +++ b/src/subs/sma_mirRead.c @@ -233,6 +233,8 @@ #include //#include // in recent glibc header this was moved. Both redhat and ubuntu now have issues finding it // which might be solved with the lib(n)tirpc-dev(el) - seems like a messy "upgrade" to me. + // use an extra -I/usr/include/tirpc if you need this feature + // it seems this code doesn't use RPC #include #include #include From f59432714882b7ba34de375d9428b7eb27ddf55c Mon Sep 17 00:00:00 2001 From: Peter Teuben Date: Sat, 24 Feb 2024 14:19:18 -0500 Subject: [PATCH 08/13] legacy for latests mac's as well --- borrow/pgplot/sys_darwin/gfortran_gcc.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borrow/pgplot/sys_darwin/gfortran_gcc.conf b/borrow/pgplot/sys_darwin/gfortran_gcc.conf index 7e7c89d1..aadf4b30 100644 --- a/borrow/pgplot/sys_darwin/gfortran_gcc.conf +++ b/borrow/pgplot/sys_darwin/gfortran_gcc.conf @@ -46,7 +46,7 @@ # (NB. makemake prepends -c to $FFLAGC where needed) # -u now seems to cause havoc on mac - FFLAGC="-Wall -fPIC -O" + FFLAGC="-Wall -fPIC -O -std=legacy" # Mandatory. # The FORTRAN compiler flags to use when compiling fortran demo programs. From db07b1d0bd6bc7fa84b78d3c32236c035a9c1cc4 Mon Sep 17 00:00:00 2001 From: Peter Teuben Date: Sat, 24 Feb 2024 14:37:04 -0500 Subject: [PATCH 09/13] remove old cvs references --- install/make_miriad_starts | 2 -- 1 file changed, 2 deletions(-) diff --git a/install/make_miriad_starts b/install/make_miriad_starts index b7de2b53..738f4ecb 100755 --- a/install/make_miriad_starts +++ b/install/make_miriad_starts @@ -91,13 +91,11 @@ set sname=`uname -s` if ($sname == Linux) then echo MIRIAD installed on a Linux system - if (! -e /usr/bin/cvs) echo "Warning: cvs not present." if (! -e /usr/bin/make) echo "Warning: make not present." if (! -e /usr/bin/gfortran) echo "Warning: gfortran not present." else if ($sname == Darwin) then echo MIRIAD installed on a mac. Hold your breath... # check if Xcode installed - if (! -e /usr/bin/cvs) echo "Warning: cvs not present, did you not install Xcode?" if (! -e /usr/bin/make) echo "Warning: make not present, did you not install Xcode?" # check if HPC compiler installed if (! -e /usr/local/bin/gfortran) then From 77631a30ad7de649ac366817da0975231b04a280 Mon Sep 17 00:00:00 2001 From: Peter Teuben Date: Sat, 24 Feb 2024 14:41:08 -0500 Subject: [PATCH 10/13] reminders for the future me --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..4fe8399e --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +# reminder Makefile for MIRIAD + + +TIME = /usr/bin/time + +## help: This Help for given HOST +help : Makefile + @echo "HOST: `hostname`" + @sed -n 's/^##//p' $< + +## bench: standard quick benchmark +bench: + (cd install; $(TIME) ./mir.bench) + +## start: make new miriad_start files for this location +start: + ./install/make_miriad_starts From 0fa0fed736b5c8cc4ff7fb506b12e65460a610ed Mon Sep 17 00:00:00 2001 From: Peter Teuben Date: Sat, 24 Feb 2024 14:44:42 -0500 Subject: [PATCH 11/13] verbose --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 4fe8399e..d53b661d 100644 --- a/Makefile +++ b/Makefile @@ -15,3 +15,5 @@ bench: ## start: make new miriad_start files for this location start: ./install/make_miriad_starts + @echo "" + @echo "You can now 'source miriad_start.sh' (the appropriate) start file to add MIRIAD to your shell" From a50fd149068068d1ec305593b54de2d228482437 Mon Sep 17 00:00:00 2001 From: Peter Teuben Date: Sat, 24 Feb 2024 15:19:00 -0500 Subject: [PATCH 12/13] note on env.var. --- docs/install_miriad.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/install_miriad.sh b/docs/install_miriad.sh index fdd8f2f0..29d5f4e8 100755 --- a/docs/install_miriad.sh +++ b/docs/install_miriad.sh @@ -63,10 +63,12 @@ else git checkout $branch fi -# default use the GNU compiler -export F77=gfortran -export CC=gcc -export CXX=g++ +# default use the GNU compiler +# @todo some tools don't listen to this yet +export F77=${F77:-gfortran} +export FC=${FC:-gfortran} +export CC=${CC:-gcc} +export CXX=${CXX:-g++} # if (-e $rootdir/src/tools/ercmd.c) rm $rootdir/src/tools/ercmd.c time install/install.miriad gfortran=1 generic=1 gif=1 telescope=carma From 32f6b786976553c0dd4ddcdbe507041edbd7d570 Mon Sep 17 00:00:00 2001 From: Peter Teuben Date: Sat, 24 Feb 2024 15:19:19 -0500 Subject: [PATCH 13/13] record these patches --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 5fe60723..9b9a2442 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -6.0.1 +6.0.2