Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 733668 - dev-libs/gobject-introspection[-doctool] installs unused doctool python files
Summary: dev-libs/gobject-introspection[-doctool] installs unused doctool python files
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2020-07-23 18:45 UTC by Toralf Förster
Modified: 2022-06-14 15:18 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,14.60 KB, text/plain)
2020-07-23 18:45 UTC, Toralf Förster
Details
dev-libs:gobject-introspection-1.64.1-r1:20200722-233216.log (dev-libs:gobject-introspection-1.64.1-r1:20200722-233216.log,185.23 KB, text/plain)
2020-07-23 18:45 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,17.75 KB, text/plain)
2020-07-23 18:45 UTC, Toralf Förster
Details
environment (environment,102.28 KB, text/plain)
2020-07-23 18:45 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,17.00 KB, application/x-bzip)
2020-07-23 18:45 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,24.71 KB, application/x-bzip)
2020-07-23 18:45 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,32.95 KB, application/x-bzip)
2020-07-23 18:45 UTC, Toralf Förster
Details
tests.tbz2 (tests.tbz2,208.67 KB, application/x-bzip)
2020-07-23 18:45 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-07-23 18:45:10 UTC
29/61 test_xmlwriter.py                       OK             0.12s
30/61 test_pkgconfig.py                       OK             0.22s
31/61 test_docwriter.py                       FAIL           0.17s (exit status 1)
32/61 test_scanner.py                         OK             0.22s
33/61 test_maintransformer.py                 OK             0.27s
34/61 gi-tester-Typedefs-1.0.gir              OK             0.07s

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib-libressl_test-20200721-185431

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.1.0 *
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.8 (fallback)
  [3]   python2.7 (fallback)

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Wed 22 Jul 2020 10:05:25 PM UTC
/var/db/repos/libressl	Thu 16 Jul 2020 08:11:39 AM UTC

emerge -qpvO dev-libs/gobject-introspection
[ebuild  N    ] dev-libs/gobject-introspection-1.64.1-r1  USE="test -doctool -gtk-doc" PYTHON_SINGLE_TARGET="python3_7 -python3_6 -python3_8"
Comment 1 Toralf Förster gentoo-dev 2020-07-23 18:45:16 UTC
Created attachment 650344 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-07-23 18:45:19 UTC
Created attachment 650346 [details]
dev-libs:gobject-introspection-1.64.1-r1:20200722-233216.log
Comment 3 Toralf Förster gentoo-dev 2020-07-23 18:45:22 UTC
Created attachment 650348 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-07-23 18:45:25 UTC
Created attachment 650350 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-07-23 18:45:27 UTC
Created attachment 650352 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-07-23 18:45:30 UTC
Created attachment 650354 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-07-23 18:45:33 UTC
Created attachment 650356 [details]
temp.tbz2
Comment 8 Toralf Förster gentoo-dev 2020-07-23 18:45:35 UTC
Created attachment 650358 [details]
tests.tbz2
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-08-12 11:42:08 UTC
31/61 test_docwriter.py                       FAIL           1.41s (exit status 1)

--- command ---
11:34:48 PYTHONPATH='/var/tmp/portage/dev-libs/gobject-introspection-1.64.1-r1/work/gobject-introspection-1.64.1-build' /usr/bin/python3.7 /var/tmp/portage/dev-libs/gobject-introspection-1.64.1-r1/work/gobject-introspection-1.64.1-build/../gobject-introspection-1.64.1/tests/scanner/test_docwriter.py
--- stderr ---
Traceback (most recent call last):
  File "/var/tmp/portage/dev-libs/gobject-introspection-1.64.1-r1/work/gobject-introspection-1.64.1-build/../gobject-introspection-1.64.1/tests/scanner/test_docwriter.py", line 10, in <module>
    from giscanner.docwriter import DocWriter
  File "/var/tmp/portage/dev-libs/gobject-introspection-1.64.1-r1/work/gobject-introspection-1.64.1-build/giscanner/docwriter.py", line 30, in <module>
    import markdown
ModuleNotFoundError: No module named 'markdown'
-------

Nice easy win, it seems.
Comment 10 Larry the Git Cow gentoo-dev 2020-08-19 23:54:31 UTC
The bug has been closed via the following commit(s):

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

commit e9ef239fbf4e16b0dc6871513578533e0e99739d
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2020-08-19 23:31:21 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2020-08-19 23:53:54 +0000

    dev-libs/gobject-introspection: Depend on mako and markdown for tests
    
    test_docwriter.py looks to requires dev-python/mako, and via
    giscanner/docwriter.py, dev-python/markdown. The test contains
    
            @unittest.skipUnless(HAS_MAKO, "mako missing")
    
    which skips the test if mako is not available, but it does not check
    whether markdown is also available. In the case that mako is available
    but markdown is not, the test will run and fail to import markdown.
    
    These are common and small dependencies. Let's just require both of them
    for tests.
    
    Closes: https://bugs.gentoo.org/733668
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 .../gobject-introspection/gobject-introspection-1.64.1-r1.ebuild  | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
Comment 11 Mart Raudsepp gentoo-dev 2020-08-23 20:36:12 UTC
Issues like these need to get handled upstream too, before considered fixed, especially it means a workaround going to be place indefinitely, just to get forgotten about and dropped at some point of time in the future.
In this case, it is actually installing all the python support files that import mako and co despite USE=-doctool - just the g-ir-doc-tool doesn't get generated then to actually use these non-working installed python files.

Re-opening to handle fully, but dropping bug blockers as workaround is in place