[oe-commits] org.oe.dev ruby: build more extensions (zlib, curses, openssl) - close #1725, #1699
hrw commit
openembedded-commits at lists.openembedded.org
Sun Jan 7 00:54:13 UTC 2007
ruby: build more extensions (zlib, curses, openssl) - close #1725, #1699
Author: hrw at openembedded.org
Branch: org.openembedded.dev
Revision: 7dbeb5e383fa2bee20df397e69caddaee824c644
ViewMTN: http://monotone.openembedded.org/revision.psp?id=7dbeb5e383fa2bee20df397e69caddaee824c644
Files:
1
packages/ruby/ruby_1.8.5.bb
Diffs:
#
# mt diff -rf416512d7123a4132ad3e489f8d789a7ba65fc9b -r7dbeb5e383fa2bee20df397e69caddaee824c644
#
#
#
# patch "packages/ruby/ruby_1.8.5.bb"
# from [63b00a2aed24686121945b43f906249cff563e9a]
# to [5acc2b680325662e9db94f132aa71c0f8bc6597c]
#
============================================================
--- packages/ruby/ruby_1.8.5.bb 63b00a2aed24686121945b43f906249cff563e9a
+++ packages/ruby/ruby_1.8.5.bb 5acc2b680325662e9db94f132aa71c0f8bc6597c
@@ -1,11 +1,25 @@ SECTION = "devel/ruby"
DESCRIPTION = "Ruby is an interpreted scripting language \
for quick and easy object-oriented programming."
SECTION = "devel/ruby"
-DEPENDS = "ruby-native"
+DEPENDS = "ruby-native zlib openssl"
PRIORITY = "optional"
LICENSE = "GPL"
-SRC_URI = "ftp://ftp.ruby-lang.org/pub/ruby/ruby-${PV}.tar.gz"
+SRC_URI = "ftp://ftp.ruby-lang.org/pub/ruby/ruby-${PV}.tar.gz \
+ file://extmk_run.patch;patch=1 \
+ file://disable_wide_getaddrinfo_check.patch;patch=1"
+
S = "${WORKDIR}/ruby-${PV}"
inherit autotools
+
+# This snippet lets compiled extensions which rely on external libraries,
+# such as zlib, compile properly. If we don't do this, then when extmk.rb
+# runs, it uses the native libraries instead of the target libraries, and so
+# none of the linking operations succeed -- which makes extconf.rb think
+# that the libraries aren't available and hence that the extension can't be
+# built.
+
+do_configure_prepend() {
+ sed -i "s#%%TARGET_CFLAGS%%#$TARGET_CFLAGS#; s#%%TARGET_LDFLAGS%%#$TARGET_LDFLAGS#" ${S}/common.mk
+}
More information about the Openembedded-commits
mailing list