void-linux / void-packages

The Void source packages collection
https://voidlinux.org
Other
2.57k stars 2.14k forks source link

libreoffice-calc-7.1.3.2_4: Cannot Launch LibreOffice Calc #34304

Closed ghost closed 2 years ago

ghost commented 2 years ago

System

Expected behavior

sudo xbps-install -u libreoffice-calc should install LibreOffice Calc and it should be launch-able.

Actual behavior

sudo xbps-install -u libreoffice-calc provides the libreoffice command and fails to launch with error: terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'. If installing the entirety of libreoffice (or maybe libreoffice-base) is required to run LibreOffice Calc, it should not be install-able separately, or dependencies must be pulled in. Also, JRE is required for LibreOffice. When I installed libreoffice-calc, JRE wasn't pulled in as a dependency. The error that I included was after installing openjdk8-jre separately.

Steps to reproduce the behavior

kusabana commented 2 years ago

Can confirm libreoffice-calc is missing a jre dependency, but i also do not think it would be smart to include one (for obvious reasons).

this is why you're unable to use libreoffice-calc by itself.

ericonr commented 2 years ago

Do you have any installed language packs? They are needed to launch the applications, afaik.

Re. Java, I hadn't realized it was necessary now. We can consider adding a virtual dependency.

kusabana commented 2 years ago

Do you have any installed language packs? They are needed to launch the applications, afaik.

Re. Java, I hadn't realized it was necessary now. We can consider adding a virtual dependency.

Language pack isn't enough, I tried installing that too

ericonr commented 2 years ago

Can you confirm what package made it work? I know it works locally...

kusabana commented 2 years ago

Can you confirm what package made it work? I know it works locally...

I haven't been able to get it to work without the big package, I think the point is that libreoffice-calc and the like are meant to be modules / extensions, not standalone.

Chocimier commented 2 years ago

installing -base help here

kusabana commented 2 years ago

installing -base help here

are you sure? iirc I had base installed too... I'll check tommorow.

ericonr commented 2 years ago

I have #34272 going, it would be nice to include any changes directly.

ghost commented 2 years ago

I installed libreoffice-base; it still doesn't work. Here is a screenshot of the dependencies when I try to install libreoffice (after libreoffice-calc, libreoffice-base, and openjdk8-jre):

libreoffice

My point is that installing libreoffice-calc separately should ideally not be possible if all the libreoffice packages are required for it to run, and they aren't pulled in as dependencies. This makes it very confusing.

ericonr commented 2 years ago

I get your point, we are trying to investigate what exactly is missing so we can fix the packages.

Can you confirm that installing libreoffice makes it work, then?

sgn commented 2 years ago

-calc needs -writer. -writer doesn't need -calc, I think

ghost commented 2 years ago

@ericonr Yes, I confirm. Installing libreoffice makes it work.

sgn commented 2 years ago

@ericonr

diff --git a/srcpkgs/libreoffice/template b/srcpkgs/libreoffice/template
index 6ea455c5c0..076389c007 100644
--- a/srcpkgs/libreoffice/template
+++ b/srcpkgs/libreoffice/template
@@ -540,7 +540,7 @@ libreoffice-common_package() {

 libreoffice-base_package() {
    short_desc+=" - Database frontend"
-   depends="libreoffice-common>=${version}_${revision}"
+   depends="libreoffice-writer>=${version}_${revision}"
    noverifyrdeps=yes
    pkg_install() {
        _split base
@@ -549,7 +549,7 @@ libreoffice-base_package() {

 libreoffice-calc_package() {
    short_desc+=" - Spreadsheet"
-   depends="libreoffice-common>=${version}_${revision}"
+   depends="libreoffice-writer>=${version}_${revision}"
    noverifyrdeps=yes
    pkg_install() {
        _split calc
@@ -558,7 +558,7 @@ libreoffice-calc_package() {

 libreoffice-draw_package() {
    short_desc+=" - Drawing application"
-   depends="sane libreoffice-common>=${version}_${revision}"
+   depends="sane libreoffice-writer>=${version}_${revision}"
    noverifyrdeps=yes
    pkg_install() {
        _split draw
@@ -585,7 +585,7 @@ libreoffice-gnome_package() {

 libreoffice-impress_package() {
    short_desc+=" - Presentation application"
-   depends="libreoffice-common>=${version}_${revision}"
+   depends="libreoffice-writer>=${version}_${revision}"
    noverifyrdeps=yes
    pkg_install() {
        _split impress
@@ -616,7 +616,7 @@ libreoffice-kit_package() {

 libreoffice-math_package() {
    short_desc+=" - Equation editor"
-   depends="libreoffice-common>=${version}_${revision}"
+   depends="libreoffice-writer>=${version}_${revision}"
    noverifyrdeps=yes
    pkg_install() {
        _split math