FS#55136 - [gtk-doc] [evolution-data-server] building package failes

Attached to Project: Arch Linux
Opened by Erich Eckner (deepthought) - Monday, 14 August 2017, 08:13 GMT
Last edited by Jan de Groot (JGC) - Saturday, 21 October 2017, 19:17 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

the build of the package in a clean chroot fails:

FAILED: docs/reference/camel/html/index.html
cd /build/evolution-data-server/src/evolution-data-server/docs/reference/camel && /usr/bin/gtkdoc-scan --module=camel --deprecated-guards="CAMEL_DISABLE_DEPRECATED" --ignore-headers="addresses.h camel-charset-map-private.h camel-enumtypes.h camel-i18n.h camel-imapx-tokenise.h camel-imapx-utils.h camel-local-private.h camel-nntp-private.h camel-nntp-resp-codes.h camel-search-private.h camel-test.h camel-test-provider.h camel-win32.h folders.h messages.h session.h" --rebuild-sections --rebuild-types --source-dir="/build/evolution-data-server/src/evolution-data-server/src/camel" --source-dir="/build/evolution-data-server/src/evolution-data-server/src/camel/providers/local" --source-dir="/build/evolution-data-server/src/evolution-data-server/src/camel/providers/imapx" --source-dir="/build/evolution-data-server/src/evolution-data-server/src/camel/providers/nntp" --source-dir="/build/evolution-data-server/src/evolution-data-server/src/camel/providers/pop3" --source-dir="/build/evolution-data-server/src/evolution-data-server/src/camel/providers/sendmail" --source-dir="/build/evolution-data-server/src/evolution-data-server/src/camel/providers/smtp" && /usr/bin/gtkdoc-mkdb --module=camel --name-space=camel --main-sgml-file="/build/evolution-data-server/src/evolution-data-server/docs/reference/camel/camel-docs.sgml" --sgml-mode --output-format=xml --source-dir="/build/evolution-data-server/src/evolution-data-server/src/camel" --source-dir="/build/evolution-data-server/src/evolution-data-server/src/camel/providers/local" --source-dir="/build/evolution-data-server/src/evolution-data-server/src/camel/providers/imapx" --source-dir="/build/evolution-data-server/src/evolution-data-server/src/camel/providers/nntp" --source-dir="/build/evolution-data-server/src/evolution-data-server/src/camel/providers/pop3" --source-dir="/build/evolution-data-server/src/evolution-data-server/src/camel/providers/sendmail" --source-dir="/build/evolution-data-server/src/evolution-data-server/src/camel/providers/smtp" && /usr/bin/cmake -E make_directory /build/evolution-data-server/src/evolution-data-server/docs/reference/camel/html && /usr/bin/cmake -E chdir /build/evolution-data-server/src/evolution-data-server/docs/reference/camel/html /usr/bin/gtkdoc-mkhtml --path=.. camel ../camel-docs.sgml && /usr/bin/gtkdoc-fixxref --module=camel --module-dir=. --extra-dir=.. --html-dir="/usr/share/gtk-doc/html/camel"
Traceback (most recent call last):
File "/usr/bin/gtkdoc-scan", line 59, in <module>
scan.Run(options)
File "/usr/share/gtk-doc/python/gtkdoc/scan.py", line 78, in Run
ScanHeaders(dir, section_list, decl_list, get_types, options)
File "/usr/share/gtk-doc/python/gtkdoc/scan.py", line 148, in ScanHeaders
get_types, options)
File "/usr/share/gtk-doc/python/gtkdoc/scan.py", line 148, in ScanHeaders
get_types, options)
File "/usr/share/gtk-doc/python/gtkdoc/scan.py", line 140, in ScanHeaders
ScanHeader(fullname, section_list, decl_list, get_types, options)
File "/usr/share/gtk-doc/python/gtkdoc/scan.py", line 229, in ScanHeader
for line in open(input_file):
File "/usr/lib/python3.6/codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc5 in position 6733: invalid continuation byte


Additional info:
* package version(s)
evolution-data-server-3.24.5-1
* config and/or log files etc.
log is attached

Steps to reproduce:
> git clone 'git://git.archlinux.org/svntogit/packages.git'
> cd packages
> git checkout 4b97ed5a1066fdb73029d2a85895d0a33fa79705
> cd evolution-data-server/trunk
> stagin-x86_64-build
   log (64.9 KiB)
This task depends upon

Closed by  Jan de Groot (JGC)
Saturday, 21 October 2017, 19:17 GMT
Reason for closing:  Fixed
Comment by Jan de Groot (JGC) - Monday, 14 August 2017, 08:35 GMT
Probably not directly a bug in evolution-data-server itself, but the new version of gtk-doc that trips over non-UTF8 sources. We've seen this with gobject-introspection also.
Comment by Jan Alexander Steffens (heftig) - Tuesday, 15 August 2017, 08:07 GMT Comment by Erich Eckner (deepthought) - Tuesday, 15 August 2017, 08:45 GMT
With this patch, the build still fails at exact the same position with exact the same error, but maybe I did something wrong? I put

prepare() {
cd $pkgname
curl -Ss https://paste.xinu.at/03Sl | patch -p1
}

into the PKGBUILD (for now).
Comment by Jan Alexander Steffens (heftig) - Tuesday, 15 August 2017, 12:35 GMT
These two should do it: https://paste.xinu.at/m-aE0/
Comment by Erich Eckner (deepthought) - Tuesday, 15 August 2017, 12:50 GMT
ok, with these patches, the build works (for me) :-)

Loading...