plugin-scanner: rename plugin-scanner helper binary to gst-plugin-scanner
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 16 Nov 2009 00:12:22 +0000 (00:12 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 18 Nov 2009 09:28:08 +0000 (09:28 +0000)
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.

configure.ac
docs/faq/gst-uninstalled
docs/gst/Makefile.am
docs/libs/Makefile.am
docs/plugins/Makefile.am
gst/gstpluginloader.c
libs/gst/helpers/.gitignore
libs/gst/helpers/Makefile.am
libs/gst/helpers/gst-plugin-scanner.c [moved from libs/gst/helpers/plugin-scanner.c with 95% similarity]
tests/check/Makefile.am
tests/examples/manual/Makefile.am

index 7d21701..2947d14 100644 (file)
@@ -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])
 
index 65b6371..3477772 100755 (executable)
@@ -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
index 857fee4..d4db483 100644 (file)
@@ -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.
index 092d75e..4172285 100644 (file)
@@ -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.
index 35f5c90..0053e1e 100644 (file)
@@ -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 = \
index 10f7688..dd0046b 100644 (file)
@@ -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");
     }
   }
 
index e3f6e80..faf8158 100644 (file)
@@ -1,2 +1,2 @@
-plugin-scanner
+gst-plugin-scanner
 *.o
index b9ca33c..03b86da 100644 (file)
@@ -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
similarity index 95%
rename from libs/gst/helpers/plugin-scanner.c
rename to libs/gst/helpers/gst-plugin-scanner.c
index a80b64b..0310a74 100644 (file)
@@ -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
index ec3acbd..66b36ba 100644 (file)
@@ -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
 
index 9564c5b..38c639b 100644 (file)
@@ -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