Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Jul 2021 23:37:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 257123] devel/llvm11: site-packages/lit11/run.py and main.py not using proper module name
Message-ID:  <bug-257123-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257123

            Bug ID: 257123
           Summary: devel/llvm11: site-packages/lit11/run.py and main.py
                    not using proper module name
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: brooks@FreeBSD.org
          Reporter: dereks@lifeofadishwasher.com
          Assignee: brooks@FreeBSD.org
             Flags: maintainer-feedback?(brooks@FreeBSD.org)

While testing Bear [1] tests it appears devel/llvm11 (and maybe other llvmXY
ports) lit python scripts are not being updated to use the proper lit module
name (lit11, etc.)

....
1: {'preload', 'make', 'dynamic-shell', 'shell', 'dynamic-make'}
1: Traceback (most recent call last):
1:   File "/usr/local/bin/lit11", line 6, in <module>
1:     main()
1:   File "/usr/local/lib/python3.8/site-packages/lit11/main.py", line 93, =
in
main
1:     mark_excluded(discovered_tests, selected_tests)
1:   File "/usr/local/lib/python3.8/site-packages/lit11/main.py", line 191,=
 in
mark_excluded
1:     result =3D lit11.Test.Result(lit.Test.EXCLUDED)
1: NameError: name 'lit' is not defined
1/1 Test #1: bear::func_test ..................***Failed    0.25 sec


/usr/local/lib/python3.8/site-packages/lit11/main.py:    result =3D
lit11.Test.Result(lit.Test.EXCLUDED)
/usr/local/lib/python3.8/site-packages/lit11/run.py:            skipped =3D
lit11.Test.Result(lit.Test.SKIPPED)
/usr/local/lib/python3.8/site-packages/lit11/worker.py:        return
lit11.Test.Result(lit.Test.UNRESOLVED, output)=20

These should be "lit11."

I see the Makefile post-patch will replace lit. usage to lit${LLVM_SUFFIX}
however it's not updating the above files however most of the "lit." usage =
from
two above are using lit${LLVM_SUFFIX}.   So I'm guessing the Makefile updat=
es
what's needed for the build to generate/update the rest of the python files=
.=20
Which maybe makes me think it's an upstream issue?  If not can this be upda=
ted
to fix these three files?

[1] https://github.com/rizsotto/Bear/blob/master/INSTALL.md

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-257123-7788>