On 2009-02-13 16:22-0700 Orion Poplawski wrote:

> Testing front-end tcl
> /usr/share/plplot5.9.2/examples/test_tcl.sh: line 34: test.error: Permission 
> denied
> cat: test.error: No such file or directory
>
> test_tcl.sh insists on changing directories to "$tcldir".  I can work around 
> some of this, but not tcl/x01 sourcing x01.tcl from the current directory.
>
> I've also attached my current patch to plplot-test.sh.cmake for comment. 
> This allows me as a user in a writable directory run 
> /usr/share/plplot5.9.2/examples/plplot-test.sh.

I would like to discourage you from the direction you are headed.  I think
what you want to do is possible because we solved similar issues in the
build tree, but the changes would be more extensive than just some changes
to plplot-test.sh.cmake so the cost of that solution is a lot of complexity
that I don't want to see in the installed examples case.

As you have already indicated, a complication when the prefix is "/usr" is
the ordinary user (normally) has no write access.  So they cannot do any of
the builds of the examples for compiled languages that are necessary before
they can even execute plplot-test.sh. To solve this issue, I guess the rpm
could compile the examples after they are installed, but then that subverts
one of the principal motivations of the examples which is they teach (by
example) the users how to use PLplot from their language of choice even when
that language is a compiled language.  This is an example of the increased
complexity I mentioned above to get a complete solution to the problem using
the direction you are headed.  Furthermore, certain of our example languages
(I believe tcl is one of them which would explain your above error) are set
up in such a way that the example must be run from the appropriate
subdirectory of examples.  To deal with this issue will require still more
complexity.

Here is the simple approach I would like you to promote instead of the
direction you are headed.  Copy the entire installed examples directory tree
to somewhere under the control of the user, and then execute "make test" in
that copied directory.  This is the method I preferentially use, and it is
already documented at
http://www.miscdebris.net/plplot_wiki/index.php?title=Testing_PLplot.  Thus,
to deal with the overall "writeable directory" issue all you have to do for
Fedora users is copy that documentation or point to it.

Of course, that still leaves the issue discussed previously of checking the
subdirectory existence when installed examples have been split from each
other into subpackages which may or may not be installed by the user. I
would be happy to commit such a patch that has been tested by you for the
split examples case.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to