Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93568 - txt2regex fix for those not using NLS
Summary: txt2regex fix for those not using NLS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Gentoo Shell Tools project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-22 09:14 UTC by René Rhéaume (a.k.a. repzilon, rener)
Modified: 2005-05-23 01:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
NLS removal patch to apply conditionnaly (txt2regex-nonls.patch,764 bytes, patch)
2005-05-22 09:16 UTC, René Rhéaume (a.k.a. repzilon, rener)
Details | Diff
The ebuild (txt2regex-0.8-r1.ebuild,643 bytes, text/plain)
2005-05-22 09:19 UTC, René Rhéaume (a.k.a. repzilon, rener)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description René Rhéaume (a.k.a. repzilon, rener) 2005-05-22 09:14:59 UTC
I provide a patch and a fixed ebuild for txt2regex when NLS support is disabled.
The patch is applied conditionally when nls in not inside USE.

Reproducible: Didn't try
Steps to Reproduce:
1.
2.
3.
Comment 1 René Rhéaume (a.k.a. repzilon, rener) 2005-05-22 09:16:27 UTC
Created attachment 59550 [details, diff]
NLS removal patch to apply conditionnaly
Comment 2 René Rhéaume (a.k.a. repzilon, rener) 2005-05-22 09:19:01 UTC
Created attachment 59551 [details]
The ebuild

The ebuild also contains a workaround/fix for the <A4> character as described
in README.japanese from the upstream source. Enabled only when cjk is in USE.
Comment 3 Ciaran McCreesh 2005-05-22 12:10:02 UTC
Hrm. I don't like this. Upstream have decided not to make nls optional, and I'd
rather not override that for the sake of a few textfiles. It's not like it's
pulling in gettext or anything.
Comment 4 René Rhéaume (a.k.a. repzilon, rener) 2005-05-22 18:17:38 UTC
Please look again at the Makefile. The "install" target depends on "mo". The
"mo" target is defined on line 57. On line 62, a line withing the "mo"
instructions, there is a call to msgfmt and msgfmt is provided by gettext. So to
get NLS, one must have gettext.
Comment 5 Ciaran McCreesh 2005-05-23 01:37:29 UTC
Meh. Oops. I've included the patch and the cjk fix -- I did them in src_unpack
rather than src_install as per policy. I also added in the gettext dep.

-r1 committed, thanks.