| Summary: | Fix lang/ruby21 installed header to fix signed shift warnings for other ports (e.g. devel/rubygem-thrift) | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Dimitry Andric <dim> | ||||
| Component: | Individual Port(s) | Assignee: | freebsd-ruby (Nobody) <ruby> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Some People | CC: | mmoll, sunpoet | ||||
| Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(ruby) |
||||
| Version: | Latest | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 201377 | ||||||
| Attachments: |
|
||||||
|
Description
Dimitry Andric
2015-08-25 18:47:18 UTC
https://github.com/ruby/ruby/commit/1efb3c31b731e99627bbc0da13dfd3463bb67c67 did change this i upstream to #define INT2FIX(i) (((VALUE)(i))<<1 | FIXNUM_FLAG) could you check if that solves the problem with clang 3.7.0? (In reply to Michael Moll from comment #1) > https://github.com/ruby/ruby/commit/1efb3c31b731e99627bbc0da13dfd3463bb67c67 > did change this i upstream to > #define INT2FIX(i) (((VALUE)(i))<<1 | FIXNUM_FLAG) > could you check if that solves the problem with clang 3.7.0? Yes, that is fine too. Even better that it comes from upstream. :) I applied the complete diff you mentioned, but it may be a bit overkill. It should be enough to just patch the public ruby.h header. Btw, I think this also applies to the other ruby ports? Let's stick with the one line patch to ruby.h then, if that's sufficient. :) It would also be applicable to lang/ruby20, as lang/ruby22 already includes the whole upstream change. A commit references this bug: Author: mmoll Date: Sun Sep 20 21:30:41 UTC 2015 New revision: 397464 URL: https://svnweb.freebsd.org/changeset/ports/397464 Log: fix Ruby 2.0 and 2.1 header for clang 3.7 2.2 already had this change in upstream PR: 202660 Submitted by: dim (different version) Obtained from: Ruby SVN repository (r47996) Changes: head/lang/ruby20/files/patch-include_ruby_ruby.h head/lang/ruby21/files/patch-include_ruby_ruby.h commited, thanks! |