Skip to content

cfitsio 3.8 passes the build, and an update for 4.0.0 #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
shawnlaffan opened this issue Oct 9, 2022 · 5 comments
Closed

cfitsio 3.8 passes the build, and an update for 4.0.0 #6

shawnlaffan opened this issue Oct 9, 2022 · 5 comments

Comments

@shawnlaffan
Copy link
Contributor

shawnlaffan commented Oct 9, 2022

Opening a separate issue, per comment #4 (comment)

cfitsio 3.8 seems to pass the build process. The fail in the cmake configure stage is perhaps not an issue.

Attempting to build cfitsio 4.0.0 results in configure failures as CMake will not build in the source dir. However, updating build.sh to use the sequence below seems to work (apologies for not submitting a PR).

# ----------------------------------------------------------------------------
cfitsio-*)
cd $WRKDIR/$PACK
mkdir _build
cd _build
xxrun cmake -G "MinGW Makefiles" -DWITH_ZLIB=system -DWITH_SSL=bundled -DCMAKE_INSTALL_PREFIX=$OUT -DCMAKE_MAKE_PROGRAM=
gmake ..
#xxrun make  DLLSUFFIX=$DLLSUFFIX PREFIX=$OUT install
xxrun mingw32-make DLLSUFFIX=$DLLSUFFIX install
cd ..
;;

Edit: Although the invocation seems not to be appending $DLLSUFFIX.

Edit 2: But 4.1.0 also builds.

@shawnlaffan
Copy link
Contributor Author

shawnlaffan commented Oct 10, 2022

It also appears that most (all?) of the dependent modules on CPAN have been moved across to use Alien::CFITSIO. If so then does Strawberry Perl need to provide it?

@djerius can perhaps shed more light on what uses CFITSIO.

@djerius
Copy link

djerius commented Oct 10, 2022

I can't imagine anything using the cfitsio library directly outside of the Perl CFITSIO module, which now uses Alien::CFITSIO, so I don't think it's necessary to bundle cfitsio with Strawberry Perl.

The real question is whether Alien::CFITSIO compiles under Strawberry Perl. It uses the autotool files that cfitsio ships with, rather than cmake ones.

@shawnlaffan
Copy link
Contributor Author

Thanks @djerius

Alien::CFITSIO compiles and passes tests with Strawberry Perl 5.32 and 5.28. Same for Astro::FITS::CFITSIO with the alien.

@djerius
Copy link

djerius commented Oct 12, 2022

Excellent news. Hopefully Strawberry Perl will be available to run as a GitHub CI (or whatever they call it these days).

@shawnlaffan
Copy link
Contributor Author

We have been distributing Strawberry Perl 5.36 and 5.38 without CFITSIO. It would seem the Alien approach is doing its job.

I'll close the issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants