ports/156119: x11-fonts/font-manager: ignore a problem caused by the locale module

Zhihao Yuan lichray at gmail.com
Sat Apr 2 01:40:10 UTC 2011


>Number:         156119
>Category:       ports
>Synopsis:       x11-fonts/font-manager: ignore a problem caused by the locale module
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 02 01:40:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Zhihao Yuan
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
Northern Illinois University
>Environment:
System: FreeBSD compaq.yuetime 8.2-STABLE FreeBSD 8.2-STABLE #0: Mon Mar 14 02:51:28 CDT 2011 root at compaq.yuetime:/usr/obj/usr/src/sys/HOUKAGO amd64


	
>Description:
	
	And old issue was reported here:
	https://code.google.com/p/font-manager/issues/detail?id=57

>How-To-Repeat:
	
>Fix:
	Some Python builds on FreeBSD/OpenBSD does not have the function 'bindtextdomain'. But the call to locale.bindtextdomain is not needed actually, since the subsequent call to gettext.bindtextdomain will handle everything. So it's safe to just ignore this error. 

	Note that, in this patch, I used PORTDATA to replace the long static list in pkg-plist. 

	

--- patch-font-manager-0.5.7_1 begins here ---
diff -rupN font-manager.orig/Makefile font-manager/Makefile
--- font-manager.orig/Makefile	2011-03-29 19:20:37.000000000 -0500
+++ font-manager/Makefile	2011-03-30 12:07:12.820259806 -0500
@@ -7,6 +7,7 @@
 
 PORTNAME=	font-manager
 PORTVERSION=	0.5.7
+PORTREVISION=	1
 CATEGORIES=	x11-fonts gnome
 MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
 
@@ -24,6 +25,7 @@ USE_GMAKE=	yes
 MAKE_JOBS_SAFE=	yes
 
 LICENSE_FILE=	${WRKSRC}/COPYING
+PORTDATA=	*
 
 OPTIONS=	REPORTLAB "Enable font-sampler (PDF sample sheet)" off \
 		NLS "Enable Native Language Support" on
diff -rupN font-manager.orig/files/patch-src-constants.py.in font-manager/files/patch-src-constants.py.in
--- font-manager.orig/files/patch-src-constants.py.in	1969-12-31 18:00:00.000000000 -0600
+++ font-manager/files/patch-src-constants.py.in	2011-03-30 12:04:58.661010359 -0500
@@ -0,0 +1,12 @@
+--- src/constants.py.in.orig	2010-12-16 23:27:59.000000000 -0600
++++ src/constants.py.in	2011-03-30 12:04:04.378692866 -0500
+@@ -51,8 +51,7 @@ import gettext
+ try:
+     locale.setlocale(locale.LC_ALL, '')
+     locale.bindtextdomain(PACKAGE, LOCALEDIR)
+-except locale.Error:
+-    pass
++except: pass
+ 
+ gettext.textdomain(PACKAGE)
+ gettext.install(PACKAGE, LOCALEDIR)
diff -rupN font-manager.orig/pkg-plist font-manager/pkg-plist
--- font-manager.orig/pkg-plist	2011-03-29 19:20:37.000000000 -0500
+++ font-manager/pkg-plist	2011-03-30 12:16:04.127971895 -0500
@@ -4,133 +4,7 @@ lib/font-manager/fontutils.so
 share/applications/font-manager.desktop
 share/applications/font-sampler.desktop
 @dirrmtry share/applications
-%%DATADIR%%/__init__.py
-%%DATADIR%%/__init__.pyc
-%%DATADIR%%/__init__.pyo
-%%DATADIR%%/constants.py
-%%DATADIR%%/constants.pyc
-%%DATADIR%%/constants.pyo
-%%DATADIR%%/core/__init__.py
-%%DATADIR%%/core/__init__.pyc
-%%DATADIR%%/core/__init__.pyo
-%%DATADIR%%/core/database.py
-%%DATADIR%%/core/database.pyc
-%%DATADIR%%/core/database.pyo
-%%DATADIR%%/core/fonts.py
-%%DATADIR%%/core/fonts.pyc
-%%DATADIR%%/core/fonts.pyo
-%%DATADIR%%/core/service.py
-%%DATADIR%%/core/service.pyc
-%%DATADIR%%/core/service.pyo
-%%DATADIR%%/data/actions.ui
-%%DATADIR%%/data/bdf.png
-%%DATADIR%%/data/blank.png
-%%DATADIR%%/data/bmp.png
-%%DATADIR%%/data/cff.png
-%%DATADIR%%/data/fnt.png
-%%DATADIR%%/data/font-information.ui
-%%DATADIR%%/data/font-janitor.ui
-%%DATADIR%%/data/font-manager.ui
-%%DATADIR%%/data/font-sampler.ui
-%%DATADIR%%/data/menus.ui
-%%DATADIR%%/data/opentype.png
-%%DATADIR%%/data/pcf.png
-%%DATADIR%%/data/pfr.png
-%%DATADIR%%/data/truetype.png
-%%DATADIR%%/data/type1.png
-%%DATADIR%%/data/type42.png
-%%DATADIR%%/help/C/about.page
-%%DATADIR%%/help/C/actions.page
-%%DATADIR%%/help/C/alias.page
-%%DATADIR%%/help/C/charmap.page
-%%DATADIR%%/help/C/compare.page
-%%DATADIR%%/help/C/directories.page
-%%DATADIR%%/help/C/export.page
-%%DATADIR%%/help/C/figures/add.png
-%%DATADIR%%/help/C/figures/charmap.png
-%%DATADIR%%/help/C/figures/clear.png
-%%DATADIR%%/help/C/figures/color-select.png
-%%DATADIR%%/help/C/figures/disable.png
-%%DATADIR%%/help/C/figures/enable.png
-%%DATADIR%%/help/C/figures/export.png
-%%DATADIR%%/help/C/figures/family-pane.png
-%%DATADIR%%/help/C/figures/font-preferences.png
-%%DATADIR%%/help/C/figures/fontinfo-dialog.png
-%%DATADIR%%/help/C/figures/fontinfo.png
-%%DATADIR%%/help/C/figures/logo.png
-%%DATADIR%%/help/C/figures/main-window.png
-%%DATADIR%%/help/C/figures/manage.png
-%%DATADIR%%/help/C/figures/preferences.png
-%%DATADIR%%/help/C/figures/preview-pane.png
-%%DATADIR%%/help/C/figures/remove.png
-%%DATADIR%%/help/C/figures/side-pane.png
-%%DATADIR%%/help/C/figures/statusbar.png
-%%DATADIR%%/help/C/fontconfig.page
-%%DATADIR%%/help/C/fontinfo.page
-%%DATADIR%%/help/C/index.page
-%%DATADIR%%/help/C/install.page
-%%DATADIR%%/help/C/introduction.page
-%%DATADIR%%/help/C/issues.page
-%%DATADIR%%/help/C/manage.page
-%%DATADIR%%/help/C/organize.page
-%%DATADIR%%/help/C/preview.page
-%%DATADIR%%/help/C/remove.page
-%%DATADIR%%/help/C/search.page
-%%DATADIR%%/help/C/ui.page
-%%DATADIR%%/main.py
-%%DATADIR%%/main.pyc
-%%DATADIR%%/main.pyo
-%%DATADIR%%/ui/__init__.py
-%%DATADIR%%/ui/__init__.pyc
-%%DATADIR%%/ui/__init__.pyo
-%%DATADIR%%/ui/actions.py
-%%DATADIR%%/ui/actions.pyc
-%%DATADIR%%/ui/actions.pyo
-%%DATADIR%%/ui/custom.py
-%%DATADIR%%/ui/custom.pyc
-%%DATADIR%%/ui/custom.pyo
-%%DATADIR%%/ui/export.py
-%%DATADIR%%/ui/export.pyc
-%%DATADIR%%/ui/export.pyo
-%%DATADIR%%/ui/fontconfig.py
-%%DATADIR%%/ui/fontconfig.pyc
-%%DATADIR%%/ui/fontconfig.pyo
-%%DATADIR%%/ui/fontinfo.py
-%%DATADIR%%/ui/fontinfo.pyc
-%%DATADIR%%/ui/fontinfo.pyo
-%%DATADIR%%/ui/janitor.py
-%%DATADIR%%/ui/janitor.pyc
-%%DATADIR%%/ui/janitor.pyo
-%%DATADIR%%/ui/library.py
-%%DATADIR%%/ui/library.pyc
-%%DATADIR%%/ui/library.pyo
-%%DATADIR%%/ui/preferences.py
-%%DATADIR%%/ui/preferences.pyc
-%%DATADIR%%/ui/preferences.pyo
-%%DATADIR%%/ui/previews.py
-%%DATADIR%%/ui/previews.pyc
-%%DATADIR%%/ui/previews.pyo
-%%DATADIR%%/ui/treeviews.py
-%%DATADIR%%/ui/treeviews.pyc
-%%DATADIR%%/ui/treeviews.pyo
-%%DATADIR%%/utils/__init__.py
-%%DATADIR%%/utils/__init__.pyc
-%%DATADIR%%/utils/__init__.pyo
-%%DATADIR%%/utils/common.py
-%%DATADIR%%/utils/common.pyc
-%%DATADIR%%/utils/common.pyo
-%%DATADIR%%/utils/xmlutils.py
-%%DATADIR%%/utils/xmlutils.pyc
-%%DATADIR%%/utils/xmlutils.pyo
 %%NLS%%share/locale/it/LC_MESSAGES/font-manager.mo
 %%NLS%%share/locale/ru/LC_MESSAGES/font-manager.mo
 %%NLS%%share/locale/sk/LC_MESSAGES/font-manager.mo
- at dirrm %%DATADIR%%/utils
- at dirrm %%DATADIR%%/ui
- at dirrm %%DATADIR%%/help/C/figures
- at dirrm %%DATADIR%%/help/C
- at dirrm %%DATADIR%%/help
- at dirrm %%DATADIR%%/data
- at dirrm %%DATADIR%%/core
- at dirrm %%DATADIR%%
 @dirrm lib/font-manager
--- patch-font-manager-0.5.7_1 ends here ---


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



More information about the freebsd-ports-bugs mailing list