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 7d217010d1f5fa3e9de9d1aa7a9a4b8e09767cc4..2947d14b97b587866fbd9d69d7fb2e457bf2af18 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 65b63715165acda72c78b8083855c97edf45ef91..34777729f4725883d3f135d394a72aa6cf27294e 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 857fee44014307cb4f835b582beaad75afc1eec7..d4db483931c135ff0b8c74d637b24d4893dc0b6f 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 092d75ec874b1781f84c14d2b4054e418d01e7e1..4172285e7ceac7e3e18323c5eca442856a368b1d 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 35f5c90477d0711e05a16d18aca8810b6c3e19e3..0053e1e768f17d30fcc440c12c331be342e545ac 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 10f7688a126dad37ea7e65c016ae5adbf3a7f681..dd0046bd7a0bc9dee6dc04f1eee630f1e32a2857 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 e3f6e804e8928abda436ddc3cb570312523afacc..faf8158d0bdd8a1e7aa4388d319deceea655851f 100644 (file)
@@ -1,2 +1,2 @@
-plugin-scanner
+gst-plugin-scanner
 *.o
index b9ca33c234663ff2b9df3ab9d1a9d359a311622e..03b86dae58ad2297c4c5b8da18019bddd5c1bdf6 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 a80b64b5a8d964054c3502c28c43d61f5870f118..0310a748ca000856915fd84dcdcaccbfdd705d56 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 ec3acbd0ccd0c5b2993009f106425dffdf8dd5b7..66b36ba0d6dab938c56d5f9d6be4d029c54986dd 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 9564c5bcf9c1efa52c896b32c7bac5b7b9049399..38c639bbca4da9cddc9e1a9cb140d2018fe5f48e 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