multimedia/vlc: fix scrambled output with non-en locales.

Thierry Thomas thierry at FreeBSD.org
Sun Aug 12 07:00:18 PDT 2007


>Submitter-Id:	current-users
>Originator:	Thierry Thomas
>Organization:	Kabbale Eros
>Confidential:	no 
>Synopsis:	multimedia/vlc: fix scrambled output with non-en locales.
>Severity:	non-critical
>Priority:	medium
>Category:	ports
>Class:		update
>Release:	FreeBSD 6.2-STABLE i386
>Environment:
System: FreeBSD graf.pompo.net 6.2-STABLE FreeBSD 6.2-STABLE #0: Sun May 20 15:59:36 CEST 2007 thierry at graf.pompo.net:/usr/obj/usr/src/sys/GRAF070519 i386


	
>Description:
	vlc-0.8.6c comes with pre-generated messages catalogs files
	which seem uncompatible with our gettext, and that produces
	scrambled outputs when LC_ALL is defined to a non-english
	locale.

	The following patch remove these pre-generated catalogs, and
	correct ones are re-generated during the build process.

>How-To-Repeat:
	Set and export LC_ALL to fr_FR.ISO8859-15, or any locale
	supported by VLC, and launch the GUI, or run `vlc -h ', and
	examine the strings!

>Fix:
	Please apply the following patch.

	Remark: this patch bumps PORTREVISION from 3 to 4, because I
	have applied it after the patch proposed in PR ports/115428 ;
	If it gets committed before, just re-order these numbers.

--- vlc.diff begins here ---
diff -urN multimedia/vlc.orig/Makefile multimedia/vlc/Makefile
--- multimedia/vlc.orig/Makefile	Sat Aug 11 19:57:07 2007
+++ multimedia/vlc/Makefile	Sun Aug 12 14:06:56 2007
@@ -10,7 +10,7 @@
 
 PORTNAME=	vlc
 DISTVERSION=	0.8.6c
-PORTREVISION=	3
+PORTREVISION=	4
 PORTEPOCH=	2
 CATEGORIES=	multimedia audio ipv6 net www
 MASTER_SITES=	http://download.videolan.org/pub/videolan/vlc/${DISTVERSION}/ \
diff -urN multimedia/vlc.orig/Makefile.inc multimedia/vlc/Makefile.inc
--- multimedia/vlc.orig/Makefile.inc	Sat Aug 11 19:57:10 2007
+++ multimedia/vlc/Makefile.inc	Sun Aug 12 14:10:39 2007
@@ -269,6 +269,8 @@
 		${WRKSRC}/loader/module.c
 .endif
 	@${REINPLACE_CMD} -e 's|dts_free|dca_free|g' ${WRKSRC}/configure
+# remove badly formatted pre-generated messages catalogs
+	${FIND} ${WRKSRC} -name "*.gmo" -delete
 
 pre-build:
 	@${REINPLACE_CMD} -e 's|/intl/libintl.a|${WRKSRC}/intl/libintl.a|' \
--- vlc.diff ends here ---



More information about the freebsd-multimedia mailing list