Bug 24264 - patches to make a2ps Japanese compatible
|
Bug#:
24264
|
Product: Gentoo Linux
|
Version: 1.4_rc4
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: cjk@gentoo.org
|
Reported By: chutz@gg3.net
|
|
Component: Applications
|
|
|
URL:
|
|
Summary: patches to make a2ps Japanese compatible
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2003-07-10 22:54 0000
|
Suggesting the following patch to the a2ps ebuild to make it print Japanese
text
as well.
I also include a patch to make a2ps send to stdout by default. For the
reasoning
behind it see:
http://mail.gnu.org/archive/html/bug-a2ps/2001-05/msg00000.html
Of course, I cannot make the devs apply this stdout patch, that I so much
desire ;)
Thanks. These two patches are now in CVS. I added >=sys-apps/sed-4 to DEPEND
since not all sed has -i option and Japanese README. Please make sure to add
>=sys-apps/sed-4 when you use sed with -i option. Btw, do you know how to stop
./configure saying an error? Japanese support patch rewrites Makefile.in and
configure.in so if cjk is enabled ./configure tries to recreate configure
script and so on but it fails because the author of a2ps seems to use a hacked
version of autoconf. It can be compiled even though it complains about the
error, but I'm not so happy with the error message ;(
So that's why I see lots of "cp file file.old; sed < file.old > file" in
ebuilds. It may be better to change the ebuild to use two files for sed-ing and
change the sed dependency back to the more liberal one.
About the autoconf problem -- way out of my expertise.
The new ebuild with Japanese support (4.13b-r5) fails to build on my system. I
have cjk support in my USE flags although I don't need it directly.
I've reverted back to 4.13b-r4.
I can do some tests if you want, after I finish my emerge --emptytree (which is
what brought the problem to light). So, for me the status of the ebuild is NOT
'Resolved, Fixed'.
Okay, what does your emerge log say? I've tested the ebuild on both stable and
unstable x86 with combinations of +/-nls, +/-tetex, +/-cjk, but it never failed
to emerge. I guess there might be a problem with autoconf/automake. Please
post the output of emerge a2ps, emerge info and emerge -pv a2ps.
It seems to be a problem with automake / autoconf indeed, but it only occurs
when I have cjk support on. When it is off, there is no problem.
By googling on 'AC_CHECK_MEMBERS a2ps' I found that this location in configure
has been a problem in the past, but I cannot see what's wrong as I don't have
any experience with autoconf
I will add the outputs of the commands you requested to the Attachments list.
Thanks. After all, I think a2ps should be rewritten to use more
recent autoconf. For the moment I added a patch to not run
autoconf, so please emerge sync and try it.
I spotted a typo in my attachment #14363 [details] that made its way in
a2ps-4.13b-r5.ebuild and a2ps-4.13c.ebuild
The "xpatch $PATCHES | die" line should not have a pipe (`|'), but an "or"
(`||')
I hope it is OK to simply reopen this bug and not file a separate one.
I corrected that when I committed the patch but I didn't write it explicitly in
bugzilla.
(Sorry if you haven't noticed it) Do you have any problem other than that?
I don't believe me... What was it called when you start seeing stuff that's not
there?