On 2009-02-12 15:36-0700 Orion Poplawski wrote:

> I'm trying to start to address
> https://bugzilla.redhat.com/show_bug.cgi?id=484519
>
> here are the issues:
>
> - Examples are installed into /usr/share/plplot<version>/examples.  This
> is not writable.
>
> - Examples are shipped with the appropriate sub-packages, so not all may
> be present (in particular the "c" examples)
>
>
> Thoughts:
>
> - I'd like for EXAMPLES_DIR to get set to
> /usr/share/plplot<version>/examples on install.

That's exactly what we do now so I suspect you meant something else.

>
> - I'd like to test for the existence of the sub-directories in the
> examples dir to determine which tests to run.
>
> Something like:
>
> # Find out what front-ends have been configured and installed
> if [ -z "$FRONT_END" ] ; then
>    for front_end_stats in c:@ENABLE_c@ cxx:@ENABLE_cxx@ f77:@ENABLE_f77@ \
>                           f95:@ENABLE_f95@ java:@ENABLE_java@ \
>                           octave:@ENABLE_octave@ python:@ENABLE_python@ \
>                           tcl:@ENABLE_tcl@ perl:@ENABLE_perl@ \
>                           ada:@ENABLE_ada@ ocaml:@ENABLE_ocaml@
>    do
>       $front_end=${front_end_status/:ON/}
>       [ $front_end != $front_end_status ] && [ -d
> $EXAMPLES_DIR/$front_end ] && FRONT_END="$FRONT_END $front_end"
>    done
> fi

Do you have some changes you would recommend for
examples/Makefile.examples.in before it is configured and installed as
examples/Makefile?  I have updated that file a lot recently.  Such
CMake-based configuration is pretty powerful so my recent changes or some
additional changes to that file should solve most if not all of your needs.

> - Get rid of the chmod +x.  This shouldn't be needed.

We tell CMake what the permissions should be on all installed files.  Is
there some file(s) where the permission is coming out wrong (i.e., set to
executable, when the file should not be executed)?  Or are you drawing
attention to some redundancy in the way that CMake assures the permissions
comes out right?  If the former, the fix is easy.  If the latter, it is a
CMake issue.

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