Sorry for the delay with this package, I updated the links and made some build fixes but I couldn't test it 100% so I'm not sure if this builds fine (you know that if exists /usr/bin/ncl). I don't have much time to check it, any help/patches are welcome.
Search Criteria
Package Details: ncl 6.6.2-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/ncl.git (read-only, click to copy) |
---|---|
Package Base: | ncl |
Description: | Ncar Command Language, is an interpreted language designed specifically for scientific data analysis and visualization |
Upstream URL: | http://www.ncl.ucar.edu |
Licenses: | Apache |
Provides: | ncl |
Submitter: | Xavier |
Maintainer: | Xavier |
Last Packager: | Xavier |
Votes: | 17 |
Popularity: | 0.000000 |
First Submitted: | 2010-09-24 16:46 (UTC) |
Last Updated: | 2021-06-04 01:16 (UTC) |
Dependencies (34)
- bzip2 (bzip2-gitAUR)
- cairo (cairo-gitAUR)
- expat (expat-gitAUR)
- flex (flex-gitAUR)
- fontconfig (fontconfig-gitAUR, fontconfig-ubuntuAUR)
- g2clibAUR (g2clibAUR)
- gdal (gdal-libkmlAUR, gdal-libkml-filegdbAUR, gdal-hdf4AUR, gdal-ecwAUR)
- glibc (glibc-gitAUR, glibc-linux4AUR, glibc-eacAUR, glibc-eac-binAUR, glibc-eac-rocoAUR)
- gsl (gsl-gitAUR)
- hdf4AUR
- hdf5 (hdf5-gitAUR, hdf5-openmpi)
- imake
- jasper (jasper-gitAUR)
- lesstifAUR
- libaec (libaec-gitAUR)
- libjpeg (mozjpeg-gitAUR, libjpeg-turbo-gitAUR, mozjpegAUR, libjpeg-turbo)
- libpng (libpng-gitAUR, libpng-apngAUR)
- libx11 (libx11-gitAUR)
- libxaw (xawmAUR)
- libxext (libxext-gitAUR)
- libxpm (libxpm-gitAUR)
- libxt
- netcdf (netcdf-openmpi)
- netcdf-fortran (netcdf-fortran-openmpi)
- pixman (pixman-gitAUR)
- tcsh (tcsh-gitAUR)
- triangleAUR
- udunitsAUR
- zlib (zlib-ng-compat-gitAUR, zlib-gitAUR, zlib-ng-compat)
- byacc (make)
- gcc (gcc-gitAUR, gccrs-gitAUR, gcc11AUR, gcc-snapshotAUR) (make)
- gcc-fortran (gcc-fortran-gitAUR, gcc11-fortranAUR, gcc-fortran-snapshotAUR) (make)
- tcsh (tcsh-gitAUR) (make)
- ncl-highresAUR (ncl-highresAUR) (optional) – High-resolution coastlines (RANGS and GSHHS)
Required by (3)
- garli
- jaziku (optional)
- ncl-highres
Sources (15)
Xavier commented on 2021-06-04 01:21 (UTC)
ram commented on 2021-06-03 10:11 (UTC)
build breaks with
curl: (22) The requested URL returned error: 404
==> ERROR: Failure while downloading https://src.fedoraproject.org/rpms/ncl/raw/master/f/ncl-5.0.0-no_install_dep.patch
Aborting...
:: Unable to build ncl - makepkg exited with code: 1
Polly commented on 2021-03-02 09:23 (UTC)
The fedora resources have moved from branches "master" to "main". The URLs in the PKGBUILD need to be adapted accordingly. The versions and checksums of the patches stay the same.
queenmedley commented on 2019-10-28 15:21 (UTC) (edited on 2019-10-28 15:27 (UTC) by queenmedley)
During compiling, there are many warning or error message related to some header file missing, stddef.h, limits.h, stdarg.h.
It's solved by adding options to "#define IncSearch" in "Site.local"
"-I/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include" "-I/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include-fixed"
queenmedley commented on 2019-10-28 15:01 (UTC) (edited on 2019-10-28 15:16 (UTC) by queenmedley)
I tested like that
1. go to ....../src/ncl-6.6.2/ni/src/lib/nfp
2. Add option "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H" to CFLAGS in Makefile.
3. do "make"
=> I could find the libnfp.a.
Problem is that when makepkg, there is not Makefile in /src/ncl-6.6.2/ni/src/lib/nfp.
I tried the sed command under ".config/ymkmf" in PKGBUILD,
"sed '/^CFLAGS/ s/$/ "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H"/' ni/src/lib/nfp/Makefile"
but it failed.
"sed: can't read ni/src/lib/nfp/Makefile: No such file or director"
I think Makefile is made during compiling..
I don't know how to fix PKGBUILD. I am not good at coding.
Any idea?
Xavier commented on 2019-10-28 04:39 (UTC)
Hi guys, I will inspect the problem, (while) if someone wants to be a co-maintainer to help find these problems pl tell me
bakamotokatas commented on 2019-10-23 21:30 (UTC)
My compilation also doesn't generate ncl file. I am getting same error, as queenmedley mentioned.
queenmedley commented on 2019-10-23 05:12 (UTC) (edited on 2019-10-23 06:57 (UTC) by queenmedley)
Compiling ncl does not generate "ncl" file.
I found a error message related to nfp and proj.
cc -O2 -std=c99 -fPIC -fno-strict-aliasing -fopenmp -lnetcdf -O -I../../ncl -I../../../.././include -I/usr/include -I/usr/include/cairo -I/usr/include/curl -I/usr/include/X11 -I/usr/include/libpng14 -I/usr/include/freetype2/freetype -I/usr/include/freetype2 -I/usr/include/udunits2 -I/usr/include/gdal -I/usr/include/rx -I/usr/include/Xm -I/opt/hdf4/include "-I/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include" "-I/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include-fixed" -DBuildUdunits -DBuildGDAL -DBuildEEMD -D_ISOC99_SOURCE -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto -D_FORTIFY_SOURCE=2 -c -o TransformCoordinate.o TransformCoordinate.c
In file included from TransformCoordinate.c:2:
/usr/include/proj_api.h:37:2: error:
#error 'To use the proj_api.h you must define the macro ACCEPT_USE_OF_DEPRECATED_PROJ_API_H'
37 | #error 'To use the proj_api.h you must define the macro ACCEPT_USE_OF_DEPRECATED_PROJ_API_H'
| ^~~~~
make[5]: *** [<builtin>: TransformCoordinate.o] Error 1
make[5]: Leaving directory '/home/ryzen1/library/ncl/ncl/src/ncl-6.6.2/ni/src/lib/nfp'
gcc -O2 -std=c99 -fPIC -fno-strict-aliasing -fopenmp -lnetcdf -O -I../../.././include -I/usr/include -I/usr/include/cairo -I/usr/include/curl -I/usr/include/X11 -I/usr/include/libpng14 -I/usr/include/freetype2/freetype -I/usr/include/freetype2 -I/usr/include/udunits2 -I/usr/include/gdal -I/usr/include/rx -I/usr/include/Xm -I/opt/hdf4/include "-I/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include" "-I/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include-fixed" -DLinux -DMAJOR=5 -DBuildHDF4 -DBuildHDF5 -DBuildGRIB2 -D__64BIT__ -DBuildGDAL -DUSE_NETCDF4_FEATURES -D_ISOC99_SOURCE -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto -D_FORTIFY_SOURCE=2 -c -o Ncl.o Ncl.c
make[4]: *** No rule to make target '../../.././ni/src/lib/nfp/libnfp.a', needed by 'ncl'. Stop.
Pinned Comments
Xavier commented on 2017-08-27 03:23 (UTC) (edited on 2021-06-04 01:22 (UTC) by Xavier)
If everything went well in the build, it generates the binary /usr/bin/ncl, else rebuild (not use repositories) these packages: g2clib, triangle, udunits, hdf4 (>=4.2.14-4), and try again. For fresh install run 'source /etc/profile' or relogin.