From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Jun 24 11:50:06 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1629C106567A for ; Sun, 24 Jun 2012 11:50:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E2AE08FC0A for ; Sun, 24 Jun 2012 11:50:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q5OBo5EF059712 for ; Sun, 24 Jun 2012 11:50:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q5OBo5rh059711; Sun, 24 Jun 2012 11:50:05 GMT (envelope-from gnats) Resent-Date: Sun, 24 Jun 2012 11:50:05 GMT Resent-Message-Id: <201206241150.q5OBo5rh059711@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Pawel Pekala Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7BF0E1065672 for ; Sun, 24 Jun 2012 11:40:52 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 4D40A8FC14 for ; Sun, 24 Jun 2012 11:40:52 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q5OBeqxX087388 for ; Sun, 24 Jun 2012 11:40:52 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q5OBeqww087387; Sun, 24 Jun 2012 11:40:52 GMT (envelope-from nobody) Message-Id: <201206241140.q5OBeqww087387@red.freebsd.org> Date: Sun, 24 Jun 2012 11:40:52 GMT From: Pawel Pekala To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/169369: multimedia/libvpx fails to build on systems with non UTF-8 locale X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jun 2012 11:50:06 -0000 >Number: 169369 >Category: ports >Synopsis: multimedia/libvpx fails to build on systems with non UTF-8 locale >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: Sun Jun 24 11:50:05 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Pawel Pekala >Release: 10.0-CURRENT >Organization: >Environment: FreeBSD blaviken.slowicza.org 10.0-CURRENT FreeBSD 10.0-CURRENT #7: Sat Jun 23 10:34:22 CEST 2012 corn@blaviken.slowicza.org:/usr/obj/usr/src/sys/BLAVIKEN i386 >Description: Build fails due to tr(1) hackery in ${WRKSRC}/build/make/rtcd.sh file. This is probably caused by feeding UTF-8 encoded strings to tr(1) while systems locale is not UTF-8 and outcome in ${WRKSRC}/vpx_rtcd.h is garbled to the compiler. Error log: cc -O2 -pipe -fno-strict-aliasing -m32 -fomit-frame-pointer -O3 -fPIC -D_FORTIFY_SOURCE=0 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wpointer-arith -Wcast-qual -Wimplicit-function-declaration -Wuninitialized -Wunused-variable -Wno-unused-function -I. -I"/usr/ports/multimedia/libvpx/work/libvpx-v1.1.0" -c -o vp8/common/rtcd.c.o vp8/common/rtcd.c In file included from vp8/common/rtcd.c:12: ./vpx_rtcd.h:1:14: warning: extra tokens at end of #ifndef directive ./vpx_rtcd.h:2:14: warning: missing whitespace after the macro name cc -O2 -pipe -fno-strict-aliasing -m32 -fomit-frame-pointer -O3 -fPIC -D_FORTIFY_SOURCE=0 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wpointer-arith -Wcast-qual -Wimplicit-function-declaration -Wuninitialized -Wunused-variable -Wno-unused-function -I. -I"/usr/ports/multimedia/libvpx/work/libvpx-v1.1.0" -c -o vp8/common/loopfilter.c.o vp8/common/loopfilter.c In file included from vp8/common/rtcd.c:12: ./vpx_rtcd.h: In function 'vpx_rtcd': ./vpx_rtcd.h:559: error: 'HAS_MMY' undeclared (first use in this function) ./vpx_rtcd.h:559: error: (Each undeclared identifier is reported only once ./vpx_rtcd.h:559: error: for each function it appears in.) gmake[1]: *** [vp8/common/rtcd.c.o] Błąd 1 gmake[1]: *** Oczekiwanie na niezakończone zadania.... In file included from vp8/common/loopfilter.c:13: ./vpx_rtcd.h:1:14: warning: extra tokens at end of #ifndef directive ./vpx_rtcd.h:2:14: warning: missing whitespace after the macro name gmake: *** [.DEFAULT] Błąd 2 *** [do-build] Error code 1 Stop in /usr/ports/multimedia/libvpx. [corn:ports/multimedia/libvpx]# echo $LANG pl_PL.ISO8859-2 Port builds fine with LANG=pl_PL.UTF-8 >How-To-Repeat: >Fix: Patch attached with submission follows: diff -urN /usr/ports/multimedia/libvpx/files/patch-build_make_rtcd.sh ./files/patch-build_make_rtcd.sh --- /usr/ports/multimedia/libvpx/files/patch-build_make_rtcd.sh 1970-01-01 01:00:00.000000000 +0100 +++ ./files/patch-build_make_rtcd.sh 2012-06-24 13:13:47.000000000 +0200 @@ -0,0 +1,9 @@ +--- build/make/rtcd.sh.orig 2012-06-24 13:12:00.000000000 +0200 ++++ build/make/rtcd.sh 2012-06-24 13:13:01.000000000 +0200 +@@ -1,5 +1,6 @@ + #!/bin/sh + self=$0 ++LANG=C + + usage() { + cat <&2 >Release-Note: >Audit-Trail: >Unformatted: