Bug 2216460 - mate-utils FTI (due to internal conflicts caused by odd find-lang usage) and FTBFS (due to error in itstool during doc build)
Summary: mate-utils FTI (due to internal conflicts caused by odd find-lang usage) and ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mate-utils
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Wolfgang Ulbrich
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-21 13:47 UTC by Adam Williamson
Modified: 2023-06-29 17:17 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-06-29 17:17:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Adam Williamson 2023-06-21 13:47:58 UTC
The MATE_Compiz image build currently fails due to a file conflict between mate-utils-common and mate-dictionary, which are both built from this source package:

file /usr/share/help/pt/mate-search-tool/index.docbook conflicts between attempted installs of mate-dictionary-1.26.1-1.fc39.x86_64 and mate-utils-common-1.26.1-1.fc39.noarch

I believe this is caused by the rather odd use of the `--all-name` arg for find_lang, which causes every doc file for every tool to be included in each of the tool packages and in mate-utils-common. I can't see any justification for using that arg, so I tried rebuilding without it, but the build failed:

if test -f "${mo}"; then mo="../${mo}"; else mo="/builddir/build/BUILD/mate-utils-1.26.1/gsearchtool/help/${mo}"; fi; \
(cd "sq/" && itstool -m "${mo}" ${d}/C/index.docbook ${d}/C/legal.xml) && \
touch "sq/sq.stamp"
Traceback (most recent call last):
  File "/usr/bin/itstool", line 1647, in <module>
    doc.merge_translations(translations, opts.lang, strict=opts.strict)
  File "/usr/bin/itstool", line 1016, in merge_translations
    lcnode.setProp(attr, origlang)
  File "/usr/lib/python3.11/site-packages/libxml2.py", line 3636, in setProp
    if ret is None:raise treeError('xmlSetProp() failed')
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
libxml2.treeError: xmlSetProp() failed

I don't really have time to debug this, so filing a bug for the packager to look at.

Reproducible: Always

Comment 1 Wolfgang Ulbrich 2023-06-22 15:43:52 UTC
There is a long outstanding issue with itstool itself which is fixed by this PR. https://github.com/itstool/itstool/pull/47
For the moment i disabled building Portuguese language again for mate-search-tool.
No idea why this few lines in rawhide branch were missing.
https://src.fedoraproject.org/rpms/mate-utils/c/3e6f800e0a2c7fd46fa4d7a4152a49c5031654f9?branch=rawhide
This build should fix building mate-compiz live image.
https://koji.fedoraproject.org/koji/taskinfo?taskID=102456936

Comment 2 Wolfgang Ulbrich 2023-06-29 17:17:46 UTC
Mate-compiz image building is fixed.
https://koji.fedoraproject.org/koji/buildinfo?buildID=2223426


Note You need to log in before you can comment on or make changes to this bug.