Hi,
Please try with the attached patch.
I had successfully installed HPXcvt with this patch.
From: Rainer Hurling <[email protected]>
Date: Thu, 08 May 2014 12:35:02 +0200
> Am 08.05.2014 05:14 (UTC+1) schrieb Sunpoet Po-Chuan Hsieh:
>> On Wed, May 7, 2014 at 9:52 PM, Jan Henrik Sylvester <[email protected]> wrote:
>>> My latest port upgrade (from source via portmaster) on
>>> 10.0-RELEASE/amd64 fails at astro/wcslib, which has been bumped after
>>> the astro/cfitsio update. It fails to install with:
>>>
>>> pkg-static:
>>> lstat(/usr/ports/astro/wcslib/work/stage/usr/local/bin/HPXcvt): No such
>>> file or directory
>>>
>>> Building astro/wcslib does not fail, but there are numerous segfaults
>>> starting with these:
>>>
>>> make[2]: *** [libwcs-4.13.4.a(lin.o)] Segmentation fault (core dumped)
>>> gmake[2]: *** Archive member `libwcs-4.13.4.a(lin.o)' may be bogus; not
>>> deleted
>>>
>>> cc -DHAVE_CONFIG_H -I. -I.. -O2 -pipe -fno-strict-aliasing -c sph.c
>>> ar r libwcs-4.13.4.a sph.o
>>> ar: warning: Incorrect file header signature
>>> gmake[2]: *** [libwcs-4.13.4.a(sph.o)] Segmentation fault (core dumped)
>>>
>>> What is happening here?
>>>
>>> I do not have anything in make.conf that should be related (only
>>> WITH_NEW_XORG=yes, TEX_DEFAULT=texlive, and some port specific options
>>> of unrelated ports).
>>>
>>> Cheers,
>>> Jan Henrik
>>
>> It should be fixed in r353239. Please update your ports tree and try
>> again. Thanks!
>>
>> Regards,
>> sunpoet
>>
>
> I just had success with deinstalling the old version and after it
> installing the new one with the following patch:
>
>
> --- pkg-plist.orig 2014-01-22 19:00:47.000000000 +0100
> +++ pkg-plist 2014-05-08 12:32:40.000000000 +0200
> @@ -1,4 +1,3 @@
> -%%HPXCVT%%bin/HPXcvt
> bin/fitshdr
> include/wcslib
> include/wcslib-%%VERSION%%/cel.h
> _______________________________________________
> [email protected] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "[email protected]"
----
Shin-ya Murakami
email: [email protected]
WWW: http://www.gfd-dennou.org/member/murashin/
diff -urN /usr/ports/astro/wcslib/Makefile wcslib/Makefile
--- /usr/ports/astro/wcslib/Makefile 2014-05-05 00:37:11.000000000 +0900
+++ wcslib/Makefile 2014-05-08 20:47:46.837272212 +0900
@@ -33,6 +33,8 @@
.if ${PORT_OPTIONS:MCFITSIO} || exists(${LOCALBASE}/lib/libcfitsio.so)
PLIST_SUB+= HPXCVT=""
LIB_DEPENDS+= libcfitsio.so:${PORTSDIR}/astro/cfitsio
+CONFIGURE_ARGS= --with-cfitsiolib=${LOCALBASE}/lib \
+ --with-cfitsioinc=${LOCALBASE}/include
.else
PLIST_SUB+= HPXCVT="@comment "
.endif
@@ -45,6 +47,9 @@
@${REINPLACE_CMD} -e 's#%%PKGDIR%%#${STAGEDIR}${PREFIX}/libdata#g' \
${WRKSRC}/GNUmakefile
+pre-configure:
+ cd ${WRKSRC} && autoreconf -fi
+
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/ && ${INSTALL_DATA} CHANGES README COPYING COPYING.LESSER wcslib.pdf ${STAGEDIR}${DOCSDIR})
diff -urN /usr/ports/astro/wcslib/files/patch-configure.ac wcslib/files/patch-configure.ac
--- /usr/ports/astro/wcslib/files/patch-configure.ac 1970-01-01 09:00:00.000000000 +0900
+++ wcslib/files/patch-configure.ac 2014-05-08 20:40:13.000000000 +0900
@@ -0,0 +1,13 @@
+--- configure.ac 2012-04-02 12:27:30.000000000 +0900
++++ configure.ac.new 2014-05-08 20:39:23.000000000 +0900
+@@ -389,7 +389,9 @@
+ AC_CHECK_FILE([$INCDIR/fitsio.h], [CFITSIOINC="-I$INCDIR"; break])
+ done
+
+- AC_CHECK_LIB([socket], [recv], [CFITSIOLIB="-lsocket"], [], [$LIBS])
++ AC_CHECK_LIB([z], [deflate], [CFITSIOLIB="-lz"],
++ [], [$LIBS])
++ AC_CHECK_LIB([socket], [recv], [CFITSIOLIB="-lsocket $CFITSIOLIB"], [], [$LIBS])
+ AC_CHECK_LIB([cfitsio], [ffopen], [CFITSIOLIB="-lcfitsio $CFITSIOLIB"], [],
+ [$CFITSIOLIB $LIBS])
+
diff -urN /usr/ports/astro/wcslib/pkg-plist wcslib/pkg-plist
--- /usr/ports/astro/wcslib/pkg-plist 2014-01-23 00:16:56.000000000 +0900
+++ wcslib/pkg-plist 2014-05-08 20:49:58.424257290 +0900
@@ -1,4 +1,5 @@
%%HPXCVT%%bin/HPXcvt
+%%HPXCVT%%bin/wcsware
bin/fitshdr
include/wcslib
include/wcslib-%%VERSION%%/cel.h
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[email protected]"