Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jun 2013 17:24:59 GMT
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/179307: [PATCH] x11-toolkits/p5-Gtk2 fails to build in non-UTF8 enviroment
Message-ID:  <201306041724.r54HOxnc068370@oldred.freebsd.org>
Resent-Message-ID: <201306041730.r54HU1lJ096550@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         179307
>Category:       ports
>Synopsis:       [PATCH] x11-toolkits/p5-Gtk2 fails to build in non-UTF8 enviroment
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 04 17:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Pawel Pekala
>Release:        10.0-CURRENT
>Organization:
>Environment:
FreeBSD blaviken.slowicza.org 10.0-CURRENT FreeBSD 10.0-CURRENT #18 r251216M: Sat Jun  1 13:23:28 CEST 2013     corn@blaviken.slowicza.org:/usr/obj/usr/src/sys/BLAVIKEN64  amd64

>Description:
This port assumes UTF-8 build enviroment and fails otherwise:

[ CC build/constants.c ]
cp Gtk2.bs blib/arch/auto/Gtk2/Gtk2.bs
chmod 644 blib/arch/auto/Gtk2/Gtk2.bs
rm -f blib/arch/auto/Gtk2/Gtk2.so
[ LD blib/arch/auto/Gtk2/Gtk2.so ]
chmod 755 blib/arch/auto/Gtk2/Gtk2.so
Creating stock items POD...
Creating enum POD...
Malformed UTF-8 character (unexpected end of string) in length at tools/podifystockitems.pl line 52.
Malformed UTF-8 character (unexpected end of string) in length at tools/podifystockitems.pl line 52.
Malformed UTF-8 character (unexpected end of string) in length at tools/podifystockitems.pl line 52.
Malformed UTF-8 character (unexpected end of string) in length at tools/podifystockitems.pl line 52.
Malformed UTF-8 character (unexpected end of string) in length at tools/podifystockitems.pl line 52.
Malformed UTF-8 character (unexpected end of string) in length at tools/podifystockitems.pl line 52.
Malformed UTF-8 character (unexpected end of string) in length at tools/podifystockitems.pl line 52.
Malformed UTF-8 character (unexpected end of string) in length at tools/podifystockitems.pl line 52.
Malformed UTF-8 character (unexpected end of string) in length at tools/podifystockitems.pl line 52.
Malformed UTF-8 character (unexpected end of string) in length at tools/podifystockitems.pl line 52.
Malformed UTF-8 character (unexpected end of string) in length at tools/podifystockitems.pl line 52.
Malformed UTF-8 character (unexpected end of string) in length at tools/podifystockitems.pl line 52.
Malformed UTF-8 character (unexpected end of string) in length at tools/podifystockitems.pl line 52.
Malformed UTF-8 character (unexpected end of string) in length at tools/podifystockitems.pl line 52.
Malformed UTF-8 character (unexpected end of string) in length at tools/podifystockitems.pl line 52.
Malformed UTF-8 character (unexpected end of string) in length at tools/podifystockitems.pl line 52.
Generating POD...
Loaded 9 extra types from doctypes
Loaded 2 extra types from /usr/local/lib/perl5/site_perl/5.14.2/mach/Pango/Install/doctypes
Loaded 8 extra types from /usr/local/lib/perl5/site_perl/5.14.2/mach/Glib/Install/doctypes
Loaded 7 extra types from /usr/local/lib/perl5/site_perl/5.14.2/mach/Cairo/Install/doctypes
Malformed UTF-8 character (fatal) at /usr/local/lib/perl5/5.14.2/mach/Data/Dumper.pm line 682.
gmake: *** [build/podindex] B&#322;&#261;d 25
===> Compilation failed unexpectedly.
You have chosen to use multiple make jobs (parallelization) for all ports.
This port was not tested for this setting.  Please remove FORCE_MAKE_JOBS and
retry the build before reporting the failure to the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/local/tinderbox/portstrees/FreeBSD/ports/x11-toolkits/p5-Gtk2
[corn:ports/x11-toolkits/p5-Gtk2]# echo $LANG
pl_PL.ISO8859-2

Attached patch fixes build for me by forcing LANG=C while building.


>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -urN /usr/ports/x11-toolkits/p5-Gtk2/Makefile x11-toolkits/p5-Gtk2/Makefile
--- /usr/ports/x11-toolkits/p5-Gtk2/Makefile	2012-11-17 07:03:37.000000000 +0100
+++ x11-toolkits/p5-Gtk2/Makefile	2013-05-27 23:05:54.000000000 +0200
@@ -27,6 +27,7 @@
 PERL_CONFIGURE=	yes
 USE_GMAKE=	yes
 CONFIGURE_ENV+=	FORCE_GMAKE=yes
+MAKE_ENV+=	LANG=C
 
 post-install:
 	@cd ${WRKSRC}/blib/man3 && ${FIND} * -name "*.3" | ${SED} \


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306041724.r54HOxnc068370>