diff options
author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2018-08-09 11:10:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-09 11:10:15 -0400 |
commit | 6a4484790fefb15b48a11b9640590196e45caaa5 (patch) | |
tree | e4ed9f3fc5f024ca3170416bc8917cb6ab5d164d | |
parent | 44c0e17a1740262e17a9f377a2ba7301f2cf093b (diff) | |
download | astroconda-contrib-6a4484790fefb15b48a11b9640590196e45caaa5.tar.gz |
Cfitsio disable cURL (#385)
* Bump build number for affected recipes
-rw-r--r-- | cfitsio/0001-cfitsio-autoconf-disable-curl.patch | 203 | ||||
-rw-r--r-- | cfitsio/build.sh | 6 | ||||
-rw-r--r-- | cfitsio/meta.yaml | 12 | ||||
-rw-r--r-- | crds/meta.yaml | 8 | ||||
-rw-r--r-- | fitsverify/meta.yaml | 12 | ||||
-rw-r--r-- | hstcal/build.sh | 9 | ||||
-rw-r--r-- | hstcal/meta.yaml | 16 | ||||
-rw-r--r-- | stsci/meta.yaml | 2 |
8 files changed, 245 insertions, 23 deletions
diff --git a/cfitsio/0001-cfitsio-autoconf-disable-curl.patch b/cfitsio/0001-cfitsio-autoconf-disable-curl.patch new file mode 100644 index 0000000..bd0189b --- /dev/null +++ b/cfitsio/0001-cfitsio-autoconf-disable-curl.patch @@ -0,0 +1,203 @@ +Only in b/cfitsio: autom4te.cache +diff --recursive -u -p a/cfitsio/configure b/cfitsio/configure +--- a/cfitsio/configure 2018-05-09 15:16:00.000000000 -0400 ++++ b/cfitsio/configure 2018-08-06 15:42:35.000000000 -0400 +@@ -710,6 +710,7 @@ enable_reentrant + enable_sse2 + enable_ssse3 + enable_hera ++enable_curl + with_bzip2 + with_gsiftp + with_gsiftp_flavour +@@ -1341,6 +1342,7 @@ Optional Features: + --enable-ssse3 Enable use of instructions in the SSSE3 extended + instruction set + --enable-hera Build for HERA (ASD use only) ++ --disable-curl Disable use of cURL library (HTTPS) + + Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] +@@ -2264,6 +2266,13 @@ if test "x$BUILD_HERA" = xyes; then + + fi + ++# Check whether --enable-curl was given. ++if test "${enable_curl+set}" = set; then : ++ enableval=$enable_curl; if test $enableval = yes; then CURL_DISABLED=yes; fi ++ ++fi ++ ++ + # Optional support for bzip2 compression: + ac_ext=c + ac_cpp='$CPP $CPPFLAGS' +@@ -4780,17 +4789,18 @@ if test "x$CFITSIO_SHLIB" = x; then CFIT + + # Curl library (will be pulled in to the shared CFITSIO library): + # --------------------------------------------------------------- +-CURL_LIB="" +-CURL_INC="" +-# Use curl-config to get compiler & linker flags, if available. +-# On Macs, prefer XCode curl-config, and reject MacPorts version +-# until further notice to prevent build errors: +-if test "x$EXT" = xdarwin -a -x /usr/bin/curl-config; then +- CURLCONFIG="/usr/bin/curl-config" +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for curl-config... choosing /usr/bin/curl-config on Mac" >&5 ++if test "x$CURL_DISABLED" != x; then ++ CURL_LIB="" ++ CURL_INC="" ++ # Use curl-config to get compiler & linker flags, if available. ++ # On Macs, prefer XCode curl-config, and reject MacPorts version ++ # until further notice to prevent build errors: ++ if test "x$EXT" = xdarwin -a -x /usr/bin/curl-config; then ++ CURLCONFIG="/usr/bin/curl-config" ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for curl-config... choosing /usr/bin/curl-config on Mac" >&5 + $as_echo "checking for curl-config... choosing /usr/bin/curl-config on Mac" >&6; } +-else +- # Extract the first word of "curl-config", so it can be a program name with args. ++ else ++ # Extract the first word of "curl-config", so it can be a program name with args. + set dummy curl-config; ac_word=$2 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 + $as_echo_n "checking for $ac_word... " >&6; } +@@ -4844,30 +4854,34 @@ $as_echo "no" >&6; } + fi + + +-fi +-if test "x$CURLCONFIG" != x; then +- CURL_LIB=`$CURLCONFIG --libs` +- CURL_INC=`$CURLCONFIG --cflags` +- # Also reject anaconda curl on Macs until further notice: +- if test "x$EXT" = xdarwin -a `echo $CURL_LIB $CURL_INC | grep -ci anaconda` -gt 0; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Rejecting Anaconda curl. Disabling HTTPS support." >&5 ++ fi ++ if test "x$CURLCONFIG" != x; then ++ CURL_LIB=`$CURLCONFIG --libs` ++ CURL_INC=`$CURLCONFIG --cflags` ++ # Also reject anaconda curl on Macs until further notice: ++ if test "x$EXT" = xdarwin -a `echo $CURL_LIB $CURL_INC | grep -ci anaconda` -gt 0; then ++ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Rejecting Anaconda curl. Disabling HTTPS support." >&5 + $as_echo "$as_me: WARNING: Rejecting Anaconda curl. Disabling HTTPS support." >&2;} +- else +- LIBS="$CURL_LIB $LIBS" +- if test "x$CURL_INC" != x; then +- CFLAGS="$CURL_INC $CFLAGS" +- fi +- $as_echo "#define CFITSIO_HAVE_CURL 1" >>confdefs.h ++ else ++ LIBS="$CURL_LIB $LIBS" ++ if test "x$CURL_INC" != x; then ++ CFLAGS="$CURL_INC $CFLAGS" ++ fi ++ $as_echo "#define CFITSIO_HAVE_CURL 1" >>confdefs.h + ++ fi ++ # No curl-config: ++ else ++ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl-config not found. Disabling HTTPS support." >&5 ++$as_echo "$as_me: WARNING: curl-config not found. Disabling HTTPS support." >&2;} ++ # Incomplete stubs for possible future use: ++ # AC_CHECK_LIB([curl],[main],[], ++ # [AC_MSG_WARN(Not building curl support for CFITSIO)]) ++ # AC_CHECK_HEADER(curl.h,[]) + fi +-# No curl-config: + else +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl-config not found. Disabling HTTPS support." >&5 +-$as_echo "$as_me: WARNING: curl-config not found. Disabling HTTPS support." >&2;} +-# Incomplete stubs for possible future use: +-# AC_CHECK_LIB([curl],[main],[], +-# [AC_MSG_WARN(Not building curl support for CFITSIO)]) +-# AC_CHECK_HEADER(curl.h,[]) ++ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl disabled. Disabling HTTPS support." >&5 ++$as_echo "$as_me: WARNING: curl disabled. Disabling HTTPS support." >&2;} + fi + + # GSIFTP flags: +diff --recursive -u -p a/cfitsio/configure.in b/cfitsio/configure.in +--- a/cfitsio/configure.in 2018-05-09 15:16:00.000000000 -0400 ++++ b/cfitsio/configure.in 2018-08-06 15:42:27.000000000 -0400 +@@ -53,6 +53,12 @@ if test "x$BUILD_HERA" = xyes; then + AC_DEFINE(BUILD_HERA) + fi + ++AC_ARG_ENABLE( ++ curl, ++ [AS_HELP_STRING([--disable-curl],[Disable use of cURL library (HTTPS)])], ++ [ if test $enableval = yes; then CURL_DISABLED=yes; fi ] ++) ++ + # Optional support for bzip2 compression: + AC_ARG_WITH( + bzip2, +@@ -441,37 +447,41 @@ if test "x$CFITSIO_SHLIB" = x; then CFIT + + # Curl library (will be pulled in to the shared CFITSIO library): + # --------------------------------------------------------------- +-CURL_LIB="" +-CURL_INC="" +-# Use curl-config to get compiler & linker flags, if available. +-# On Macs, prefer XCode curl-config, and reject MacPorts version +-# until further notice to prevent build errors: +-if test "x$EXT" = xdarwin -a -x /usr/bin/curl-config; then +- CURLCONFIG="/usr/bin/curl-config" +- AC_MSG_RESULT(checking for curl-config... choosing /usr/bin/curl-config on Mac) +-else +- AC_CHECK_PROG([CURLCONFIG], [curl-config], [curl-config], [], [], [/opt/local/bin/curl-config]) +-fi +-if test "x$CURLCONFIG" != x; then +- CURL_LIB=`$CURLCONFIG --libs` +- CURL_INC=`$CURLCONFIG --cflags` +- # Also reject anaconda curl on Macs until further notice: +- if test "x$EXT" = xdarwin -a `echo $CURL_LIB $CURL_INC | grep -ci anaconda` -gt 0; then +- AC_MSG_WARN(Rejecting Anaconda curl. Disabling HTTPS support.) ++if test "x$CURL_DISABLED" != x; then ++ CURL_LIB="" ++ CURL_INC="" ++ # Use curl-config to get compiler & linker flags, if available. ++ # On Macs, prefer XCode curl-config, and reject MacPorts version ++ # until further notice to prevent build errors: ++ if test "x$EXT" = xdarwin -a -x /usr/bin/curl-config; then ++ CURLCONFIG="/usr/bin/curl-config" ++ AC_MSG_RESULT(checking for curl-config... choosing /usr/bin/curl-config on Mac) + else +- LIBS="$CURL_LIB $LIBS" +- if test "x$CURL_INC" != x; then +- CFLAGS="$CURL_INC $CFLAGS" ++ AC_CHECK_PROG([CURLCONFIG], [curl-config], [curl-config], [], [], [/opt/local/bin/curl-config]) ++ fi ++ if test "x$CURLCONFIG" != x; then ++ CURL_LIB=`$CURLCONFIG --libs` ++ CURL_INC=`$CURLCONFIG --cflags` ++ # Also reject anaconda curl on Macs until further notice: ++ if test "x$EXT" = xdarwin -a `echo $CURL_LIB $CURL_INC | grep -ci anaconda` -gt 0; then ++ AC_MSG_WARN(Rejecting Anaconda curl. Disabling HTTPS support.) ++ else ++ LIBS="$CURL_LIB $LIBS" ++ if test "x$CURL_INC" != x; then ++ CFLAGS="$CURL_INC $CFLAGS" ++ fi ++ AC_DEFINE(CFITSIO_HAVE_CURL) + fi +- AC_DEFINE(CFITSIO_HAVE_CURL) ++ # No curl-config: ++ else ++ AC_MSG_WARN(curl-config not found. Disabling HTTPS support.) ++ # Incomplete stubs for possible future use: ++ # AC_CHECK_LIB([curl],[main],[], ++ # [AC_MSG_WARN(Not building curl support for CFITSIO)]) ++ # AC_CHECK_HEADER(curl.h,[]) + fi +-# No curl-config: + else +- AC_MSG_WARN(curl-config not found. Disabling HTTPS support.) +-# Incomplete stubs for possible future use: +-# AC_CHECK_LIB([curl],[main],[], +-# [AC_MSG_WARN(Not building curl support for CFITSIO)]) +-# AC_CHECK_HEADER(curl.h,[]) ++ AC_MSG_WARN(curl disabled. Disabling HTTPS support.) + fi + + # GSIFTP flags: diff --git a/cfitsio/build.sh b/cfitsio/build.sh index 5368e6b..c76e193 100644 --- a/cfitsio/build.sh +++ b/cfitsio/build.sh @@ -1,8 +1,8 @@ case "$(uname)" in Darwin) export CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112L" - ;; + ;; esac -./configure --prefix=$PREFIX --disable-static --enable-reentrant -make -j $CPU_COUNT shared +./configure --prefix=$PREFIX --enable-reentrant --disable-curl +make shared make install diff --git a/cfitsio/meta.yaml b/cfitsio/meta.yaml index 31896b3..20be0ac 100644 --- a/cfitsio/meta.yaml +++ b/cfitsio/meta.yaml @@ -1,7 +1,7 @@ {% set name = 'cfitsio' %} {% set version = '3.440' %} {% set version_short = '3440' %} -{% set number = '0' %} +{% set number = '1' %} about: home: http://heasarc.gsfc.nasa.gov/fitsio/fitsio.html @@ -19,13 +19,15 @@ package: requirements: build: - - curl - - gcc [osx] + - gcc >=4.6 run: - - curl - - libgcc [osx] + - libgcc >=4.6 source: + patches: + - 0001-cfitsio-autoconf-disable-curl.patch + fn: {{ name }}{{ version_short }}.tar.gz url: http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/{{ name }}{{ version_short }}.tar.gz + #md5: 8c9b3383752f1bd663b936c297f19feb # verification broken in conda-build through 3.7.1 diff --git a/crds/meta.yaml b/crds/meta.yaml index 117b7e7..01b916f 100644 --- a/crds/meta.yaml +++ b/crds/meta.yaml @@ -1,6 +1,6 @@ {% set name = 'crds' %} {% set version = '7.2.4' %} -{% set number = '0' %} +{% set number = '1' %} about: home: http://www.stsci.edu/hst/observatory/crds/ @@ -20,18 +20,18 @@ package: requirements: build: - astropy >=1.1 - - cfitsio >=3.430 + - cfitsio >=3.440 - numpy {{ numpy }} - requests - lxml - parsley - - setuptools - filelock + - setuptools - python {{ python }} run: - astropy >=1.1 - - cfitsio >=3.430 + - cfitsio - numpy - requests - lxml diff --git a/fitsverify/meta.yaml b/fitsverify/meta.yaml index 76ffe35..96139d0 100644 --- a/fitsverify/meta.yaml +++ b/fitsverify/meta.yaml @@ -1,6 +1,11 @@ {% set name = 'fitsverify' %} {% set version = '4.18' %} -{% set number = '5' %} +{% set number = '6' %} +# number = 1 ; legacy, links against whatever is provided by available cfitsio package +# number = 2 ; links against cfitsio < 3.410 +# number = 3 ; links against cfitsio >= 3.410 +# number = 5 ; links against cfitsio >= 3.440 +# number = 6 ; links against cfitsio >= 3.440 (no curl) about: home: http://heasarc.gsfc.nasa.gov/fitsio/fitsio.html @@ -19,15 +24,16 @@ package: requirements: build: - - cfitsio >=3.430 + - cfitsio >=3.440 - pkg-config [osx] run: - - cfitsio >=3.430 + - cfitsio >=3.440 source: fn: {{ name }}-{{ version }}.tar.gz url: https://heasarc.gsfc.nasa.gov/docs/software/ftools/{{ name }}/{{ name }}-{{ version }}.tar.gz + #md5: 84f2930e802891392043cb8a6cbf4d5d # Checksumming broken in conda-build. test: commands: diff --git a/hstcal/build.sh b/hstcal/build.sh index 4845293..a9727f0 100644 --- a/hstcal/build.sh +++ b/hstcal/build.sh @@ -1,10 +1,11 @@ if [[ `uname` == Darwin ]]; then export CC=`which gcc` - export DARWIN_FLAGS='-m64' - export CFLAGS="$CFLAGS $DARWIN_FLAGS" - export LDFLAGS="$LDFLAGS $DARWIN_FLAGS" + if [[ `uname -m` == x86_64 ]]; then + export CFLAGS="$CFLAGS -m64" + export LDFLAGS="$LDFLAGS -m64" + fi fi -./waf configure --prefix=$PREFIX +./waf configure --prefix=$PREFIX --release-with-symbols ./waf build ./waf install diff --git a/hstcal/meta.yaml b/hstcal/meta.yaml index 26b999f..b6189ca 100644 --- a/hstcal/meta.yaml +++ b/hstcal/meta.yaml @@ -1,6 +1,6 @@ {% set name = 'hstcal' %} {% set version = '2.0.0' %} -{% set number = '0' %} +{% set number = '1' %} about: home: https://github.com/spacetelescope/{{ name }} @@ -16,10 +16,20 @@ package: requirements: build: - - gcc >=4.6 [osx] + - cfitsio >=3.440 + - pkg-config + - gcc >=4.7 + run: - - libgcc >=4.6 [osx] + - cfitsio + - libgcc >=4.7 source: git_tag: {{ version }} git_url: https://github.com/spacetelescope/{{ name }}.git + +test: + commands: + - calacs.e --gitinfo + - otool -L $(which calacs.e) [osx] + - ldd $(which calacs.e) [linux] diff --git a/stsci/meta.yaml b/stsci/meta.yaml index 0e66d61..dc3746d 100644 --- a/stsci/meta.yaml +++ b/stsci/meta.yaml @@ -1,6 +1,6 @@ {% set name = 'stsci' %} {% set version = '3.0.2' %} -{% set number = '0' %} +{% set number = '1' %} about: home: http://ssb.stsci.edu |