Erro na instalação do Libreoffice 6.2.0.3 no SlackWare 14.2 (current)

1. Erro na instalação do Libreoffice 6.2.0.3 no SlackWare 14.2 (current)

lindberg
lindbergluiz

(usa Slackware)

Enviado em 13/08/2019 - 13:28h

Estou tentando compilar o pacote de instalação do Libreoffice 6.2.0.3, disponível no Slackbuilds.org. Instalei as pendências (jdk e avahi), mas num determinado momento (bem depois do início da instalação) o erro surgiu da seguinte maneira:

In file included from /tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/Segment.cpp:27:
/tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/UtfCodec.h: In static member function ‘static graphite2::uchar_t graphite2::_utf_codec<8>::get(const codeunit_t*, graphite2::int8&)’:
/tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/UtfCodec.h:150:93: warning: this statement may fall through [-Wimplicit-fallthrough=]
150 | case 4: u <<= 6; u |= *++cp & 0x3F; if (*cp >> 6 != 2) break; ++l; toolong = (u < 0x10); GR_FALLTHROUGH;
| ~~~~~~~~~^~~~~~~~~~~~
/tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/UtfCodec.h:152:13: note: here
152 | case 3: u <<= 6; u |= *++cp & 0x3F; if (*cp >> 6 != 2) break; ++l; toolong |= (u < 0x20); GR_FALLTHROUGH;
| ^~~~
/tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/UtfCodec.h:152:92: warning: this statement may fall through [-Wimplicit-fallthrough=]
152 | case 3: u <<= 6; u |= *++cp & 0x3F; if (*cp >> 6 != 2) break; ++l; toolong |= (u < 0x20); GR_FALLTHROUGH;
| ~~~~~~~~^~~~~~~~~~~~~
/tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/UtfCodec.h:154:13: note: here
154 | case 2: u <<= 6; u |= *++cp & 0x3F; if (*cp >> 6 != 2) break; ++l; toolong |= (u < 0x80); GR_FALLTHROUGH;
| ^~~~
In file included from /tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/FeatureVal.h:31,
from /tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/FeatureMap.h:29,
from /tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/Face.h:34,
from /tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/Segment.h:34,
from /tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/Silf.cpp:32:
/tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/List.h: In instantiation of ‘void graphite2::Vector<T>::reserve(size_t) [with T = graphite2::FeatureVal; size_t = long unsigned int]’:
/tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/List.h:90:72: required from ‘void graphite2::Vector<T>::push_back(const T&) [with T = graphite2::FeatureVal]’
/tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/Segment.h:130:69: required from here
/tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/List.h:107:42: warning: ‘void* realloc(void*, size_t)’ moving an object of non-trivially copyable type ‘class graphite2::FeatureVal’; use ‘new’ and ‘delete’ instead [-Wclass-memaccess]
107 | m_first = static_cast<T*>(realloc(m_first, n*sizeof(T)));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/FeatureMap.h:29,
from /tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/Face.h:34,
from /tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/Segment.h:34,
from /tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/Silf.cpp:32:
/tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/FeatureVal.h:38:7: note: ‘class graphite2::FeatureVal’ declared here
38 | class FeatureVal : public Vector<uint32>
| ^~~~~~~~~~
make: *** [Makefile:286: build] Error 2
bash-5.0#


Ressaltando que tive que modificar o arquivo libreoffice.Slackbuild, pois ele estava procurando por /etc/profile.d/openjdk8.sh, quando o arquivo que eu tenho é o /etc/profile.d/jdk.sh. Tudo que precisa de cMake por aqui está dando problemas... já tentei instalar o cmake, através do extra-cmake-modules (5.51.0) mas não consigo também. Dá erro.




  


2. Re: Erro na instalação do Libreoffice 6.2.0.3 no SlackWare 14.2 (current)

lindberg
lindbergluiz

(usa Slackware)

Enviado em 13/08/2019 - 13:35h

lindbergluiz escreveu:

Estou tentando compilar o pacote de instalação do Libreoffice 6.2.0.3, disponível no Slackbuilds.org. Instalei as pendências (jdk e avahi), mas num determinado momento (bem depois do início da instalação) o erro surgiu da seguinte maneira:

In file included from /tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/Segment.cpp:27:
/tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/UtfCodec.h: In static member function ‘static graphite2::uchar_t graphite2::_utf_codec<8>::get(const codeunit_t*, graphite2::int8&)’:
/tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/UtfCodec.h:150:93: warning: this statement may fall through [-Wimplicit-fallthrough=]
150 | case 4: u <<= 6; u |= *++cp & 0x3F; if (*cp >> 6 != 2) break; ++l; toolong = (u < 0x10); GR_FALLTHROUGH;
| ~~~~~~~~~^~~~~~~~~~~~
/tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/UtfCodec.h:152:13: note: here
152 | case 3: u <<= 6; u |= *++cp & 0x3F; if (*cp >> 6 != 2) break; ++l; toolong |= (u < 0x20); GR_FALLTHROUGH;
| ^~~~
/tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/UtfCodec.h:152:92: warning: this statement may fall through [-Wimplicit-fallthrough=]
152 | case 3: u <<= 6; u |= *++cp & 0x3F; if (*cp >> 6 != 2) break; ++l; toolong |= (u < 0x20); GR_FALLTHROUGH;
| ~~~~~~~~^~~~~~~~~~~~~
/tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/UtfCodec.h:154:13: note: here
154 | case 2: u <<= 6; u |= *++cp & 0x3F; if (*cp >> 6 != 2) break; ++l; toolong |= (u < 0x80); GR_FALLTHROUGH;
| ^~~~
In file included from /tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/FeatureVal.h:31,
from /tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/FeatureMap.h:29,
from /tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/Face.h:34,
from /tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/Segment.h:34,
from /tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/Silf.cpp:32:
/tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/List.h: In instantiation of ‘void graphite2::Vector<T>::reserve(size_t) [with T = graphite2::FeatureVal; size_t = long unsigned int]’:
/tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/List.h:90:72: required from ‘void graphite2::Vector<T>::push_back(const T&) [with T = graphite2::FeatureVal]’
/tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/Segment.h:130:69: required from here
/tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/List.h:107:42: warning: ‘void* realloc(void*, size_t)’ moving an object of non-trivially copyable type ‘class graphite2::FeatureVal’; use ‘new’ and ‘delete’ instead [-Wclass-memaccess]
107 | m_first = static_cast<T*>(realloc(m_first, n*sizeof(T)));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/FeatureMap.h:29,
from /tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/Face.h:34,
from /tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/Segment.h:34,
from /tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/Silf.cpp:32:
/tmp/SBo/libreoffice-6.2.0.3/workdir/UnpackedTarball/graphite/src/inc/FeatureVal.h:38:7: note: ‘class graphite2::FeatureVal’ declared here
38 | class FeatureVal : public Vector<uint32>
| ^~~~~~~~~~
make: *** [Makefile:286: build] Error 2
bash-5.0#


Ressaltando que tive que modificar o arquivo libreoffice.Slackbuild, pois ele estava procurando por /etc/profile.d/openjdk8.sh, quando o arquivo que eu tenho é o /etc/profile.d/jdk.sh. Tudo que precisa de cMake por aqui está dando problemas... já tentei instalar o cmake, através do extra-cmake-modules (5.51.0) mas não consigo também. Dá erro.



Como segunda opção, tentarei via alienBob, mas o erro ficará "dormindo" e provavelmente virá novamente em outras compilações....



3. Re: Erro na instalação do Libreoffice 6.2.0.3 no SlackWare 14.2 (current)

edps
edps

(usa Slackware)

Enviado em 13/08/2019 - 18:02h

Tem algum caroço nesse angú... no SBo a versão é a 6.2.5.2:

https://slackbuilds.org/repository/14.2/office/LibreOffice/

Vc está tentando usar uma versão ainda mais antiga no -current?

No.momento não posso testar aqui, daqui a pouco começarei uma instalação no SSD novo e daí eu testo.

O que posso dizer é que ontem compilei a versão mais recente desse elefante no CRUX e pediu treco pra kct.

* além.de eu ter que modificar o pacote oficial harfbuzz adicionando o suporte ao graphite2, la estava como "auto", mas não detectava.

EDIT:

As dependências para esse pacote são: perl-Archive-Zip, python3, apache-ant e openjdk7

As opcionais:

CoinMP cppunit glm libabw libcdr libcmis libe-book libeot libepubgen
libexttextcat libfreehand libmspub libmwaw libnumbertext liborcus
libpagemaker libqxp libnumbertext libstaroffice libtommath libwps libzmf
lpsolve mythes postgresql qt5 valgrind ucpp unixODBC avahi
libetonyek xmlsec vlc

Esse "porrão" de deps eu tive que instalar no CRUX, exceto o VLC.

E já que você falou em AVAHI, tem que seguir a seguinte regrinha antes de instalar esse pacote:

# groupadd -g 214 avahi"
# useradd -u 214 -g 214 -c "Avahi" -d /dev/null -s /bin/false avahi"

IntÉ!


4. Re: Erro na instalação do Libreoffice 6.2.0.3 no SlackWare 14.2 (current)

lindberg
lindbergluiz

(usa Slackware)

Enviado em 14/08/2019 - 00:05h

edps escreveu:

Tem algum caroço nesse angú... no SBo a versão é a 6.2.5.2:

https://slackbuilds.org/repository/14.2/office/LibreOffice/

Vc está tentando usar uma versão ainda mais antiga no -current?

No.momento não posso testar aqui, daqui a pouco começarei uma instalação no SSD novo e daí eu testo.

O que posso dizer é que ontem compilei a versão mais recente desse elefante no CRUX e pediu treco pra kct.

* além.de eu ter que modificar o pacote oficial harfbuzz adicionando o suporte ao graphite2, la estava como "auto", mas não detectava.

EDIT:

As dependências para esse pacote são: perl-Archive-Zip, python3, apache-ant e openjdk7

As opcionais:

CoinMP cppunit glm libabw libcdr libcmis libe-book libeot libepubgen
libexttextcat libfreehand libmspub libmwaw libnumbertext liborcus
libpagemaker libqxp libnumbertext libstaroffice libtommath libwps libzmf
lpsolve mythes postgresql qt5 valgrind ucpp unixODBC avahi
libetonyek xmlsec vlc

Esse "porrão" de deps eu tive que instalar no CRUX, exceto o VLC.

E já que você falou em AVAHI, tem que seguir a seguinte regrinha antes de instalar esse pacote:

# groupadd -g 214 avahi"
# useradd -u 214 -g 214 -c "Avahi" -d /dev/null -s /bin/false avahi"

IntÉ!


Exatamente.... Fiz essa regrinha aí, pois no próprio Bash pedia para fazer.

Confundi os números. Eu quero a mais nova que está disponível no site: 6.3.0


5. Re: Erro na instalação do Libreoffice 6.2.0.3 no SlackWare 14.2 (current)

edps
edps

(usa Slackware)

Enviado em 14/08/2019 - 13:46h

lindbergluiz escreveu:
Exatamente.... Fiz essa regrinha aí, pois no próprio Bash pedia para fazer.

Confundi os números. Eu quero a mais nova que está disponível no site: 6.3.0


Bem... no Slack -current a versão também é a 6.2.5.2, vou botar pra rolar aqui para ver se vai:

13:44 edps@darkstar[~]
$ sudo sbopkg -i LibreOffice
Both a queuefile and a package were found with the name "LibreOffice".

Use (Q)ueuefile, (P)ackage, or (A)bort?: q

###########################################
New queue process started on:
qua ago 14 13:44:09 -03 2019
###########################################

+++++++++++++++++++++++++++++++++++++++++++
PRE-CHECK LOG
Using the UNSUPPORTED SBo git repository for -current
Queue Process: Download, build, and install

perl-Archive-Zip:
GPG checks not supported for the SBo-git repository.
Processing perl-Archive-Zip 1.59-1
Using original .info file
Using original SlackBuild file
No build options selected.

apache-ant:
GPG checks not supported for the SBo-git repository.
Processing apache-ant 1.9.9-1
Using original .info file
Using original SlackBuild file
No build options selected.

openjdk7:
GPG checks not supported for the SBo-git repository.
Processing openjdk7 7u221-1
Using original .info file
Using original SlackBuild file
No build options selected.

LibreOffice:
GPG checks not supported for the SBo-git repository.
Processing LibreOffice 6.2.5.2-1
Using original .info file
Using original SlackBuild file
No build options selected.

+++++++++++++++++++++++++++++++++++++++++++

Pre-check complete.

Do you wish to proceed based on the search results above? Packages not
found will be skipped during the process.

(P)roceed or (Q)uit?:


Aqui deu erro na instalação do openjdk7:


configure: error: None of the following programs could be found on the PATH: fastjar jar
Cleaning up...

openjdk7:
Would you like to continue processing the rest of the
queue or would you like to abort? If this failed
package is a dependency of another package in the queue
then it may not make sense to continue.

(Y)es to continue, (N)o to abort, (R)etry the build?:


E como vi que essse pacote demora horas, vou pular fora desse trem! sorry...


6. Re: Erro na instalação do Libreoffice 6.2.0.3 no SlackWare 14.2 (current)

edps
edps

(usa Slackware)

Enviado em 19/08/2019 - 13:10h


Para não ter que reinventar a roda e poder ter esse elefante branco em meu Slack Current fis isso:

$ cp -rv /var/lib/sbopkg/SBo-git/office/libreoffice .
$ cp -rv /var/lib/sbopkg/SBo-git/office/libreoffice-langpack .
$ cp -rv /var/lib/sbopkg/SBo-git/office/libreoffice-helppack .
$ cd libreoffice


Baixei, empacotei e instalei a versão mais recente:

$ wget -nv https://download.documentfoundation.org/libreoffice/stable/6.3.0/rpm/x86_64/LibreOffice_6.3.0_Linux_...
$ sudo VERSION=6.3.0 sh libreoffice.SlackBuild
$ sudo upgradepkg --install-new --reinstall /tmp/libreoffice-6.3.0-x86_64-1_SBo.tgz

+==============================================================================
| Installing new package /tmp/libreoffice-6.3.0-x86_64-1_SBo.tgz
+==============================================================================

Verifying package libreoffice-6.3.0-x86_64-1_SBo.tgz.
Installing package libreoffice-6.3.0-x86_64-1_SBo.tgz:
PACKAGE DESCRIPTION:
# libreoffice (Productivity Suite)
#
# LibreOffice is a productivity suite that is compatible with other
# major office suites, and available on a variety of platforms. It is
# free software and therefore free to download, use and distribute.
#
# This is a repackaging of the official LibreOffice binary RPM's
# distributed by the upstream developers.
#
# Homepage: https://www.libreoffice.org
#
Executing install script for libreoffice-6.3.0-x86_64-1_SBo.tgz.
Package libreoffice-6.3.0-x86_64-1_SBo.tgz installed.


E prossegui com os apcotes de ajuda e linguagem:

$ cd ../libreoffice-helppack
$ wget -nv https://download.documentfoundation.org/libreoffice/stable/6.3.0/rpm/x86_64/LibreOffice_6.3.0_Linux_...
$ sudo VERSION=6.3.0 LOLANG=pt-BR sh libreoffice-helppack.SlackBuild
$ sudo upgradepkg --install-new --reinstall /tmp/libreoffice-helppack_pt_BR-6.3.0-x86_64-1_SBo.tgz

+==============================================================================
| Installing new package /tmp/libreoffice-helppack_pt_BR-6.3.0-x86_64-1_SBo.tgz
+==============================================================================

Verifying package libreoffice-helppack_pt_BR-6.3.0-x86_64-1_SBo.tgz.
Installing package libreoffice-helppack_pt_BR-6.3.0-x86_64-1_SBo.tgz:
PACKAGE DESCRIPTION:
Package libreoffice-helppack_pt_BR-6.3.0-x86_64-1_SBo.tgz installed.


E por último o pacote de tradução...

$ cd ../libreoffice-langpack
$ wget https://download.documentfoundation.org/libreoffice/stable/6.3.0/rpm/x86_64/LibreOffice_6.3.0_Linux_...
$ sudo VERSION=6.3.0 LOLANG=pt-BR sh libreoffice-langpack.SlackBuild
$ sudo upgradepkg --install-new --reinstall /tmp/libreoffice-langpack_pt_BR-6.3.0-x86_64-1_SBo.tgz

+==============================================================================
| Installing new package /tmp/libreoffice-langpack_pt_BR-6.3.0-x86_64-1_SBo.tgz
+==============================================================================

Verifying package libreoffice-langpack_pt_BR-6.3.0-x86_64-1_SBo.tgz.
Installing package libreoffice-langpack_pt_BR-6.3.0-x86_64-1_SBo.tgz:
PACKAGE DESCRIPTION:
Package libreoffice-langpack_pt_BR-6.3.0-x86_64-1_SBo.tgz installed.


Lisatgem...

$ ls /var/log/packages | grep libreoffice 
libreoffice-6.3.0-x86_64-1_SBo
libreoffice-helppack_pt_BR-6.3.0-x86_64-1_SBo
libreoffice-langpack_pt_BR-6.3.0-x86_64-1_SBo
$


Como observação... não instalei o JDK ou o Avahi, veja:

https://i.imgur.com/HcuAbEd.png















Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner
Linux banner
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts