Giter Club home page Giter Club logo

meta-office's Introduction

OE layer for office applications as libreoffice

Layer dependencies:

see layer.conf for dependencies and Layer-index where to find layers

Contributing

  • Submit any patches against the meta-office layer by using the GitHub pull-request feature.

Policies

  • Please do not send private emails to maintainer - they will not be answered anymore. For bug-reports/questions/suggestions.. use issues.
  • Pull requests should follow OE-Styleguide with the following additions:
    • Use 4 spaces for indentation always (shell and python code)
    • For splitting of long list values use four-space indentation on successive lines and prefer the closing quote as the first character (OE-Styleguide - second example)
    • Pull-requests with patches fixing issues for musl, clang or gold-linker are accepted only if patches have upstream-status "Applied" or "Backport" and contain a link to the upstream patch.
  • Be aware that this layer changes other layer's defaults by bbappends. Maintainer disagrees with common 'configure to death practice' and won't waste time explaining dozens of knobs that are mandatory to get working/useful builds. See appends. Pull requests removing appends for sake of magic 'compliant' scripts are not accepted.

Maintainers

Layer maintainer: Andreas Müller [email protected]

meta-office's People

Contributors

adrianbunk avatar markusvolk avatar otavio avatar schnitzeltony avatar

Watchers

 avatar  avatar

meta-office's Issues

libreoffice-native: reduce DEPENDS

I bet many native depends can go.
They are just there to reduce downloading at compile time and are not necessary to create build tools.

glm do_package error

I have compiled libreoffice in OpenEmbedded, only had a couple of hiccups.

One of those is the 'glm' package. libreoffice.bb specifies 'glm' as a dependency and has "--with-system-glm".
The recipe used is meta-office/recipes-support/glm/glm_0.9.8.3.bb, rather than the one at meta-oe/recipes-graphics/glm/glm_0.9.8.4.bb

glm compiles and installs, but do_package reports this:

ERROR: glm-0.9.8.3-r0 do_package: QA Issue: glm: Files/directories were installed but not shipped in any package:
  /usr/lib64
  /usr/lib64/cmake
  /usr/lib64/pkgconfig
  /usr/lib64/cmake/glm
  /usr/lib64/cmake/glm/glmConfig.cmake
  /usr/lib64/cmake/glm/glmConfigVersion.cmake
  /usr/lib64/cmake/glm/glmTargets.cmake
  /usr/lib64/pkgconfig/glm.pc
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
glm: 8 installed and not shipped files. [installed-vs-shipped]
ERROR: glm-0.9.8.3-r0 do_package: Fatal QA errors found, failing task.
ERROR: glm-0.9.8.3-r0 do_package: Function failed: do_package
ERROR: Logfile of failure stored in: /mnt/sda1/projects/oe/oe-project/buildQ/tmp/work/core2-64-poky-linux/glm/0.9.8.3-r0/temp/log.do_package.9002
ERROR: Task (/mnt/sda1/projects/oe/oe-project/meta-office/recipes-support/glm/glm_0.9.8.3.bb:do_package) failed with exit code '1'

I am doing a genericx86_64 non-multilib build, and there is only /lib and /usr/lib, I guess that is the cause of the above problem.

There are suggestions how to fix it, but I am a newcomer to OpenEmbedded/Yocto and do not yet have much of a clue how things work.
I suppose the do_install would have to determine that /usr/lib64 is not appropriate, and either install to /usr/lib, or move after installation. Is the fix for this obvious to any of you guys?

Note, just ignoring the problem and continuing the build with "bitbake --continue ..." does complete the build of libreoffice. There is one other failure, but I will post about that separately.

Fixes for libreoffice recipes

Building for MACHINE 'genericx86-64', target 'core-image-sato-sdk', with libreoffice added into bblayers.conf and local.conf. Cloned everything about a week ago, with "--depth 1", did not checkout a release version.

Unfortunately, I don't have the logs any more for these failures. Deleted that build. Now building with the .bb files modified as described below. However, will describe why I made the changes, and you might consider whether they should be accepted.

clucene
meta-office/recipes-libreoffice/libreoffice/libreoffice-native.bb has 'clucene' as a system dependency. However, clucene failed to build, so I changed to the internal clucene.
As far as I can see, this is a package not needed elsewhere (refer: http://clucene.sourceforge.net/), so no big deal in making it internal.

So, I have removed this line from libreoffice-native.bb:

--with-system-clucene \
And removed this line from libreoffice.bb:

clucene-core \
unzip, neon
Unpack of libreoffice-native reported that 'unzip' is missing, it also reported something about package 'neon' not being in the repository. Note: I do have unzip in my host system.

So I added these two dependencies to libreoffice-native.bb:

    unzip-native \
    neon-native \

and added this configure option:

--with-system-neon \
Note, libreoffice.bb already has "--with-system-neon".

In libreoffice.bb, I added unzip as a dependency:

unzip \
Although I can't provide logs of why these errors occurred, thought I would post these fixes here, for consideration, as they have enabled me to continue with the build of libreoffice. There are a couple of build errors -- I already posted about 'glm' do_install failing, and there is one more error with compiling the icons, will post about that soon.
I applied workarounds for those two, and the build completes.

Lacks of libxsl deps, clucene and redland are broken.

Hi Andreas!
Just managed to build Libreoffice on Yocto "Zeus". To do that I've added libxslt-native, libxslt and removed anything about redland and clucene dependencies. Here is my patch:

index c2468c8..25e8d94 100644
--- a/recipes-libreoffice/libreoffice/libreoffice-native.bb
+++ b/recipes-libreoffice/libreoffice/libreoffice-native.bb
@@ -24,7 +24,6 @@ DEPENDS += " \
     libfreehand-native \
     hunspell-native \
     mythes-native \
-    clucene-core-native \
     libcmis-native \
     libpagemaker-native \
     glm-native \
diff --git a/recipes-libreoffice/libreoffice/libreoffice.bb b/recipes-libreoffice/libreoffice/libreoffice.bb
index 7629e98..f227997 100644
--- a/recipes-libreoffice/libreoffice/libreoffice.bb
+++ b/recipes-libreoffice/libreoffice/libreoffice.bb
@@ -47,7 +47,6 @@ DEPENDS += " \
     gstreamer1.0-plugins-base \
     \
     glm \
-    redland \
     libabw \
     libwps \
     libwpg \
@@ -65,7 +64,6 @@ DEPENDS += " \
     libodfgen \
     libgltf \
     libexttextcat \
-    clucene-core \
     vigra \
     hunspell \
     mythes \
@@ -113,7 +111,6 @@ EXTRA_OECONF += " \
     \
     --with-system-cppunit \
     --with-system-glm \
-    --with-system-redland \
     --with-system-libabw \
     --with-system-libcmis \
     --with-system-libebook \
@@ -122,7 +119,6 @@ EXTRA_OECONF += " \
     --with-system-libpagemaker \
     --with-system-libodfgen \
     --with-system-libexttextcat \
-    --with-system-clucene \
     --with-system-mythes \
     --with-system-altlinuxhyph \
     --with-system-gpgmepp \
diff --git a/recipes-libreoffice/libreoffice/libreoffice.inc b/recipes-libreoffice/libreoffice/libreoffice.inc
index 235a529..d6ccea7 100644
--- a/recipes-libreoffice/libreoffice/libreoffice.inc
+++ b/recipes-libreoffice/libreoffice/libreoffice.inc
@@ -23,6 +23,8 @@ DEPENDS += " \
     gperf-native \
     bison-native \
     zip-native \
+    libxslt-native \
+    libxslt \
 "

 EXTRA_OECONF = " \
@@ -57,7 +59,6 @@ EXTRA_OECONF = " \
     --with-system-libfreehand \
     --with-system-hunspell \
     --with-system-mythes \
-    --with-system-clucene \
     --with-system-libcmis \
     --with-system-libpagemaker \
     --with-system-glm \```

Yocto (sumo) reports QA issues with the libreoffice package

When building libreoffice from meta-office with Yocto sumo the following QA issues is reported:

ERROR: libreoffice-5.0.6.3-r0 do_package: QA Issue: File '/usr/lib/libreoffice/share/extensions/mysql-connector-ooo/libmysqlclient_r.so' from libreoffice was already stripped, this will prevent future debugging! [already-stripped]

So I disabled mysql in the PACKAGECONFIG options, which i don't needed anyway.. but then I got this other QA issue:

ERROR: libreoffice-5.0.6.3-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary: [...]/libreoffice/5.0.6.3-r0/packages-split/libreoffice/usr/lib/libreoffice/program/liblpsolve55.so' [ldflags]

I workarounded it by adding ldflags to the INSANE_SKIP list

clucene-core check fails

Hi @schnitzeltony !
I'm trying to build libreoffice and get the following failure: https://hastebin.com/usihoruled.rb
More exactly - for some reason the architecture prefix has sneaked to the evaluation.

CMake Error at src/shared/cmake/MacroEnsureVersion.cmake:27 (MATH):
|   MATH cannot parse the expression: "x86_648*10000 + x86_641*100 + x86_640":
|   syntax error, unexpected exp_NUMBER, expecting $end (8)
| Call Stack (most recent call first):
|   src/shared/cmake/MacroCheckGccVisibility.cmake:35 (macro_ensure_version)
|   src/core/CMakeLists.txt:10 (MACRO_CHECK_GCC_VISIBILITY)

Thanks in advance!

icon-themes compile fail

I have reported on changes required for libreoffice.bb and libreoffice-native.bb:
#4

With those fixes, libreoffice is off and running, compiling. Just hits two errors.

Package 'glm' has an install problem, reported here:
#3

The second error is that the 'icon-themes' compile fails. Here is an extract from the log:

| [build MOD] oovbaapi
| S=/mnt/sda1/projects/oe/oe-project/buildQ/tmp/work/core2-64-poky-linux/libreoffice/5.0.6.3-r0/libreoffice-5.0.6.3 && I=$S/instdir && W=$S/workdir &&  mkdir -p $W/Module/ && touch $W/Module/oovbaapi
| [build PRL] CustomTarget/postprocess/images/images_\breeze\galaxy\hicontrast\oxygen\sifr\tango.zip
| S=/mnt/sda1/projects/oe/oe-project/buildQ/tmp/work/core2-64-poky-linux/libreoffice/5.0.6.3-r0/libreoffice-5.0.6.3 && I=$S/instdir && W=$S/workdir &&  /mnt/sda1/projects/oe/oe-project/buildQ/tmp/work/core2-64-poky-linux/libreoffice/5.0.6.3-r0/recipe-sysroot-native/usr/bin/perl-native/perl $S/solenv/bin/packimages.pl  -g $S/icon-themes/\breeze\galaxy\hicontrast\oxygen\sifr\tango -m $S/icon-themes/\breeze\galaxy\hicontrast\oxygen\sifr\tango -c $S/icon-themes/\breeze\galaxy\hicontrast\oxygen\sifr\tango    -l $W/CustomTarget/postprocess/images -l $W/ResTarget/ -l $W/UIConfig/ -l $W/UIConfig/modules/   -s $W/CustomTarget/postprocess/images/sorted.lst -o $W/CustomTarget/postprocess/images/images_\breeze\galaxy\hicontrast\oxygen\sifr\tango.zip > /dev/null
| [build PRL] CustomTarget/postprocess/images/images_export.zip
| packimages: ERROR: no such directory: '/mnt/sda1/projects/oe/oe-project/buildQ/tmp/work/core2-64-poky-linux/libreoffice/5.0.6.3-r0/libreoffice-5.0.6.3/icon-themes/breezegalaxyhicontrastoxygensifrtango'
| 
| FAILURE: packimages aborted.
| /mnt/sda1/projects/oe/oe-project/buildQ/tmp/work/core2-64-poky-linux/libreoffice/5.0.6.3-r0/libreoffice-5.0.6.3/postprocess/CustomTarget_images.mk:34: recipe for target '/mnt/sda1/projects/oe/oe-project/buildQ/tmp/work/core2-64-poky-linux/libreoffice/5.0.6.3-r0/libreoffice-5.0.6.3/workdir/CustomTarget/postprocess/images/images_\breeze\galaxy\hicontrast\oxygen\sifr\tango.zip' failed
| make[1]: *** [/mnt/sda1/projects/oe/oe-project/buildQ/tmp/work/core2-64-poky-linux/libreoffice/5.0.6.3-r0/libreoffice-5.0.6.3/workdir/CustomTarget/postprocess/images/images_\breeze\galaxy\hicontrast\oxygen\sifr\tango.zip] Error 2
| ERROR: oe_runmake failed
| make[1]: *** Waiting for unfinished jobs....
| make[1]: Leaving directory '/mnt/sda1/projects/oe/oe-project/buildQ/tmp/work/core2-64-poky-linux/libreoffice/5.0.6.3-r0/libreoffice-5.0.6.3'
| Makefile:247: recipe for target 'build' failed
| make: *** [build] Error 2
| ERROR: Function failed: do_compile (log file is located at /mnt/sda1/projects/oe/oe-project/buildQ/tmp/work/core2-64-poky-linux/libreoffice/5.0.6.3-r0/temp/log.do_compile.12815)
ERROR: Task (/mnt/sda1/projects/oe/oe-project/meta-office/recipes-libreoffice/libreoffice/libreoffice.bb:do_compile) failed with exit code '1'

Somehow, it has run the icon directories together:

tmp/work/core2-64-poky-linux/libreoffice/5.0.6.3-r0/libreoffice-5.0.6.3/icon-themes/breezegalaxyhicontrastoxygensifrtango

...they are actually separate directories, 'breeze', 'galaxy', etc.

Just to complete the build, I created an empty directory with that name 'breezegalaxyhicontrastoxygensifrtango', but got another error, it wanted another directory named 'export' alonside 'breezegalaxyhicontrastoxygensifrtango' so created that also.
Then compile completed.

This must be an error that others will encounter also? Perhaps no one has actually tried this libreoffice build for awhile?

There is nothing fancy about my setup. Building for MACHINE 'genericx86-64', target 'core-image-sato-sdk', with libreoffice added into bblayers.conf and local.conf. Cloned everything about a week ago, with "--depth 1", did not checkout a release version.
local.conf is almost the automatically created default, I just appended:

DISTRO_FEATURES_append = " opengl"
IMAGE_INSTALL_append = " streamripper pinpoint dhcpcd pure-ftpd pptp-linux rp-pppoe mtr hiawatha openbox gedit evince abiword gparted epiphany gphoto2 gimp firefox libreoffice"

...yep, all those others built. Only failure is libreoffice.

Note, if anyone else wants to reproduce my build exactly, I have posted steps on my blog:
http://barryk.org/news/?viewDetailed=00529
http://barryk.org/news/?viewDetailed=00530

...however, I have now added the meta-poky, meta-yocto and meta-yocto-bsp, so as to be able to build MACHINE = "genericx86-64" (in local.conf). I will post those changes to my blog.

Crash on start

Hi. I'm using branch zues for board imx8mqevk (wayland). Build seems go ok. But i got crash on start. Using gdb i got in constructor of SvtSysLocaleOptions crash. I tried other branch (dunfell) it also compile ok, but libreoffice got stock on start (no crash, no log messages to terminal but window didn't open). Maybe someone can help or anybody has the same or similar problem

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.