From owner-freebsd-ports@FreeBSD.ORG Thu May 8 12:04:32 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EB32ED76 for ; Thu, 8 May 2014 12:04:32 +0000 (UTC) Received: from dennou-k.gfd-dennou.org (studenno.kugi.kyoto-u.ac.jp [130.54.59.159]) by mx1.freebsd.org (Postfix) with SMTP id 8B9C7751 for ; Thu, 8 May 2014 12:04:31 +0000 (UTC) Received: (qmail 23669 invoked by uid 0); 8 May 2014 20:57:08 +0900 Received: from unknown (HELO localhost) (125.4.234.249) by studenno.kugi.kyoto-u.ac.jp with (AES256-SHA encrypted) SMTP; Thu, 08 May 2014 20:57:08 +0900 Date: Thu, 08 May 2014 20:56:42 +0900 (JST) Message-Id: <20140508.205642.318350368.murashin@gfd-dennou.org> To: rhurlin@gwdg.de, sunpoet@FreeBSD.org, me@janh.de, tonymaher@optusnet.com.au Subject: Re: astro/wcslib fails to install From: Shin-ya Murakami References: <536A3AB8.2060005@janh.de> <536B5DD6.8010804@gwdg.de> X-Mailer: Mew version 6.5 on Emacs 24.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Thu_May__8_20_56_42_2014_833)--" Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 May 2014 12:04:33 -0000 ----Next_Part(Thu_May__8_20_56_42_2014_833)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, Please try with the attached patch. I had successfully installed HPXcvt with this patch. From: Rainer Hurling 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 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 > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" ---- Shin-ya Murakami email: murashin@gfd-dennou.org WWW: http://www.gfd-dennou.org/member/murashin/ ----Next_Part(Thu_May__8_20_56_42_2014_833)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="wcslib.patch" 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 ----Next_Part(Thu_May__8_20_56_42_2014_833)----