From owner-svn-ports-all@freebsd.org Fri May 29 12:45:08 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0BDB83380F4; Fri, 29 May 2020 12:45:08 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49YPRR6b6vz4fnn; Fri, 29 May 2020 12:45:07 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D8FFA17D48; Fri, 29 May 2020 12:45:07 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 04TCj70J050504; Fri, 29 May 2020 12:45:07 GMT (envelope-from danfe@FreeBSD.org) Received: (from danfe@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 04TCj6aB050499; Fri, 29 May 2020 12:45:06 GMT (envelope-from danfe@FreeBSD.org) Message-Id: <202005291245.04TCj6aB050499@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: danfe set sender to danfe@FreeBSD.org using -f From: Alexey Dokuchaev Date: Fri, 29 May 2020 12:45:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r536970 - in head/astro/gnuastro: . files X-SVN-Group: ports-head X-SVN-Commit-Author: danfe X-SVN-Commit-Paths: in head/astro/gnuastro: . files X-SVN-Commit-Revision: 536970 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 May 2020 12:45:08 -0000 Author: danfe Date: Fri May 29 12:45:06 2020 New Revision: 536970 URL: https://svnweb.freebsd.org/changeset/ports/536970 Log: - Update Gnuastro to the latest version 0.12 - Do not build with -O3 by default (respect CFLAGS) - Pull the fix for bogus timezone calculation (see https://savannah.gnu.org/bugs/?58455) Added: head/astro/gnuastro/files/ head/astro/gnuastro/files/patch-bin_fits_keywords.c (contents, props changed) head/astro/gnuastro/files/patch-lib_fits.c (contents, props changed) Modified: head/astro/gnuastro/Makefile head/astro/gnuastro/distinfo head/astro/gnuastro/pkg-plist Modified: head/astro/gnuastro/Makefile ============================================================================== --- head/astro/gnuastro/Makefile Fri May 29 12:41:10 2020 (r536969) +++ head/astro/gnuastro/Makefile Fri May 29 12:45:06 2020 (r536970) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= gnuastro -PORTVERSION= 0.11 +PORTVERSION= 0.12 CATEGORIES= astro MASTER_SITES= GNU @@ -27,6 +27,10 @@ INFO= ${PORTNAME} PORTDOCS= AUTHORS ChangeLog NEWS README THANKS OPTIONS_DEFINE= DOCS + +post-patch: + @${REINPLACE_CMD} -e 's,cflags_add="-O3",:,' \ + ${WRKSRC}/configure post-install: @${FIND} ${STAGEDIR}${PREFIX}/etc -name \*.conf \ Modified: head/astro/gnuastro/distinfo ============================================================================== --- head/astro/gnuastro/distinfo Fri May 29 12:41:10 2020 (r536969) +++ head/astro/gnuastro/distinfo Fri May 29 12:45:06 2020 (r536970) @@ -1,3 +1,3 @@ -TIMESTAMP = 1574693798 -SHA256 (gnuastro-0.11.tar.lz) = 7bcc22311e69db17351a476df01dfd31009b0db06e2b6d525338efb3b0603e30 -SIZE (gnuastro-0.11.tar.lz) = 3490088 +TIMESTAMP = 1589989283 +SHA256 (gnuastro-0.12.tar.lz) = ced7ab6d3dca6913fc8df649070dc3a496b67e975b14e57a64e81c2c0e0bf37a +SIZE (gnuastro-0.12.tar.lz) = 3533517 Added: head/astro/gnuastro/files/patch-bin_fits_keywords.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/astro/gnuastro/files/patch-bin_fits_keywords.c Fri May 29 12:45:06 2020 (r536970) @@ -0,0 +1,11 @@ +--- bin/fits/keywords.c.orig 2020-05-15 16:58:42 UTC ++++ bin/fits/keywords.c +@@ -413,6 +413,8 @@ keywords_date_to_seconds(struct fitsparams *p, fitsfil + /* Return the number of seconds (and subseconds) that it corresponds + to. */ + seconds=gal_fits_key_date_to_seconds(fitsdate, &subsecstr, &subsec); ++ if(seconds==GAL_BLANK_SIZE_T) ++ error(EXIT_FAILURE, 0, "the time string couldn't be interpretted"); + + /* Print the result (for the sub-seconds, print everything after the */ + if( !p->cp.quiet ) Added: head/astro/gnuastro/files/patch-lib_fits.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/astro/gnuastro/files/patch-lib_fits.c Fri May 29 12:45:06 2020 (r536970) @@ -0,0 +1,41 @@ +--- lib/fits.c.orig 2020-05-15 16:58:42 UTC ++++ lib/fits.c +@@ -1023,6 +1023,7 @@ gal_fits_key_date_to_seconds(char *fitsdate, char **su + time_t t; + char *tmp; + struct tm tp; ++ size_t seconds; + void *outptr=subsec; + + /* Fill in the 'tp' elements with values read from the string. */ +@@ -1044,14 +1045,23 @@ gal_fits_key_date_to_seconds(char *fitsdate, char **su + tmp); + } + +- /* Convert the 'tm' structure to 'time_t'. Note that the system's +- timezone and daylight saving need to be subtracted from the output of +- 'mktime'. Otherwise the result will be different on different +- host-system timezones (which is not what we want here: bug #57995). */ +- t=mktime(&tp)-timezone-daylight; ++ /* Convert the contents of the 'tm' structure to 'time_t' (a positive ++ integer) with 'mktime'. Note that by design, the system's timezone is ++ included in the returned value of 'mktime' (leading to situations like ++ bug #57995). But it writes the given time's timezone (number of ++ seconds ahead of UTC) in the 'tm_gmtoff' element of its input. + +- /* Return the value and set the output pointer. */ +- return (size_t)t; ++ IMPORTANT NOTE: the timezone that is calculated by 'mktime' (in ++ 'tp.tm_gmtoff') belongs to the time that is already within 'tp' (this ++ is exactly what we want!). So for example when daylight saving is ++ activated at run-time, but at the time inside 'tp', there was no ++ daylight saving, the value of 'tp.tm_gmtoff' will be different from ++ the 'timezone' global variable. */ ++ t=mktime(&tp); ++ ++ /* Calculate the seconds and return it. */ ++ seconds = (t == (time_t)(-1)) ? GAL_BLANK_SIZE_T : (t+tp.tm_gmtoff); ++ return seconds; + } + + Modified: head/astro/gnuastro/pkg-plist ============================================================================== --- head/astro/gnuastro/pkg-plist Fri May 29 12:41:10 2020 (r536969) +++ head/astro/gnuastro/pkg-plist Fri May 29 12:45:06 2020 (r536970) @@ -64,11 +64,12 @@ include/gnuastro/tiff.h include/gnuastro/tile.h include/gnuastro/txt.h include/gnuastro/type.h +include/gnuastro/units.h include/gnuastro/wcs.h lib/libgnuastro.a lib/libgnuastro.so -lib/libgnuastro.so.9 -lib/libgnuastro.so.9.0.0 +lib/libgnuastro.so.10 +lib/libgnuastro.so.10.0.0 libdata/pkgconfig/gnuastro.pc man/man1/astarithmetic.1.gz man/man1/astbuildprog.1.gz