Bug 8254 - xt.pc contains undefined variable 'datarootdir'
Summary: xt.pc contains undefined variable 'datarootdir'
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/Xt (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-13 12:13 UTC by Andres Salomon
Modified: 2010-10-02 22:22 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
adding a definition for datarootdir into the xt.pc is sufficient (264 bytes, patch)
2006-09-13 12:15 UTC, Andres Salomon
no flags Details | Splinter Review

Description Andres Salomon 2006-09-13 12:13:36 UTC
When using libXt from git and autoconf 2.60a, the xt.pc file that's created
contains an undefined variable 'datarootdir'.  During the configure stage, the
following is spit out:

config.status: creating xt.pc
config.status: WARNING: xt.pc contains a reference to the variable
`datarootdir'which seems to be undefined.  Please make sure it is defined.

After installation, running 'pkg-config --exists --print-errors xt; echo $?'
results in:

Variable 'datarootdir' not defined in '/usr/local/lib/pkgconfig/xt.pc'
1

The problem is that autoconf 2.60 changed the way datadir is handled; see the
following for details: 
http://www.gnu.org/software/autoconf/manual/html_node/Changed-Directory-Variables.html
Comment 1 Andres Salomon 2006-09-13 12:15:03 UTC
Created attachment 6948 [details] [review]
adding a definition for datarootdir into the xt.pc is sufficient
Comment 2 Daniel Stone 2006-09-27 14:58:41 UTC
still the same bug that libXt's acinclude.m4 needs an updated AC_INCLUDE_DIR
that does a double-eval.
http://autoconf-archive.cryp.to/ac_include_dir.html
Comment 3 Daniel Stone 2007-02-27 01:33:32 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 4 Jesse Adkins 2010-10-02 22:22:44 UTC
This was fixed by git commit 0c1954765c32c1bd298111cc6bed2f090494c0cf on Fri Oct 27 2006. Closing this bug.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.