Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23131 - vflib-2.25.6.ebuild (New Package)
Summary: vflib-2.25.6.ebuild (New Package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: CJK Team
URL: http://typehack.aial.hiroshima-u.ac.j...
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks: 23130
  Show dependency tree
 
Reported: 2003-06-19 13:31 UTC by Mamoru KOMACHI (RETIRED)
Modified: 2003-07-25 12:11 UTC (History)
0 users

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


Attachments
vflib-2.25.6.ebuild (vflib-2.25.6.ebuild,885 bytes, text/plain)
2003-06-19 13:31 UTC, Mamoru KOMACHI (RETIRED)
Details
vflib-2.25.6.ebuild (vflib-2.25.6.ebuild,957 bytes, text/plain)
2003-06-19 13:49 UTC, Mamoru KOMACHI (RETIRED)
Details
vflib-2.25.6-gentoo.diff (vflib-2.25.6-gentoo.diff,531 bytes, text/plain)
2003-06-19 13:49 UTC, Mamoru KOMACHI (RETIRED)
Details
vflib-2.25.6.ebuild.patch (vflib-2.25.6.ebuild.patch,783 bytes, patch)
2003-06-27 21:18 UTC, Mamoru KOMACHI (RETIRED)
Details | Diff
vflib-2.25.6-gentoo.diff (vflib-2.25.6-gentoo.diff,838 bytes, text/plain)
2003-06-27 21:19 UTC, Mamoru KOMACHI (RETIRED)
Details
vflib-2.25.6.ebuild (vflib-2.25.6.ebuild,1.04 KB, text/plain)
2003-07-24 10:31 UTC, Mamoru KOMACHI (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mamoru KOMACHI (RETIRED) gentoo-dev 2003-06-19 13:31:00 UTC
Hi.

VFlib is a font rasteriser library that supports
multiple font formats. For instance, xdvik (bug #23130)
uses this library and displays TrueType fonts beautifully
and smoothly.

I suggest media-libs/vflib.

regards,

Mamoru KOMACHI aka usata
Comment 1 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-06-19 13:31:59 UTC
Created attachment 13564 [details]
vflib-2.25.6.ebuild
Comment 2 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-06-19 13:49:08 UTC
Created attachment 13566 [details]
vflib-2.25.6.ebuild

Sorry, that was not the right version I made.
(It doesn't patch up vfontcap correctly)
Comment 3 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-06-19 13:49:47 UTC
Created attachment 13567 [details]
vflib-2.25.6-gentoo.diff
Comment 4 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-06-21 00:16:16 UTC
I tested the ebuild on alpha, ppc and sparc and it worked 
correctly, so please add ~alpha, ~ppc and ~sparc to the ebuild.
Comment 5 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-06-27 21:18:23 UTC
Created attachment 13949 [details, diff]
vflib-2.25.6.ebuild.patch

This patch includes

1. KEYWORDS change from "~x86" to "~x86 ~alpha ~ppc ~sparc"
2. RDEPEND change due to the license issue in kochi-fonts
3. Fix VFlib runtimedir version mismatch
Comment 6 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-06-27 21:19:25 UTC
Created attachment 13950 [details]
vflib-2.25.6-gentoo.diff
Comment 7 Timmy Douglas 2003-07-23 11:49:32 UTC
>>> media-libs/vflib-2.25.6 merged.
>>> emerge (2 of 2) dev-tex/xdvik-22.40y to /
>>> Downloading ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo/distfiles/xdvik-22.40y-j1.17.patch.gz
--14:45:37--  ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo/distfiles/xdvik-22.40y-j1.17.patch.gz
           => `/usr/portage/distfiles/xdvik-22.40y-j1.17.patch.gz'
Resolving ftp.gtlib.cc.gatech.edu... done.
Connecting to ftp.gtlib.cc.gatech.edu[130.207.108.134]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /pub/gentoo/distfiles ... done.
==> PASV ... done.    ==> RETR xdvik-22.40y-j1.17.patch.gz ... done.

    [ <=>                                 ] 189,833        1.34M/s             

14:45:39 (1.34 MB/s) - `/usr/portage/distfiles/xdvik-22.40y-j1.17.patch.gz' saved [189833]

>>> md5 ;-) xdvik-22.40y.tar.gz
>>> No message digest entry found for archive"xdvik-22.40y-j1.17.patch.gz."
!!! Most likely a temporary problem. Try 'emerge rsync' again later.
!!! If you are certain of the authenticity of the file then you may type
!!! the following to generate a new digest:
!!!   ebuild /usr/portage/category/package/package-version.ebuild digest


from typing:  ACCEPT_KEYWORDS="~x86" USE="cjk" emerge xdvik

I'm not sure what to do....
Comment 8 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-07-23 12:31:31 UTC
Thank you for testing the ebuild. If you don't set USE="cjk" in 
/etc/make.conf, go to your local portage tree and run

# env ACCEPT_KEYWORDS="~x86" USE="cjk" ebuild xdvik-22.40y.ebuild digest

as root. It will generate correct Manifest and digest files
and then you can emerge xdvik with cjk support.
Comment 9 Timmy Douglas 2003-07-23 13:01:40 UTC
root:r66h13:/usr/portage/dev-tex/xdvik$ env ACCEPT_KEYWORDS="~x86" USE="cjk" ebuild xdvik-22.40y.ebuild digest

then:

env ACCEPT_KEYWORDS="~x86" USE="cjk" emerge xdvik

but I still get the errors aboun the min10 font.
Calculating dependencies ...done!
[ebuild   R  ] media-libs/vflib-2.25.6 
[ebuild   R  ] media-fonts/kochi-substitute-20030628 
[ebuild   R  ] dev-tex/dvipdfmx-20030313 
[ebuild   R  ] dev-tex/ptex-3.1.2 
[ebuild   R  ] dev-tex/xdvik-22.40y 

I had USE=cjk in my make.conf and tried doing these:
emerge vflib && emerge xdvik && emerge dvipdfmx

but I don't think it solved the problem with the min10 font...
Comment 10 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-07-23 13:57:06 UTC
Well, the error messages as you described sounds like 
xdvik was not compiled with VFlib support, but didn't 
recompiling xdvik with VFlib support (USE="cjk") solve
the problem? What does 

$ ldd /usr/bin/xdvi.bin

 and 

$ locate min10

say? In my case, it says:rico% emerge -pv xdvik ptex dvipdfmx vflib kochi-substitute

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] app-text/xdvik-22.40y  +cjk +libwww 
[ebuild   R   ] app-text/ptex-3.1.2  +ncurses +X +libwww +png 
[ebuild   R   ] app-text/dvipdfmx-20030313  
[ebuild   R   ] media-libs/vflib-2.25.6  
[ebuild   R   ] media-fonts/kochi-substitute-20030628  +X 


rico% ldd /usr/bin/xdvi.bin 
        libwwwxml.so.0 => /usr/lib/libwwwxml.so.0 (0x4001c000)
        libxmltok.so.0 => /usr/lib/libxmltok.so.0 (0x40026000)
        libxmlparse.so.0 => /usr/lib/libxmlparse.so.0 (0x4003a000)
        libwwwzip.so.0 => /usr/lib/libwwwzip.so.0 (0x40043000)
        libwwwinit.so.0 => /usr/lib/libwwwinit.so.0 (0x40046000)
        libwwwapp.so.0 => /usr/lib/libwwwapp.so.0 (0x40049000)
        libwwwhtml.so.0 => /usr/lib/libwwwhtml.so.0 (0x4005f000)
        libwwwtelnet.so.0 => /usr/lib/libwwwtelnet.so.0 (0x4006b000)
        libwwwnews.so.0 => /usr/lib/libwwwnews.so.0 (0x4006e000)
        libwwwhttp.so.0 => /usr/lib/libwwwhttp.so.0 (0x40076000)
        libwwwmime.so.0 => /usr/lib/libwwwmime.so.0 (0x40088000)
        libwwwgopher.so.0 => /usr/lib/libwwwgopher.so.0 (0x40092000)
        libwwwftp.so.0 => /usr/lib/libwwwftp.so.0 (0x40097000)
        libwwwfile.so.0 => /usr/lib/libwwwfile.so.0 (0x4009f000)
        libwwwdir.so.0 => /usr/lib/libwwwdir.so.0 (0x400a9000)
        libwwwcache.so.0 => /usr/lib/libwwwcache.so.0 (0x400ae000)
        libwwwstream.so.0 => /usr/lib/libwwwstream.so.0 (0x400b8000)
        libwwwmux.so.0 => /usr/lib/libwwwmux.so.0 (0x400be000)
        libwwwtrans.so.0 => /usr/lib/libwwwtrans.so.0 (0x400c3000)
        libwwwcore.so.0 => /usr/lib/libwwwcore.so.0 (0x400c9000)
        libwwwutils.so.0 => /usr/lib/libwwwutils.so.0 (0x400f0000)
        libmd5.so.0 => /usr/lib/libmd5.so.0 (0x400f7000)
        libdl.so.2 => /lib/libdl.so.2 (0x400fa000)
        libz.so.1 => /usr/lib/libz.so.1 (0x400fd000)
        libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6 (0x4010f000)
        libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x4013d000)
        libt1.so.1 => /usr/lib/libt1.so.1 (0x40208000)
        libXaw.so.7 => /usr/X11R6/lib/libXaw.so.7 (0x40258000)
        libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x402af000)
        libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x402c4000)
        libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40311000)
        libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x4031a000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40331000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4033e000)
        libVFlib2.so.24 => /usr/lib/libVFlib2.so.24 (0x40415000)
        libttf.so.2 => /usr/lib/libttf.so.2 (0x40436000)
        libm.so.6 => /lib/libm.so.6 (0x4045f000)
        libc.so.6 => /lib/libc.so.6 (0x40481000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
        libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x405ae000)
rico% locate min10
/usr/share/VFlib/2.25.6/jTeX/jfmsrc/min10.pl
/usr/share/VFlib/2.25.6/jTeX/jfmsrc/min10.tfm
/usr/share/VFlib/2.25.6/jTeX/jfmsrc/min10.nwfadj
/usr/share/texmf/fonts/vf/ptex/tmin10.vf
/usr/share/texmf/fonts/vf/ptex/min10.vf
/usr/share/texmf/fonts/vf/ptex/nmin10.vf
/usr/share/texmf/fonts/tfm/ptex/nmin10.tfm
/usr/share/texmf/fonts/tfm/ptex/min10.tfm
/usr/share/texmf/fonts/tfm/ptex/tmin10.tfm
/usr/share/texmf/fonts/source/ptex/tmin10.pl
/usr/share/texmf/fonts/source/ptex/min10.pl
/usr/share/texmf/fonts/source/ptex/nmin10.pl

What about yours?
Comment 11 Timmy Douglas 2003-07-23 15:57:08 UTC
root:r66h13:/usr/portage/dev-tex/xdvik$ ldd /usr/bin/xdvi.bin 
        libwwwxml.so.0 => /usr/lib/libwwwxml.so.0 (0x40026000)
        libxmltok.so.0 => /usr/lib/libxmltok.so.0 (0x40032000)
        libxmlparse.so.0 => /usr/lib/libxmlparse.so.0 (0x4004e000)
        libwwwzip.so.0 => /usr/lib/libwwwzip.so.0 (0x40057000)
        libwwwinit.so.0 => /usr/lib/libwwwinit.so.0 (0x4005a000)
        libwwwapp.so.0 => /usr/lib/libwwwapp.so.0 (0x4005d000)
        libwwwhtml.so.0 => /usr/lib/libwwwhtml.so.0 (0x40073000)
        libwwwtelnet.so.0 => /usr/lib/libwwwtelnet.so.0 (0x40080000)
        libwwwnews.so.0 => /usr/lib/libwwwnews.so.0 (0x40083000)
        libwwwhttp.so.0 => /usr/lib/libwwwhttp.so.0 (0x4008b000)
        libwwwmime.so.0 => /usr/lib/libwwwmime.so.0 (0x400a0000)
        libwwwgopher.so.0 => /usr/lib/libwwwgopher.so.0 (0x400aa000)
        libwwwftp.so.0 => /usr/lib/libwwwftp.so.0 (0x400af000)
        libwwwfile.so.0 => /usr/lib/libwwwfile.so.0 (0x400b8000)
        libwwwdir.so.0 => /usr/lib/libwwwdir.so.0 (0x400c2000)
        libwwwcache.so.0 => /usr/lib/libwwwcache.so.0 (0x400c8000)
        libwwwstream.so.0 => /usr/lib/libwwwstream.so.0 (0x400d2000)
        libwwwmux.so.0 => /usr/lib/libwwwmux.so.0 (0x400da000)
        libwwwtrans.so.0 => /usr/lib/libwwwtrans.so.0 (0x400de000)
        libwwwcore.so.0 => /usr/lib/libwwwcore.so.0 (0x400e4000)
        libwwwutils.so.0 => /usr/lib/libwwwutils.so.0 (0x4010c000)
        libmd5.so.0 => /usr/lib/libmd5.so.0 (0x40114000)
        libdl.so.2 => /lib/libdl.so.2 (0x40117000)
        libz.so.1 => /usr/lib/libz.so.1 (0x4011a000)
        libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6 (0x40127000)
        libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x40155000)
        libt1.so.1 => /usr/lib/libt1.so.1 (0x40210000)
        libXaw.so.7 => /usr/X11R6/lib/libXaw.so.7 (0x40259000)
        libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x402b7000)
        libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x402cd000)
        libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x4031f000)
        libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x40328000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40340000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40350000)
        libm.so.6 => /lib/libm.so.6 (0x4042f000)
        libc.so.6 => /lib/libc.so.6 (0x40450000)
        libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x40576000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

root:r66h13:/usr/portage/media-libs/vflib$ locate min10
/usr/share/texmf/fonts/source/ptex/min10.pl
/usr/share/texmf/fonts/source/ptex/nmin10.pl
/usr/share/texmf/fonts/source/ptex/tmin10.pl
/usr/share/texmf/fonts/tfm/ptex/min10.tfm
/usr/share/texmf/fonts/tfm/ptex/nmin10.tfm
/usr/share/texmf/fonts/tfm/ptex/tmin10.tfm
/usr/share/texmf/fonts/vf/ptex/min10.vf
/usr/share/texmf/fonts/vf/ptex/nmin10.vf
/usr/share/texmf/fonts/vf/ptex/tmin10.vf
/usr/share/VFlib/2.25.6/jTeX/jfmsrc/min10.nwfadj
/usr/share/VFlib/2.25.6/jTeX/jfmsrc/min10.pl
/usr/share/VFlib/2.25.6/jTeX/jfmsrc/min10.tfm



root:r66h13:/usr/portage/media-libs/vflib$ emerge xdvik
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-tex/xdvik-22.40y to /
>>> md5 ;-) xdvik-22.40y.tar.gz
>>> md5 ;-) xdvik-22.40y-j1.17.patch.gz
>>> Unpacking source...
>>> Unpacking xdvik-22.40y.tar.gz
cjk
/usr/sbin/ebuild.sh: epatch: command not found
>>> Source unpacked.
libwww
creating cache ./config.cache
checking whether make sets ${MAKE}... yes
checking for gcc... gcc


epatch?
Comment 12 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-07-24 03:01:08 UTC
Ah.. from the output of your ldd /usr/bin/xdvi.bin, I can tell
that your xdvik was not compiled with VFlib. I forgot to add
inherit eutils at the top of xdvik-22.40y.ebuild, so it happened.
Sorry for that (but I wonder why epatch works for me even when
ebuilds do not contain inherit eutils). Please add 

inherit eutils

before IUSE="cjk libwww" in xdvik-22.40y.ebuild and try emerge 
xdvik with USE="cjk", then emerge will be able to find epatch 
and patch successfully.
Comment 13 Timmy Douglas 2003-07-24 09:54:40 UTC
ah that works! now it is linked to VFlib:


root:r66h13:/usr/portage/media-libs/vflib$ ldd /usr/bin/xdvi.bin 
        libwwwxml.so.0 => /usr/lib/libwwwxml.so.0 (0x40026000)
        libxmltok.so.0 => /usr/lib/libxmltok.so.0 (0x40032000)
        libxmlparse.so.0 => /usr/lib/libxmlparse.so.0 (0x4004e000)
        libwwwzip.so.0 => /usr/lib/libwwwzip.so.0 (0x40057000)
        libwwwinit.so.0 => /usr/lib/libwwwinit.so.0 (0x4005a000)
        libwwwapp.so.0 => /usr/lib/libwwwapp.so.0 (0x4005d000)
        libwwwhtml.so.0 => /usr/lib/libwwwhtml.so.0 (0x40073000)
        libwwwtelnet.so.0 => /usr/lib/libwwwtelnet.so.0 (0x40080000)
        libwwwnews.so.0 => /usr/lib/libwwwnews.so.0 (0x40083000)
        libwwwhttp.so.0 => /usr/lib/libwwwhttp.so.0 (0x4008b000)
        libwwwmime.so.0 => /usr/lib/libwwwmime.so.0 (0x400a0000)
        libwwwgopher.so.0 => /usr/lib/libwwwgopher.so.0 (0x400aa000)
        libwwwftp.so.0 => /usr/lib/libwwwftp.so.0 (0x400af000)
        libwwwfile.so.0 => /usr/lib/libwwwfile.so.0 (0x400b8000)
        libwwwdir.so.0 => /usr/lib/libwwwdir.so.0 (0x400c2000)
        libwwwcache.so.0 => /usr/lib/libwwwcache.so.0 (0x400c8000)
        libwwwstream.so.0 => /usr/lib/libwwwstream.so.0 (0x400d2000)
        libwwwmux.so.0 => /usr/lib/libwwwmux.so.0 (0x400da000)
        libwwwtrans.so.0 => /usr/lib/libwwwtrans.so.0 (0x400de000)
        libwwwcore.so.0 => /usr/lib/libwwwcore.so.0 (0x400e4000)
        libwwwutils.so.0 => /usr/lib/libwwwutils.so.0 (0x4010c000)
        libmd5.so.0 => /usr/lib/libmd5.so.0 (0x40114000)
        libdl.so.2 => /lib/libdl.so.2 (0x40117000)
        libz.so.1 => /usr/lib/libz.so.1 (0x4011a000)
        libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6 (0x40127000)
        libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x40155000)
        libt1.so.1 => /usr/lib/libt1.so.1 (0x40210000)
        libXaw.so.7 => /usr/X11R6/lib/libXaw.so.7 (0x40259000)
        libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x402b7000)
        libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x402cd000)
        libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x4031f000)
        libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x40328000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40340000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40350000)
        libVFlib2.so.24 => /usr/lib/libVFlib2.so.24 (0x4042f000)
        libttf.so.2 => /usr/lib/libttf.so.2 (0x4044e000)
        libm.so.6 => /lib/libm.so.6 (0x40475000)
        libc.so.6 => /lib/libc.so.6 (0x40496000)
        libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x405bc000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)



but,

timmy:r66h13:~/docs/eng1102$ xdvi final-draft2.dvi 
Unexpected error in "read_ZEIT_char()"

(I get that when I move to a page with japanese and then it crashes the program)
If I use latex instead of platex to generate the file, it doesn't display the japanese but it doesn't crash either...

Comment 14 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-07-24 10:31:18 UTC
Created attachment 14960 [details]
vflib-2.25.6.ebuild

Good on you :-)

The last error, Unexpected error in "read_ZEIT_char()"
is typically caused by inappropriate font specification.
Have a look at the top of /usr/share/VFlib/2.25.6/vfontcap
and what does it say about min: and goth:. My vfontcap says:

min:\
	:ft=freetype:\
	:ff=/usr/X11R6/lib/X11/fonts/truetype/kochi-mincho-subst.ttf:
goth:\
	:ft=freetype:\
	:ff=/usr/X11R6/lib/X11/fonts/truetype/kochi-gothic-subst.ttf:

and I have both kochi-{mincho,gothic}-subst.ttf there since 
I emerged media-fonts/kochi-substitute. If it is not like this,
it is highly likely that vflib-2.25.6-gentoo.diff was not applied 
(since I used epatch to apply a patch in vflib-2.25.6.ebuild and
forgot to add 'inherit eutils' here again). If so, please make
sure you put vflib-2.25.6-gentoo.diff on files directory,
get new attached vflib-2.25.6.ebuild, emerge vflib and try to
use xdvik again.
Comment 15 Timmy Douglas 2003-07-24 12:25:11 UTC
I just added inherit eutils to the top and it works now. Thanks for all the help!

Comment 16 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-07-24 22:01:50 UTC
Congratulations :-)
But for your feedback I wouldn't figure out the problem. 
I appreciate your tenacious tests.
I will commit these ebuilds shortly, thank you!
Comment 17 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-07-25 12:11:50 UTC
in CVS