wcstools/wcstools3-shared.patch
Sergio Pascual b81aa1f7f4 - New upstream source 3.7.0
Mon Aug 27 2007 Sergio Pascual <spr at astrax.fis.ucm.es> 3.6.8-2.1
- Rebuild for Fedora 8 to get the build-id
Tue Mar 20 2007 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.8-2
- Fix for bug #232413
Mon Mar 19 2007 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.8-1
- New upstream source 3.6.8
- Added pacthes to remove warnings during the compilation
Mon Feb 26 2007 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.7-1
- New upstream source 3.6.7
Wed Nov 15 2006 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.6-1
- New upstream source 3.6.6
Tue Oct 10 2006 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.6-0.1.beta
- New upstream source 3.6.6beta
Mon Sep 4 2006 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.5-3
- Rebuild.
Wed Aug 30 2006 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.5-2
- Corrected bug in edhead (patch2) (bug #204642).
Fri Jun 21 2006 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.5-1
- New upstream source 3.6.5
Tue Jun 13 2006 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.4-3
- Patched overflows in catutil.c and getdate.c
- Patched incompatible pointer in binread.c
Mon Jun 12 2006 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.4-2
- Patched edhead.
- libwcs provides libwcs.so.3
- libwcs into System Environment/Libraries group
- Makefile uses ${RPM_OPT_FLAGS} and $(CC)
Fri Jun 09 2006 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.4-1
- Removed not needed ldconfig in wcstools and libwcs-devel.
Wed Mar 08 2006 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.3-1
- Initial RPM file.
2007-09-07 20:16:11 +00:00

103 lines
3.2 KiB
Diff

diff -ur wcstools-3.6.7.old/libwcs/Makefile wcstools-3.6.7/libwcs/Makefile
--- wcstools-3.6.7.old/libwcs/Makefile 2007-01-10 20:26:36.000000000 +0100
+++ wcstools-3.6.7/libwcs/Makefile 2007-02-26 15:42:32.000000000 +0100
@@ -11,10 +11,18 @@
sortstar.o platefit.o iget.o fileutil.o \
wcslib.o lin.o cel.o proj.o sph.o wcstrig.o distort.o
+all: libwcs.a libwcs.so.3.0.0
+
libwcs.a: $(OBJS)
ar rv $@ $?
ranlib $@
+libwcs.so.3.0.0: $(OBJS)
+ $(CC) $(CFLAGS) -shared -o $@ -Wl,-soname,libwcs.so.3 $?
+ ln -s libwcs.so.3.0.0 libwcs.so.3
+ ln -s libwcs.so.3.0.0 libwcs.so
+
+
actread.o: fitsfile.h wcscat.h wcs.h fitshead.h wcslib.h
binread.o: wcscat.h wcs.h fitshead.h wcslib.h
ctgread.o: wcscat.h wcs.h fitshead.h wcslib.h
@@ -64,4 +72,4 @@
worldpos.o: wcs.h fitshead.h wcslib.h
clean:
- rm -f *.a *.o
+ rm -f *.a *.o *.so*
--- wcstools-3.6.8.old/Makefile 2007-02-28 21:44:24.000000000 +0100
+++ wcstools-3.6.8/Makefile 2007-03-19 17:36:28.000000000 +0100
@@ -1,6 +1,6 @@
CFLAGS= -g
CC= cc
-LIBWCS = libwcs/libwcs.a
+LIBWCS = -L`pwd`/libwcs -lwcs
LIBS = $(LIBWCS) -lm
#CATLIBS = $(LIBS) -lnsl -lsocket
CATLIBS = $(LIBS)
@@ -19,10 +19,10 @@
$(CC) $(CFLAGS) -o $(BIN)/addpix addpix.c $(LIBS)
bincat: bincat.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h
- $(CC) $(CFLAGS) -o $(BIN)/bincat bincat.c $(CATLIBS)
+ $(CC) $(CFLAGS) -o $(BIN)/bincat bincat.c $(LIBS)
char2sp: char2sp.c $(LIBWCS) libwcs/fitsfile.h
- $(CC) $(CFLAGS) -o $(BIN)/char2sp char2sp.c $(LIBWCS)
+ $(CC) $(CFLAGS) -o $(BIN)/char2sp char2sp.c $(LIBS)
conpix: conpix.c $(LIBWCS) libwcs/fitsfile.h
$(CC) $(CFLAGS) -o $(BIN)/conpix conpix.c $(LIBS)
@@ -151,7 +151,7 @@
$(CC) $(CFLAGS) -o $(BIN)/skycoor skycoor.c $(CATLIBS)
sp2char: sp2char.c $(LIBWCS) libwcs/fitsfile.h
- $(CC) $(CFLAGS) -o $(BIN)/sp2char sp2char.c $(LIBWCS)
+ $(CC) $(CFLAGS) -o $(BIN)/sp2char sp2char.c $(LIBS)
subpix: subpix.c $(LIBWCS) libwcs/fitsfile.h
$(CC) $(CFLAGS) -o $(BIN)/subpix subpix.c $(LIBS)
@@ -169,13 +169,13 @@
$(CC) $(CFLAGS) -o $(BIN)/simpos simpos.c $(CATLIBS)
$(LIBWCS): libwcs/*.c libwcs/*.h
- cd libwcs; make
+ $(MAKE) -C libwcs
objclean:
- cd libwcs; make clean
+ $(MAKE) -C libwcs clean
binclean:
rm -f ./bin/*
clean:
- make objclean; make binclean
+ $(MAKE) objclean; $(MAKE) binclean
diff -ur wcstools-3.6.8/libwcs/imhfile.c wcstools-3.6.8.new/libwcs/imhfile.c
--- wcstools-3.6.8/libwcs/imhfile.c 2007-03-19 18:26:41.000000000 +0100
+++ wcstools-3.6.8.new/libwcs/imhfile.c 2007-03-19 18:40:26.000000000 +0100
@@ -1036,11 +1036,11 @@
int len;
char *newpixname;
- newpixname = (char *) calloc (SZ_IM2PIXFILE, 1);
+ newpixname = (char *) calloc (SZ_IM2PIXFILE + 1, sizeof(char));
/* Pixel file is in same directory as header */
if (strncmp(pixname, "HDR$", 4) == 0 ) {
- (void)strncpy (newpixname, hdrname, SZ_IM2PIXFILE);
+ strncpy (newpixname, hdrname, SZ_IM2PIXFILE);
/* find the end of the pathname */
len = strlen (newpixname);
@@ -1053,7 +1053,7 @@
/* add name */
newpixname[len] = '\0';
- (void)strncat (newpixname, &pixname[4], SZ_IM2PIXFILE);
+ strncat (newpixname, &pixname[4], SZ_IM2PIXFILE);
}
/* Bare pixel file with no path is assumed to be same as HDR$filename */