ports/186313: [patch] Mk/bsd.ruby.mk - fix doc installation problems
Ryan Steinmetz
zi at FreeBSD.org
Fri Jan 31 22:50:00 UTC 2014
>Number: 186313
>Category: ports
>Synopsis: [patch] Mk/bsd.ruby.mk - fix doc installation problems
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Fri Jan 31 22:50:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Ryan Steinmetz
>Release:
>Organization:
>Environment:
>Description:
Various ruby ports will fail for me with:
ERROR: While generating documentation for mail-2.5.4
If you dig through the logs, you will come across character encoding issues like the following:
MESSAGE: "\xC3" from ASCII-8BIT to UTF-8
The solution is to define LANG and LC_ALL in the GEM_ENV.
I have run into this on multiple ports and have seen other people run into the same issue.
>How-To-Repeat:
>Fix:
Apply the attached patch
Patch attached with submission follows:
Index: bsd.ruby.mk
===================================================================
--- bsd.ruby.mk (revision 342088)
+++ bsd.ruby.mk (working copy)
@@ -186,7 +186,7 @@
RUBY_WRKSRC= ${WRKDIR}/ruby-${RUBY_DISTVERSION}
-GEM_ENV?= LC_CTYPE=UTF-8
+GEM_ENV?= LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_CTYPE=UTF-8
RUBY_CONFIGURE_ARGS+= --with-rubyhdrdir="${PREFIX}/include/ruby-1.9/" \
--with-rubylibprefix="${PREFIX}/lib/ruby" \
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list