GNOME Bugzilla – Bug 776810
gst-uninstalled doesn't set PKG_CONFIG_PATH
Last modified: 2017-01-05 13:03:22 UTC
The new gst-uninstalled doesn't set the PKG_CONFIG_PATH env variable as the old one does. This makes hard for external app to link to the gstreamer core built using meson. I tried adding this by using the output of 'mesonintrospect --installed' which is pretty straightforward. But that's doesn't work because the pc files installed in, say, build/subprojects/gstreamer/pkgconfig/ have /usr/local as prefix, not the build/ directory. So I guess we have two options here: a) pass a custom prefix when building with gst-build so the pc files in build/ have the right paths. b) use the *-uninstalled.pc from the source directories, but we don't have any clean way of discovering those so they'll have to be hardcoded in gst-uninstalled.py
Created attachment 342833 [details] [review] core: meson: generate pkg-config -uninstalled pc files Generating those files is useful for users building the GStreamer stack using meson and having to link it to another project which is still using the autotools.
Created attachment 342834 [details] [review] gst-uninstalled: set PKG_CONFIG_PATH Lookg for -uninstalled pc files and update PKG_CONFIG_PATH with the directories containing those. This feature is useful for users building the GStreamer stack using meson and having to link it to another project which is still using the autotools. Fix a regression from the old gst-uninstalled tool.
Review of attachment 342833 [details] [review]: lgtm
Review of attachment 342834 [details] [review]: lgtm
Created attachment 342837 [details] [review] gst-uninstalled: set PKG_CONFIG_PATH Look for -uninstalled pc files and update PKG_CONFIG_PATH with the directories containing those. This feature is useful for users building the GStreamer stack using meson and having to link it to another project which is still using the autotools. Fix a regression from the old gst-uninstalled tool.
Created attachment 342841 [details] [review] base: meson: generate pkg-config -uninstalled pc files Generating those files is useful for users building the GStreamer stack using meson and having to link it to another project which is still using the autotools.
Created attachment 342849 [details] [review] editing-service: meson: generate pkg-config -uninstalled pc files Generating those files is useful for users building the GStreamer stack using meson and having to link it to another project which is still using the autotools.
Created attachment 342860 [details] [review] rtsp-server: meson: generate pkg-config -uninstalled pc files Generating those files is useful for users building the GStreamer stack using meson and having to link it to another project which is still using the autotools.
Created attachment 342868 [details] [review] bad: meson: generate pkg-config -uninstalled pc files Generating those files is useful for users building the GStreamer stack using meson and having to link it to another project which is still using the autotools. While doing so, fix some -uninstalled pc files which were using a suspicious 'pcfiledir' which was never replaced or defined.
Created attachment 342872 [details] [review] validate: meson: generate pkg-config -uninstalled pc files Generating those files is useful for users building the GStreamer stack using meson and having to link it to another project which is still using the autotools. Fixed the -uninstalled pc file libdir path while I was on it.
Attachment 342837 [details] pushed as 0d2f4e1 - gst-uninstalled: set PKG_CONFIG_PATH
commit 4bb8e5c191335805fb6a3a7a0d53608f6c281dc3 Author: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Date: Wed Jan 4 12:10:45 2017 +0100 meson: generate pkg-config -uninstalled pc files gst-plugins-base: master commit b01f8891f41f0e9ae94837bf73208cb1b16ff913 Author: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Date: Wed Jan 4 14:56:36 2017 +0100 meson: generate pkg-config -uninstalled pc files gst-plugins-bad: master commit e92837b6e40b5ed706239a2a1814ff1c1f0d2ff5 Author: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Date: Wed Jan 4 16:51:10 2017 +0100 meson: generate pkg-config -uninstalled pc files gst-devtools/validate: master commit 7c613ec3476dc0a5b0411dc76f9704eb942cb22b Author: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Date: Wed Jan 4 17:40:59 2017 +0100 meson: generate pkg-config -uninstalled pc files gst-editing-services: master commit e0fba540f22c0c5ae10eeab5e5a7d47759f7a0f8 Author: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Date: Wed Jan 4 15:55:36 2017 +0100 meson: generate pkg-config -uninstalled pc files gst-rtsp-server: master commit e6c6bf96ce7d3240b5343c52ff6218a323258781 Author: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Date: Wed Jan 4 16:20:54 2017 +0100 meson: generate pkg-config -uninstalled pc files