Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 419883 - dev-cpp/libcmis-0.2.2 break libreoffice-3.5.4.2-r1
Summary: dev-cpp/libcmis-0.2.2 break libreoffice-3.5.4.2-r1
Status: RESOLVED DUPLICATE of bug 419825
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:
Depends on:
Blocks:
 
Reported: 2012-06-06 09:37 UTC by Francesco Riosa
Modified: 2012-06-06 12:59 UTC (History)
5 users (show)

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


Attachments
app-office:libreoffice-3.5.4.2-r1:20120606-010538.log.xz (app-office:libreoffice-3.5.4.2-r1:20120606-010538.log.xz,92.32 KB, application/x-xz)
2012-06-06 09:52 UTC, Francesco Riosa
Details
proposed libcmis-0.2.2 patch (libcmis-0.2.2-pkg-config-require-libxml.patch,352 bytes, patch)
2012-06-06 10:03 UTC, Marien Zwart (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco Riosa 2012-06-06 09:37:55 UTC
after emerging libcmis 0.2 /usr/lib64/libreoffice/program/ucpcmis1.uno.so is broken due to missing libcmis-0.2.so.0.0.0 But rebuilding libreoffice fail.

See attached build log for info


emerge --info:
Portage 2.2.0_alpha110 (default/linux/amd64/10.0, gcc-4.6.3, glibc-2.15-r2, 3.3.0-vs2.3.3.1 x86_64)
=================================================================
System uname: Linux-3.3.0-vs2.3.3.1-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.1
Timestamp of tree: Tue, 05 Jun 2012 19:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [enabled]
ccache version 3.1.7 [disabled]
app-shells/bash:          4.2_p29
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.8-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.2
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.5, 1.12.1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2, 4.6.3
sys-devel/gcc-config:     1.7.2
sys-devel/libtool:        1.5.26-r1, 2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo vivovl digikam mysql
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=corei7-avx -pipe -frecord-gcc-switches -mno-movbe -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=corei7-avx -fgcse-after-reload -fpredictive-commoning -ftree-vectorize -funswitch-loops -fgraphite-identity -floop-block -floop-interchange -floop-strip-mine  -ggdb -gdwarf-4 -fvar-tracking-assignments"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=corei7-avx -pipe -frecord-gcc-switches -mno-movbe -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=corei7-avx -fgcse-after-reload -fpredictive-commoning -ftree-vectorize -funswitch-loops -fgraphite-identity -floop-block -floop-interchange -floop-strip-mine  -ggdb -gdwarf-4 -fvar-tracking-assignments -fvisibility-inlines-hidden"
DISTDIR="/g/distfiles"
EMERGE_DEFAULT_OPTS="--ask-enter-invalid --quiet-build=y"
FEATURES="assume-digests binpkg-logs buildpkg compress-build-logs compressdebug config-protect-if-modified distcc distlocks ebuild-locks fixlafiles installsources metadata-transfer news noinfo parallel-fetch parse-eapi-ebuild-head sandbox sfperms splitdebug strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv xattr"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/ http://mirror.ovh.net/gentoo-distfiles/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://gentoo.lagis.at/ http://mirror.qubenet.net/mirror/gentoo/"
INSTALL_MASK="/usr/lib64/libogrove.la /usr/lib64/libospgrove.la /usr/lib64/libostyle.la /usr/lib64/vlc/plugins/codec/libdirac_plugin.la /usr/lib64/vlc/plugins/demux/libdirac_plugin.la /bin/systemd /bin/systemctl "
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--sort-common -Wl,--no-copy-dt-needed-entries -Wl,--build-id "
LINGUAS="it"
MAKEOPTS="-j15"
PKGDIR="/g/packages"
PORTAGE_COMPRESS="lzma"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/g/portage"
PORTDIR_OVERLAY="/g/ovl/tmp /g/ovl/digikam /g/ovl/mysql"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl akonadi alsa amd64 amr analitza apache2 apm asf attica automount avi avx bash-completion berkdb bitmap-fonts browserplugin bzip2 cairo caps captury cdda cddb chm cli cmake compositor consolekit cpudetection cracklib crypt cups curl cxx dbus decibel declarative dedicated device-mapper djvu dri dvdr dvdread emboss encode engines erandom exif exiv2 extrafilters fam fame ffmpeg firefox flac foomaticdb fortran frei0r g3dvl gallium gdbm geos gif gles2 glitz gpm gstreamer gtk2 hal hdf hdf5 hpijs hpn htmlhandbook iconv idn imagemagick imlib iproute2 ipv6 ithreads jack java jingle jpeg jpeg2k justify kde kdeenablefinal kdehiddenvisibility kdepim kipi kontact latex lcms lensfun libg++ libwww lua lzma lzo mad messenger mikmod mjpeg mng modules motif mp3 mpeg mplayer mudflap multilib mysql ncurses nepomuk new-hpcups newxkb nls nptl odbc ogdi ogg opencl openexr opengl openmp osmesa pam pam_chroot pcre perl plasma plugins png policykit pppd private-headers pulseaudio python qt qt3support qt4 quicktime 
radeon rdesktop readline realtime reiserfs samba sasl scanner schroedinger screen sdl semantic-desktop server session skey slang smp social-desktop spell sqlite3 sse sse2 sse3 sse4_1 ssl ssse3 startup-notification static-libs svg system-sqlite systemd taglib tcltk tcpd telepathy theora threads tiff tls truetype truetype-fonts ucs2 udev unicode urandom usb userlocales utempter utils v4l v4l2 valgrind vdpau vnc vorbis wayland webkit x264 xattr xcb xcomposite xinerama xml xorg xv xvid xvmc zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default 
authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias reqtimeout" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2 directory canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="bootchart btrfs crypt dmsquash-live mdraid syslog uswsusp biosdevname caps" ELIBC="glibc" FFTOOLS="aviocat cws2fws ffeval ismindex pktdumper qt-faststart trasher" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard 
mouse evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="it" PHP_TARGETS="php5-4" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="arm x86_64" QEMU_USER_TARGETS="arm x86_64" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="hp4200 net ricoh" USERLAND="GNU" VIDEO_CARDS="nouveau radeon r300 r600 r700 r800 intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Francesco Riosa 2012-06-06 09:52:23 UTC
Created attachment 314391 [details]
app-office:libreoffice-3.5.4.2-r1:20120606-010538.log.xz

attached
app-office:libreoffice-3.5.4.2-r1:20120606-010538.log.gz
libreoffice build log

latest succesfull build was:
2.1M May 31 18:51 app-office:libreoffice-3.5.4.2-r1:20120531-154908.log.gz
Comment 2 Marien Zwart (RETIRED) gentoo-dev 2012-06-06 09:54:19 UTC
Confirmed. Relevant bit from a build log:

/usr/include/libcmis-0.2/libcmis/property-type.hxx:32:25: fatal error: libxml/tree.h: No such file or directory

which I believe to be a libcmis oversight: libreoffice seems to be using pkg-config to get compiler and linker flags for libcmis, and "pkg-config --cflags libcmis-0.2" misses -I/usr/include/libxml2 (because libcmis-0.2.pc misses a Requires (or Requires.private, more likely) of libxml-2.0). I'll go see if that fixes it.
Comment 3 Marien Zwart (RETIRED) gentoo-dev 2012-06-06 10:03:08 UTC
Created attachment 314393 [details, diff]
proposed libcmis-0.2.2 patch

With this patch to libcmis-0.2.2's .pc.in file (getting the ebuild to apply the patch is left as an exercise to the reader) "pkg-config --cflags libcmis-0.2" becomes "-I/usr/include/libcmis-0.2 -I/usr/include/libxml2" which seems much more reasonable given the includes in the installed headers. I've kicked off another libreoffice rebuild, but it'll be a while before I know if that now works.
Comment 4 Marien Zwart (RETIRED) gentoo-dev 2012-06-06 10:38:51 UTC
Now it fails like this:

.../libreoffice-core-3.5.4.2/ucb/source/ucp/cmis/cmis_content.cxx: In member function 'sal_Bool cmis::Content::feedSink(com::sun::star::uno::Reference<com::sun::star::uno::XInterface>, const com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment>&)':
.../libreoffice-core-3.5.4.2/ucb/source/ucp/cmis/cmis_content.cxx:325:30: error: 'class libcmis::Document' has no member named 'getContent'

and there's no such call in the most recent version of cmis_content.cxx, but it was removed as part of upstream commit http://cgit.freedesktop.org/libreoffice/core/commit/?id=966d20e35d5a2be2fce6c204af5c156c3ead7063 which is a tad large. Someone who actually knows what they're doing should probably check if this can sensibly be fixed in this version of libreoffice (it's still there in the libreoffice-3.5 branch).
Comment 5 Francesco Riosa 2012-06-06 10:42:37 UTC
IMHO: since libreoffice is the only rdep of libcmis, just live with a DEPEND=<libcmis-0.2.2 in 3.4 and probably >=0.2.2 in LO 3.6
your call
Comment 6 Tomáš Chvátal (RETIRED) gentoo-dev 2012-06-06 12:47:29 UTC
I am duping this again bit older bug#419825.

The patch is slightly wrong. As not-only internal headers use the xml it should be in required, not required.private (for example on windows it is needed).

I already commited the fix for that into trunk and we will release cmis-0.2.3 soonish. For the 3.5 branch i am restricting the version to 0.1 as per discussion with the author of the library and his plans. (actually he suggested disabling cmis as whole on 3.5 :P)

*** This bug has been marked as a duplicate of bug 419825 ***
Comment 7 Albert W. Hopkins 2012-06-06 12:59:42 UTC
Thanks Tomáš.