Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 442984

Summary: app-office/calligra-l10n-2.5.3 does not compile.
Product: Gentoo Linux Reporter: Marco Colombetti <mack1.colo>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED OBSOLETE    
Severity: normal CC: mack1.colo, office
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build.log
Build log app-office/calligra-l10n-2.6.3
The build log MAKEOPTS="-j1 V=1 VERBOSE=1" emerge -1v calligra-l10
Log file: strace -e trace=file /usr/bin/meinproc4 --check --cache index.cache.bz2 index.docbook

Description Marco Colombetti 2012-11-13 15:30:55 UTC
Created attachment 329462 [details]
Build.log

Compiling app-office/calligra-2.5.3, app-office/calligra-l10n-2.5.3 fails to build, but if i try with LINGUAS="" emerge -1 calligra-l10n  everything works!
Comment 1 Marco Colombetti 2012-11-13 15:34:36 UTC
Portage 2.1.11.31 (default/linux/amd64/10.0/desktop/kde, gcc-4.7.2, glibc-2.15-r3, 3.5.7-gentoo x86_64)
=================================================================
System uname: Linux-3.5.7-gentoo-x86_64-Intel-R-_Core-TM-_i5-3570_CPU_@_3.40GHz-with-gentoo-2.1
Timestamp of tree: Tue, 13 Nov 2012 13:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.7.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=6"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/"
LANG="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,now -Wl,-z,relro -Wl,--hash-style=gnu"
LINGUAS="it"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
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="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 aspell avx branding bzip2 cairo cdda cdr cleartype cli consolekit corefonts cracklib crypt cups custom-cflags custom-optimization dbus declarative djvu dri dts dv dvd dvdr emboss encode exif firefox flac fortran fuse gdbm gif gimp gmp iconv icu ipv6 ithreads jpeg kde kipi lame lcms mad mmx mng modules mp3 mp4 mpeg mplayer mudflap multilib ncurses networkmanager nls nptl nsplugin nvidia ogg openexr opengl openmp pam pango pdf phonon plasma png policykit ppds pppd qt3support qt4 quicktime readline samba scanner session slang smp spell sse sse2 sse3 sse4_1 sse4a ssl ssse3 svg symlink theora threads tiff truetype type1 udev udisks unicode upower usb vdpau vorbis wavpack wma wmf wxwidgets x264 xcomposite xft xml xv xvid 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" CALLIGRA_FEATURES="braindump flow karbon kexi krita sheets stage words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" 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="evdev" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="it" PHP_TARGETS="php5-3" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="hp hp3500 hp3900 hp4200 hp5400 hp5590 hpljm1005 hpsj5s" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Michael Palimaka (kensington) gentoo-dev 2012-11-15 14:28:26 UTC
Please rebuild dev-libs/libxslt and try merging this package again.
Comment 3 Marco Colombetti 2012-11-15 14:52:36 UTC
Thanks Michael, but rebuilding dev-libs/libxslt doesn't fix that issue,  calligra-l10n-2.5.3 doesn't build with LINGUAS="it".
I also try to build calligra-l10n with other language like LINGUAS="en_GB" or LINGUAS="da" and it compile fine, only  LINGUAS="it" is broken.
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2013-03-09 18:48:33 UTC
Is this bug still occurring in 2.5.5?
Comment 5 Marco Colombetti 2013-03-09 19:26:29 UTC
Yes is still occurring, but it builds fine with LINGUAS="":

root@Snow:~>LINGUAS="" emerge calligra
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Starting parallel fetch

>>> Emerging (1 of 2) app-office/calligra-l10n-2.5.5
>>> Unpacking source...
 * 
 * You either have the LINGUAS variable unset, or it only
 * contains languages not supported by calligra-l10n-2.5.5.
 * You won't have any additional language support.
 * 
 * calligra-l10n-2.5.5 supports these language codes:
 * ca da de el en_GB es et fi fr gl hu it ja kk nb nds nl pl pt pt_BR ru sk sv uk zh_CN zh_TW
 * 
>>> Source unpacked in /var/tmp/portage/app-office/calligra-l10n-2.5.5/work
>>> Preparing source in /var/tmp/portage/app-office/calligra-l10n-2.5.5/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-office/calligra-l10n-2.5.5/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-office/calligra-l10n-2.5.5/work ...
>>> Source compiled.
>>> Test phase [not enabled]: app-office/calligra-l10n-2.5.5

>>> Install calligra-l10n-2.5.5 into /var/tmp/portage/app-office/calligra-l10n-2.5.5/image/ category app-office
>>> Completed installing calligra-l10n-2.5.5 into /var/tmp/portage/app-office/calligra-l10n-2.5.5/image/


>>> Installing (1 of 2) app-office/calligra-l10n-2.5.5
 * Updating desktop mime database ...
 * Updating shared mime info database ...
Comment 6 Tomáš Chvátal (RETIRED) gentoo-dev 2013-04-27 08:12:10 UTC
As there is new version 2.6.3 could you try that one please?
Comment 7 Marco Colombetti 2013-04-27 08:36:36 UTC
(In reply to comment #6)
> As there is new version 2.6.3 could you try that one please?

Hi Tomáš, the same error building app-office/calligra-2.6.3 and app-office/calligra-l10n-2.6.3 (but it also build fine with LINGUAS="").
Comment 8 Marco Colombetti 2013-04-27 08:39:13 UTC
Created attachment 346680 [details]
Build log app-office/calligra-l10n-2.6.3
Comment 9 Marco Colombetti 2013-04-27 08:40:20 UTC
I uploaded the build log of app-office/calligra-l10n-2.6.3.
Comment 10 Tomáš Chvátal (RETIRED) gentoo-dev 2013-04-27 08:53:00 UTC
index.docbook:27: warning: failed to load external entity "dtd/kdex.dtd"
]>
  ^
index.docbook:31: parser error : Entity 'language' not defined
<book id="calligra" lang="&language;">


This is weird. As when checking my computer:

scarabeus@arcarius: ~ $ equery belongs /usr/share/apps/ksgmltools2/customization/dtd/kdex.dtd
 * Searching for /usr/share/apps/ksgmltools2/customization/dtd/kdex.dtd ... 
kde-base/kdelibs-4.10.1-r1 (/usr/share/apps/ksgmltools2/customization/dtd/kdex.dtd)

s LINGUAS="it" ebuild calligra-l10n-2.6.3.ebuild install

also passes the build phase.


The handbook generating code is this:

macro (KDE4_CREATE_HANDBOOK _docbook)
   get_filename_component(_input ${_docbook} ABSOLUTE)
   set(_doc ${CMAKE_CURRENT_BINARY_DIR}/index.cache.bz2)
   set(_ssheet ${DATA_INSTALL_DIR}/ksgmltools2/customization/kde-chunk.xsl)
   add_custom_command(OUTPUT ${_doc}
      COMMAND ${KDE4_MEINPROC_EXECUTABLE} --check --cache ${_doc} ${_input}
      DEPENDS ${_input} ${_KDE4_MEINPROC_EXECUTABLE_DEP} ${_ssheet}
   )
   add_custom_target(handbook ALL DEPENDS ${_doc})
endmacro (KDE4_CREATE_HANDBOOK)

So the /usr/bin/meinproc4 is used to generate the docfile. If you could go to folder:

/var/tmp/portage/app-office/calligra-l10n-2.6.3/work/calligra-l10n-it-2.6.3/docs/calligra/kexi

and trigger the build yourself like this:

/usr/bin/meinproc4 --check --cache index.cache.bz2 index.docbook
Comment 11 Marco Colombetti 2013-04-27 11:42:34 UTC
(In reply to comment #10)
> index.docbook:27: warning: failed to load external entity "dtd/kdex.dtd"
> ]>
>   ^
> index.docbook:31: parser error : Entity 'language' not defined
> <book id="calligra" lang="&language;">
> 
> 
> This is weird. As when checking my computer:
> 
> scarabeus@arcarius: ~ $ equery belongs
> /usr/share/apps/ksgmltools2/customization/dtd/kdex.dtd
>  * Searching for /usr/share/apps/ksgmltools2/customization/dtd/kdex.dtd ... 
> kde-base/kdelibs-4.10.1-r1
> (/usr/share/apps/ksgmltools2/customization/dtd/kdex.dtd)
> 
> s LINGUAS="it" ebuild calligra-l10n-2.6.3.ebuild install
> 
> also passes the build phase.
> 
> 
> The handbook generating code is this:
> 
> macro (KDE4_CREATE_HANDBOOK _docbook)
>    get_filename_component(_input ${_docbook} ABSOLUTE)
>    set(_doc ${CMAKE_CURRENT_BINARY_DIR}/index.cache.bz2)
>    set(_ssheet ${DATA_INSTALL_DIR}/ksgmltools2/customization/kde-chunk.xsl)
>    add_custom_command(OUTPUT ${_doc}
>       COMMAND ${KDE4_MEINPROC_EXECUTABLE} --check --cache ${_doc} ${_input}
>       DEPENDS ${_input} ${_KDE4_MEINPROC_EXECUTABLE_DEP} ${_ssheet}
>    )
>    add_custom_target(handbook ALL DEPENDS ${_doc})
> endmacro (KDE4_CREATE_HANDBOOK)
> 
> So the /usr/bin/meinproc4 is used to generate the docfile. If you could go
> to folder:
> 
> /var/tmp/portage/app-office/calligra-l10n-2.6.3/work/calligra-l10n-it-2.6.3/
> docs/calligra/kexi
> 
> and trigger the build yourself like this:
> 



> /usr/bin/meinproc4 --check --cache index.cache.bz2 index.docbook

I tried it (both calligra-l10n-2.5.3 and calligra-l10n-2.6.3) but i had these errors :

index.docbook:9434: element para: validity error : No declaration for element para
 Anne-Marie Mahfouf, Raphael Langerhorst, Michal Kubicki e Aron Stansvik. </para
                                                                               ^
index.docbook:9437: element ulink: validity error : No declaration for attribute url of element ulink
>GNU Lesser General Public License</ulink
^
index.docbook:9438: element ulink: validity error : No declaration for element ulink
>. </para>
 ^
index.docbook:9438: element para: validity error : No declaration for element para
>. </para>
          ^
index.docbook:9444: element email: validity error : No declaration for element email
></para
 ^
index.docbook:9445: element para: validity error : No declaration for element para
> <para
 ^
index.docbook:9448: element email: validity error : No declaration for element email
></para
 ^
index.docbook:9449: element para: validity error : No declaration for element para
>  &underFDL; </chapter>
 ^
index.docbook:9449: parser error : Entity 'underFDL' not defined
>  &underFDL; </chapter>
             ^
index.docbook:9449: element chapter: validity error : No declaration for element chapter
>  &underFDL; </chapter>
                        ^
index.docbook:9450: parser error : Entity 'documentation.index' not defined
&documentation.index;
                     ^
index.docbook:9451: element book: validity error : No declaration for element book
</book>
Comment 12 Tomáš Chvátal (RETIRED) gentoo-dev 2013-04-27 12:04:50 UTC
Try to add --debug to meinproc and post the output here as attachment.
Comment 13 Marco Colombetti 2013-04-27 12:30:15 UTC
(In reply to comment #12)
> Try to add --debug to meinproc and post the output here as attachment.

--debug is not a valid option of meinproc.
Comment 14 Tomáš Chvátal (RETIRED) gentoo-dev 2013-04-27 12:42:10 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > Try to add --debug to meinproc and post the output here as attachment.
> 
> --debug is not a valid option of meinproc.

Ah my bad.

Still i think it is dtd issue.

Which versions of app-text/docbook-xml-dtd you have installed.
And what version of app-text/docbook-xsl-stylesheets you have.
Comment 15 Marco Colombetti 2013-04-27 12:48:59 UTC
(In reply to comment #14)
> (In reply to comment #13)
> > (In reply to comment #12)
> > > Try to add --debug to meinproc and post the output here as attachment.
> > 
> > --debug is not a valid option of meinproc.
> 
> Ah my bad.
> 
> Still i think it is dtd issue.
> 
> Which versions of app-text/docbook-xml-dtd you have installed.
> And what version of app-text/docbook-xsl-stylesheets you have.

Hi Tomáš,

emerge -pv app-text/docbook-xml-dtd app-text/docbook-xsl-stylesheets

These are the packages that would be merged, in order:

Calculating dependencies                    ... done!         
[ebuild   R    ] app-text/docbook-xsl-stylesheets-1.78.0  USE="-ruby" 4,894 kB
[ebuild  NS    ] app-text/docbook-xml-dtd-4.5-r1:4.5 [4.1.2-r6:4.1.2, 4.2-r2:4.2] 97 kB

Total: 2 packages (1 in new slot, 1 reinstall), Size of downloads: 4,990 kB
Comment 16 Tomáš Chvátal (RETIRED) gentoo-dev 2013-04-27 13:10:59 UTC
Not what I needed :P

I need to know all exact versions for that stylesheets, because there are quite few slots.
Comment 17 Marco Colombetti 2013-04-27 13:17:25 UTC
(In reply to comment #16)
> Not what I needed :P
> 
> I need to know all exact versions for that stylesheets, because there are
> quite few slots.

I have installed 4.1.2-r6 4.2-r2 of docbook-xml-dtd, but how can i provide you the right informations?
Comment 18 Marco Colombetti 2013-04-27 13:23:09 UTC
docbook-xsl-stylesheets-1.78.0 is the only version i have installed on my gentoo
Comment 19 Tomáš Chvátal (RETIRED) gentoo-dev 2013-04-27 13:27:05 UTC
For further reference you can use eshowkw or eix to do that:


scarabeus@arcarius: ~ $ eshowkw app-text/docbook-xml-dtd
Keywords for app-text/docbook-xml-dtd:
            |                           | u       |  
            | a a             p     s   | n       |  
            | l m   h i m m   p s   p   | u s     | r
            | p d a p a 6 i p c 3   a x | s l     | e
            | h 6 r p 6 8 p p 6 9 s r 8 | e o     | p
            | a 4 m a 4 k s c 4 0 h c 6 | d t     | o
------------+---------------------------+---------+-------
[I]4.1.2-r6 | + + + + + + ~ + + + + + + | o 4.1.2 | gentoo
------------+---------------------------+---------+-------
  [I]4.2-r2 | + + + + + + ~ + + + + + + | o 4.2   | gentoo
------------+---------------------------+---------+-------
     4.3-r1 | + + + + + + ~ + + + + + + | o 4.3   | gentoo
------------+---------------------------+---------+-------
  [I]4.4-r2 | + + + + + + ~ + + + + + + | o 4.4   | gentoo
------------+---------------------------+---------+-------
  [I]4.5-r1 | + + + + + + ~ + + + + + + | o 4.5   | gentoo
Comment 20 Marco Colombetti 2013-04-27 13:30:51 UTC
eshowkw app-text/docbook-xml-dtd
Keywords for app-text/docbook-xml-dtd:
            |                           | u       |  
            | a a             p     s   | n       |  
            | l m   h i m m   p s   p   | u s     | r
            | p d a p a 6 i p c 3   a x | s l     | e
            | h 6 r p 6 8 p p 6 9 s r 8 | e o     | p
            | a 4 m a 4 k s c 4 0 h c 6 | d t     | o
------------+---------------------------+---------+-------
[I]4.1.2-r6 | + + + + + + ~ + + + + + + | o 4.1.2 | gentoo
------------+---------------------------+---------+-------
  [I]4.2-r2 | + + + + + + ~ + + + + + + | o 4.2   | gentoo
------------+---------------------------+---------+-------
     4.3-r1 | + + + + + + ~ + + + + + + | o 4.3   | gentoo
------------+---------------------------+---------+-------
     4.4-r2 | + + + + + + ~ + + + + + + | o 4.4   | gentoo
------------+---------------------------+---------+-------
     4.5-r1 | + + + + + + ~ + + + + + + | o 4.5   | gentoo
Comment 21 Tomáš Chvátal (RETIRED) gentoo-dev 2013-04-27 13:46:43 UTC
Okey so dtd files required are there.

So one more build with logs needed.

# MAKEOPTS="-j1 V=1 VERBOSE=1" emerge -1v calligra-l10n
Comment 22 Marco Colombetti 2013-04-27 13:56:49 UTC
(In reply to comment #21)
> Okey so dtd files required are there.
> 
> So one more build with logs needed.
> 
> # MAKEOPTS="-j1 V=1 VERBOSE=1" emerge -1v calligra-l10n

The build fails again, i uploaded the build log.
Comment 23 Marco Colombetti 2013-04-27 13:57:51 UTC
Created attachment 346692 [details]
The build log MAKEOPTS="-j1 V=1 VERBOSE=1" emerge -1v calligra-l10
Comment 24 Tomáš Chvátal (RETIRED) gentoo-dev 2013-04-27 14:11:11 UTC
Aah, so the dtds are there, yet they are not found.

Lets see where your meinproc4 looks for them.

strace -e trace=file  /usr/bin/meinproc4 --check --cache index.cache.bz2 index.docbook
Comment 25 Marco Colombetti 2013-04-27 14:20:48 UTC
(In reply to comment #24)
> Aah, so the dtds are there, yet they are not found.
> 
> Lets see where your meinproc4 looks for them.
> 
> strace -e trace=file  /usr/bin/meinproc4 --check --cache index.cache.bz2
> index.docbook

I can't read the first lines, the output is too long, is it enought?


index.docbook:9449: element para: validity error : No declaration for element para
>  &underFDL; </chapter>
 ^
index.docbook:9449: parser error : Entity 'underFDL' not defined
>  &underFDL; </chapter>
             ^
index.docbook:9449: element chapter: validity error : No declaration for element chapter
>  &underFDL; </chapter>
                        ^
index.docbook:9450: parser error : Entity 'documentation.index' not defined
&documentation.index;
                     ^
index.docbook:9451: element book: validity error : No declaration for element book
</book>
       ^
chdir("/var/tmp/portage/app-office/calligra-l10n-2.6.3/work/calligra-l10n-it-2.6.3/docs/calligra/kexi") = 0
open("/sys/devices/system/cpu/online", O_RDONLY|O_CLOEXEC) = 6
+++ exited with 1 +++
Comment 26 Tomáš Chvátal (RETIRED) gentoo-dev 2013-04-27 14:26:46 UTC
You can redirect the output.

mycommand &> logfile.log

And then just attach it here.
Comment 27 Marco Colombetti 2013-04-27 14:30:40 UTC
Created attachment 346696 [details]
Log file: strace -e trace=file  /usr/bin/meinproc4 --check --cache index.cache.bz2 index.docbook
Comment 28 Johannes Huber (RETIRED) gentoo-dev 2013-06-06 23:05:40 UTC
what about calligra-l10n-2.6.3 it was stabilized some days ago?
Comment 29 Marco Colombetti 2013-06-07 11:52:43 UTC
(In reply to Johannes Huber from comment #28)
> what about calligra-l10n-2.6.3 it was stabilized some days ago?

Calligra-2.6.3 and calligra-l10n-2.6.3 builds with LINGUAS=it.

Marco
Comment 30 Johannes Huber (RETIRED) gentoo-dev 2013-06-07 17:00:08 UTC
(In reply to Marco Colombetti from comment #29)
> (In reply to Johannes Huber from comment #28)
> > what about calligra-l10n-2.6.3 it was stabilized some days ago?
> 
> Calligra-2.6.3 and calligra-l10n-2.6.3 builds with LINGUAS=it.
> 
> Marco

Thanks for feedback.