Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ghost opened this issue Nov 29, 2021 · 13 comments
Closed

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

ghost opened this issue Nov 29, 2021 · 13 comments

Comments

@ghost
Copy link

ghost commented Nov 29, 2021

System

  • xuname: Void 5.15.5_1 x86_64 AuthenticAMD uptodate rF
  • package: affected package(s) including the version: libreoffice-calc-7.1.3.2_4

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

  • Run sudo xbps-install -u libreoffice-calc
  • Try launching LibreOffice Calc
@kusabana
Copy link

kusabana commented Nov 29, 2021

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
Copy link
Member

ericonr commented Nov 29, 2021

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
Copy link

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
Copy link
Member

ericonr commented Nov 29, 2021

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

@kusabana
Copy link

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
Copy link
Member

installing -base help here

@kusabana
Copy link

installing -base help here

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

@ericonr
Copy link
Member

ericonr commented Nov 29, 2021

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

@ghost
Copy link
Author

ghost commented Nov 30, 2021

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
Copy link
Member

ericonr commented Nov 30, 2021

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
Copy link
Member

sgn commented Nov 30, 2021

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

@ghost
Copy link
Author

ghost commented Nov 30, 2021

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

@sgn
Copy link
Member

sgn commented Nov 30, 2021

@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

ericonr added a commit to ericonr/void-packages that referenced this issue Dec 1, 2021
- remove VLC entirely (deprecated by upstream)
- update vendored tarballs
- add zxing and cmis tarballs (zxing isn't packaged by void, cmis
  upstream doesn't make releases with the necessary changes, see [1])
- builds were erroring out if the translation, dictionaries and help
  tarballs weren't unpacked, so remove them from the skip_extraction
  list, but still symlink them into the external dir so the build system
  doesn't try to download them
- move most subpackages to depend on writer, since it contains some of
  the needed pieces for them. This closes void-linux#34304

[1] tdf/libcmis#42
ericonr added a commit to ericonr/void-packages that referenced this issue Dec 3, 2021
- remove VLC entirely (deprecated by upstream)
- update vendored tarballs
- add zxing and cmis tarballs (zxing isn't packaged by void, cmis
  upstream doesn't make releases with the necessary changes, see [1])
- builds were erroring out if the translation, dictionaries and help
  tarballs weren't unpacked, so remove them from the skip_extraction
  list, but still symlink them into the external dir so the build system
  doesn't try to download them
- move most subpackages to depend on writer, since it contains some of
  the needed pieces for them. This closes void-linux#34304
- remove outdated permission fix for soffice

[1] tdf/libcmis#42
@ericonr ericonr closed this as completed in 6ab67d6 Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants