FreeBSD Bugzilla – Attachment 140947 Details for
Bug 187652
databases/ruby-bdb: 'make configure' fails with Ruby 2.1.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch-databases_ruby-bdb
patch-databases_ruby-bdb (text/plain; charset=Shift_JIS), 1.72 KB, created by
Yasuhiro Kimura
on 2014-05-15 14:35:17 UTC
(
hide
)
Description:
patch-databases_ruby-bdb
Filename:
MIME Type:
Creator:
Yasuhiro Kimura
Created:
2014-05-15 14:35:17 UTC
Size:
1.72 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 354099) >+++ Makefile (working copy) >@@ -15,8 +15,11 @@ > MAINTAINER= knu@FreeBSD.org > COMMENT= Ruby interface to Oracle Berkeley DB revision 2 or later > >+LICENSE= RUBY >+ >+USES= shebangfix tar:bzip2 >+ > USE_BDB= yes >-USE_BZIP2= yes > > OPTIONS_DEFINE= DOCS EXAMPLES > OPTIONSFILE= ${PORT_DBDIR}/ruby-${PORTNAME}/options >@@ -35,7 +38,6 @@ > PLIST_FILES= %%RUBY_SITEARCHLIBDIR%%/bdb.so > PORTDOCS= * > PORTEXAMPLES= * >-USES= shebangfix > SHEBANG_FILES= examples/record.rb \ > examples/recno.rb \ > examples/zeroc.rb \ >@@ -55,33 +57,29 @@ > examples/basic.rb \ > examples/lock.rb > >- > NEED_ROOT= yes > > .include <bsd.port.pre.mk> > > post-patch: >-.if ${RUBY_VER} == 2.0 >+.if ${RUBY_VER} >= 2.0 > @${REINPLACE_CMD} -e '/remove_const/d' ${WRKSRC}/src/features.rb > .endif > >+.if ${RUBY_VER} >= 2.1 >+ @${REINPLACE_CMD} -e 's|RBASIC(obj)->klass = \(.*\);|RBASIC_SET_CLASS_RAW(obj, \1);|' -e 's|RCLASS(\([[:alnum:]_]*\))->m_tbl|RCLASS_M_TBL(\1)|g' ${WRKSRC}/bdbxml2/bdbxml.h ${WRKSRC}/src/common.c >+.endif > post-build: >-.if ${PORT_OPTIONS:MDOCS} > (cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} \ > ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} rdoc) >-.endif > > post-install: > ${STRIP_CMD} ${STAGEDIR}${RUBY_SITEARCHLIBDIR}/bdb.so >-.if ${PORT_OPTIONS:MDOCS} > ${MKDIR} ${STAGEDIR}${DOCSDIR}/doc > (cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}) > (cd ${WRKSRC}/docs/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/doc) >-.endif >-.if ${PORT_OPTIONS:MEXAMPLES} > ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/ > (cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} "! -empty") >-.endif > > regression-test: build > @${MKDIR} ${BUILD_WRKSRC}/tmp
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 187652
:
140945
|
140946
|
140947
|
144719