Bug 7680
Summary: | localization in man distribution never gets into rpm | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | noa <noa-redhat-bugzilla> | ||||||||
Component: | man | Assignee: | Bernhard Rosenkraenzer <bero> | ||||||||
Status: | CLOSED RAWHIDE | QA Contact: | |||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | medium | ||||||||||
Version: | 6.1 | ||||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | All | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2000-10-03 12:35:50 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Attachments: |
|
Description
noa
1999-12-08 14:39:18 UTC
Does the i18n support in man actually work for you? It doesn't work here (can't find the message catalog files, even though they're just where they're supposed to be). yes, it works for me(tm). Please send over (or point me to) your src.rpm and I will try to track down the problem Created attachment 2254 [details]
rpm with support
Created attachment 2354 [details]
an updated buildroot patch
ok, i've found the problems. 1. the man-1.5h1-buildroot.patch breaks the Makefile not to install man (a fixed version called man-1.5h1-newbuildroot.patch is attached, the changesare small but a difference in the patch arguments makes comparison difficult (what do you use? i use 'diff -ur') 2. You also need to add /usr/share/locale to the %files list. (note that the use of %{_mandir} breaks the .specfile on redhat-6.2 systems, so i removed it) --- man.spec Wed Aug 9 12:34:26 2000 +++ man.spec.right Thu Aug 10 15:01:31 2000 @@ -8,7 +8,7 @@ Source1: makewhatis.cronweekly Source2: makewhatis.crondaily Patch1: man-1.5h1-confpath.patch -Patch2: man-1.5h1-buildroot.patch +Patch2: man-1.5h1-newbuildroot.patch Patch3: man-1.5-manconf.patch Patch4: man-1.5h1-make.patch Patch6: man-1.5g-security.patch @@ -103,7 +103,8 @@ /usr/bin/whatis /usr/sbin/makewhatis %config /etc/man.config -%{_mandir}/* +/usr/share/man/* +/usr/share/locale/* /usr/bin/man2html %attr(0775,root,man) %dir /var/cache/man Still doesn't work for me. First of all, man installs stuff to /usr/lib/locale; fixing that is simple of course. But after fixing it, the localization has no effect: [root@bero SPECS]# LANG=de man asdasdad No manual entry for sdasda Even though "No manual entry for %s" is translated in the de locale. i'm back from some time working with other things, and I have a working package here now. I'm attaching the whole src.rpm (tested on redhat-7) so hopefully you will get it to work. Comments on changes: man.spec - including the new man-1.5h1-i18n.patch - including '+lang all' in the arguments to ./configure - removing -D_GNU_SOURCE (why is that anyway? it creates a conflicting declaration of getline()) - adding /usr/share/locale/* to %files man-1.5h1-i18n.patch: things reverting earlier changes in the buildroot patch: - uncommenting messages and gencat/gencat targets and 'cd msgs; make install' in Makefile.in new changes - changing the default NLSPATH so that messagesfiles gets installed where they will be found in /usr/share/locale - adding $(PREFIX) to msgs/Makefile.in so that buildroot will work - the patch to makemsg.c mentioned first in this bugreport Created attachment 3658 [details]
updated src.rpm compared to the one included in redhat-7
Thanks, that did it. I've added some more minor modifications to the spec (marking the i18n files as such) and built it in rawhide (1.5h1-11). |