After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 353404 - Need easy way to query installed providers in configure scripts
Need easy way to query installed providers in configure scripts
Status: RESOLVED FIXED
Product: libgda
Classification: Other
Component: Client library
1.2.x
Other Linux
: Normal enhancement
: ---
Assigned To: Rodrigo Moya
gnome-db Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-08-29 14:25 UTC by Benjamin Otte (Company)
Modified: 2007-02-28 18:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
libgda-2.99.5 providers .pc patch (37.94 KB, patch)
2007-02-26 06:55 UTC, Yaakov Selkowitz
none Details | Review
libgda providers .pc patch (take 2) (12.89 KB, patch)
2007-02-26 20:12 UTC, Yaakov Selkowitz
none Details | Review

Description Benjamin Otte (Company) 2006-08-29 14:25:22 UTC
I'm currently writing an application using libgda that defaults to SQLite storage and I'd like to ensure that the required provider is installed or at least hint that the application will not work without it.
I couldn't find a way to do this.

This could be done by either of these:
- supply a pkg-config file for every provider (libgda-sqlite.pc etc). This is how pango or cairo do it.
- supply a m4 macro that runs the required command-line app(s) for you. This is how gstreamer does it, see /usr/share/aclocal/gst-element-check-0.10.m4 for an example
- have a very simple command line for this and document that behaviour in lots of places so it's easily found.
Comment 1 Murray Cumming 2007-02-08 13:44:42 UTC
I think "supply a pkg-config file for every provider (libgda-sqlite.pc etc). This is how pango or cairo do it" is the obvious choice. Feel free to check this such changes in. Many thanks if you do.
Comment 2 Yaakov Selkowitz 2007-02-26 05:12:33 UTC
Working on it.
Comment 3 Yaakov Selkowitz 2007-02-26 06:55:00 UTC
Created attachment 83360 [details] [review]
libgda-2.99.5 providers .pc patch

Here's a patch for 2.99.5 which should implement this.

* configure.in
* providers/*/Makefile.am
* providers/*/libgda-*-3.0.pc:
Provide pkg-config metadata for installed providers.  Fixes bug #353404.
Comment 4 Yaakov Selkowitz 2007-02-26 20:12:24 UTC
Created attachment 83415 [details] [review]
libgda providers .pc patch (take 2)

Fixed a few issues with the first patch.
Comment 5 Murray Cumming 2007-02-28 18:04:03 UTC
Excellent. Many thanks for doing this work. Committed.