[Libosinfo] [PATCH 3/4] loader: update to comply with new database install location

Christophe Fergeau cfergeau at redhat.com
Fri Aug 5 12:28:44 UTC 2016


On Fri, Aug 05, 2016 at 12:57:16PM +0100, Daniel P. Berrange wrote:
> On Fri, Aug 05, 2016 at 01:42:09PM +0200, Christophe Fergeau wrote:
> > On Fri, Jul 29, 2016 at 11:21:26AM +0100, Daniel P. Berrange wrote:
> > DATA_DIR is then used to lookup the osinfo database. This means that the
> > database and the library have to be built to use the same prefix. I'm
> > wondering if it would make sense to have a .pc file together with the
> > database to help with locating the system database. Probably not worth
> > the complication at this point.
> 
> We have an osinfo-db-paths tool that can report this data, for all
> 3 db locations.  pkg-config isn't a great fit, since it can't report
> the user location as it can't dynamically substitute in env variables

Hmm, ok, all I wanted to point out is that this use of DATADIR was
assuming we used the same DATADIR when installing the database. But
osinfo-db-paths has the same limitation as well. I don't think it's
really important unless we get a bug report about this :)

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libosinfo/attachments/20160805/db75164e/attachment.sig>


More information about the Libosinfo mailing list