From owner-svn-ports-head@freebsd.org Sun May 6 08:16:01 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C4616FAE931; Sun, 6 May 2018 08:16:00 +0000 (UTC) (envelope-from thierry@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6428B70949; Sun, 6 May 2018 08:16:00 +0000 (UTC) (envelope-from thierry@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 5D1281F51; Sun, 6 May 2018 08:16:00 +0000 (UTC) (envelope-from thierry@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w468G0vf010555; Sun, 6 May 2018 08:16:00 GMT (envelope-from thierry@FreeBSD.org) Received: (from thierry@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w468Fxut010546; Sun, 6 May 2018 08:15:59 GMT (envelope-from thierry@FreeBSD.org) Message-Id: <201805060815.w468Fxut010546@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: thierry set sender to thierry@FreeBSD.org using -f From: Thierry Thomas Date: Sun, 6 May 2018 08:15:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r469181 - in head/math/metis: . files X-SVN-Group: ports-head X-SVN-Commit-Author: thierry X-SVN-Commit-Paths: in head/math/metis: . files X-SVN-Commit-Revision: 469181 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 May 2018 08:16:01 -0000 Author: thierry Date: Sun May 6 08:15:59 2018 New Revision: 469181 URL: https://svnweb.freebsd.org/changeset/ports/469181 Log: Since the upgrade of math/suitesparse to 5.2.0, it depends unconditionnaly on math/metis. Because math/metis and math/metis-edf are conflicting, this means that the ports which depend on SuiteSparse and on metis-edf became BROKEN. To solve this problem, this revision adds the missings includes brought by metis-edf to metis. Note for myself: if everything goes well, do not forget to deprecate the port math/metis-edf in a near future. Added: head/math/metis/files/patch-CMakeLists.txt (contents, props changed) head/math/metis/files/patch-programs_CMakeLists.txt (contents, props changed) Modified: head/math/metis/Makefile head/math/metis/files/patch-libmetis__CMakeLists.txt head/math/metis/pkg-plist Modified: head/math/metis/Makefile ============================================================================== --- head/math/metis/Makefile Sun May 6 06:57:59 2018 (r469180) +++ head/math/metis/Makefile Sun May 6 08:15:59 2018 (r469181) @@ -3,7 +3,7 @@ PORTNAME= metis PORTVERSION= 5.1.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= math MASTER_SITES= http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/ @@ -34,21 +34,6 @@ CMAKE_ARGS+= -DOPENMP=1 USE_GCC= any .endif -#.if ${PORT_OPTIONS:MPROFILE} -#.if !exists(/usr/lib/libc_p.a) -#IGNORE = : you have enabled the PROFILE option, but have not installed \ -# the base system profiling libraries -#.endif -#ALL_TARGET_PROFILE= metis -#CMAKE_ARGS_PROFILE= -DGPROF=1 -#PLIST_SUB+= PROFILE="" -##PROFILE_FLAGS ?= -pg -#WRKSRC_PROFILE = ${WRKSRC}_PROFILE -#INSTALL_WRKSRC_PROFILE = ${WRKSRC_PROFILE}/libmetis -#.else -#PLIST_SUB+= PROFILE="@comment " -#.endif - .if ${PORT_OPTIONS:MSHARED} ALL_TARGET_SHARED= all CMAKE_ARGS_SHARED= -DSHARED=1 @@ -76,7 +61,7 @@ INSTALL_WRKSRC_STATIC= ${WRKSRC_STATIC}/libmetis PLIST_SUB+= STATIC="@comment " .endif -post-patch: +pre-configure: @${REINPLACE_CMD} -e "/^# Add compiler flags/,/^$$/d" \ -e "/^check_include_file(execinfo.h/d" \ ${WRKSRC}/GKlib/GKlibSystem.cmake Added: head/math/metis/files/patch-CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/metis/files/patch-CMakeLists.txt Sun May 6 08:15:59 2018 (r469181) @@ -0,0 +1,8 @@ +--- CMakeLists.txt.orig 2013-03-30 16:24:45 UTC ++++ CMakeLists.txt +@@ -25,3 +25,5 @@ include_directories(include) + add_subdirectory("include") + add_subdirectory("libmetis") + add_subdirectory("programs") ++# Borrowed from metis-edf ++add_subdirectory("GKlib") Modified: head/math/metis/files/patch-libmetis__CMakeLists.txt ============================================================================== --- head/math/metis/files/patch-libmetis__CMakeLists.txt Sun May 6 06:57:59 2018 (r469180) +++ head/math/metis/files/patch-libmetis__CMakeLists.txt Sun May 6 08:15:59 2018 (r469181) @@ -1,7 +1,11 @@ ---- libmetis/CMakeLists.txt.orig 2011-06-22 13:47:13.000000000 -0400 -+++ libmetis/CMakeLists.txt 2012-07-07 11:05:47.000000000 -0400 -@@ -4,6 +4,9 @@ +--- libmetis/CMakeLists.txt.orig 2013-03-30 16:24:45 UTC ++++ libmetis/CMakeLists.txt +@@ -2,8 +2,13 @@ + include_directories(.) + # Find sources. file(GLOB metis_sources *.c) ++# Borrowed from metis-edf ++file(GLOB libmetis_h *.h) # Build libmetis. add_library(metis ${METIS_LIBRARY_TYPE} ${GKlib_sources} ${metis_sources}) +if(SHARED) @@ -9,4 +13,11 @@ +endif() if(UNIX) target_link_libraries(metis m) + endif() +@@ -13,4 +18,6 @@ if(METIS_INSTALL) + LIBRARY DESTINATION lib + RUNTIME DESTINATION lib + ARCHIVE DESTINATION lib) ++# Borrowed from metis-edf ++ install(FILES ${libmetis_h} DESTINATION include/libmetis) endif() Added: head/math/metis/files/patch-programs_CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/metis/files/patch-programs_CMakeLists.txt Sun May 6 08:15:59 2018 (r469181) @@ -0,0 +1,17 @@ +--- programs/CMakeLists.txt.orig 2013-03-30 16:24:45 UTC ++++ programs/CMakeLists.txt +@@ -13,9 +13,14 @@ foreach(prog gpmetis ndmetis mpmetis m2g + # target_link_libraries(${prog} metis profiler) + endforeach(prog) + ++# Borrowed from metis-edf ++file(GLOB metis_h *.h) ++ + if(METIS_INSTALL) + install(TARGETS gpmetis ndmetis mpmetis m2gmetis graphchk cmpfillin + RUNTIME DESTINATION bin) ++# Borrowed from metis-edf ++ install(FILES ${metis_h} DESTINATION include/programs) + endif() + + # Try to find subversion revision. Modified: head/math/metis/pkg-plist ============================================================================== --- head/math/metis/pkg-plist Sun May 6 06:57:59 2018 (r469180) +++ head/math/metis/pkg-plist Sun May 6 08:15:59 2018 (r469181) @@ -4,7 +4,41 @@ %%SHARED%%bin/m2gmetis %%SHARED%%bin/mpmetis %%SHARED%%bin/ndmetis +%%SHARED%%include/GKlib.h +%%SHARED%%include/gk_arch.h +%%SHARED%%include/gk_defs.h +%%SHARED%%include/gk_externs.h +%%SHARED%%include/gk_getopt.h +%%SHARED%%include/gk_macros.h +%%SHARED%%include/gk_mkblas.h +%%SHARED%%include/gk_mkmemory.h +%%SHARED%%include/gk_mkpqueue.h +%%SHARED%%include/gk_mkpqueue2.h +%%SHARED%%include/gk_mkrandom.h +%%SHARED%%include/gk_mksort.h +%%SHARED%%include/gk_mkutils.h +%%SHARED%%include/gk_proto.h +%%SHARED%%include/gk_struct.h +%%SHARED%%include/gk_types.h +%%SHARED%%include/gkregex.h +%%STATIC%%include/libmetis/defs.h +%%STATIC%%include/libmetis/gklib_defs.h +%%STATIC%%include/libmetis/gklib_rename.h +%%STATIC%%include/libmetis/macros.h +%%STATIC%%include/libmetis/metislib.h +%%STATIC%%include/libmetis/proto.h +%%STATIC%%include/libmetis/rename.h +%%STATIC%%include/libmetis/stdheaders.h +%%STATIC%%include/libmetis/struct.h %%SHARED%%include/metis.h +%%SHARED%%include/ms_inttypes.h +%%SHARED%%include/ms_stat.h +%%SHARED%%include/ms_stdint.h +%%SHARED%%include/programs/defs.h +%%SHARED%%include/programs/metisbin.h +%%SHARED%%include/programs/proto.h +%%SHARED%%include/programs/struct.h +%%SHARED%%lib/libGKlib.a %%STATIC%%lib/libmetis.a %%SHARED%%lib/libmetis.so %%SHARED%%lib/libmetis.so.2