Summary: | databases/ruby-xapian does not build with ruby 2.6 | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Matthias Fechner <mfechner> | ||||
Component: | Individual Port(s) | Assignee: | Po-Chuan Hsieh <sunpoet> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Many People | CC: | mfechner | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(sunpoet) |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 240094 | ||||||
Attachments: |
|
Description
Matthias Fechner
![]() ![]() Created attachment 206989 [details]
Fix ruby 2.6 build error.
I'm testing the similar patch. --- Makefile (revision 510163) +++ Makefile (working copy) @@ -50,4 +50,10 @@ post-patch: @${REINPLACE_CMD} -e 's|-lstdc++||g' ${WRKSRC}/configure -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${RUBY_VER} >= 2.6 +BUILD_DEPENDS+= rubygem-rdoc>=0:devel/rubygem-rdoc +.endif + +.include <bsd.port.post.mk> yes that would also be a solution, but as the aim is to switch ruby to version 2.6, it is maybe overkill. I tested it with ruby 2.5 and it builds fine, so there is maybe not really a need to include this check. But how you do it is your decision ;) A commit references this bug: Author: sunpoet Date: Sat Aug 31 07:58:03 UTC 2019 New revision: 510358 URL: https://svnweb.freebsd.org/changeset/ports/510358 Log: Fix build with Ruby 2.6 PR: 240162 Submitted by: mfechner Changes: head/databases/ruby-xapian/Makefile Committed. Thanks! |