From owner-svn-ports-all@freebsd.org Wed Jul 19 14:19:49 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3E196C7E894; Wed, 19 Jul 2017 14:19:49 +0000 (UTC) (envelope-from jrm@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 mx1.freebsd.org (Postfix) with ESMTPS id 17F1C812C8; Wed, 19 Jul 2017 14:19:49 +0000 (UTC) (envelope-from jrm@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v6JEJmhm065492; Wed, 19 Jul 2017 14:19:48 GMT (envelope-from jrm@FreeBSD.org) Received: (from jrm@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v6JEJlh6065487; Wed, 19 Jul 2017 14:19:47 GMT (envelope-from jrm@FreeBSD.org) Message-Id: <201707191419.v6JEJlh6065487@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jrm set sender to jrm@FreeBSD.org using -f From: Joseph Mingrone Date: Wed, 19 Jul 2017 14:19:47 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r446199 - in head/math/R: . files X-SVN-Group: ports-head X-SVN-Commit-Author: jrm X-SVN-Commit-Paths: in head/math/R: . files X-SVN-Commit-Revision: 446199 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.23 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: Wed, 19 Jul 2017 14:19:49 -0000 Author: jrm Date: Wed Jul 19 14:19:47 2017 New Revision: 446199 URL: https://svnweb.freebsd.org/changeset/ports/446199 Log: math/R: set SONAME for libraries under lib/R/lib PR: 219776 Submitted by: pawel Reviewed by: pawel, mat Differential Revision: https://reviews.freebsd.org/D11615 Added: head/math/R/files/patch-src_extra_blas_Makefile.in (contents, props changed) head/math/R/files/patch-src_main_Makefile.in (contents, props changed) head/math/R/files/patch-src_modules_lapack_Makefile.in (contents, props changed) Modified: head/math/R/Makefile head/math/R/pkg-plist Modified: head/math/R/Makefile ============================================================================== --- head/math/R/Makefile Wed Jul 19 14:00:16 2017 (r446198) +++ head/math/R/Makefile Wed Jul 19 14:19:47 2017 (r446199) @@ -3,7 +3,7 @@ PORTNAME= R PORTVERSION= 3.4.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math lang MASTER_SITES= CRAN/src/base/R-${PORTVERSION:C|\..*||} @@ -27,6 +27,7 @@ USES= gmake iconv libtool localbase objc:compiler \ pathfix perl5 readline:port USE_PERL5= build +USE_LDCONFIG= ${PREFIX}/lib/R/lib OPTIONS_DEFINE= ICU INFO LDOUBLE LETTER LIBR MEMPROF NLS RPROF X11 OPTIONS_GROUP= NEEDGCC NEEDX11 @@ -135,8 +136,15 @@ TIFF_CONFIGURE_WITH= libtiff X11_CONFIGURE_WITH= x X11_USE= xorg=ice,sm,x11,xext,xmu,xscrnsaver,xt +LIBVER= ${PORTVERSION:R} +PLIST_SUB= LIBVER=${LIBVER} + post-patch: @${REINPLACE_CMD} -e "s|/usr/local|${LOCALBASE}|g" ${WRKSRC}/configure + @${REINPLACE_CMD} "s|%%LIBVER%%|${LIBVER}|" \ + ${WRKSRC}/src/main/Makefile.in \ + ${WRKSRC}/src/extra/blas/Makefile.in \ + ${WRKSRC}/src/modules/lapack/Makefile.in .include .include "compiler.mk" Added: head/math/R/files/patch-src_extra_blas_Makefile.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/R/files/patch-src_extra_blas_Makefile.in Wed Jul 19 14:19:47 2017 (r446199) @@ -0,0 +1,27 @@ +--- src/extra/blas/Makefile.in.orig 2017-07-16 08:46:49 UTC ++++ src/extra/blas/Makefile.in +@@ -19,7 +19,7 @@ SOURCES = blas00.c blas.f cmplxblas.f + Rblas_la = libRblas$(R_DYLIB_EXT) + ## @RBLAS_LDFLAGS@ is used on macOS + ## first for internal BLAS +-Rblas_la_LIBADD = @RBLAS_LDFLAGS@ $(FLIBS_IN_SO) ++Rblas_la_LIBADD = -Wl,-soname,libRblas.so.%%LIBVER%% $(FLIBS_IN_SO) + ## then external one + Rblas_la_LIBADD0 = @RBLAS_LDFLAGS@ + +@@ -43,6 +43,7 @@ Rblas_install: $(Rblas_la) + @$(MKINSTALLDIRS) $(DESTDIR)$(Rexeclibdir) + @$(SHELL) $(top_srcdir)/tools/copy-if-change $(Rblas_la) \ + $(DESTDIR)$(Rexeclibdir)/$(Rblas_la) ++ @cd $(DESTDIR)$(Rexeclibdir) && ln -s $(Rblas_la) $(Rblas_la).%%LIBVER%% + + Rblas_install-strip: $(Rblas_la) + @$(MKINSTALLDIRS) $(DESTDIR)$(Rexeclibdir) +@@ -50,6 +51,7 @@ Rblas_install-strip: $(Rblas_la) + @if test -n "$(STRIP_LIBS)"; then \ + $(STRIP_LIBS) "$(DESTDIR)$(Rexeclibdir)/$(Rblas_la)" ;\ + fi ++ @cd "$(DESTDIR)$(Rexeclibdir)" && ln -s $(Rblas_la) $(Rblas_la).%%LIBVER%% + + mostlyclean: clean + clean: Added: head/math/R/files/patch-src_main_Makefile.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/R/files/patch-src_main_Makefile.in Wed Jul 19 14:19:47 2017 (r446199) @@ -0,0 +1,19 @@ +--- src/main/Makefile.in.orig 2017-07-16 08:46:49 UTC ++++ src/main/Makefile.in +@@ -110,7 +110,7 @@ libR_la_LIBADD = $(MAIN_OBJS) $(EXTRA_STATIC_LIBS) $( + libR_la_DEPENDENCIES = $(STATIC_LIBS) $(R_TZONE) @WANT_R_SHLIB_TRUE@ @USE_EXPORTFILES_TRUE@ $(top_builddir)/etc/R.exp + + ## The next is needed for macOS only at present +-LIBR_LDFLAGS = @LIBR_LDFLAGS@ ++LIBR_LDFLAGS = -Wl,-soname,libR.so.%%LIBVER%% + + + all: R +@@ -200,6 +200,7 @@ install-bin: installdirs + install-lib: installdirs + @$(MKINSTALLDIRS) "$(DESTDIR)$(Rexeclibdir)" + @$(SHELL) $(top_srcdir)/tools/copy-if-change $(libR_la) "$(DESTDIR)$(Rexeclibdir)/$(libR_la)" ++ @cd "$(DESTDIR)$(Rexeclibdir)" && ln -s $(libR_la) $(libR_la).%%LIBVER%% + install-static: installdirs + @$(MKINSTALLDIRS) "$(DESTDIR)$(Rexeclibdir)" + @$(SHELL) $(top_srcdir)/tools/copy-if-change libR.a "$(DESTDIR)$(Rexeclibdir)/libR.a" Added: head/math/R/files/patch-src_modules_lapack_Makefile.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/R/files/patch-src_modules_lapack_Makefile.in Wed Jul 19 14:19:47 2017 (r446199) @@ -0,0 +1,30 @@ +--- src/modules/lapack/Makefile.in.orig 2017-07-16 08:46:49 UTC ++++ src/modules/lapack/Makefile.in +@@ -82,16 +82,17 @@ $(lapack_la): $(lapack_la_OBJECTS) + ## Include BLAS here, as with (static) ATLAS that pulls all the + ## BLAS routines into one place. + $(Rlapack_la): $(LIBOBJECTS) +- $(DYLIB_LINK) -o $@ $(LIBOBJECTS) @RLAPACK_LDFLAGS@ @BLAS_LIBS@ $(Rlapack_la_LIBADD) ++ $(DYLIB_LINK) -o $@ $(LIBOBJECTS) -Wl,-soname,libRlapack.so.%%LIBVER%% @BLAS_LIBS@ $(Rlapack_la_LIBADD) + + Rlapack_install: $(Rlapack_la) + @$(MKINSTALLDIRS) "$(DESTDIR)$(Rexeclibdir)" + @$(SHELL) $(top_srcdir)/tools/copy-if-change $(Rlapack_la) \ + $(Rexeclibdir)/$(Rlapack_la) +- ++ @cd $(Rexeclibdir) && ln -s $(Rlapack_la) $(Rlapack_la).%%LIBVER%% + install: installdirs + @$(SHELL) $(top_srcdir)/tools/copy-if-change $(lapack_la) "$(DESTDIR)$(Rexecmodulesdir)/$(lapack_la)" + @USE_EXTERNAL_LAPACK_FALSE@ @$(SHELL) $(top_srcdir)/tools/copy-if-change $(Rlapack_la) "$(DESTDIR)$(Rexeclibdir)/$(Rlapack_la)" ++@USE_EXTERNAL_LAPACK_FALSE@ @cd "$(DESTDIR)$(Rexeclibdir)" && ln -sf $(Rlapack_la) $(Rlapack_la).%%LIBVER%% + installdirs: + @$(MKINSTALLDIRS) "$(DESTDIR)$(Rexecmodulesdir)" + install-strip-Rlapack: +@@ -104,6 +105,7 @@ install-strip: @USE_EXTERNAL_LAPACK_FALSE@ install-str + @if test -n "$(STRIP_LIBS)"; then \ + $(STRIP_LIBS) "$(DESTDIR)$(Rexecmodulesdir)/$(lapack_la)"; \ + fi ++ @cd "$(DESTDIR)$(Rexeclibdir)" && ln -s $(Rlapack_la) $(Rlapack_la).%%LIBVER%% + uninstall: + @rm -f "$(Rexecmodulesdir)/$(lapack_la)" + Modified: head/math/R/pkg-plist ============================================================================== --- head/math/R/pkg-plist Wed Jul 19 14:00:16 2017 (r446198) +++ head/math/R/pkg-plist Wed Jul 19 14:19:47 2017 (r446199) @@ -101,8 +101,11 @@ lib/R/include/Rmath.h lib/R/include/Rversion.h lib/R/include/S.h %%RBLAS%%lib/R/lib/libRblas.so +%%RBLAS%%lib/R/lib/libRblas.so.%%LIBVER%% %%RBLAS%%lib/R/lib/libRlapack.so +%%RBLAS%%lib/R/lib/libRlapack.so.%%LIBVER%% %%LIBR%%lib/R/lib/libR.so +%%LIBR%%lib/R/lib/libR.so.%%LIBVER%% lib/R/library/KernSmooth/DESCRIPTION lib/R/library/KernSmooth/INDEX lib/R/library/KernSmooth/Meta/features.rds