[Bug 257123] devel/llvm11: site-packages/lit11/run.py and main.py not using proper module name
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 11 Jul 2021 23:37:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257123
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 = 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 =
lit11.Test.Result(lit.Test.EXCLUDED)
/usr/local/lib/python3.8/site-packages/lit11/run.py: skipped =
lit11.Test.Result(lit.Test.SKIPPED)
/usr/local/lib/python3.8/site-packages/lit11/worker.py: return
lit11.Test.Result(lit.Test.UNRESOLVED, output)
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 updates
what's needed for the build to generate/update the rest of the python files.
Which maybe makes me think it's an upstream issue? If not can this be updated
to fix these three files?
[1] https://github.com/rizsotto/Bear/blob/master/INSTALL.md
--
You are receiving this mail because:
You are the assignee for the bug.