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>
Mon, 23 Sep 2019 10:39:49 +0000 (11: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 d400255295b2940c53fb6e29019b5e9c53d37009..13ef71ff51c800295aab8ab8dcab08b8fadc7f05 100644 (file)
@@ -317,7 +317,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 dcc9aedb883709433c1fda56dcf0d507ac1ea054..a92d6f39155d1854f3af40e5d4def3ec7828c07a 100644 (file)
@@ -2663,6 +2663,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 6efaade1965492a9a2ea7c0105b7040e33b506fd..484fed98e7313c0e0eac6c8b259a56b8e5f782cd 100644 (file)
@@ -166,6 +166,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 829e3d2c687dd3ac464f0f18bca4a2ceb7c2e106..ad8c847ed138af111ec9d123de06ec80b76967a6 100644 (file)
Binary files a/configure.ac and b/configure.ac differ
index 24125bf454f9857277a26bad1febcd53c9ef3836..766575f849d2647d62ee6d3624d75945430bbd6c 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 6d54c8159706a6294a444d8f35cf063e753ff3d1..9b0b39a932e65889dbd0806e951caca2f6c01f99 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 d8975449173e68963a3914d86f248a72f91d3834..b7a48b40d5f0313922a821fbd36804290ce5b3b3 100644 (file)
@@ -198,9 +198,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 1535f0c4a2dad9fc4d7419fbbe47d30eabb4212a..ee476b93a795b0a3ecc288ae1a87e8f5194b8f7c 100644 (file)
@@ -202,6 +202,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;
@@ -218,8 +219,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 c0c42cc5bea59736c69f7486bd33613eaf89823b..02a4d2977cd6fdf6d9362855d1ac7f6b36c561e3 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 57d1d2f89ca32abea66c530ce9689195d5e65af6..1df899727e3ea9fa75c7d1d077e04891b0d69ab3 100644 (file)
@@ -144,8 +144,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 98a53fa710f557771ca0d54ebd93c94188feea76..435b2991a7f24e6e331054fff9c91ede9e22cc6d 100644 (file)
@@ -407,6 +407,7 @@ void SwMailMergeWizardExecutor::ExecuteMailMergeWizard( const SfxItemSet * pArgs
 {
     if(!lcl_hasAllComponentsAvailable())
     {
+#if defined (ENABLE_PACKAGEKIT)
         try
         {
             using namespace org::freedesktop::PackageKit;
@@ -422,19 +423,28 @@ 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)
             auto xRestartManager
                 = css::task::OfficeRestartManager::get(comphelper::getProcessComponentContext());
             if (!xRestartManager->isRestartRequested(false))
             {
+#endif
                 // Base is absent, and could not initiate its install - ask user to do that manually
                 // Only show the dialog if restart is not initiated yet
                 std::unique_ptr<weld::MessageDialog> xWarnBox(Application::CreateMessageDialog(
                     nullptr, VclMessageType::Info, VclButtonsType::Ok,
                     SwResId(STR_NO_BASE_FOR_MERGE)));
                 xWarnBox->run();
+#if defined (ENABLE_PACKAGEKIT)
             }
         }
         return;
+#endif
     }
     if ( m_pView )
     {