From turutani@scphys.kyoto-u.ac.jp  Fri May 23 11:55:32 2014
Return-Path: <turutani@scphys.kyoto-u.ac.jp>
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 DEDA3D62
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 23 May 2014 11:55:31 +0000 (UTC)
Received: from smtp-auth.kuins.kyoto-u.ac.jp (smtp-auth.kuins.kyoto-u.ac.jp [133.3.248.237])
	by mx1.freebsd.org (Postfix) with ESMTP id 8352323C1
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 23 May 2014 11:55:30 +0000 (UTC)
Received: from smtp-auth.kuins.kyoto-u.ac.jp (smtp-auth.kuins.kyoto-u.ac.jp [127.0.0.1])
	by postfix.imss70 (Postfix) with ESMTP id 419A82EC003;
	Fri, 23 May 2014 20:55:29 +0900 (JST)
Received: from h120.65.226.10.32118.vlan.kuins.net (p17131-ipngn100401kyoto.kyoto.ocn.ne.jp [180.10.64.131])
	by smtp-auth.kuins.kyoto-u.ac.jp (Postfix) with ESMTP id 2E6EB2EC001;
	Fri, 23 May 2014 20:55:28 +0900 (JST)
Received: from h116.65.226.10.32118.vlan.kuins.net (h116.65.226.10.32118.vlan.kuins.net [192.168.3.116])
	by h120.65.226.10.32118.vlan.kuins.net (8.14.8/8.14.8/20071004-1) with ESMTP id s4NBtP9B035182;
	Fri, 23 May 2014 20:55:25 +0900 (JST)
	(envelope-from turutani@scphys.kyoto-u.ac.jp)
Received: from h116.65.226.10.32118.vlan.kuins.net (localhost [127.0.0.1])
	by h116.65.226.10.32118.vlan.kuins.net (8.14.8/8.14.8/20070718-1) with ESMTP id s4NBtP7X054304;
	Fri, 23 May 2014 20:55:25 +0900 (JST)
	(envelope-from turutani@h116.65.226.10.32118.vlan.kuins.net)
Received: (from turutani@localhost)
	by h116.65.226.10.32118.vlan.kuins.net (8.14.8/8.14.8/Submit) id s4NBtPjV054303;
	Fri, 23 May 2014 20:55:25 +0900 (JST)
	(envelope-from turutani)
Message-Id: <201405231155.s4NBtPjV054303@h116.65.226.10.32118.vlan.kuins.net>
Date: Fri, 23 May 2014 20:55:25 +0900 (JST)
From: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
Reply-To: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
To: FreeBSD-gnats-submit@freebsd.org
Cc: turutani@scphys.kyoto-u.ac.jp
Subject: building science/hdf5 fails
X-Send-Pr-Version: 3.114
X-GNATS-Notify:

>Number:         190138
>Category:       ports
>Synopsis:       building science/hdf5 fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    sunpoet
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 23 12:00:00 UTC 2014
>Closed-Date:    Sat May 24 06:50:48 UTC 2014
>Last-Modified:  Sat May 24 07:00:00 UTC 2014
>Originator:     Tsurutani Naoki
>Release:        FreeBSD 8.4-STABLE amd64
>Organization:
>Environment:
System: FreeBSD h116.65.226.10.32118.vlan.kuins.net 8.4-STABLE FreeBSD 8.4-STABLE #3 r266560: Fri May 23 07:44:20 JST 2014 turutani@h116.65.226.10.32118.vlan.kuins.net:/usr/local/work/usr/obj/usr/src/sys/POLYMER13 amd64


	
>Description:
	building science/hdf5 fails.
	
>How-To-Repeat:
	% make
	t.c: In function 'h5_exit_c_':
	t.c:137: warning: function might be possible candidate for attribute 'noreturn'
	t.c: In function 'h5_cleanup_c_':
	t.c:117: warning: will never be executed
	t.c: In function 'h5_fixname_c_':
	t.c:66: warning: will never be executed
	  FC       fortranlib_test-tH5D.o
	tH5F.f90:43.12:
	tH5F.f90:43.12:
	 
	        USE TH5_MISC
	            1
	Fatal Error: Can't open module file 'th5_misc.mod' for reading at (1): No such file or directory
	        USE TH5_MISC
	            1
	Fatal Error: Can't open module file 'th5_misc.mod' for reading at (1): No such file or directory
	*** Error code 1
	*** Error code 1
	tH5D.f90:42.12:
	 
	        USE TH5_MISC
	            1
	Fatal Error: Can't open module file 'th5_misc.mod' for reading at (1): No such file or directory
	*** Error code 1
	3 errors
	*** Error code 1
	1 error
	*** Error code 1
	1 error
	===> Compilation failed unexpectedly.
	Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
	the maintainer.
	*** Error code 1
	 
	Stop in /usr/ports/science/hdf5.
	*** Error code 1
	 
	Stop in /usr/ports/science/hdf5.

	
>Fix:
	The file 'th5_misc.mod' exists.
	This might be caused by parallel building.
	Adding "MAKE_JOBS_UNSAFE=yes" to Makefile can avoid this.
	In addition, installing fails with wrong pkg-plist.
	Here is a patch:

diff -urN hdf5.orig/Makefile hdf5/Makefile
--- hdf5.orig/Makefile	2014-05-20 03:38:48.000000000 +0900
+++ hdf5/Makefile	2014-05-23 20:42:12.000000000 +0900
@@ -12,6 +12,7 @@
 COMMENT=	Hierarchical Data Format library (from NCSA)
 
 LICENSE=	BSD4CLAUSE
+MAKE_JOBS_UNSAFE=	yes
 
 CONFLICTS_INSTALL=	hdf-4.[0-9]* hdf5-1.6.[0-9]*
 
diff -urN hdf5.orig/pkg-plist hdf5/pkg-plist
--- hdf5.orig/pkg-plist	2014-05-20 03:38:48.000000000 +0900
+++ hdf5/pkg-plist	2014-05-23 20:39:59.000000000 +0900
@@ -148,4 +148,4 @@
 %%FORTRAN%%lib/libhdf5hl_fortran.a
 %%FORTRAN%%lib/libhdf5hl_fortran.so
 %%FORTRAN%%lib/libhdf5hl_fortran.so.8
-%%FORTRAN%%lib/libhdf5hl_fortran.so.8.0.1
+%%FORTRAN%%lib/libhdf5hl_fortran.so.8.0.2
	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->sunpoet 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri May 23 12:00:04 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=190138 
State-Changed-From-To: open->closed 
State-Changed-By: sunpoet 
State-Changed-When: Sat May 24 06:50:47 UTC 2014 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=190138 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/190138: commit references a PR
Date: Sat, 24 May 2014 06:50:29 +0000 (UTC)

 Author: sunpoet
 Date: Sat May 24 06:50:24 2014
 New Revision: 354986
 URL: http://svnweb.freebsd.org/changeset/ports/354986
 QAT: https://qat.redports.org/buildarchive/r354986/
 
 Log:
   - Mark MAKE_JOBS_UNSAFE
   - Fix PLIST
   - Bump PORTREVISION for package change
   
   PR:		ports/190138
   Submitted by:	Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
 
 Modified:
   head/science/hdf5/Makefile
   head/science/hdf5/pkg-plist
 
 Modified: head/science/hdf5/Makefile
 ==============================================================================
 --- head/science/hdf5/Makefile	Sat May 24 06:39:39 2014	(r354985)
 +++ head/science/hdf5/Makefile	Sat May 24 06:50:24 2014	(r354986)
 @@ -3,6 +3,7 @@
  
  PORTNAME=	hdf5
  PORTVERSION=	1.8.13
 +PORTREVISION=	1
  CATEGORIES=	science archivers graphics
  MASTER_SITES=	http://www.hdfgroup.org/ftp/HDF5/releases/${DISTNAME}/src/ \
  		ftp://ftp.hdfgroup.org/HDF5/releases/${DISTNAME}/src/ \
 @@ -27,6 +28,7 @@ CONFIGURE_ARGS=	--enable-cxx \
  		--with-zlib=/usr
  GNU_CONFIGURE=	yes
  MAKE_ENV=	INSTALL_STRIP_FLAG=${STRIP}
 +MAKE_JOBS_UNSAFE=	yes
  USE_LDCONFIG=	yes
  USES=		libtool tar:bzip2
  
 
 Modified: head/science/hdf5/pkg-plist
 ==============================================================================
 --- head/science/hdf5/pkg-plist	Sat May 24 06:39:39 2014	(r354985)
 +++ head/science/hdf5/pkg-plist	Sat May 24 06:50:24 2014	(r354986)
 @@ -120,6 +120,7 @@ include/H5version.h
  %%FORTRAN%%include/h5t.mod
  %%FORTRAN%%include/h5t_provisional.mod
  %%FORTRAN%%include/h5tb.mod
 +%%FORTRAN%%include/h5test_kind_sizeof_mod.mod
  %%FORTRAN%%include/h5z.mod
  include/hdf5.h
  %%FORTRAN%%include/hdf5.mod
 @@ -148,4 +149,4 @@ lib/libhdf5_hl_cpp.so.8.0.2
  %%FORTRAN%%lib/libhdf5hl_fortran.a
  %%FORTRAN%%lib/libhdf5hl_fortran.so
  %%FORTRAN%%lib/libhdf5hl_fortran.so.8
 -%%FORTRAN%%lib/libhdf5hl_fortran.so.8.0.1
 +%%FORTRAN%%lib/libhdf5hl_fortran.so.8.0.2
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
