Revert "always support packagekit if dbus is enabled"
authorRene Engelhard <rene@debian.org>
Sun, 21 Feb 2016 01:20:43 +0000 (02:20 +0100)
committerRene Engelhard <rene@debian.org>
Thu, 11 Apr 2019 20:39:53 +0000 (21:39 +0100)
This reverts commit f2984e95740cfbb9c74574f2a1225af3411d4901.

Gbp-Pq: Name no-packagekit-per-default.diff

Repository.mk
RepositoryExternal.mk
config_host.mk.in
configure.ac
officecfg/registry/data/org/openoffice/Office/Common.xcu
officecfg/registry/schema/org/openoffice/Office/Common.xcs
postprocess/Rdb_services.mk
sfx2/source/appl/appserv.cxx
shell/Module_shell.mk
svtools/source/misc/langhelp.cxx
sw/source/uibase/app/apphdl.cxx

index 3acad9d80830ce3c570e5bb3cb93d5d34d0f6c4b..70deb04795435d826f09a90789785f9c5d11fc89 100644 (file)
@@ -312,7 +312,7 @@ $(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,gnome, \
        $(if $(ENABLE_EVOAB2),evoab) \
        $(if $(ENABLE_GTK),vclplug_gtk) \
        $(if $(ENABLE_GTK3),vclplug_gtk3) \
-       $(if $(ENABLE_GIO),losessioninstall) \
+       $(if $(ENABLE_PACKAGEKIT),losessioninstall) \
        $(if $(ENABLE_GIO),ucpgio1) \
 ))
 
index dbca1985ad01bacbce77b432f0c7a8b2cdf34059..64f95e3c1ce37c005804bee6e6dde5531447bc3a 100644 (file)
@@ -2692,6 +2692,12 @@ $(call gb_LinkTarget_set_include,$(1),\
        $(DBUS_CFLAGS) \
 )
 
+ifeq ($(ENABLE_PACKAGEKIT),TRUE)
+$(call gb_LinkTarget_add_defs,$(1),\
+    -DENABLE_PACKAGEKIT \
+)
+endif # ENABLE_PACKAGEKIT
+
 $(call gb_LinkTarget_add_libs,$(1),\
        $(DBUS_LIBS) \
 )
index 687af25e24f3f9ea1443806dd467cab550b4dda7..7104e27176961a40ace2d507c7793de0390bf1bf 100644 (file)
@@ -157,6 +157,7 @@ export ENABLE_OOENV=@ENABLE_OOENV@
 export ENABLE_OPENGL_TRANSITIONS=@ENABLE_OPENGL_TRANSITIONS@
 export ENABLE_OPENGL_CANVAS=@ENABLE_OPENGL_CANVAS@
 export ENABLE_OPTIMIZED=@ENABLE_OPTIMIZED@
+export ENABLE_PACKAGEKIT=@ENABLE_PACKAGEKIT@
 export ENABLE_PCH=@ENABLE_PCH@
 export ENABLE_PDFIMPORT=@ENABLE_PDFIMPORT@
 export ENABLE_PDFIUM=@ENABLE_PDFIUM@
index fb4050e0fda82609c52f24582639ca13ecd83abc..2e424356286e34bb5ad7009d10e8f4121a9715e4 100644 (file)
Binary files a/configure.ac and b/configure.ac differ
index ca444c35223ad3b67571d90f27c778ebb1ec9cc1..3f42ee022c9df9b02c649b90a6a60cc4757cbd78 100644 (file)
   </node>
   <node oor:name="PackageKit">
       <prop oor:name="EnableFontInstallation" oor:type="xs:boolean">
-        <value install:module="unx">true</value>
+        <value install:module="unx">false</value>
       </prop>
       <prop oor:name="EnableLangpackInstallation" oor:type="xs:boolean">
-        <value install:module="unx">true</value>
+        <value install:module="unx">false</value>
       </prop>
   </node>
   <node oor:name="Classification">
index 6b5729412f6e8bac3fc7848d0010e9f1882f42f3..97658dc03d998c18901501cd75b6ba7559d884f5 100644 (file)
Binary files a/officecfg/registry/schema/org/openoffice/Office/Common.xcs and b/officecfg/registry/schema/org/openoffice/Office/Common.xcs differ
index 20cfc6cedebf6ceef2a9d48cc2440e89b4b887bf..6ad48a1baf93fb425b4f6c20581f94e52d84482e 100644 (file)
@@ -200,9 +200,11 @@ $(eval $(call gb_Rdb_add_components,services,\
         canvas/source/opengl/oglcanvas \
        ) \
        $(if $(ENABLE_GIO), \
-               shell/source/sessioninstall/losessioninstall \
                ucb/source/ucp/gio/ucpgio \
        ) \
+       $(if $(ENABLE_PACKAGEKIT), \
+               shell/source/sessioninstall/losessioninstall \
+       ) \
        $(if $(ENABLE_GSTREAMER_1_0), \
                avmedia/source/gstreamer/avmediagstreamer \
        ) \
index 1c19d40fecd9bfa89247fef6b9c504d9ee350d09..fadfc0ec57d117ecfd29add26a2565057e4d54cf 100644 (file)
@@ -199,6 +199,7 @@ namespace
         // make sure we actually can instantiate services from base first
         if(!lcl_isBaseAvailable())
         {
+#if defined (ENABLE_PACKAGEKIT)
             try
             {
                 using namespace org::freedesktop::PackageKit;
@@ -215,8 +216,16 @@ namespace
                 SAL_INFO(
                     "sfx.appl",
                     "trying to install LibreOffice Base, caught " << e);
+#else
+                SAL_INFO(
+                    "sfx.appl",
+                    "missing LibreOffice Base");
+
+#endif
+#if defined (ENABLE_PACKAGEKIT)
             }
             return;
+#endif
         }
 
         try // fdo#48775
index 6d54617f0268e6938e1e8b66e267f10a57483ba8..b8f6772d82404263cf309c6b94d20cbff1a07d3f 100644 (file)
@@ -16,11 +16,13 @@ $(eval $(call gb_Module_add_targets,shell,\
 
 ifneq ($(filter DRAGONFLY FREEBSD LINUX NETBSD OPENBSD,$(OS)),)
 ifeq ($(ENABLE_GIO),TRUE)
+ifeq ($(ENABLE_PACKAGEKIT),TRUE)
 $(eval $(call gb_Module_add_targets,shell,\
        Library_losessioninstall \
 ))
 endif
 endif
+endif
 
 ifeq ($(OS),SOLARIS)
 ifeq ($(ENABLE_GIO),TRUE)
index 75ce24b589a362f95d7d67d20538ac6867ad73ef..6637dbdba72abf1c39efc9a6a0d1bcca287d8371 100644 (file)
@@ -139,8 +139,7 @@ OUString getInstalledLocaleForSystemUILanguage(const css::uno::Sequence<OUString
                     else
                         aPackages.emplace_back("libreoffice-langpack-" + install);
                 }
-                //Debian would be: "The Document Foundation/Debian"
-                else if (sVendor == "The Document Foundation, Debian and Ubuntu")
+                else if (sVendor == "The Document Foundation/Debian" || sVendor == "The Document Foundation, Debian and Ubuntu")
                 {
                     // l10n is the typical Debian/Ubuntu naming convention
                     aPackages.emplace_back("libreoffice-l10n-" + install);
index 5ffb6f06c4ca906293723d6704e8327af47524d6..3f6afad05475b4a89201ef1c9939d10a4eaaea24 100644 (file)
@@ -436,6 +436,7 @@ void SwMailMergeWizardExecutor::ExecuteMailMergeWizard( const SfxItemSet * pArgs
 {
     if(!lcl_hasAllComponentsAvailable())
     {
+#if defined (ENABLE_PACKAGEKIT)
         try
         {
             using namespace org::freedesktop::PackageKit;
@@ -451,8 +452,15 @@ void SwMailMergeWizardExecutor::ExecuteMailMergeWizard( const SfxItemSet * pArgs
             SAL_INFO(
                 "sw.core",
                 "trying to install LibreOffice Base, caught " << e);
+#else
+            SAL_INFO(
+                "sw.core",
+                "missing LibreOffice Base");
+#endif
+#if defined (ENABLE_PACKAGEKIT)
         }
         return;
+#endif
     }
     if ( m_pView )
     {