pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/pkgsrc-2005Q2]: pkgsrc/lang/ruby16-base Pullup ticket 771 - requested...
details: https://anonhg.NetBSD.org/pkgsrc/rev/3f40d1835986
branches: pkgsrc-2005Q2
changeset: 496082:3f40d1835986
user: salo <salo%pkgsrc.org@localhost>
date: Thu Sep 22 16:56:47 2005 +0000
description:
Pullup ticket 771 - requested by Takahiro Kambe
security and portability fixes for ruby16-base
Revisions pulled up:
- pkgsrc/lang/ruby16-base/Makefile 1.4, 1.5
- pkgsrc/lang/ruby16-base/distinfo 1.2, 1.3
- pkgsrc/lang/ruby16-base/patches/patch-aa 1.2
- pkgsrc/lang/ruby16-base/patches/patch-ab 1.2
- pkgsrc/lang/ruby16-base/patches/patch-al 1.1
Module Name: pkgsrc
Committed By: taca
Date: Sun Sep 18 13:36:30 UTC 2005
Modified Files:
pkgsrc/lang/ruby16-base: Makefile distinfo
pkgsrc/lang/ruby16-base/patches: patch-aa patch-ab
Added Files:
pkgsrc/lang/ruby16-base/patches: patch-al
Log Message:
Adding DrafonFly BSD support provided by Joerg Sonnenberger.
Bump PKGREVISION.
---
Module Name: pkgsrc
Committed By: taca
Date: Wed Sep 21 14:04:55 UTC 2005
Modified Files:
pkgsrc/lang/ruby16-base: Makefile distinfo
Log Message:
Add a patch for fix the security problem which allows an arbitrary code
to run bypassing the safe level check.
Bump PKGREVISION.
diffstat:
lang/ruby16-base/Makefile | 6 +++-
lang/ruby16-base/distinfo | 10 +++++--
lang/ruby16-base/patches/patch-aa | 50 ++++++++++++++++++++++++++++---------
lang/ruby16-base/patches/patch-ab | 51 +++++++++++++++++++++++++++++---------
lang/ruby16-base/patches/patch-al | 22 ++++++++++++++++
5 files changed, 109 insertions(+), 30 deletions(-)
diffs (truncated from 328 to 300 lines):
diff -r 7f30f44cf584 -r 3f40d1835986 lang/ruby16-base/Makefile
--- a/lang/ruby16-base/Makefile Thu Sep 22 16:44:59 2005 +0000
+++ b/lang/ruby16-base/Makefile Thu Sep 22 16:56:47 2005 +0000
@@ -1,11 +1,15 @@
-# $NetBSD: Makefile,v 1.3 2005/04/11 21:46:16 tv Exp $
+# $NetBSD: Makefile,v 1.3.2.1 2005/09/22 16:56:47 salo Exp $
#
DISTNAME= ${RUBY_DISTNAME}
PKGNAME= ${RUBY_PKGPREFIX}-base-${RUBY_VERSION}
+PKGREVISION= 2
CATEGORIES= lang ruby
MASTER_SITES= ${MASTER_SITE_RUBY}
+PATCH_SITES= ${MASTER_SITE_RUBY}
+PATCHFILES= 1.6.8-patch1.gz
+
MAINTAINER= taca%NetBSD.org@localhost
HOMEPAGE= ${RUBY_HOMEPAGE}
COMMENT= Ruby 1.6 based release minimum package
diff -r 7f30f44cf584 -r 3f40d1835986 lang/ruby16-base/distinfo
--- a/lang/ruby16-base/distinfo Thu Sep 22 16:44:59 2005 +0000
+++ b/lang/ruby16-base/distinfo Thu Sep 22 16:56:47 2005 +0000
@@ -1,10 +1,13 @@
-$NetBSD: distinfo,v 1.1.1.1 2005/03/06 16:36:08 taca Exp $
+$NetBSD: distinfo,v 1.1.1.1.4.1 2005/09/22 16:56:47 salo Exp $
SHA1 (ruby/ruby-1.6.8.tar.gz) = 4b475ac1c837cd62b6dfe85359e1502a71b08cd1
RMD160 (ruby/ruby-1.6.8.tar.gz) = be087ca8f852caf9fc7a35b51839f5af079dbbc1
Size (ruby/ruby-1.6.8.tar.gz) = 1023403 bytes
-SHA1 (patch-aa) = b0f161d45194860cc0785f9d7961c6455824b0d9
-SHA1 (patch-ab) = 1bf657ee3facce8e3fb4909e11e03eee1aa7a121
+SHA1 (ruby/1.6.8-patch1.gz) = 52bbe9729c0adfc450e71daba7118288a57e4d19
+RMD160 (ruby/1.6.8-patch1.gz) = da7dcf15340eeb046b8552b5a9a880cd4a2857c3
+Size (ruby/1.6.8-patch1.gz) = 1178 bytes
+SHA1 (patch-aa) = e5b32f5ddb86a34fa1db112576aae29e71616f40
+SHA1 (patch-ab) = 95e99ea54c0aaf5851fc4c03eedb3a862d8ce4ac
SHA1 (patch-ac) = 19f520406a9b699a4bbe53b0e9e2b69b4eb7d96a
SHA1 (patch-ad) = 8a3e5eb250f517f10bea7f52fbfe8b05957b7bb4
SHA1 (patch-ae) = 2e096dcb882be923d2ff775a4271a300954a9dec
@@ -14,3 +17,4 @@
SHA1 (patch-ai) = 38b4293845c0078c5c5ae40d328c0ac7842fcdbc
SHA1 (patch-aj) = 03e15c32b0865d11339f609b2e98613fc09083b4
SHA1 (patch-ak) = ce23ee5dc472ebebe0c05adcb6956a50cecc4fcd
+SHA1 (patch-al) = fc6ed0be40728a1125e7526f87df889e3e134cc8
diff -r 7f30f44cf584 -r 3f40d1835986 lang/ruby16-base/patches/patch-aa
--- a/lang/ruby16-base/patches/patch-aa Thu Sep 22 16:44:59 2005 +0000
+++ b/lang/ruby16-base/patches/patch-aa Thu Sep 22 16:56:47 2005 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-aa,v 1.1.1.1 2005/03/06 16:36:08 taca Exp $
+$NetBSD: patch-aa,v 1.1.1.1.4.1 2005/09/22 16:56:47 salo Exp $
---- configure.in.orig 2002-11-13 13:59:18.000000000 -0500
+--- configure.in.orig 2002-11-13 18:59:18.000000000 +0000
+++ configure.in
@@ -264,6 +264,8 @@ os2_emx*) LIBS="-lm $LIBS"
ac_cv_lib_dir_opendir=no;;
@@ -11,7 +11,17 @@
freebsd*) LIBS="-lm $LIBS"
AC_CACHE_CHECK([whether -lxpg4 has to be linked],
rb_cv_lib_xpg4_needed,
-@@ -324,7 +326,8 @@ AC_HEADER_STDC
+@@ -300,6 +302,9 @@ freebsd*) LIBS="-lm $LIBS"
+ fi
+ fi
+ ;;
++dragonfly*) LIBS="-lm $LIBS"
++ MAINLIBS="-pthread $MAINLIBS"
++ ;;
+ linux*) LIBS="-lm $LIBS"
+ case "$target_cpu" in
+ alpha*)
+@@ -324,7 +329,8 @@ AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(stdlib.h string.h unistd.h limits.h sys/file.h sys/ioctl.h\
fcntl.h sys/fcntl.h sys/select.h sys/time.h sys/times.h sys/param.h\
@@ -21,7 +31,7 @@
dnl Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_UID_T
-@@ -456,6 +459,49 @@ else
+@@ -456,6 +462,49 @@ else
AC_DEFINE_UNQUOTED(FILE_COUNT, $rb_cv_fcnt)
fi
@@ -71,7 +81,7 @@
dnl default value for $KANJI
DEFAULT_KCODE="KCODE_NONE"
-@@ -549,6 +595,7 @@ if test "$with_dln_a_out" != yes; then
+@@ -549,6 +598,7 @@ if test "$with_dln_a_out" != yes; then
cygwin*) ;;
mingw*) ;;
netbsd*) CCDLFLAGS=-fPIC;;
@@ -79,7 +89,7 @@
*) CCDLFLAGS=-fPIC;;
esac
else
-@@ -563,7 +610,7 @@ if test "$with_dln_a_out" != yes; then
+@@ -563,7 +613,7 @@ if test "$with_dln_a_out" != yes; then
case "$target_os" in
hpux*) DLDFLAGS="-E"
@@ -88,7 +98,7 @@
LDFLAGS="-Wl,-E"
rb_cv_dlopen=yes;;
solaris*) if test "$GCC" = yes; then
-@@ -578,7 +625,8 @@ if test "$with_dln_a_out" != yes; then
+@@ -578,7 +628,8 @@ if test "$with_dln_a_out" != yes; then
rb_cv_dlopen=yes;;
sunos*) LDSHARED='ld -assert nodefinitions'
rb_cv_dlopen=yes;;
@@ -98,7 +108,7 @@
rb_cv_dlopen=yes;;
sysv4*) LDSHARED='ld -G'
rb_cv_dlopen=yes;;
-@@ -589,6 +637,12 @@ if test "$with_dln_a_out" != yes; then
+@@ -589,6 +640,12 @@ if test "$with_dln_a_out" != yes; then
osf*) LDSHARED="$CC -shared"
rb_cv_dlopen=yes ;;
linux*) LDSHARED="$CC -shared"
@@ -111,8 +121,13 @@
rb_cv_dlopen=yes ;;
freebsd*) LDSHARED="$CC -shared"
if test "$rb_cv_binary_elf" = yes; then
-@@ -601,8 +655,18 @@ if test "$with_dln_a_out" != yes; then
- netbsd*) LDSHARED='${CC} -shared'
+@@ -598,11 +655,22 @@ if test "$with_dln_a_out" != yes; then
+ test "$GCC" = yes && test "$rb_cv_prog_gnu_ld" = yes || LDSHARED="ld -Bshareable"
+ fi
+ rb_cv_dlopen=yes ;;
+- netbsd*) LDSHARED='${CC} -shared'
++ dragonfly*|netbsd*)
++ LDSHARED='${CC} -shared'
if test "$rb_cv_binary_elf" = yes; then
LDFLAGS="-Wl,-export-dynamic"
+ DLDFLAGS="$DLDFLAGS "'-Wl,-soname,$(.TARGET)'
@@ -130,7 +145,7 @@
openbsd*) LDSHARED="ld -Bforcearchive -Bshareable"
rb_cv_dlopen=yes ;;
bsdi3*) case "$CC" in
-@@ -858,6 +922,7 @@ if test "$enable_shared" = 'yes'; then
+@@ -858,6 +926,7 @@ if test "$enable_shared" = 'yes'; then
;;
linux*)
LIBRUBY_DLDFLAGS='-Wl,-soname,lib$(RUBY_INSTALL_NAME).so.$(MAJOR).$(MINOR)'
@@ -138,7 +153,16 @@
LIBRUBY_ALIASES='lib$(RUBY_INSTALL_NAME).so.$(MAJOR).$(MINOR) lib$(RUBY_INSTALL_NAME).so'
;;
freebsd*)
-@@ -879,6 +944,14 @@ if test "$enable_shared" = 'yes'; then
+@@ -868,7 +937,7 @@ if test "$enable_shared" = 'yes'; then
+ LIBRUBY_ALIASES=''
+ fi
+ ;;
+- netbsd*)
++ dragonfly*|netbsd*)
+ SOLIBS='$(LIBS)'
+ LIBRUBY_SO='lib$(RUBY_INSTALL_NAME).so.$(MAJOR)$(MINOR).$(TEENY)'
+ LIBRUBY_DLDFLAGS='-Wl,-soname,lib$(RUBY_INSTALL_NAME).so.$(MAJOR)$(MINOR)'
+@@ -879,6 +948,14 @@ if test "$enable_shared" = 'yes'; then
LIBRUBY_ALIASES=""
fi
;;
@@ -153,7 +177,7 @@
openbsd*)
SOLIBS='$(LIBS)'
;;
-@@ -1071,6 +1144,10 @@ if test "$search_path" != ""; then
+@@ -1071,6 +1148,10 @@ if test "$search_path" != ""; then
AC_DEFINE_UNQUOTED(RUBY_SEARCH_PATH,"$search_path")
fi
diff -r 7f30f44cf584 -r 3f40d1835986 lang/ruby16-base/patches/patch-ab
--- a/lang/ruby16-base/patches/patch-ab Thu Sep 22 16:44:59 2005 +0000
+++ b/lang/ruby16-base/patches/patch-ab Thu Sep 22 16:56:47 2005 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-ab,v 1.1.1.1 2005/03/06 16:36:08 taca Exp $
+$NetBSD: patch-ab,v 1.1.1.1.4.1 2005/09/22 16:56:47 salo Exp $
---- configure.orig 2002-11-19 06:49:26.000000000 -0500
+--- configure.orig 2002-11-19 11:49:26.000000000 +0000
+++ configure
@@ -29,6 +29,8 @@ ac_help="$ac_help
--with-sitedir=DIR site libraries in DIR [PREFIX/lib/ruby/site_ruby]"
@@ -20,7 +20,18 @@
freebsd*) LIBS="-lm $LIBS"
echo $ac_n "checking whether -lxpg4 has to be linked""... $ac_c" 1>&6
echo "configure:2330: checking whether -lxpg4 has to be linked" >&5
-@@ -2877,7 +2881,8 @@ fi
+@@ -2448,6 +2452,10 @@ echo "$ac_t""$rb_cv_supplementary_lib_c_
+ fi
+ fi
+ ;;
++dragonfly*)
++ LIBS="-lm $LIBS"
++ MAINLIBS="-pthread $MAINLIBS"
++ ;;
+ linux*) LIBS="-lm $LIBS"
+ case "$target_cpu" in
+ alpha*)
+@@ -2877,7 +2885,8 @@ fi
for ac_hdr in stdlib.h string.h unistd.h limits.h sys/file.h sys/ioctl.h\
fcntl.h sys/fcntl.h sys/select.h sys/time.h sys/times.h sys/param.h\
@@ -30,7 +41,7 @@
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-@@ -4387,6 +4392,330 @@ EOF
+@@ -4387,6 +4396,330 @@ EOF
fi
@@ -361,7 +372,7 @@
DEFAULT_KCODE="KCODE_NONE"
# Check whether --with-default-kcode or --without-default-kcode was given.
-@@ -4510,6 +4839,7 @@ echo "configure:4501: checking whether O
+@@ -4510,6 +4843,7 @@ echo "configure:4501: checking whether O
cygwin*) ;;
mingw*) ;;
netbsd*) CCDLFLAGS=-fPIC;;
@@ -369,7 +380,7 @@
*) CCDLFLAGS=-fPIC;;
esac
else
-@@ -4524,7 +4854,7 @@ echo "configure:4501: checking whether O
+@@ -4524,7 +4858,7 @@ echo "configure:4501: checking whether O
case "$target_os" in
hpux*) DLDFLAGS="-E"
@@ -378,7 +389,7 @@
LDFLAGS="-Wl,-E"
rb_cv_dlopen=yes;;
solaris*) if test "$GCC" = yes; then
-@@ -4539,7 +4869,8 @@ echo "configure:4501: checking whether O
+@@ -4539,7 +4873,8 @@ echo "configure:4501: checking whether O
rb_cv_dlopen=yes;;
sunos*) LDSHARED='ld -assert nodefinitions'
rb_cv_dlopen=yes;;
@@ -388,7 +399,7 @@
rb_cv_dlopen=yes;;
sysv4*) LDSHARED='ld -G'
rb_cv_dlopen=yes;;
-@@ -4550,6 +4881,12 @@ echo "configure:4501: checking whether O
+@@ -4550,6 +4885,12 @@ echo "configure:4501: checking whether O
osf*) LDSHARED="$CC -shared"
rb_cv_dlopen=yes ;;
linux*) LDSHARED="$CC -shared"
@@ -401,8 +412,13 @@
rb_cv_dlopen=yes ;;
freebsd*) LDSHARED="$CC -shared"
if test "$rb_cv_binary_elf" = yes; then
-@@ -4562,8 +4899,18 @@ echo "configure:4501: checking whether O
- netbsd*) LDSHARED='${CC} -shared'
+@@ -4559,11 +4900,22 @@ echo "configure:4501: checking whether O
+ test "$GCC" = yes && test "$rb_cv_prog_gnu_ld" = yes || LDSHARED="ld -Bshareable"
+ fi
+ rb_cv_dlopen=yes ;;
+- netbsd*) LDSHARED='${CC} -shared'
++ dragonfly*|netbsd*)
++ LDSHARED='${CC} -shared'
if test "$rb_cv_binary_elf" = yes; then
LDFLAGS="-Wl,-export-dynamic"
+ DLDFLAGS="$DLDFLAGS "'-Wl,-soname,$(.TARGET)'
@@ -420,7 +436,7 @@
openbsd*) LDSHARED="ld -Bforcearchive -Bshareable"
rb_cv_dlopen=yes ;;
bsdi3*) case "$CC" in
-@@ -5070,6 +5417,7 @@ if test "$enable_shared" = 'yes'; then
+@@ -5070,6 +5422,7 @@ if test "$enable_shared" = 'yes'; then
;;
linux*)
LIBRUBY_DLDFLAGS='-Wl,-soname,lib$(RUBY_INSTALL_NAME).so.$(MAJOR).$(MINOR)'
@@ -428,7 +444,16 @@
LIBRUBY_ALIASES='lib$(RUBY_INSTALL_NAME).so.$(MAJOR).$(MINOR) lib$(RUBY_INSTALL_NAME).so'
;;
freebsd*)
-@@ -5091,6 +5439,14 @@ if test "$enable_shared" = 'yes'; then
+@@ -5080,7 +5433,7 @@ if test "$enable_shared" = 'yes'; then
+ LIBRUBY_ALIASES=''
+ fi
+ ;;
+- netbsd*)
++ dragonfly*|netbsd*)
+ SOLIBS='$(LIBS)'
+ LIBRUBY_SO='lib$(RUBY_INSTALL_NAME).so.$(MAJOR)$(MINOR).$(TEENY)'
+ LIBRUBY_DLDFLAGS='-Wl,-soname,lib$(RUBY_INSTALL_NAME).so.$(MAJOR)$(MINOR)'
+@@ -5091,6 +5444,14 @@ if test "$enable_shared" = 'yes'; then
LIBRUBY_ALIASES=""
fi
;;
@@ -443,7 +468,7 @@
openbsd*)
SOLIBS='$(LIBS)'
;;
-@@ -5315,6 +5671,15 @@ EOF
+@@ -5315,6 +5676,15 @@ EOF
Home |
Main Index |
Thread Index |
Old Index