(I apologise if this isn't the place to follow up bugreports --- I couldn't
find a way to get a login on the bugreport page, so I couldn't post this
information as a followup to the original bug.)

I've just tried installing the j2{re,sdk}1.3.1 blackdown .debs, and
encountered the problem someone else has reported at

http://www.blackdown.org/cgi-bin/jdk/incoming?id=2707;user=guest;selectid=2707

The problem is that the manpages installed are the Japanese ones, and the
English ones aren't present in the package at all, so `man appletviewer` shows
the Japanese manpage.

I decided to try the current 1.4 beta version, and as I am still using Debian
Woody, my libc6 version is too low for it, so I had to build it from source
instead.  As a result of this, I found out what the problem is.

The manpages, when they are unpacked from the binary file, are of the form

  j2sdk1.4.1/man/man1/foo.j2se14.1.gz

for the English ones, and 

  j2sdk1.4.1/man/ja_JP.eucJP/man1/foo.j2se14.1.gz

for Japanese

All of these filenames are combined into the lists in
debian/j2{re,sdk}1.4.manpages, with the Japanese ones appearing after the
English ones.  However, when the build script calls `dh_installman -a', as the
files have the same names, the later ones (the Japanese ones) are installed in
the same place (/usr/share/man/man1) as the English ones, and overwrite them.

The way that I have fixed this for my own build is to rename each set of
files, to the format foo.1.gz for the English ones, and foo.ja.1.gz for the
Japanese ones.  Then the English ones are placed in /usr/share/man/man1, while
the Japanese ones go to /usr/share/man/ja/man1/, as appears to be the standard
for Debian.

This suggests that the longwinded perl command called just after unpacking:

        perl -MFile::Find -e \
                'find sub {-f and \
                ($$d=$$_)=~s!([0-9].gz)!j2se$(tag).$$1! and \
                rename $$_, $$d;}, @ARGV;' $(source)/man

is redundant (the man/ directory looks exactly the same if I comment that out
before calling 'debian/rules build').  Replacing it with the following lines:

  for page in $(source)/man/man1/*.1.gz ; 
    do mv $page ${page//.j2se14/} ;
  done
  for page in $(source)/man/ja_JP.eucJP/man1/*.1.gz ; 
    do mv $page ${page//.j2se14/.ja} ;
  done

would have the desired effect.

Glyn

-- 
I like it inside. It's nice there. There are sofas, drinks, cigarettes, books.
There is shade. Outside there's nothing but the sun, the mindless drudgery of
suntan cultivation, and the perpetual sound of droning voices, yapping dogs and
convention shouting at you to enjoy yourself.


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to