NetBSD Problem Report #43529

From root@nb502.wenjing.com  Sat Jun 26 14:15:48 2010
Return-Path: <root@nb502.wenjing.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id D268763B873
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 26 Jun 2010 14:15:48 +0000 (UTC)
Message-Id: <20100626221143.04B052347B2@nb502.wenjing.com>
Date: Sun, 27 Jun 2010 06:11:42 +0800 (CST)
From: wen@nb502.wenjing.com
Reply-To: wenheping@gmail.com
To: gnats-bugs@gnats.NetBSD.org
Subject: [math/udunits] Update to 2.1.17
X-Send-Pr-Version: 3.95

>Number:         43529
>Category:       pkg
>Synopsis:       [math/udunits] Update to 2.1.17
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          suspended
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 26 14:20:00 +0000 2010
>Closed-Date:    
>Last-Modified:  Tue Aug 17 02:04:38 +0000 2010
>Originator:     Wen Heping
>Release:        NetBSD 5.0.2
>Organization:
Private
>Environment:
NetBSD nb502.wenjing.com 5.0.2 NetBSD 5.0.2 (GENERIC) #0: Sat Feb  6 17:53:27 UTC 2010  builds@b7.netbsd.org:/home/builds/ab/netbsd-5-0-2-RELEASE/i386/201002061851Z-obj/home/builds/ab/netbsd-5-0-2-RELEASE/src/sys/arch/i386/compile/GENERIC i386
>Description:
>How-To-Repeat:
2.1.17
        Added tagging of version in repository to "make ftp".

        Moved call to ut_set_second() in XML parser from after the XML file is
        read to as soon as the "second" unit is encountered.

2.1.16  2010-06-21
        Corrected and updated definition of "e" -- the charge of an electron.

2.1.15  2010-05-27
        Corrected return value of ut_get_status() when ut_parse() fails due to
        a syntax error.

        Added missing "void" parameter to declarations of UDUNITS-1 functions
        utIsInit() and utTerm().

        Added commentary about the hybrid Gregorian/Julian calendar to the
        library documentation.

        Added the following units:
            "potential_vorticity_unit" (1e-6 m2 s-1 K kg-1)
            "einstein" (mole)

        Added "u" as a symbol for "micro".

2.1.14  2010-01-29
        Modified the build procedure.  It now
            1) Builds the Expat (XML parsing) library that's bundled with the
               UDUNITS-2 package if and only if the host system doesn't have
               one; and
            2) Installs the bundled Expat library if that library is built.

        Documented the need for linking against an Expat library.

2.1.13  2010-01-21
        Modified the build procedure slightly.  It now
            1) Supports cross-compilation; and
            2) Installs the info(1) documentation files by default.

2.1.12  2010-01-11
        Corrected initialization of time-origin to prevent inconsistent results
        from ut_decode_time().  Thanks to David Pierce at the Scripps
        Institution of Oceanography.

2.1.11	2009-10-23
	Added missing percent (%) unit.

2.1.10	2009-10-21
	Fixed memory-related problems reported by valgrind(1).

        Changed $(pkgdatarootdir) to $(pkgdatadir) in the top-level Makefile.

	Corrected the syntax in the definition of the US survey foot.

2.1.9	2009-09-09
        Fixed bug in ut_are_convertible() that caused it to return true for
        m2.s-2 and m.s-2.

        Changed installation directory for units database files from $(datadir)
        (default: /usr/local/share) to $(pkgdatadir) (default:
        /usr/local/share/udunits).

        Changed name of "ut_unit*" member in the UDUNITS-1 "utUnit"
        backward-compatibility structure from "ut_unit" to "unit2" because,
        unlike C, the g++ compiler doesn't allow a member to have the same name
        as a typedef.

        Added version specification to the top-level UDUNITS-2 documentation.

2.1.8	2009-06-19
	Corrected definition of "lbf": was "2000 force_pounds"; is now
	"1 force_pound".

2.1.7	2009-05-05
	Replaced angle brackets with quotation marks in inclusion of the
	UDUNITS-2 header-file by the UDUNITS-1 header-file.  This was
	done to accomodate ncview's configure-script and because it's
	the right thing to do because both header-files are installed in the
	same directory.

	Added test for math library to configure script to support
	systems whose C library doesn't have them.

	Improved the process for making the "results.tab" target in the
	test/ subdirectory.

	Added delays to process for creating documentation source to
	accomodate broken HP-UX B.11.00 make(1).

	Added "make check" to git pre-commit hook.

2.1.6	2009-04-15
	Added to the installed, top-level, UDUNITS-2 documentation,
	commentary about the existence of a version 1 C API in the
	package.

	Moved the UDUNITS-1 API into the UDUNITS-2 library subdirectory,
	"lib", in order to allow "make check" to build the package.

2.1.5	2009-03-24
	Fixed bug in udunits2(1) utility introduced in version 2.1.2.
	Entering a "have" unit that didn't have a numerical first
	component risked a segmentation violation.

2.1.4	2009-03-24
	Documented the change in meaning of the symbol "g" from the
	original package (standard free fall) to this package (gram).

	Returned HP-UX to the set of tested operating systems.

2.1.3	2009-03-23
	Corrected typos in XML units database for "US_survey_foot" and
	"international_foot": removed embedded quotation marks.

2.1.2	2009-03-19
	Corrected program udunits2(1): it now correctly parses units
	like "0.1 lg(re 1.0e-12 W.m-2)".

	Made the dimensionless unit one format as "1".

	Corrected rule for target "web-update": changed "distname" to
	"distName".

	Corrected the development make(1) target "hostcheck": added
	setting of MAKEFLAGS to the empty string before invoking
	make(1).

2.1.1	2009-03-13
	Corrected and improved the development make(1) targets "ftp"
	and "download-update".

	Added publication of the XML database on the UDUNITS website to
	the target "web-update".

	Corrected typo in API documentation.

2.1.0	2009-03-11
	Added UDUNITS-1 API.  This thin interface uses the UDUNITS-2
	library.  Users will have to recompile their UDUNITS-1-based 
	code using the new "udunits.h" header-file and rebuild their
	programs using the new UDUNITS-2 library.  Because the UDUNITS-1
	API uses the "utUnit" data-structure and the UDUNITS-2 API uses
	pointers to "ut_unit" data-structures, a small memory-leak is 
	possible in code that creates many units.  This leak can be 
	avoided by calling the new method utFree(utUnit*) when the unit
	is no longer needed.

	Added some "const" qualifiers to the API.

	Modified ut_format() for timestamp units.  It now prints the
	long form (with hyphens and colons) if the year of the origin is
	less than 1000 or greater than 9999.  This was done to make
	ut_format() compatible with ut_parse().

2.0.4	2009-02-21
	Added copyright notices and LICENSE file.

2.0.3	2009-02-18
        Added the function ut_root(const ut_unit* unit, int root) to
        return a root of a unit (e.g., "m2/s2" -> "m/s").

2.0.2	2008-12-02
	Changed order of calls to ut_set_status() and
	ut_handle_error_message() so that the status value is always set
	before the error-message handler is called.  This allows error
	handlers to determine the cause of the message.

2.0.1	2008-11-13
	Added parsing of timestamps that have dashes and colons but also
	use "T" (e.g., "seconds since 1970-01-01T00:00:00Z").

	Corrected the regular expressions for matching the character-set
	specifier in the udunits2(1) program.

2.0.0	2007-07-18
	Initial release.
>Fix:
diff -urN -x CVS udunits/Makefile udunits.new/Makefile
--- udunits/Makefile	2010-02-04 22:56:21.000000000 +0800
+++ udunits.new/Makefile	2010-06-27 05:46:54.000000000 +0800
@@ -1,10 +1,8 @@
 # $NetBSD: Makefile,v 1.28 2010/02/04 14:56:21 joerg Exp $

-DISTNAME=		udunits-1.12.1
-PKGREVISION=		3
+DISTNAME=		udunits-2.1.17
 CATEGORIES=		math devel
 MASTER_SITES=		ftp://ftp.unidata.ucar.edu/pub/udunits/
-EXTRACT_SUFX=		.tar.Z

 MAINTAINER=		pkgsrc-users@NetBSD.org
 HOMEPAGE=		http://www.unidata.ucar.edu/software/udunits/
@@ -13,26 +11,17 @@
 PKG_DESTDIR_SUPPORT=	user-destdir
 MAKE_JOBS_SAFE=		no

-USE_TOOLS+=		perl
-WRKSRC=			${WRKDIR}/${PKGNAME_NOREV}/src
-
+USE_LANGUAGES+=		c c++ fortran
+INFO_FILES=		yes
+USE_LIBTOOL=		yes
 GNU_CONFIGURE=		yes
-CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR:Q}
-
-CPPFLAGS+=		-Df2cFortran -Dunix
-PERL5_CONFIGURE=	no
-PERL5_PACKLIST=		auto/UDUNITS/.packlist
-
-EGDIR=			${PREFIX}/share/examples/udunits
-CONF_FILES=		${EGDIR}/udunits.dat ${PKG_SYSCONFDIR}/udunits.dat
+CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR:Q} \
+			--infodir=${PREFIX}/${PKGINFODIR}

 INSTALL_MAKE_FLAGS+=	MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR} \
 			BINDIR=${DESTDIR}${PREFIX}/bin \
 			INCDIR=${DESTDIR}${PREFIX}/include \
 			LIBDIR=${DESTDIR}${PREFIX}/lib

-post-install:
-	${RM} -rf ${WRKSRC}/perl/blib/lib
-
-.include "../../lang/perl5/module.mk"
+.include "../../textproc/expat/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -urN -x CVS udunits/PLIST udunits.new/PLIST
--- udunits/PLIST	2009-06-15 02:05:50.000000000 +0800
+++ udunits.new/PLIST	2010-06-27 05:46:10.000000000 +0800
@@ -1,12 +1,15 @@
-@comment $NetBSD: PLIST,v 1.5 2009/06/14 18:05:50 joerg Exp $
-bin/udunits
+@comment $NetBSD$
+bin/udunits2
+include/converter.h
 include/udunits.h
-include/udunits.inc
-lib/libudport.a
-lib/libudunits.a
-man/man1/udunits.1
-man/man1/udunitsperl.1
-man/man3/udunits.3
-man/man3/udunits.3f
-man/man3f/udunits.3f
-share/examples/udunits/udunits.dat
+include/udunits2.h
+info/udunits2.info
+info/udunits2lib.info
+info/udunits2prog.info
+lib/libudunits2.la
+share/udunits/udunits2-accepted.xml
+share/udunits/udunits2-base.xml
+share/udunits/udunits2-common.xml
+share/udunits/udunits2-derived.xml
+share/udunits/udunits2-prefixes.xml
+share/udunits/udunits2.xml
diff -urN -x CVS udunits/distinfo udunits.new/distinfo
--- udunits/distinfo	2010-02-04 22:56:21.000000000 +0800
+++ udunits.new/distinfo	2010-06-27 05:12:25.000000000 +0800
@@ -1,9 +1,5 @@
 $NetBSD: distinfo,v 1.13 2010/02/04 14:56:21 joerg Exp $

-SHA1 (udunits-1.12.1.tar.Z) = ee37ca61eb1dcf34165b7573cc1645824bd6968d
-RMD160 (udunits-1.12.1.tar.Z) = fb2f0442673ca47d302782c84ce37b8da1e16535
-Size (udunits-1.12.1.tar.Z) = 365873 bytes
-SHA1 (patch-aa) = 6d98bef47df79538f3ef1fe99c405f854f2e2bda
-SHA1 (patch-ab) = 9a98e048499d38f8dedba6fb1a169e178dbd77ba
-SHA1 (patch-ac) = ebcfb1b47b828f12ba11364fda7a2f0b335c6fb5
-SHA1 (patch-ad) = d48978bd66d9ef691cd9c70b057a7e5d8a802fb6
+SHA1 (udunits-2.1.17.tar.gz) = beb475c4a32a3ba7cc4c9240fc6ed731fd76e69b
+RMD160 (udunits-2.1.17.tar.gz) = a22f81d1ccee8dc09e3aaa0ad82e07a4ab69e896
+Size (udunits-2.1.17.tar.gz) = 1056592 bytes
diff -urN -x CVS udunits/patches/patch-aa udunits.new/patches/patch-aa
--- udunits/patches/patch-aa	2010-02-04 22:56:21.000000000 +0800
+++ udunits.new/patches/patch-aa	1970-01-01 07:00:00.000000000 +0700
@@ -1,22 +0,0 @@
-$NetBSD: patch-aa,v 1.5 2010/02/04 14:56:21 joerg Exp $
-
---- port/master.mk.in.orig	Wed Nov 25 17:26:56 1998
-+++ port/master.mk.in
-@@ -351,7 +351,7 @@ dummy_incdir $(INCDIR):
- ############################################################################
- # `etc/' files:
- ############################################################################
--ETCDIR	= $(prefix)/etc
-+ETCDIR	= ${DESTDIR}@datadir@/examples/udunits
- ETCFILE	= dummy-etcfile		# to silence GNU make(1)
- 
- installed_etcfiles:
-@@ -387,7 +387,7 @@ MANUAL		= dummy-manual	# to slience GNU 
- WHATIS		= @WHATIS@
- # The following macro should be empty on systems that don't
- # allow users to create their own manual-page indexes.
--MAKEWHATIS_CMD	= @MAKEWHATIS_CMD@
-+#MAKEWHATIS_CMD	= @MAKEWHATIS_CMD@
- 
- installed_manuals:	FORCE
- 	@if [ -n "$(MANUALS)" ]; then \
diff -urN -x CVS udunits/patches/patch-ab udunits.new/patches/patch-ab
--- udunits/patches/patch-ab	2002-12-25 01:21:04.000000000 +0800
+++ udunits.new/patches/patch-ab	1970-01-01 07:00:00.000000000 +0700
@@ -1,13 +0,0 @@
-$NetBSD: patch-ab,v 1.1 2002/12/24 17:21:04 jmmv Exp $
-
---- lib/Makefile.in.orig	Wed Apr 30 23:49:58 1997
-+++ lib/Makefile.in
-@@ -7,7 +7,7 @@
- LIBRARY		= udunits
- 
- FLEX		= /usr/local/gnu/bin/flex
--cpp_path	= -DUT_DEFAULT_PATH='"$(prefix)/etc/udunits.dat"'
-+cpp_path	= -DUT_DEFAULT_PATH='"@sysconfdir@/udunits.dat"'
- CPPFLAGS	= -I../port/misc -I../port/cfortran $(cpp_path) @CPPFLAGS@
- CFLAGS		= @CFLAGS@
- 
diff -urN -x CVS udunits/patches/patch-ac udunits.new/patches/patch-ac
--- udunits/patches/patch-ac	2008-08-17 15:02:39.000000000 +0800
+++ udunits.new/patches/patch-ac	1970-01-01 07:00:00.000000000 +0700
@@ -1,45 +0,0 @@
-$NetBSD: patch-ac,v 1.3 2008/08/17 07:02:39 dholland Exp $
-
---- configure.orig	2003-08-29 11:53:25.000000000 -0400
-+++ configure	2008-08-17 02:59:48.000000000 -0400
-@@ -2094,8 +2094,9 @@ echo "configure:2093: checking for (void
- #line 2095 "configure"
- #include "confdefs.h"
- 
-+double val;
- int main() {
--(void)sin(0.0);
-+return sin(val);
- ; return 0; }
- EOF
- if { (eval echo configure:2102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-@@ -2141,8 +2142,9 @@ echo "configure:2140: checking for (void
- #line 2142 "configure"
- #include "confdefs.h"
- 
-+double val;
- int main() {
--(void)sin(0.0);
-+return sin(val);
- ; return 0; }
- EOF
- if { (eval echo configure:2149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-@@ -5398,6 +5400,9 @@ echo "configure:5396: checking for posit
-         HP-UX)
-             picflag=+z
-             ;;
-+	NetBSD|FreeBSD|OpenBSD|DragonFly|Linux|SunOS)
-+	    picflag=-fPIC
-+	    ;;
-     esac
-     case "$picflag" in
-         '')
-@@ -5597,6 +5602,8 @@ for ac_option
- do
-   case "\$ac_option" in
-   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
-+	: Avoid regenerating within pkgsrc
-+	exit 0
-     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
-     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
-   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
diff -urN -x CVS udunits/patches/patch-ad udunits.new/patches/patch-ad
--- udunits/patches/patch-ad	2005-08-09 02:13:13.000000000 +0800
+++ udunits.new/patches/patch-ad	1970-01-01 07:00:00.000000000 +0700
@@ -1,13 +0,0 @@
-$NetBSD: patch-ad,v 1.1 2005/08/08 18:13:13 jlam Exp $
-
---- Makefile.in.orig	2003-08-29 14:27:07.000000000 -0400
-+++ Makefile.in
-@@ -68,7 +68,7 @@ $(MANUALS) dummy:
- @PERL_DISTCLEAN@ dummy:	perl/Makefile
- 
- perl/Makefile:		perl/Makefile.PL
--	-cd perl && $(PERL) Makefile.PL
-+	-cd perl && $(PERL) Makefile.PL INSTALLDIRS=vendor
- 
- install:	whatis
- 

>Release-Note:

>Audit-Trail:
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/43529: [math/udunits] Update to 2.1.17
Date: Fri, 09 Jul 2010 21:01:18 +0900

 Also need to update buildlink3.mk, because its library is now shard library
 (and remove deprecated items).

 Did you confirmed this version is still compatible with graphics/ncview?
 Maybe it also need to bump to 2.x.

From: wen heping <wenheping@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/43529: [math/udunits] Update to 2.1.17
Date: Fri, 9 Jul 2010 21:59:43 +0800

 On Fri, Jul 9, 2010 at 8:05 PM, OBATA Akio <obache@netbsd.org> wrote:
 > The following reply was made to PR pkg/43529; it has been noted by GNATS.
 >
 > From: "OBATA Akio" <obache@netbsd.org>
 > To: gnats-bugs@netbsd.org
 > Cc:
 > Subject: Re: pkg/43529: [math/udunits] Update to 2.1.17
 > Date: Fri, 09 Jul 2010 21:01:18 +0900
 >
 > =A0Also need to update buildlink3.mk, because its library is now shard li=
 brary
 > =A0(and remove deprecated items).
 >
 > =A0Did you confirmed this version is still compatible with graphics/ncvie=
 w?

 It broken graphics/ncview :(

 wen

 > =A0Maybe it also need to bump to 2.x.
 >
 >

State-Changed-From-To: open->suspended
State-Changed-By: obache@NetBSD.org
State-Changed-When: Tue, 17 Aug 2010 02:04:38 +0000
State-Changed-Why:
wait for ncview-2.x release.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.