ports/149003: [patch] lang/ruby18, lang/ruby19: drop librt dep, clock_gettime() and nanosleep() are within libc

Anonymous swell.k at gmail.com
Tue Jul 27 16:20:02 UTC 2010


>Number:         149003
>Category:       ports
>Synopsis:       [patch] lang/ruby18, lang/ruby19: drop librt dep, clock_gettime() and nanosleep() are within libc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 27 16:20:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Anonymous
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
>Description:
>How-To-Repeat:
>Fix:
--- a.diff begins here ---
Index: lang/ruby18/files/patch-configure.in
===================================================================
RCS file: /a/.cvsup/ports/lang/ruby18/files/patch-configure.in,v
retrieving revision 1.1
diff -u -p -r1.1 patch-configure.in
--- lang/ruby18/files/patch-configure.in	19 Jun 2009 12:42:45 -0000	1.1
+++ lang/ruby18/files/patch-configure.in	27 Jul 2010 16:03:48 -0000
@@ -1,5 +1,14 @@
 --- configure.in.orig	2009-01-19 12:25:38.000000000 +0300
 +++ configure.in	2009-06-19 15:35:22.000000000 +0400
+@@ -502,7 +502,7 @@ esac
+ AC_CHECK_LIB(crypt, crypt)
+ AC_CHECK_LIB(dl, dlopen)	# Dynamic linking for SunOS/Solaris and SYSV
+ AC_CHECK_LIB(dld, shl_load)	# Dynamic linking for HP-UX
+-AC_CHECK_LIB(rt, clock_gettime)	# GNU/Linux
++AC_DEFINE(HAVE_LIBRT)
+ 
+ case "$target_cpu" in
+ alpha*)		case "$target_os"::"$GCC" in
 @@ -1020,7 +1020,7 @@
  	case $pthread_lib in
  	c)
@@ -9,9 +18,14 @@
  	    MAINLIBS="-pthread $MAINLIBS"
  	    ;;
  	*)
-@@ -1037,6 +1037,14 @@
+@@ -1033,11 +1033,16 @@ if test x"$enable_pthread" = xyes; then
+     fi
+     AC_CHECK_FUNCS(nanosleep)
+     if test x"$ac_cv_func_nanosleep" = xno; then
+-       AC_CHECK_LIB(rt, nanosleep)
+-       if test x"$ac_cv_lib_rt_nanosleep" = xyes; then
             AC_DEFINE(HAVE_NANOSLEEP)
-        fi
+-       fi
      fi
 +    AC_MSG_CHECKING([for pthread_np.h])
 +    AC_TRY_COMPILE([
Index: lang/ruby19/Makefile
===================================================================
RCS file: /a/.cvsup/ports/lang/ruby19/Makefile,v
retrieving revision 1.6
diff -u -p -r1.6 Makefile
--- lang/ruby19/Makefile	16 Feb 2010 00:08:17 -0000	1.6
+++ lang/ruby19/Makefile	27 Jul 2010 15:42:33 -0000
@@ -119,6 +115,7 @@ post-patch:
 		-e '/^RUBY_LIB_PATH/s,\.\$$\{TEENY\},,' \
 		-e '/^RUBY_SITE_LIB_PATH2/s,\.\$$\{TEENY\},,' \
 		-e '/^RUBY_VENDOR_LIB_PATH2/s,\.\$$\{TEENY\},,' \
+		-e '/LIBS/s,-lrt,,' \
 		${WRKSRC}/configure
 
 	#
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list