Package Details: healpix 3.83-0

Git Clone URL: https://aur.archlinux.org/healpix.git (read-only, click to copy)
Package Base: healpix
Description: Software for pixelization, hierarchical indexation, synthesis, analysis, and visualization of data on the sphere.
Upstream URL: https://healpix.jpl.nasa.gov/
Licenses: GPL-2.0-or-later
Conflicts: libsharp
Submitter: wjhandley
Maintainer: kmeagher
Last Packager: kmeagher
Votes: 6
Popularity: 0.000021
First Submitted: 2017-11-03 09:29 (UTC)
Last Updated: 2024-11-18 11:48 (UTC)

Latest Comments

kmeagher commented on 2021-10-26 22:54 (UTC)

The CFITSIO_VERSION issue is fixed in 3.80-2

misharash commented on 2021-10-21 16:26 (UTC) (edited on 2021-10-26 23:26 (UTC) by misharash)

Update: issue fixed in the new version.

Build fails with the following message:

In file included from cxxsupport/fitshandle.cc:36:
cxxsupport/fitshandle.cc:802:42: error: too many decimal points in number
  802 |       int v_header  = nearest<int>(1000.*CFITSIO_VERSION),
      |                                          ^~~~~~~~~~~~~~~
cxxsupport/fitshandle.cc: In constructor ‘{anonymous}::cfitsio_checker::cfitsio_checker()’:
cxxsupport/fitshandle.cc:804:21: error: ‘v_library’ was not declared in this scope
  804 |       if (v_header!=v_library)
      |                     ^~~~~~~~~
make: *** [Makefile:1317: cxxsupport/fitshandle.lo] Error 1

Cause: CFITSIO_VERSION is defined in /usr/include/fitsio.h as 4.0.0 . It has one too many decimal point indeed, and doesn't match the version healpix expects (3.48). Workaround: downgrading cfitsio package to 3.48.

wjhandley commented on 2020-05-06 08:13 (UTC) (edited on 2020-05-06 08:13 (UTC) by wjhandley)

The latest commit adds a dependency to the now fixed libsharp repository, so I believe that patch is no longer necessary. Many thanks to kmeagher for helping to debug this.

jmert commented on 2020-05-05 17:46 (UTC)

The new (bundled) libsharp wasn't built for me automatically when the cxx build is triggered, so I had to apply the following patch to PKGBUILD:

diff --git a/PKGBUILD b/PKGBUILD
index cb18ab8..5388664 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -27,15 +27,23 @@ build() {
     ./configure --prefix=/usr
     make -j

-    cd "${srcdir}/Healpix_${pkgver}/src/cxx"
+    cd "${srcdir}/Healpix_${pkgver}/src/common_libraries/libsharp"
     autoreconf --install
     ./configure --prefix=/usr
     make -j
+
+    cd "${srcdir}/Healpix_${pkgver}/src/cxx"
+    autoreconf --install
+    PKG_CONFIG_PATH="../common_libraries/libsharp:$PKG_CONFIG_PATH" \
+        ./configure --prefix=/usr
+    make -j
 }

 package() {
     cd "${srcdir}/Healpix_${pkgver}/src/C/autotools"
     make DESTDIR=${pkgdir} install
+    cd "${srcdir}/Healpix_${pkgver}/src/common_libraries/libsharp"
+    make DESTDIR=${pkgdir} install
     cd "${srcdir}/Healpix_${pkgver}/src/cxx"
     make DESTDIR=${pkgdir} install
 }