On Thu, Jul 17, 2014 at 05:16:16PM +0200, Matthias Klumpp wrote: > Package: npapi-sdk > Version: 0.27.3~r23-1 > Severity: normal > > Hi! > I would like to switch the "packagekit" package over to use npapi-sdk instead > of build-depending on iceweasel-dev. However, due to some API adjustments in > the past, the configure script checks for mozilla-plugin >= 8 (it was bundled > with Firefox/Iceweasel in the past and therefor had this version number). > Since npapi-sdk as version number 0.27.2, it is no drop-in replacement for a > dependency on iceweasel-dev. > So, could you maybe adjust the version number? (since this issue might affect > other packages as well)
How about attached patch? CC'ing openvrml bug, another versioned dependency I found with [0], attached patch as well. Please consider/apply/forward them. [0] http://codesearch.debian.net/search?q=mozilla-plugin\+> Thanks -- G..e
Index: packagekit-0.8.17/configure.ac =================================================================== --- packagekit-0.8.17.orig/configure.ac +++ packagekit-0.8.17/configure.ac @@ -318,13 +318,19 @@ AC_ARG_ENABLE(browser_plugin, AS_HELP_ST enable_browser_plugin=$enableval,enable_browser_plugin=yes) if test x$enable_browser_plugin = xyes; then PKG_CHECK_MODULES(PK_BROWSER_PLUGIN, \ - mozilla-plugin >= 8.0 \ gio-unix-2.0 \ nspr >= 4.8 \ cairo \ pango \ gtk+-2.0 >= 2.14.0, build_browser_plugin=yes, build_browser_plugin=no) + if pkg-config --exists npapi-sdk; then + PK_BROWSER_PLUGIN_CFLAGS="`pkg-config --cflags npapi-sdk`" + elif pkg-config --exists 'mozilla-plugin >= 8'; then + PK_BROWSER_PLUGIN_CFLAGS="`pkg-config --cflags mozilla-plugin`" + else + build_browser_plugin=no + fi if test $build_browser_plugin = "yes"; then # check we have xulrunner headers
Index: openvrml-0.18.9/configure.ac =================================================================== --- openvrml-0.18.9.orig/configure.ac +++ openvrml-0.18.9/configure.ac @@ -326,9 +326,13 @@ PKG_CHECK_MODULES([GNOMEUI], [have_gnomeui=no]) PKG_CHECK_MODULES([GIO], [gio-2.0], , [have_gio=no]) PKG_CHECK_MODULES([CURL], [libcurl], , [have_libcurl=no]) -PKG_CHECK_MODULES([MOZILLA_PLUGIN], [mozilla-plugin >= 2], - [have_mozilla_plugin=yes], - [have_mozilla_plugin=no]) +if pkg-config --exists npapi-sdk; then + MOZILLA_PLUGIN_CFLAGS="`pkg-config --cflags npapi-sdk`" +elif pkg-config --exists 'mozilla-plugin >= 2'; then + MOZILLA_PLUGIN_CFLAGS="`pkg-config --cflags mozilla-plugin`" +else + have_mozilla_plugin=no +fi AC_LANG_PUSH([C++]) ov_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$MOZILLA_PLUGIN_CFLAGS $CPPFLAGS"