pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/pkgsrc-2015Q1]: pkgsrc/lang/ruby193-base Pullup ticket #4720 - reques...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e7aeb8834709
branches:  pkgsrc-2015Q1
changeset: 649262:e7aeb8834709
user:      hiramatsu <hiramatsu%pkgsrc.org@localhost>
date:      Mon May 25 01:04:35 2015 +0000

description:
Pullup ticket #4720 - requested by taca
lang/ruby193-base: build fix

Revisions pulled up:
- pkgsrc/lang/ruby193-base/Makefile                             1.50
- pkgsrc/lang/ruby193-base/distinfo                             1.42-1.44
- pkgsrc/lang/ruby193-base/patches/patch-configure              1.12
- pkgsrc/lang/ruby193-base/patches/patch-lib_mkmf.rb            1.3

---
   Module Name:    pkgsrc
   Committed By:   jperkin
   Date:           Fri Apr  3 08:59:08 UTC 2015

   Modified Files:
           pkgsrc/lang/ruby193-base: distinfo
           pkgsrc/lang/ruby193-base/patches: patch-configure

   Log Message:
   Disable CPU detection on Darwin, the result for 32-bit (i486) is incompatible
   with pkgsrc MACHINE_ARCH (i386).  Fixes 32-bit build, no change for 64-bit.

---
   Module Name:    pkgsrc
   Committed By:   taca
   Date:           Thu Apr 30 03:25:56 UTC 2015

   Modified Files:
           pkgsrc/lang/ruby193-base: Makefile distinfo
   Added Files:
           pkgsrc/lang/ruby193-base/patches: patch-lib_mkmf.rb

   Log Message:
   Avoid to generate empty command line on some platforms:

   $(DLLIB): $(OBJS) Makefile
           ...
           $(Q) $(POSTLINK)

   And POSTLINK is empty macro.  In such case, GNU make ignore empty command
   line but BSD make tries to execute it and causes error.

   Bump PKGREVISION.

diffstat:

 lang/ruby193-base/Makefile                  |   4 +-
 lang/ruby193-base/distinfo                  |   5 ++-
 lang/ruby193-base/patches/patch-configure   |  35 ++++++++++++++++++----------
 lang/ruby193-base/patches/patch-lib_mkmf.rb |  21 +++++++++++++++++
 4 files changed, 48 insertions(+), 17 deletions(-)

diffs (180 lines):

diff -r f1e5b2775c15 -r e7aeb8834709 lang/ruby193-base/Makefile
--- a/lang/ruby193-base/Makefile        Sun May 24 11:41:20 2015 +0000
+++ b/lang/ruby193-base/Makefile        Mon May 25 01:04:35 2015 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.49 2015/03/08 14:53:39 taca Exp $
+# $NetBSD: Makefile,v 1.49.2.1 2015/05/25 01:04:35 hiramatsu Exp $
 #
 
 DISTNAME=      ${RUBY_DISTNAME}
 PKGNAME=       ${RUBY_PKGPREFIX}-base-${RUBY_VERSION_FULL}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    lang ruby
 MASTER_SITES=  ${MASTER_SITE_RUBY}
 
diff -r f1e5b2775c15 -r e7aeb8834709 lang/ruby193-base/distinfo
--- a/lang/ruby193-base/distinfo        Sun May 24 11:41:20 2015 +0000
+++ b/lang/ruby193-base/distinfo        Mon May 25 01:04:35 2015 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.42 2015/03/08 14:53:39 taca Exp $
+$NetBSD: distinfo,v 1.42.2.1 2015/05/25 01:04:35 hiramatsu Exp $
 
 SHA1 (ruby-1.9.3-p551.tar.bz2) = 35600f4e2ac98653fa8a634104cb6ab3d47a1535
 RMD160 (ruby-1.9.3-p551.tar.bz2) = 59cfcaf4e02957f53bf83557962b0d428156bc01
 Size (ruby-1.9.3-p551.tar.bz2) = 10049332 bytes
-SHA1 (patch-configure) = 0ef7e10bbff37118c48053e7189f87528a3e408b
+SHA1 (patch-configure) = 1ee484ad481734a49824a1a1f8bb5f8f96f6606a
 SHA1 (patch-configure.in) = 09dfe819b6a9bd7c9af704eeaef659857d33d0c3
 SHA1 (patch-defs_default__gems) = fb24111736f1a76a05e853aa068024dbdd24e5a5
 SHA1 (patch-ext_dbm_extconf.rb) = cc16af8f4999ef6c54c9652e2748504c31e5ef4e
@@ -18,6 +18,7 @@
 SHA1 (patch-ext_tk_lib_tkextlib_tkimg_dted.rb) = c73d94032c22cbefb55daee2ba359d70751b1416
 SHA1 (patch-ext_tk_lib_tkextlib_tkimg_raw.rb) = 2c99d8f59c0ad5d6a493dd6e663850262487f5ef
 SHA1 (patch-ext_tk_tcltklib.c) = c58bffdde4a89ea7c442b1cf37c12c5ce53ee890
+SHA1 (patch-lib_mkmf.rb) = ddf539a6c0fa91b751a59788e5dd933fc97d31db
 SHA1 (patch-lib_rdoc_ri_driver.rb) = acb4cb022893eb8dea2adf7564f5e5e1a0f1e9c8
 SHA1 (patch-lib_rdoc_text.rb) = cfbf48096ce14da8016177f6a8e6ef4416929647
 SHA1 (patch-lib_rubygems.rb) = e472c981e544b75c3762385895c9a0197be9badd
diff -r f1e5b2775c15 -r e7aeb8834709 lang/ruby193-base/patches/patch-configure
--- a/lang/ruby193-base/patches/patch-configure Sun May 24 11:41:20 2015 +0000
+++ b/lang/ruby193-base/patches/patch-configure Mon May 25 01:04:35 2015 +0000
@@ -1,11 +1,20 @@
-$NetBSD: patch-configure,v 1.11 2013/11/24 14:17:19 taca Exp $
+$NetBSD: patch-configure,v 1.11.12.1 2015/05/25 01:04:35 hiramatsu Exp $
 
 * Adding Interix and MirBSD support.
 * Ignore doxygen.
 
---- configure.orig     2013-11-22 04:24:15.000000000 +0000
+--- configure.orig     2014-11-13 13:42:20.000000000 +0000
 +++ configure
-@@ -10741,6 +10741,9 @@ esac
+@@ -4666,7 +4666,7 @@ esac
+ else
+     if test x"$target_alias" = x; then
+       case "$target_os" in #(
+-  darwin*) :
++  notdarwin*) :
+ 
+           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for real target cpu" >&5
+ $as_echo_n "checking for real target cpu... " >&6; }
+@@ -10900,6 +10900,9 @@ esac
    superux*) :
        ac_cv_func_setitimer=no
                 ;; #(
@@ -15,7 +24,7 @@
    *) :
        LIBS="-lm $LIBS" ;;
  esac
-@@ -11344,7 +11347,13 @@ for ac_header in limits.h sys/file.h sys
+@@ -11503,7 +11506,13 @@ for ac_header in limits.h sys/file.h sys
                 net/socket.h sys/socket.h process.h atomic.h
  do :
    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
@@ -30,7 +39,7 @@
  if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
    cat >>confdefs.h <<_ACEOF
  #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
-@@ -12089,6 +12098,9 @@ fi
+@@ -12248,6 +12257,9 @@ fi
  ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#ifdef HAVE_TIME_H
  #include <time.h>
  #endif
@@ -40,7 +49,7 @@
  "
  if test "x$ac_cv_type_struct_timespec" = xyes; then :
  
-@@ -13880,6 +13892,8 @@ else
+@@ -14039,6 +14051,8 @@ else
  # ifdef _MSC_VER
  #  include <malloc.h>
  #  define alloca _alloca
@@ -49,7 +58,7 @@
  # else
  #  ifdef HAVE_ALLOCA_H
  #   include <alloca.h>
-@@ -15832,7 +15846,7 @@ done
+@@ -15991,7 +16005,7 @@ done
      MAINLIBS="-pthread $MAINLIBS" ;; #(
    *) :
      case "$target_os" in #(
@@ -58,7 +67,7 @@
      LIBS="-pthread $LIBS" ;; #(
    *) :
      LIBS="-l$pthread_lib $LIBS" ;;
-@@ -16282,7 +16296,9 @@ esac ;; #(
+@@ -16441,7 +16455,9 @@ esac ;; #(
    interix*) :
        : ${LDSHARED='$(CC) -shared'}
                        XLDFLAGS="$XLDFLAGS -Wl,-E"
@@ -68,7 +77,7 @@
                        rb_cv_dlopen=yes ;; #(
    freebsd*|dragonfly*) :
  
-@@ -16294,7 +16310,7 @@ esac ;; #(
+@@ -16453,7 +16469,7 @@ esac ;; #(
                          test "$GCC" = yes && test "$rb_cv_prog_gnu_ld" = yes || LDSHARED="ld -Bshareable"
                        fi
                        rb_cv_dlopen=yes ;; #(
@@ -77,7 +86,7 @@
        : ${LDSHARED='$(CC) -shared ${CCDLFLAGS}'}
                        if test "$rb_cv_binary_elf" = yes; then
                            LDFLAGS="$LDFLAGS -Wl,-E"
-@@ -16825,7 +16841,7 @@ _ACEOF
+@@ -16984,7 +17000,7 @@ _ACEOF
    freebsd*|dragonfly*) :
  
        SOLIBS='$(LIBS)'
@@ -86,7 +95,7 @@
        if test "$rb_cv_binary_elf" != "yes" ; then
            LIBRUBY_SO="$LIBRUBY_SO.\$(TEENY)"
            LIBRUBY_ALIASES=''
-@@ -16842,7 +16858,7 @@ _ACEOF
+@@ -17001,7 +17017,7 @@ _ACEOF
           LIBRUBY_ALIASES=""
        fi
         ;; #(
@@ -95,7 +104,7 @@
  
        SOLIBS='$(LIBS)'
        LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR).'`expr ${MINOR} \* 10 + ${TEENY}`
-@@ -16903,7 +16919,12 @@ esac
+@@ -17062,7 +17078,12 @@ esac
         ;; #(
    interix*) :
  
@@ -109,7 +118,7 @@
         ;; #(
    *) :
       ;;
-@@ -16966,11 +16987,7 @@ if test "$install_doc" != no; then
+@@ -17125,11 +17146,7 @@ if test "$install_doc" != no; then
      else
        RDOCTARGET="nodoc"
      fi
diff -r f1e5b2775c15 -r e7aeb8834709 lang/ruby193-base/patches/patch-lib_mkmf.rb
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby193-base/patches/patch-lib_mkmf.rb       Mon May 25 01:04:35 2015 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-lib_mkmf.rb,v 1.3.2.2 2015/05/25 01:04:35 hiramatsu Exp $
+
+Avoid to generate empty command line on some platforms:
+
+$(DLLIB): $(OBJS) Makefile
+...
+       $(Q) $(POSTLINK)
+
+And POSTLINK is empty macro.  In such case, GNU make ignore empty command
+line but BSD make tries to execute it and causes error.
+
+--- lib/mkmf.rb.orig   2014-02-06 05:20:52.000000000 +0000
++++ lib/mkmf.rb
+@@ -1722,6 +1722,7 @@ LDSHARED = #{CONFIG['LDSHARED']}
+ LDSHAREDXX = #{config_string('LDSHAREDXX') || '$(LDSHARED)'}
+ AR = #{CONFIG['AR']}
+ EXEEXT = #{CONFIG['EXEEXT']}
++POSTLINK = #{CONFIG['POSTLINK']}
+ 
+ RUBY_BASE_NAME = #{CONFIG['RUBY_BASE_NAME']}
+ RUBY_INSTALL_NAME = #{CONFIG['RUBY_INSTALL_NAME']}



Home | Main Index | Thread Index | Old Index