mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
plugin-scanner: rename plugin-scanner helper binary to gst-plugin-scanner
and install into a different directory $(libexecdir/gstreamer-0.10) so that everything is versioned properly. NOTE: run 'make clean' after updating; if you are running an uninstalled setup, you will need to update your gst-uninstalled script (unless it's symlinked to gstreamer core master) and exit/enter your uninstalled environment to get the updated environment. If you are running an installed setup, you should run 'make uninstall' before merging this change or remove the old plugin-scanner binary manually. Fixes #601698.
This commit is contained in:
parent
ab5f2f4f5d
commit
3c7c9692ac
11 changed files with 23 additions and 19 deletions
|
@ -687,9 +687,9 @@ GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*gst_plugi
|
|||
AC_SUBST(GST_PLUGIN_LDFLAGS, "$GST_PLUGIN_LDFLAGS")
|
||||
|
||||
dnl plugin scanner locations
|
||||
AS_AC_EXPAND(GST_PLUGIN_SCANNER_INSTALLED,${libexecdir}/plugin-scanner)
|
||||
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 plugin-scanner])
|
||||
"$GST_PLUGIN_SCANNER_INSTALLED", [location of the installed gst-plugin-scanner])
|
||||
|
||||
SHAVE_INIT([common],[enable])
|
||||
|
||||
|
|
|
@ -126,7 +126,7 @@ export GST_PLUGIN_SYSTEM_PATH=
|
|||
rm -f $GST/gstreamer/registry.xml 2>/dev/null
|
||||
export GST_REGISTRY=$GST/gstreamer/registry.dat
|
||||
# Point at the uninstalled plugin scanner
|
||||
export GST_PLUGIN_SCANNER=$GST/gstreamer/libs/gst/helpers/plugin-scanner
|
||||
export GST_PLUGIN_SCANNER=$GST/gstreamer/libs/gst/helpers/gst-plugin-scanner
|
||||
|
||||
# once MANPATH is set, it needs at least an "empty"component to keep pulling
|
||||
# in the system-configured man paths from man.config
|
||||
|
|
|
@ -92,7 +92,7 @@ GTKDOC_CC=$(LIBTOOL) --tag=CC --mode=compile $(CC)
|
|||
GTKDOC_LD=$(LIBTOOL) --tag=CC --mode=link $(CC)
|
||||
|
||||
GTKDOC_EXTRA_ENVIRONMENT= \
|
||||
GST_PLUGIN_SCANNER=$(top_builddir)/libs/gst/helpers/plugin-scanner
|
||||
GST_PLUGIN_SCANNER=$(top_builddir)/libs/gst/helpers/gst-plugin-scanner
|
||||
|
||||
# If you need to override some of the declarations, place them in this file
|
||||
# and uncomment this line.
|
||||
|
|
|
@ -96,7 +96,7 @@ GTKDOC_CC=$(LIBTOOL) --tag=CC --mode=compile $(CC)
|
|||
GTKDOC_LD=$(LIBTOOL) --tag=CC --mode=link $(CC)
|
||||
|
||||
GTKDOC_EXTRA_ENVIRONMENT= \
|
||||
GST_PLUGIN_SCANNER=$(top_builddir)/libs/gst/helpers/plugin-scanner
|
||||
GST_PLUGIN_SCANNER=$(top_builddir)/libs/gst/helpers/gst-plugin-scanner
|
||||
|
||||
# If you need to override some of the declarations, place them in this file
|
||||
# and uncomment this line.
|
||||
|
|
|
@ -15,7 +15,7 @@ include $(top_srcdir)/common/upload-doc.mak
|
|||
|
||||
# Extra environment needed for Core only...
|
||||
INSPECT_EXTRA_ENVIRONMENT= \
|
||||
GST_PLUGIN_SCANNER=$(top_builddir)/libs/gst/helpers/plugin-scanner
|
||||
GST_PLUGIN_SCANNER=$(top_builddir)/libs/gst/helpers/gst-plugin-scanner
|
||||
|
||||
# generated basefiles
|
||||
#basefiles = \
|
||||
|
|
|
@ -345,7 +345,7 @@ gst_plugin_loader_try_helper (GstPluginLoader * loader, gchar * location)
|
|||
{
|
||||
char *argv[] = { location, "-l", NULL };
|
||||
|
||||
GST_LOG ("Trying to spawn plugin-scanner helper at %s", location);
|
||||
GST_LOG ("Trying to spawn gst-plugin-scanner helper at %s", location);
|
||||
if (!g_spawn_async_with_pipes (NULL, argv, NULL,
|
||||
G_SPAWN_DO_NOT_REAP_CHILD /* | G_SPAWN_STDERR_TO_DEV_NULL */ ,
|
||||
NULL, NULL, &loader->child_pid, &loader->fd_w.fd, &loader->fd_r.fd,
|
||||
|
@ -377,7 +377,7 @@ gst_plugin_loader_spawn (GstPluginLoader * loader)
|
|||
if (loader->child_running)
|
||||
return TRUE;
|
||||
|
||||
/* Find the plugin-scanner, first try installed then by env-var */
|
||||
/* Find the gst-plugin-scanner, first try installed then by env-var */
|
||||
helper_bin = g_strdup (GST_PLUGIN_SCANNER_INSTALLED);
|
||||
res = gst_plugin_loader_try_helper (loader, helper_bin);
|
||||
g_free (helper_bin);
|
||||
|
@ -392,8 +392,8 @@ gst_plugin_loader_spawn (GstPluginLoader * loader)
|
|||
res = gst_plugin_loader_try_helper (loader, helper_bin);
|
||||
g_free (helper_bin);
|
||||
} else {
|
||||
GST_LOG ("Installed plugin scanner failed and "
|
||||
"GST_PLUGIN_SCANNER env var not set. No plugin-scanner available");
|
||||
GST_LOG ("Installed plugin scanner failed and GST_PLUGIN_SCANNER "
|
||||
" env var not set. No gst-plugin-scanner available");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
2
libs/gst/helpers/.gitignore
vendored
2
libs/gst/helpers/.gitignore
vendored
|
@ -1,2 +1,2 @@
|
|||
plugin-scanner
|
||||
gst-plugin-scanner
|
||||
*.o
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
helpers_PROGRAMS = plugin-scanner
|
||||
helpersdir=$(libexecdir)
|
||||
helpers_PROGRAMS = gst-plugin-scanner
|
||||
helpersdir=$(libexecdir)/gstreamer-$(GST_MAJORMINOR)
|
||||
|
||||
plugin_scanner_SOURCES = plugin-scanner.c
|
||||
plugin_scanner_CFLAGS = $(GST_OBJ_CFLAGS)
|
||||
plugin_scanner_LDFLAGS = $(GST_OBJ_LIBS)
|
||||
gst_plugin_scanner_SOURCES = gst-plugin-scanner.c
|
||||
gst_plugin_scanner_CFLAGS = $(GST_OBJ_CFLAGS)
|
||||
gst_plugin_scanner_LDFLAGS = $(GST_OBJ_LIBS)
|
||||
|
||||
# clean out the old one to make sure everything is udpated correctly
|
||||
# remove again after release
|
||||
CLEANFILES = plugin-scanner
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* GStreamer
|
||||
* Copyright (C) 2008 Jan Schmidt <jan.schmidt@sun.com>
|
||||
*
|
||||
* plugin-scanner.c: tool to load plugins out of process for scanning
|
||||
* gst-plugin-scanner.c: tool to load plugins out of process for scanning
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
|
@ -10,7 +10,7 @@ REGISTRY_ENVIRONMENT = \
|
|||
TESTS_ENVIRONMENT = \
|
||||
STATE_IGNORE_ELEMENTS="$(STATE_IGNORE_ELEMENTS)" \
|
||||
$(REGISTRY_ENVIRONMENT) \
|
||||
GST_PLUGIN_SCANNER=$(top_builddir)/libs/gst/helpers/plugin-scanner \
|
||||
GST_PLUGIN_SCANNER=$(top_builddir)/libs/gst/helpers/gst-plugin-scanner \
|
||||
GST_PLUGIN_SYSTEM_PATH= \
|
||||
GST_PLUGIN_PATH=$(top_builddir)/plugins
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ REGISTRY_ENVIRONMENT = \
|
|||
|
||||
TESTS_ENVIRONMENT = \
|
||||
$(REGISTRY_ENVIRONMENT) \
|
||||
GST_PLUGIN_SCANNER=$(top_builddir)/libs/gst/helpers/plugin-scanner \
|
||||
GST_PLUGIN_SCANNER=$(top_builddir)/libs/gst/helpers/gst-plugin-scanner \
|
||||
GST_PLUGIN_SYSTEM_PATH= \
|
||||
GST_PLUGIN_PATH=$(top_builddir)/plugins
|
||||
|
||||
|
|
Loading…
Reference in a new issue