Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59585 - freewrl cannot find system font path, producing an endless loop of error messages and is unable to render fonts of course
Summary: freewrl cannot find system font path, producing an endless loop of error mess...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-05 22:51 UTC by Ingo Krabbe
Modified: 2005-12-19 20:00 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ingo Krabbe 2004-08-05 22:51:04 UTC
The Problem lies behind the installation of the VRML fonts:

@freewrl-1.06.ebuild +59
	insinto /usr/lib/perl5/5.8.2/VRML/fonts
	doins fonts/*

The fonts are requested by the /usr/bin/fw2init.pl script on load of a WRL file:

@/usr/bin/fw2init.pl +44

	my $testpath =  "$VRML::ENV{FREEWRL_BUILDDIR}/fonts";
	if (-e "$testpath/Baubodi.ttf") {
		VRML::VRMLFunc::save_font_path($testpath);
	} else {
		foreach (@INC) {
			$testpath =  "$_/VRML/fonts";
			if (-e "$testpath/Baubodi.ttf") {
				VRML::VRMLFunc::save_font_path($testpath);
				print "found font path at $testpath\n";
				return;
			}
		}


Produces the following path list (produced by a simple print insertion in the script, on my system).

incline /usr/lib/perl5/5.8.4/i686-linux (/usr/lib/perl5/5.8.4/i686-linux/VRML/fonts)
incline /usr/lib/perl5/5.8.4 (/usr/lib/perl5/5.8.4/VRML/fonts)
incline /usr/lib/perl5/site_perl/5.8.4/i686-linux (/usr/lib/perl5/site_perl/5.8.4/i686-linux/VRML/fonts)
incline /usr/lib/perl5/site_perl/5.8.4 (/usr/lib/perl5/site_perl/5.8.4/VRML/fonts)
incline /usr/lib/perl5/site_perl/5.8.3/i686-linux (/usr/lib/perl5/site_perl/5.8.3/i686-linux/VRML/fonts)
incline /usr/lib/perl5/site_perl/5.8.3 (/usr/lib/perl5/site_perl/5.8.3/VRML/fonts)
incline /usr/lib/perl5/site_perl/5.8.2/i686-linux (/usr/lib/perl5/site_perl/5.8.2/i686-linux/VRML/fonts)
incline /usr/lib/perl5/site_perl/5.8.2 (/usr/lib/perl5/site_perl/5.8.2/VRML/fonts)
incline /usr/lib/perl5/site_perl/5.8.1/i686-linux (/usr/lib/perl5/site_perl/5.8.1/i686-linux/VRML/fonts)
incline /usr/lib/perl5/site_perl/5.8.1 (/usr/lib/perl5/site_perl/5.8.1/VRML/fonts)
incline /usr/lib/perl5/site_perl/5.8.0/i686-linux (/usr/lib/perl5/site_perl/5.8.0/i686-linux/VRML/fonts)
incline /usr/lib/perl5/site_perl/5.8.0 (/usr/lib/perl5/site_perl/5.8.0/VRML/fonts)
incline /usr/lib/perl5/site_perl (/usr/lib/perl5/site_perl/VRML/fonts)
incline /usr/lib/perl5/vendor_perl/5.8.4/i686-linux (/usr/lib/perl5/vendor_perl/5.8.4/i686-linux/VRML/fonts)
incline /usr/lib/perl5/vendor_perl/5.8.4 (/usr/lib/perl5/vendor_perl/5.8.4/VRML/fonts)
incline /usr/lib/perl5/vendor_perl/5.8.3/i686-linux (/usr/lib/perl5/vendor_perl/5.8.3/i686-linux/VRML/fonts)
incline /usr/lib/perl5/vendor_perl/5.8.3 (/usr/lib/perl5/vendor_perl/5.8.3/VRML/fonts)
incline /usr/lib/perl5/vendor_perl/5.8.2/i686-linux (/usr/lib/perl5/vendor_perl/5.8.2/i686-linux/VRML/fonts)
incline /usr/lib/perl5/vendor_perl/5.8.2 (/usr/lib/perl5/vendor_perl/5.8.2/VRML/fonts)
incline /usr/lib/perl5/vendor_perl (/usr/lib/perl5/vendor_perl/VRML/fonts)
incline . (./VRML/fonts)
incline /usr/lib/perl5/5.8.4 (/usr/lib/perl5/5.8.4/VRML/fonts)
incline /usr/lib/perl5/5.8.4/blib/lib (/usr/lib/perl5/5.8.4/blib/lib/VRML/fonts)
incline /var/tmp/portage/freewrl-1.06/work/FreeWRL-1.06 (/var/tmp/portage/freewrl-1.06/work/FreeWRL-1.06/VRML/fonts)
incline /var/tmp/portage/freewrl-1.06/work/FreeWRL-1.06/blib/lib (/var/tmp/portage/freewrl-1.06/work/FreeWRL-1.06/blib/lib/VRML/fonts)


You can see here that the fonts should be installed in 

/usr/lib/perl5/site_perl/5.8.2/VRML/fonts

or

/usr/lib/perl5/vendor_perl/5.8.2/VRML/fonts



Reproducible: Always
Steps to Reproduce:
should only happen if the perl version doesn't matches



I would introduce that patch against

freewrl-1.06.ebuild:
------------------------------------- snip > patch
--- freewrl-1.06.orig   2004-08-06 07:45:37.596551063 +0200
+++ freewrl-1.06.ebuild 2004-08-06 07:47:38.135775159 +0200
@@ -56,8 +56,8 @@
        dohtml README.html
        dodoc tests

-       insinto /usr/lib/perl5/5.8.2/VRML/fonts
+       insinto /usr/lib/perl5/site-perl/5.8.2/VRML/fonts
        doins fonts/*
-       insinto /usr/lib/perl5/5.8.2/VRML/x3d
+       insinto /usr/lib/perl5/site-perl/5.8.2/VRML/x3d
        doins x3d/*
 }
--------------------------------- snap

THX for applying
Comment 1 Dnix 2004-09-23 09:31:21 UTC
fixed in freewrl-1.08_pre2.ebuild
you can download in http://denics.free.fr
ciao
Comment 2 Bernd Waibel 2004-10-28 16:47:48 UTC
As a side effect of reporting another bug (unrelated to this one) I saw, that some 
stuff (fonts, stylesheets, dtds) of freewrl are installed under the 
/usr/lib/perl5/5.8.2 subdirectory.

But I have perl 5.8.4 installed. Won't this cause any problems when running freewrl? 

I only installed it a few days ago and haven't yet time to check it out. Only 
started it once, but without any VRML or X3D file, because I currently don't have 
a VRML/X3D model lying around.

I think those files should be installed under /usr/lib/perl5/<installed-version>

Here are the files which I get when running equery belongs /usr/lib/perl5/5.8.2:

lancelot@gwenhwyfar iconbar $ equery belongs /usr/lib/perl5/5.8.2 | sort
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/fonts)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/fonts/Amrigobi.ttf)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/fonts/Amrigob.ttf)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/fonts/Amrigoi.ttf)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/fonts/Amrigon.ttf)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/fonts/Baubodbi.ttf)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/fonts/Baubodi.ttf)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/fonts/Baubodn.ttf)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/fonts/Futurabi.ttf)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/fonts/Futurab.ttf)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/fonts/Futuran.ttf)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/fonts/README)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/x3d)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/x3d/datatypes.dtd)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/x3d/DisJavaVrml-compact.dtd)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/x3d/DisJavaVrml.dtd)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/x3d/GeoVrml-compact.dtd)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/x3d/GeoVrml.dtd)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/x3d/HumanoidAnimation-compact.dtd)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/x3d/HumanoidAnimation.dtd)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/x3d/Nurbs-compact.dtd)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/x3d/Nurbs-compromise.dtd)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/x3d/Nurbs.dtd)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/x3d/readme.html)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/x3d/x3d-compact.dtd)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/x3d/x3d-compromise.dtd)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/x3d/X3dToVrml97.xsl)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/x3d/x3d-Vrml97Profile-autogenerated.dtd)
media-gfx/freewrl-1.06 (/usr/lib/perl5/5.8.2/VRML/x3d/XMLSchema.dtd)
Searching for file '/usr/lib/perl5/5.8.2' in *...

You can see, that only the freewrl packages has installed anything under this
directory.
Comment 3 Dnix 2004-12-16 08:40:46 UTC
finally, with version 1.09, the ebuild must be stable.
Try it at http://denics.free.fr/various/FreeWRL/
ciao,
Denis
Comment 4 Dnix 2004-12-20 08:34:20 UTC
new freewrl-1.10 ebuild always at:
http://denics.free.fr
Comment 5 Dnix 2005-02-14 07:52:08 UTC
ok, solved problems with the JS.so library. Now you can enjoy with freewrl-1.10-r1 or freewrl-dev-1.11_pre1.
Ciao,
Denis
Comment 6 Dnix 2005-03-11 03:22:38 UTC
New Release:
freewrl-dev-1.11_pre2

http://denics.free.fr/various/ebuilds/
Comment 7 Dnix 2005-03-14 07:27:53 UTC
New Release:
freewrl-dev-1.11_pre4
Comment 8 Hanno Böck gentoo-dev 2005-12-19 20:00:37 UTC
Hope this is resolved within 1.16.1.