Closed esheldon closed 1 year ago
I think the failure is due to these lines being removed from zlib/zconf.h in cfitsio 4
84:# define inflateEnd z_inflateEnd
actually no, it seems to be because zlib is no longer shipped with cfitsio
This is a significant change to the deps. Might consider adding the zlib dir from the previous version to this repo.
The external build test is against cfitsio 3. IDK if we went to add 4 or switch?
good catch, will change it
the cfitsio configure says checking for inflateEnd in -lz... yes
So I think the issue here is that we need to link in libz directly when building against external builds maybe?
Ugh. Now the bundled build fails. I don't see it building the zlib sources.
OK @esheldon, I think this one is ready to merge.
at least the way we are using it where we give the path of the original
@olebole this version work for you?
@esheldon I can't really test that exactly: in Debian, I remove the cfitsio that you provide (to make sure it is not used) and compile/link to the one provided by Debian, by setting the use_system_fitsio
flag to True. All I can say that it works well with the latest cfitsio version (4.2.0) as a system provided package.
zlib is automatically linked to the libcfitsio shared lib, so I do not need to add this as a dependency.
That's what I was wondering, did we mess up in any way to ability to link to a 4.2.0 system package in Debian. If its fine then I'm happy.
We are asking if the build flag you use (--use-system-fitsio
) still works on this branch. We had to change how it is implemented due to backend changes in pip and setuptools. Can you test a debian rpm build with the code on this branch?
lol jinx
Ah, OK. I didn't check this yet. May take a few days until I find time; is this OK?
few days is fine, thank you.
I checked this, and can confirm that it works for me by adding the --use-system-fitsio
option to setup.py
.
Thanks @olebole
closes #334