mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
cfitsio: 3.450 -> 3.47
* changed to version numbering without trailing '0' * remove obsolete `darwin-curl-config.patch` * disable format hardening to fix build
This commit is contained in:
parent
6cc7e33ac8
commit
b16ae1a77d
2 changed files with 7 additions and 31 deletions
|
@ -1,25 +0,0 @@
|
|||
diff -ruN cfitsio/configure cfitsio-curl-config/configure
|
||||
--- cfitsio/configure 2018-05-09 21:16:00.000000000 +0200
|
||||
+++ cfitsio-curl-config/configure 2018-05-30 13:28:58.000000000 +0200
|
||||
@@ -4783,13 +4783,6 @@
|
||||
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.
|
||||
set dummy curl-config; ac_word=$2
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||
@@ -4833,7 +4826,6 @@
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
-fi
|
||||
CURLCONFIG=$ac_cv_prog_CURLCONFIG
|
||||
if test -n "$CURLCONFIG"; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLCONFIG" >&5
|
|
@ -2,22 +2,23 @@
|
|||
|
||||
# Optional dependencies
|
||||
, bzip2 ? null }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "cfitsio-${version}";
|
||||
version = "3.450";
|
||||
pname = "cfitsio";
|
||||
version = "3.47";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio${builtins.replaceStrings ["."] [""] version}.tar.gz";
|
||||
sha256 = "0bmrkw6w65zb0k3mszaaqy1f4zjm2hl7njww74nb5v38wvdi4q5z";
|
||||
url = "https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio-${version}.tar.gz";
|
||||
sha256 = "1vzlxnrjckz78p2wf148v2z3krkwnykfqvlj42sz3q711vqid1a1";
|
||||
};
|
||||
|
||||
buildInputs = [ bzip2 ];
|
||||
|
||||
patches = [ ./darwin-curl-config.patch ./darwin-rpath-universal.patch ];
|
||||
patches = [ ./darwin-rpath-universal.patch ];
|
||||
|
||||
configureFlags = stdenv.lib.optional (bzip2 != null) "--with-bzip2=${bzip2.out}";
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
# Shared-only build
|
||||
buildFlags = "shared";
|
||||
postPatch = '' sed -e '/^install:/s/libcfitsio.a //' -e 's@/bin/@@g' -i Makefile.in
|
||||
|
|
Loading…
Reference in a new issue