mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
build: make sure gst-plugin-scanner gets installed where we expect it
Add check to make sure gst-plugin-scanner really gets installed where we will look for it later, ie. paths and prefixes are set at configure time and not specified via make. Fixes #609941.
This commit is contained in:
parent
7937808ac7
commit
b6e061b4ea
2 changed files with 13 additions and 0 deletions
|
@ -656,6 +656,7 @@ dnl plugin scanner locations
|
|||
AS_AC_EXPAND(GST_PLUGIN_SCANNER_INSTALLED,${libexecdir}/gstreamer-$GST_MAJORMINOR/gst-plugin-scanner)
|
||||
AC_DEFINE_UNQUOTED(GST_PLUGIN_SCANNER_INSTALLED,
|
||||
"$GST_PLUGIN_SCANNER_INSTALLED", [location of the installed gst-plugin-scanner])
|
||||
AC_SUBST(GST_PLUGIN_SCANNER_INSTALLED)
|
||||
|
||||
dnl things for our internal libcheck (must be called even if building
|
||||
dnl libcheck is disabled because it defines conditionals)
|
||||
|
|
|
@ -283,3 +283,15 @@ typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
|
|||
|
||||
CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
|
||||
endif
|
||||
|
||||
# try to prevent packaging errors
|
||||
check-libexecdir-consistency:
|
||||
if test "${GST_PLUGIN_SCANNER_INSTALLED}" != "${libexecdir}/gstreamer-$(GST_MAJORMINOR)/gst-plugin-scanner"; then \
|
||||
echo "*** Inconsistent libexecdir! Please use ./configure --libexecdir=/foo/bar"; \
|
||||
echo "*** to set the libexecdir and not make libexecdir=/foo/bar or the like."; \
|
||||
echo "*** The same goes for prefix, libdir etc."; \
|
||||
echo "*** ${GST_PLUGIN_SCANNER_INSTALLED} != ${libexecdir}/gstreamer-$(GST_MAJORMINOR)/gst-plugin-scanner"; \
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
all-local: check-libexecdir-consistency
|
||||
|
|
Loading…
Reference in a new issue