Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917752 - app-office/libreoffice-7.5.8.2-r2 persistent emerge failure
Summary: app-office/libreoffice-7.5.8.2-r2 persistent emerge failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
: 917766 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-11-22 17:57 UTC by Scott Furry
Modified: 2023-11-22 23:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Emerge Info (emerge_info.txt,7.27 KB, text/plain)
2023-11-22 17:57 UTC, Scott Furry
Details
Emerge Log (libreoffice-7.5.8.2-r2_20231122-171510.log.bz2,171.73 KB, application/x-bzip)
2023-11-22 17:59 UTC, Scott Furry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Furry 2023-11-22 17:57:24 UTC
Created attachment 875332 [details]
Emerge Info

Package under went a release bump from -r1 to -r2. Since bump package will persistently fail during compile fail. Emerge failure only happens with -r2.

Build error reported from log:

[CXX] ucb/source/ucp/cmis/std_inputstream.cxx
/var/tmp/portage/app-office/libreoffice-7.5.8.2-r2/work/libreoffice-7.5.8.2/ucb/source/ucp/cmis/cmis_content.cxx:341:38: error: no type named 'setCurlInitProtocolsFunction' in 'libcmis::SessionFactory'
            libcmis::SessionFactory::setCurlInitProtocolsFunction(&::InitCurl_easy);
            ~~~~~~~~~~~~~~~~~~~~~~~~~^
/var/tmp/portage/app-office/libreoffice-7.5.8.2-r2/work/libreoffice-7.5.8.2/ucb/source/ucp/cmis/cmis_content.cxx:341:70: error: definition or redeclaration of 'InitCurl_easy' cannot name the global scope
            libcmis::SessionFactory::setCurlInitProtocolsFunction(&::InitCurl_easy);
                                                                   ~~^
/var/tmp/portage/app-office/libreoffice-7.5.8.2-r2/work/libreoffice-7.5.8.2/ucb/source/ucp/cmis/cmis_content.cxx:341:70: error: declaration of reference variable 'InitCurl_easy' requires an initializer
            libcmis::SessionFactory::setCurlInitProtocolsFunction(&::InitCurl_easy);
                                                                     ^~~~~~~~~~~~~
S=/var/tmp/portage/app-office/libreoffice-7.5.8.2-r2/work/libreoffice-7.5.8.2 && I=$S/instdir && W=$S/workdir &&  mkdir -p $W/CxxObject/ucb/source/ucp/cmis/ $W/Dep/CxxObject/ucb/source/ucp/cmis/ && cd /var/tmp/portage/app-office/libreoffice-7.5.8.2-r2/work/libreoffice-7.5.8.2 && CCACHE_CPP2=1   	  x86_64-pc-linux-gnu-clang++ -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=gcc3 -DLINUX -DNDEBUG -DOSL_DEBUG_LEVEL=0 -DUNIX -DUNX -DX86_64 -D_PTHREADS -D_REENTRANT  -DSYSTEM_CURL  -DSYSTEM_LIBXML   -fvisibility=hidden    -Wall -Wno-missing-braces -Wendif-labels -Wextra -Wundef -Wunreachable-code -Wshadow -Wunused-macros -Wembedded-directive -finput-charset=UTF-8 -fmessage-length=0 -fno-common -pipe -fstack-protector-strong  -Wdeprecated-copy-dtor -Wimplicit-fallthrough -Wunused-exception-parameter -Wrange-loop-analysis -fvisibility-inlines-hidden -fPIC -Wshadow -Woverloaded-virtual -std=c++17 -pthread  -march=bdver1 -O2 -pipe  -DEXCEPTIONS_ON -fexceptions    -DLIBO_INTERNAL_ONLY  -c $S/ucb/source/ucp/cmis/std_inputstream.cxx -o $W/CxxObject/ucb/source/ucp/cmis/std_inputstream.o  -I$S/include  -I$S/config_host  -I$W/UnoApiHeadersTarget/udkapi/normal -I$W/UnoApiHeadersTarget/offapi/normal -I/usr/include  -I/usr/include     -isystem /usr/include/libcmis-0.5 -isystem /usr/include/libxml2           -isystem /usr/include/libxml2
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-22 17:59:27 UTC
I guess this is the curl patch...

Please include the build.log, compressed if needed.
Comment 2 Scott Furry 2023-11-22 17:59:33 UTC
Created attachment 875333 [details]
Emerge Log

Log file compressed with bzip2
Original Size 5.2MB
Comment 3 Scott Furry 2023-11-22 18:02:03 UTC
Caught me in the process of creating the log. BZip2 compressed log file attached.
Comment 4 Paul Zander 2023-11-22 18:18:52 UTC
Could you update dev-cpp/libcmis to the :0/0.6 SLOT? E.g. `emerge -1a dev-cpp/libcmis:0/0.6` and report if that fixes it for you?
Comment 5 Scott Furry 2023-11-22 18:24:06 UTC
(In reply to Paul Zander from comment #4)
> Could you update dev-cpp/libcmis to the :0/0.6 SLOT? E.g. `emerge -1a
> dev-cpp/libcmis:0/0.6` and report if that fixes it for you?

Bug # 917695 (https://bugs.gentoo.org/917695). libcmis was explicitly pinned at 0.5. Your suggest is to circumvent this action. Please confirm this is the intention.
Comment 6 Andreas Sturmlechner gentoo-dev 2023-11-22 19:10:50 UTC
(In reply to Scott Furry from comment #5)
> (In reply to Paul Zander from comment #4)
> > Could you update dev-cpp/libcmis to the :0/0.6 SLOT? E.g. `emerge -1a
> > dev-cpp/libcmis:0/0.6` and report if that fixes it for you?
> 
> Bug # 917695 (https://bugs.gentoo.org/917695). libcmis was explicitly pinned
> at 0.5. Your suggest is to circumvent this action. Please confirm this is
> the intention.
7.5.8.2-r0 is pinned to :0.5. 7.5.8.2-r2 is not.
Comment 7 Scott Furry 2023-11-22 19:42:57 UTC
Still compiling but review of log appears to show build has passed the libcmis section without failure.
Comment 8 Andreas Sturmlechner gentoo-dev 2023-11-22 20:08:13 UTC
(In reply to Sam James from comment #1)
> I guess this is the curl patch...
Indeed, it depends on https://github.com/tdf/libcmis/commit/260424e560275431d41b1dc3fef2dd2c71dbbc1c

Since we are not going to stabilise this version yet, rather than dropping the patch, we could leave it for more testing and bump libcmis min version accordingly.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-22 20:11:18 UTC
(In reply to Andreas Sturmlechner from comment #8)
> (In reply to Sam James from comment #1)
> > I guess this is the curl patch...
> Indeed, it depends on
> https://github.com/tdf/libcmis/commit/
> 260424e560275431d41b1dc3fef2dd2c71dbbc1c
> 
> Since we are not going to stabilise this version yet, rather than dropping
> the patch, we could leave it for more testing and bump libcmis min version
> accordingly.

wfm
Comment 10 Scott Furry 2023-11-22 20:18:39 UTC
(In reply to Andreas Sturmlechner from comment #8)
> (In reply to Sam James from comment #1)
> > I guess this is the curl patch...
> Indeed, it depends on
> https://github.com/tdf/libcmis/commit/
> 260424e560275431d41b1dc3fef2dd2c71dbbc1c
> 
> Since we are not going to stabilise this version yet, rather than dropping
> the patch, we could leave it for more testing and bump libcmis min version
> accordingly.

Recommend that libreoffice dependency libcmis have a minimum version to safe guard against future bug reports. Clearly, libcmis @ 0.5.2-r2 is insufficient to allow for successful emerge of libreoffice-7.5.8.2-r2
Comment 11 Scott Furry 2023-11-22 20:48:56 UTC
build successful but execution fails with

terminate called after throwing an instance of 'com::sun::star::lang::WrappedTargetRuntimeException'
Unspecified Application Error

Need to dissect fault. Problem may be local in nature.
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-22 20:51:00 UTC
(In reply to Scott Furry from comment #11)
> build successful but execution fails with
> 
> terminate called after throwing an instance of
> 'com::sun::star::lang::WrappedTargetRuntimeException'
> Unspecified Application Error
> 
> Need to dissect fault. Problem may be local in nature.

I saw a reference to something like this earlier.. https://bugs.documentfoundation.org/show_bug.cgi?id=158107.

Could you file a new bug for that please so we can dig into it there?
Comment 13 Scott Furry 2023-11-22 21:10:15 UTC
Let's call it a transient problem. After visiting the link above and using "libreoffice --backtrace", application started up normally. Application was then able to be started from menu normally.
Comment 14 Andreas Sturmlechner gentoo-dev 2023-11-22 23:02:07 UTC
*** Bug 917766 has been marked as a duplicate of this bug. ***
Comment 15 Andreas Sturmlechner gentoo-dev 2023-11-22 23:07:39 UTC
(In reply to Scott Furry from comment #10)
> Recommend that libreoffice dependency libcmis have a minimum version to safe
> guard against future bug reports. Clearly, libcmis @ 0.5.2-r2 is
> insufficient to allow for successful emerge of libreoffice-7.5.8.2-r2
We've had two options here and are choosing one.
Comment 16 Larry the Git Cow gentoo-dev 2023-11-22 23:10:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de0a360faab26e96b35e811aba21f4d6c41cb010

commit de0a360faab26e96b35e811aba21f4d6c41cb010
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2023-11-22 23:08:28 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2023-11-22 23:10:21 +0000

    app-office/libreoffice: Raise minimum dev-cpp/libcmis version to 0.6.2
    
    Made necessary by follow-up patch backported from 7.5.9.1.
    
    Closes: https://bugs.gentoo.org/917752
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 app-office/libreoffice/libreoffice-7.5.8.2-r2.ebuild | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)