Bug#304856: ruby1.6: FTBFS on GNU/kFreeBSD

2005-04-19 Thread akira yamada
Aurelien Jarno wrote:
 ruby1.6 currently fails to build of GNU/kFreeBSD. Please find below a
 patch to fix that.

 --- ruby1.6-1.6.8/debian/rules
 +++ ruby1.6-1.6.8/debian/rules
 @@ -50,6 +50,13 @@
  configure: configure-stamp
  configure-stamp: $(patched)
   dh_testdir
 + 
 + # update config.guess and config.sub
 + -test -r /usr/share/misc/config.sub  \
 + cp -f /usr/share/misc/config.sub $(BUILD_TREE)/config.sub
 + -test -r /usr/share/misc/config.guess  \
 + cp -f /usr/share/misc/config.guess $(BUILD_TREE)/config.guess
 + 
   # Add here commands to configure the package.
   cd $(BUILD_TREE)  autoconf
   cd $(BUILD_TREE)  \

On i386, ruby1.6 uses /usr/lib/ruby/1.6/i386-linux for
searching arch-depends-libraries.  But this patch changes
the dir to i386-linux-gnu.  It is wrong.

Is this change necessary for GNU/kFreeBSD?

-- 
akira yamada   URL:http://arika.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#304856: ruby1.6: FTBFS on GNU/kFreeBSD

2005-04-15 Thread Aurelien Jarno
Package: ruby1.6
Severity: wishlist
Tags: patch

ruby1.6 currently fails to build of GNU/kFreeBSD. Please find below a
patch to fix that.


diff -u ruby1.6-1.6.8/debian/control ruby1.6-1.6.8/debian/control
--- ruby1.6-1.6.8/debian/control
+++ ruby1.6-1.6.8/debian/control
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: akira yamada [EMAIL PROTECTED]
 Uploaders: Fumitoshi UKAI [EMAIL PROTECTED], Akira TAGOH [EMAIL PROTECTED]
-Build-Depends: autoconf, m4, bison, debhelper (= 3.0), dbs, patch, 
libgdbm-dev, libncurses5-dev, libreadline4-dev, tcl8.4-dev, tk8.4-dev
+Build-Depends: autoconf, autotools-dev, m4, bison, debhelper (= 3.0), dbs, 
patch, libgdbm-dev, libncurses5-dev, libreadline4-dev, tcl8.4-dev, tk8.4-dev
 Standards-Version: 3.5.8
 
 Package: ruby1.6
diff -u ruby1.6-1.6.8/debian/rules ruby1.6-1.6.8/debian/rules
--- ruby1.6-1.6.8/debian/rules
+++ ruby1.6-1.6.8/debian/rules
@@ -50,6 +50,13 @@
 configure: configure-stamp
 configure-stamp: $(patched)
dh_testdir
+   
+   # update config.guess and config.sub
+   -test -r /usr/share/misc/config.sub  \
+   cp -f /usr/share/misc/config.sub $(BUILD_TREE)/config.sub
+   -test -r /usr/share/misc/config.guess  \
+   cp -f /usr/share/misc/config.guess $(BUILD_TREE)/config.guess
+   
# Add here commands to configure the package.
cd $(BUILD_TREE)  autoconf
cd $(BUILD_TREE)  \
only in patch2:
unchanged:
--- ruby1.6-1.6.8.orig/debian/patches/812_configure.in-kfreebsd.patch
+++ ruby1.6-1.6.8/debian/patches/812_configure.in-kfreebsd.patch
@@ -0,0 +1,31 @@
+--- ruby-1.6.8/configure.in2005-04-10 01:26:21.0 +0200
 ruby-1.6.8/configure.in2005-04-10 02:15:42.0 +0200
+@@ -664,6 +664,8 @@
+ test $GCC = yes  test $rb_cv_prog_gnu_ld = yes 
|| LDSHARED=ld -Bshareable
+   fi
+   rb_cv_dlopen=yes ;;
++  k*bsd*-gnu) LDSHARED=$CC -shared
++  rb_cv_dlopen=yes ;;
+   netbsd*)LDSHARED='${CC} -shared'
+   if test $rb_cv_binary_elf = yes; then
+   LDFLAGS=-Wl,-export-dynamic
+@@ -790,6 +792,8 @@
+   STRIP='strip -S -x';;
+   gnu*)
+   STRIP='strip -S -x';;
++  k*bsd*-gnu)
++  STRIP='strip -S -x';;
+   nextstep*)
+   STRIP='strip -A -n';;
+   openstep*)
+@@ -943,6 +947,10 @@
+   LIBRUBY_ALIASES=''
+   fi
+   ;;
++k*bsd*-gnu)
++  
LIBRUBY_DLDFLAGS='-Wl,-soname,lib$(RUBY_INSTALL_NAME).so.$(MAJOR).$(MINOR)'
++  LIBRUBY_ALIASES='lib$(RUBY_INSTALL_NAME).so.$(MAJOR).$(MINOR) 
lib$(RUBY_INSTALL_NAME).so'
++  ;;
+ netbsd*)
+   SOLIBS='$(LIBS)'
+   LIBRUBY_SO='lib$(RUBY_INSTALL_NAME).so.$(MAJOR)$(MINOR).$(TEENY)'



-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: kfreebsd-i386 (i686)
Kernel: GNU/kFreeBSD 5.3-7
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]