From 3026cf547bf22a6a820bd88277eb330cad55ca65 Mon Sep 17 00:00:00 2001 From: Sergio Pascual Date: Sun, 1 Aug 2021 10:39:51 +0200 Subject: [PATCH] Remove rpath in utilities --- cfitsio-3.47-soname.patch | 36 ------------------------------------ cfitsio-remove-rpath.patch | 12 ++++++++++++ cfitsio-sformat.patch | 35 ----------------------------------- cfitsio.spec | 14 +++++++------- 4 files changed, 19 insertions(+), 78 deletions(-) delete mode 100644 cfitsio-3.47-soname.patch create mode 100644 cfitsio-remove-rpath.patch delete mode 100644 cfitsio-sformat.patch diff --git a/cfitsio-3.47-soname.patch b/cfitsio-3.47-soname.patch deleted file mode 100644 index 90fdf4e..0000000 --- a/cfitsio-3.47-soname.patch +++ /dev/null @@ -1,36 +0,0 @@ -diff -ur cfitsio-3.47/configure cfitsio-3.47.soname/configure ---- cfitsio-3.47/configure 2019-08-01 15:59:50.735018203 +0200 -+++ cfitsio-3.47.soname/configure 2019-08-01 16:04:16.277042668 +0200 -@@ -2293,7 +2293,7 @@ - CFITSIO_MINOR=47 - - # Increment soname each time the interface changes: --CFITSIO_SONAME=8 -+CFITSIO_SONAME=7 - - - #-------------------------------------------------------------------- -diff -ur cfitsio-3.47/configure.in cfitsio-3.47.soname/configure.in ---- cfitsio-3.47/configure.in 2019-05-21 21:42:37.000000000 +0200 -+++ cfitsio-3.47.soname/configure.in 2019-08-01 16:03:15.723124934 +0200 -@@ -17,7 +17,7 @@ - AC_SUBST(CFITSIO_MAJOR,3) - AC_SUBST(CFITSIO_MINOR,47) - # Increment soname each time the interface changes: --AC_SUBST(CFITSIO_SONAME,8) -+AC_SUBST(CFITSIO_SONAME,7) - - #-------------------------------------------------------------------- - # Command options -diff -ur cfitsio-3.47/fitsio.h cfitsio-3.47.soname/fitsio.h ---- cfitsio-3.47/fitsio.h 2019-05-08 17:34:50.000000000 +0200 -+++ cfitsio-3.47.soname/fitsio.h 2019-08-01 16:05:22.684049113 +0200 -@@ -37,7 +37,7 @@ - #define CFITSIO_VERSION 3.47 - #define CFITSIO_MINOR 47 - #define CFITSIO_MAJOR 3 --#define CFITSIO_SONAME 8 -+#define CFITSIO_SONAME 7 - - /* the SONAME is incremented in a new release if the binary shared */ - /* library (on linux and Mac systems) is not backward compatible */ diff --git a/cfitsio-remove-rpath.patch b/cfitsio-remove-rpath.patch new file mode 100644 index 0000000..a8cee6b --- /dev/null +++ b/cfitsio-remove-rpath.patch @@ -0,0 +1,12 @@ +diff -ur cfitsio-3.49/configure cfitsio-3.49.rpath/configure +--- cfitsio-3.49/configure 2021-08-01 10:11:12.159237384 +0200 ++++ cfitsio-3.49.rpath/configure 2021-08-01 10:24:32.504218725 +0200 +@@ -4673,7 +4673,7 @@ + $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h + + # LDFLAGS used by utilities: +- LDFLAGS_BIN="$LDFLAGS_BIN -Wl,-rpath,\${CFITSIO_LIB}" ++ LDFLAGS_BIN="$LDFLAGS_BIN" + ;; + *mingw32*) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for large file support" >&5 diff --git a/cfitsio-sformat.patch b/cfitsio-sformat.patch deleted file mode 100644 index 8255e34..0000000 --- a/cfitsio-sformat.patch +++ /dev/null @@ -1,35 +0,0 @@ -diff -ur cfitsio-3.47/drvrnet.c cfitsio-3.47.sformat/drvrnet.c ---- cfitsio-3.47/drvrnet.c 2019-05-21 21:41:54.000000000 +0200 -+++ cfitsio-3.47.sformat/drvrnet.c 2019-08-01 13:52:41.461958938 +0200 -@@ -1257,9 +1257,9 @@ - urlname = (char *)clientp; - if (urlname) - { -- fprintf(stderr,"Downloading "); -- fprintf(stderr,urlname); -- fprintf(stderr,"...\n"); -+ fprintf(stderr,"%s","Downloading "); -+ fprintf(stderr,"%s",urlname); -+ fprintf(stderr,"%s","...\n"); - } - isFirst = 0; - } -@@ -1270,13 +1270,13 @@ - nToDisplay = fullBar; - fprintf(stderr,"%3d%% [",percent); - for (i=0; i - 3.490-4 +- Remove rpath in utilities + * Wed Jul 21 2021 Fedora Release Engineering - 3.490-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild