[vdr] [patch] Load plugins based on VDRVERSION and APIVERSION alternatively

Udo Richter udo_richter at gmx.de
Sun Apr 23 02:00:45 CEST 2006


Udo Richter wrote:
> We'll see how much chaos will arise when VDRVERSION and APIVERSION 
> differ the first time. Hopefully, most plugins will soon be updated.

The attached patch issues a warning on all plugins that seem to use the 
old libvdr-$(PLUGIN).so.$(VDRVERSION) naming scheme. This gives a hint 
about plugins that did compile, but will not be installed or loaded.

Cheers,

Udo
-------------- next part --------------
--- vdr-1.3.47-orig/Makefile	2006-04-17 19:06:55.000000000 +0200
+++ vdr-1.3.47/Makefile	2006-04-23 01:47:25.682090656 +0200
@@ -178,6 +178,9 @@
 	@failed="";\
 	for i in `ls $(PLUGINDIR)/src | grep -v '[^a-z0-9]'`; do\
 	    echo "Plugin $$i:";\
+	    if grep -q "\$$(LIBDIR)/.*\$$(VDRVERSION)" "$(PLUGINDIR)/src/$$i/Makefile" ; then \
+	        echo "Warning: Plugin $$i doesn't honor APIVERSION";\
+	    fi;\
 	    $(MAKE) -C "$(PLUGINDIR)/src/$$i" all || failed="$$failed $$i";\
 	    done;\
 	if [ -n "$$failed" ] ; then echo; echo "*** failed plugins:$$failed"; echo; fi


More information about the vdr mailing list