Date: Wed, 18 Jul 2018 00:20:27 +0000 (UTC) From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r474828 - in head/science/mpqc: . files Message-ID: <201807180020.w6I0KRQY080589@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: yuri Date: Wed Jul 18 00:20:27 2018 New Revision: 474828 URL: https://svnweb.freebsd.org/changeset/ports/474828 Log: science/mpqc: Fix library dependencies Problems in this port caused the science/libghemical breakage (it was labeled as DEPRECATED). Two major fixes: * Fix the unknown 'backtrace' symbol: libexecinfo.so dependency was missing for libSCmisc.so * Fix broken libint.so: -L${LOCALBASE} was missing for libSCcints.so and libint.so was just ignored and effectively missing These two problems were previously attempted to be patched with "-Wl,--as-needed -lexecinfo -Wl,--no-as-needed" but this didn't work. So this line is now removed from Makefile, and proper flags are supplied to the link commands. Other port changes: * Take maintainership * Add missing RUN_DEPENDS for wish:x11-toolkits/tk-wrapper * Add CONFLICTS_BUILD * Fix MPICH_LIB_DEPENDS to point to net/mpich2 * patch the 'wish' path in configure Added: head/science/mpqc/files/patch-src_lib_chemistry_qc_cints_Makefile (contents, props changed) head/science/mpqc/files/patch-src_lib_util_misc_Makefile (contents, props changed) Deleted: head/science/mpqc/files/patch-symmetry__pointgrp.cc Modified: head/science/mpqc/Makefile Modified: head/science/mpqc/Makefile ============================================================================== --- head/science/mpqc/Makefile Tue Jul 17 20:14:05 2018 (r474827) +++ head/science/mpqc/Makefile Wed Jul 18 00:20:27 2018 (r474828) @@ -3,28 +3,33 @@ PORTNAME= mpqc PORTVERSION= 2.3.1 -PORTREVISION= 33 +PORTREVISION= 34 CATEGORIES= science parallel MASTER_SITES= SF -MAINTAINER= ports@FreeBSD.org +MAINTAINER= yuri@FreeBSD.org COMMENT= Massively Parallel Quantum Chemistry Program +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + BROKEN_aarch64= fails to compile: lapack.h:2:10: 'chemistry/qc/mbptr12/f77sym.h' file not found LIB_DEPENDS= libint.so:science/libint +RUN_DEPENDS= wish:x11-toolkits/tk-wrapper +CONFLICTS_BUILD= ga # devel/ga: it links to libarmci.so, has HAVE_ARMCI defined, and hits some bug + +USES= fortran gmake libtool localbase perl5 shebangfix tar:bzip2 GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-production \ --enable-shared \ --with-cc-optflags="${CFLAGS}" \ --with-cxx-optflags="${CXXFLAGS}" \ --with-sc-datadir=${DATADIR} -LIBS+= -Wl,--as-needed -lexecinfo -Wl,--no-as-needed ALL_TARGET= default INSTALL_TARGET= install install_devel DESTDIRNAME= installroot -USES= fortran gmake libtool localbase perl5 shebangfix tar:bzip2 SHEBANG_FILES= src/bin/mpqc/ccarunproc src/bin/mpqc/mpqcrunproc USE_LDCONFIG= yes @@ -44,7 +49,7 @@ DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen \ dot:graphics/graphviz ICC_BUILD_DEPENDS= ${LOCALBASE}/intel_cc_80/bin/icc:lang/icc MPICH_CONFIGURE_ENABLE= parallel -MPICH_LIB_DEPENDS= libmpi.so.12:net/mpich +MPICH_LIB_DEPENDS= libmpich.so:net/mpich2 OPTIFLAGS_CFLAGS= -ffast-math OPTIFLAGS_CXXFLAGS= -ffast-math @@ -62,6 +67,7 @@ post-patch: @${REINPLACE_CMD} \ -e 's/-lblas/${BLASLIB}/' -e 's/-llapack/${LAPACKLIB}/' \ -e 's/pthread_join(0,0)/pthread_create(0,0,0,0)/' \ + -e 's|/usr/bin/wish|${LOCALBASE}/bin/wish|' \ ${WRKSRC}/configure do-build-DOXYGEN-on: Added: head/science/mpqc/files/patch-src_lib_chemistry_qc_cints_Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/mpqc/files/patch-src_lib_chemistry_qc_cints_Makefile Wed Jul 18 00:20:27 2018 (r474828) @@ -0,0 +1,19 @@ +--- src/lib/chemistry/qc/cints/Makefile.orig 2018-07-17 20:59:43 UTC ++++ src/lib/chemistry/qc/cints/Makefile +@@ -52,13 +52,13 @@ LIBOBJ := $(LIBOBJ:%.cc=%.$(OBJSUF)) + + LTLINKLIBOPTS += $(LDFLAGS) + ifeq ($(HAVE_LIBINT),yes) +- LTLINKLIBOPTS += -lint ++ LTLINKLIBOPTS += -L$(PREFIX)/lib -lint + endif + ifeq ($(HAVE_LIBR12),yes) +- LTLINKLIBOPTS += -lr12 ++ LTLINKLIBOPTS += -L$(PREFIX)/lib -lr12 + endif + ifeq ($(HAVE_LIBDERIV),yes) +- LTLINKLIBOPTS += -lderiv ++ LTLINKLIBOPTS += -L$(PREFIX)/lib -lderiv + endif + + DISTFILES = $(TESTCSRC) $(INC) Makefile Added: head/science/mpqc/files/patch-src_lib_util_misc_Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/mpqc/files/patch-src_lib_util_misc_Makefile Wed Jul 18 00:20:27 2018 (r474828) @@ -0,0 +1,10 @@ +--- src/lib/util/misc/Makefile.orig 2005-05-26 06:00:50 UTC ++++ src/lib/util/misc/Makefile +@@ -38,6 +38,7 @@ CXXFLAGS := $(CXXFLAGS:-fno-implicit-tem + + TARGET_TO_MAKE = libSCmisc + BIN_OR_LIB = LIB ++LTLINKLIBOPTS += -lexecinfo + + CSRC = +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807180020.w6I0KRQY080589>