NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

[udunits] Suggestion: use pkgdatadir instead of datadir for xml files.

I've just started playing around with udunits2, but I think that it might be 
better to install the xml files into the pkgdatadir instead of just datadir. 
On my F10 system only one package installs a file into /usr/share 
(interestingly, its the GNU units package).  The pkgdatadir just adds the 
package name to datadir, so its not that big of a change.

Erik

P.S.  I've attached a patch on lib/Makefile.am for your perusal.

-- 
Erik Zeek                     |  \|/ ____ \|/
SMTS, Org 5444, MS-1153       |  "@'/ .. \`@"
Sandia National Laboratories  |  /_| \__/ |_\
Phone: 505-845-0513           |     \__U_/

--- udunits-2.1.8.orig/lib/Makefile.am  2009-04-13 15:17:24.000000000 -0600
+++ udunits-2.1.8/lib/Makefile.am       2009-06-29 10:33:20.998833420 -0600
@@ -19,7 +19,7 @@
     error.c \
     ut_free_system.c
 BUILT_SOURCES = parser.c scanner.c
-data_DATA = \
+pkgdata_DATA = \
     udunits2.xml \
     udunits2-accepted.xml \
     udunits2-base.xml \
@@ -31,7 +31,7 @@
 #pdf_DATA = udunits2lib.pdf
 AM_MAKEINFOFLAGS = -I ..
 AM_MAKEINFOHTMLFLAGS = --no-split -I ..
-AM_CPPFLAGS    = -DDEFAULT_UDUNITS2_XML_PATH='"$(datadir)/udunits2.xml"'
+AM_CPPFLAGS    = -DDEFAULT_UDUNITS2_XML_PATH='"$(pkgdatadir)/udunits2.xml"'
 
 lex_prefix = ut
 LEX_OUTPUT_ROOT = lex.$(lex_prefix)
  • 2009 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the udunits archives: