Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jul 2018 03:37:54 +0000 (UTC)
From:      Dima Panov <fluffy@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r475488 - in branches/2018Q3: Mk lang/ruby24/files lang/ruby25/files
Message-ID:  <201807280337.w6S3bsvO000849@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: fluffy
Date: Sat Jul 28 03:37:53 2018
New Revision: 475488
URL: https://svnweb.freebsd.org/changeset/ports/475488

Log:
  MFH: r475483
  
  lang/ruby2[4|5]: Use internal RUBY_DLDFLAGS right way, get rid of unescaped macro '$@' in the pkg-config template
  
  lang/ruby23 is already fixed same way, port it to newer releases
  
  By the way, this unbreak ninja builds with any port relied on libruby.so
  
  PR:		229898
  Submitted by:	fluffy
  Reviewed by:	ruby (miwi)
  Approved by:	ruby (miwi)
  Exp-run by:	antoine
  Differential Revision:	D16341
  
  Approved by:	ports-secteam (miwi)

Added:
  branches/2018Q3/lang/ruby24/files/patch-configure.in
     - copied unchanged from r475483, head/lang/ruby24/files/patch-configure.in
  branches/2018Q3/lang/ruby25/files/patch-configure.ac
     - copied unchanged from r475483, head/lang/ruby25/files/patch-configure.ac
Modified:
  branches/2018Q3/Mk/bsd.ruby.mk
Directory Properties:
  branches/2018Q3/   (props changed)

Modified: branches/2018Q3/Mk/bsd.ruby.mk
==============================================================================
--- branches/2018Q3/Mk/bsd.ruby.mk	Sat Jul 28 03:26:52 2018	(r475487)
+++ branches/2018Q3/Mk/bsd.ruby.mk	Sat Jul 28 03:37:53 2018	(r475488)
@@ -165,7 +165,7 @@ RUBY23=			""	# PLIST_SUB helpers
 # Ruby 2.4
 #
 RUBY_RELVERSION=	2.4.4
-RUBY_PORTREVISION=	0
+RUBY_PORTREVISION=	1
 RUBY_PORTEPOCH=		1
 RUBY_PATCHLEVEL=	0
 RUBY24=			""	# PLIST_SUB helpers
@@ -175,7 +175,7 @@ RUBY24=			""	# PLIST_SUB helpers
 # Ruby 2.5
 #
 RUBY_RELVERSION=	2.5.1
-RUBY_PORTREVISION=	0
+RUBY_PORTREVISION=	1
 RUBY_PORTEPOCH=		1
 RUBY_PATCHLEVEL=	0
 RUBY25=			""	# PLIST_SUB helpers

Copied: branches/2018Q3/lang/ruby24/files/patch-configure.in (from r475483, head/lang/ruby24/files/patch-configure.in)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/2018Q3/lang/ruby24/files/patch-configure.in	Sat Jul 28 03:37:53 2018	(r475488, copy of r475483, head/lang/ruby24/files/patch-configure.in)
@@ -0,0 +1,19 @@
+--- configure.in.orig	2018-03-02 20:59:11.000000000 +0800
++++ configure.in	2018-07-19 14:22:04.753721000 +0800
+@@ -3423,7 +3423,6 @@
+ 			: ${LDSHARED='$(CC) -shared'}
+ 			if test "$rb_cv_binary_elf" = yes; then
+ 			    LDFLAGS="$LDFLAGS -rdynamic"
+-			    DLDFLAGS="$DLDFLAGS "'-Wl,-soname,$@'
+ 			else
+ 			  test "$GCC" = yes && test "$rb_cv_prog_gnu_ld" = yes || LDSHARED='$(LD) -Bshareable'
+ 			fi
+@@ -3896,6 +3895,8 @@
+     [freebsd*|dragonfly*], [
+ 	SOLIBS='$(LIBS)'
+ 	LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR)'
++	RUBY_APPEND_OPTIONS(DLDFLAGS, ['-Wl,-soname,${LIBRUBY_SO}' "$LDFLAGS_OPTDIR"])
++	RUBY_APPEND_OPTIONS(LIBRUBY_DLDFLAGS, ['-Wl,-soname,${LIBRUBY_SO}' "$LDFLAGS_OPTDIR"])
+ 	if test "$rb_cv_binary_elf" != "yes" ; then
+ 	    LIBRUBY_SO="$LIBRUBY_SO.\$(TEENY)"
+ 	    LIBRUBY_ALIASES=''

Copied: branches/2018Q3/lang/ruby25/files/patch-configure.ac (from r475483, head/lang/ruby25/files/patch-configure.ac)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/2018Q3/lang/ruby25/files/patch-configure.ac	Sat Jul 28 03:37:53 2018	(r475488, copy of r475483, head/lang/ruby25/files/patch-configure.ac)
@@ -0,0 +1,19 @@
+--- configure.ac.orig	2018-01-04 02:12:16.000000000 +0800
++++ configure.ac	2018-07-19 14:45:11.636321000 +0800
+@@ -3245,7 +3245,6 @@
+ 			: ${LDSHARED='$(CC) -shared'}
+ 			AS_IF([test "$rb_cv_binary_elf" = yes], [
+ 			    LDFLAGS="$LDFLAGS -rdynamic"
+-			    DLDFLAGS="$DLDFLAGS "'-Wl,-soname,$@'
+ 			], [
+ 			  test "$GCC" = yes && test "$rb_cv_prog_gnu_ld" = yes || LDSHARED='$(LD) -Bshareable'
+ 			])
+@@ -3724,6 +3723,8 @@
+ 	SOLIBS='$(LIBS)'
+ 	LIBRUBY_SO='lib$(RUBY_SO_NAME).$(SOEXT).$(MAJOR)$(MINOR)'
+ 	LIBRUBY_SONAME='$(LIBRUBY_SO)'
++	RUBY_APPEND_OPTIONS(DLDFLAGS, ['-Wl,-soname,${LIBRUBY_SO}' "$LDFLAGS_OPTDIR"])
++	RUBY_APPEND_OPTIONS(LIBRUBY_DLDFLAGS, ['-Wl,-soname,${LIBRUBY_SO}' "$LDFLAGS_OPTDIR"])
+ 	AS_IF([test "$rb_cv_binary_elf" != "yes" ], [
+ 	    LIBRUBY_SO="$LIBRUBY_SO.\$(TEENY)"
+ 	    LIBRUBY_ALIASES=''



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807280337.w6S3bsvO000849>