Bug 178842 - www/rubygem-actionpack make fails with ruby 2.0
Summary: www/rubygem-actionpack make fails with ruby 2.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Steve Wills
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-22 21:50 UTC by Joseph Coyle
Modified: 2013-12-20 17:01 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Coyle 2013-05-22 21:50:00 UTC
Trying to install www/rubygem-actionpack from ports collection results in an incompatible character set  warning.

N.B. I am using ruby 2.0 as the default ruby version

How-To-Repeat: make install output below

root@freebsd-vm:/usr/ports/www/rubygem-actionpack # make install
===>  Installing for rubygem-actionpack-3.2.13
===>   rubygem-actionpack-3.2.13 depends on package: rubygem-activesupport>=3.2.13 - found
===>   rubygem-actionpack-3.2.13 depends on package: rubygem-activemodel>=3.2.13 - found
===>   rubygem-actionpack-3.2.13 depends on package: rubygem-builder>=3.0.0 - found
===>   rubygem-actionpack-3.2.13 depends on package: rubygem-erubis>=2.7.0 - found
===>   rubygem-actionpack-3.2.13 depends on package: rubygem-journey>=1.0.1 - found
===>   rubygem-actionpack-3.2.13 depends on package: rubygem-rack>=1.4.0 - found
===>   rubygem-actionpack-3.2.13 depends on package: rubygem-rack-cache>=1.2 - found
===>   rubygem-actionpack-3.2.13 depends on package: rubygem-rack-test>=0.6.1 - found
===>   rubygem-actionpack-3.2.13 depends on package: rubygem-sprockets>=2.2.2 - found
===>   rubygem-actionpack-3.2.13 depends on file: /usr/local/bin/gem20 - found
===>   rubygem-actionpack-3.2.13 depends on file: /usr/local/bin/ruby20 - found
===>   Generating temporary packing list
===>  Checking if www/rubygem-actionpack already installed
Successfully installed actionpack-3.2.13
1 gem installed
Installing RDoc documentation for actionpack-3.2.13...
ERROR:  While generating documentation for actionpack-3.2.13
.. MESSAGE:   error generating ActionView/Helpers/NumberHelper.html: incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError)
.. RDOC args: --op /usr/local/lib/ruby/gems/2.0/doc/actionpack-3.2.13/rdoc lib --title actionpack-3.2.13 Documentation --quiet
*** [do-install] Error code 1

Stop in /usr/ports/www/rubygem-actionpack.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-05-22 21:50:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ruby

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Steve Wills freebsd_committer freebsd_triage 2013-06-01 16:42:53 UTC
This is a language issue. I haven't decided what the right way to solve it
is yet. The problem is FreeBSD doesn't set a language by default, so ruby
assumes ASCII. Try setting the environment variable LC_ALL=en_US.UTF-8 (or
whatever language you prefer) before building.

Steve
Comment 3 Steve Wills freebsd_committer freebsd_triage 2013-07-19 14:05:26 UTC
Responsible Changed
From-To: ruby->swills

I'll take it.
Comment 4 Steve Wills freebsd_committer freebsd_triage 2013-12-20 16:23:18 UTC
My previous comment was mistaken. This may have in fact been caused by the
presence of the rdoc gem. I've made some changes since then and am unable to
reproduce the issue in my test tree where 2.0 is default. I expect the issue
may return when rdoc is updated.

Steve
Comment 5 Steve Wills freebsd_committer freebsd_triage 2013-12-20 17:01:52 UTC
State Changed
From-To: open->closed

Closing for now, will test this when rdoc is updated.