Bug 269931 - devel/llvm-devel: Python errors during 'pkg install': SyntaxError: invalid syntax
Summary: devel/llvm-devel: Python errors during 'pkg install': SyntaxError: invalid sy...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Brooks Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-03 07:19 UTC by Yuri Victorovich
Modified: 2023-07-11 22:54 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (brooks)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer freebsd_triage 2023-03-03 07:19:12 UTC
$ sudo pkg install -A llvm-devel
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	llvm-devel: 17.0.d20230221

Number of packages to be installed: 1

The process will require 2 GiB more space.

Proceed with this action? [y/N]: y
[1/1] Installing llvm-devel-17.0.d20230221...
[1/1] Extracting llvm-devel-17.0.d20230221: 100%
create symlink for clang-devel
create symlink for clang-devel (world)
create symlink for clang++-devel
create symlink for clang++-devel (world)
>=> Cleaning stale bytecode files...
>=> Byte-compiling Python source files...
*** Error compiling '/usr/local/lib/python3.9/site-packages/lit-devel/LitConfig.py'...
  File "/usr/local/lib/python3.9/site-packages/lit-devel/LitConfig.py", line 7
    import lit-devel.Test
              ^
SyntaxError: invalid syntax

*** Error compiling '/usr/local/lib/python3.9/site-packages/lit-devel/LitTestCase.py'...
  File "/usr/local/lib/python3.9/site-packages/lit-devel/LitTestCase.py", line 3
    import lit-devel.discovery
              ^
SyntaxError: invalid syntax

*** Error compiling '/usr/local/lib/python3.9/site-packages/lit-devel/ShUtil.py'...
  File "/usr/local/lib/python3.9/site-packages/lit-devel/ShUtil.py", line 4
    import lit-devel.util
              ^
SyntaxError: invalid syntax

*** Error compiling '/usr/local/lib/python3.9/site-packages/lit-devel/Test.py'...
  File "/usr/local/lib/python3.9/site-packages/lit-devel/Test.py", line 5
    from lit-devel.BooleanExpression import BooleanExpression
            ^
SyntaxError: invalid syntax

*** Error compiling '/usr/local/lib/python3.9/site-packages/lit-devel/TestRunner.py'...
  File "/usr/local/lib/python3.9/site-packages/lit-devel/TestRunner.py", line 21
    from lit-devel.ShCommands import GlobItem, Command
            ^
SyntaxError: invalid syntax

*** Error compiling '/usr/local/lib/python3.9/site-packages/lit-devel/cl_arguments.py'...
  File "/usr/local/lib/python3.9/site-packages/lit-devel/cl_arguments.py", line 7
    import lit-devel.reports
              ^
SyntaxError: invalid syntax

*** Error compiling '/usr/local/lib/python3.9/site-packages/lit-devel/discovery.py'...
  File "/usr/local/lib/python3.9/site-packages/lit-devel/discovery.py", line 9
    from lit-devel.TestingConfig import TestingConfig
            ^
SyntaxError: invalid syntax

*** Error compiling '/usr/local/lib/python3.9/site-packages/lit-devel/display.py'...
  File "/usr/local/lib/python3.9/site-packages/lit-devel/display.py", line 15
    import lit-devel.ProgressBar
              ^
SyntaxError: invalid syntax

*** Error compiling '/usr/local/lib/python3.9/site-packages/lit-devel/main.py'...
  File "/usr/local/lib/python3.9/site-packages/lit-devel/main.py", line 13
    import lit-devel.cl_arguments
              ^
SyntaxError: invalid syntax

*** Error compiling '/usr/local/lib/python3.9/site-packages/lit-devel/reports.py'...
  File "/usr/local/lib/python3.9/site-packages/lit-devel/reports.py", line 8
    import lit-devel.Test
              ^
SyntaxError: invalid syntax

*** Error compiling '/usr/local/lib/python3.9/site-packages/lit-devel/run.py'...
  File "/usr/local/lib/python3.9/site-packages/lit-devel/run.py", line 5
    import lit-devel.Test
              ^
SyntaxError: invalid syntax

*** Error compiling '/usr/local/lib/python3.9/site-packages/lit-devel/worker.py'...
  File "/usr/local/lib/python3.9/site-packages/lit-devel/worker.py", line 14
    import lit-devel.Test
              ^
SyntaxError: invalid syntax
Comment 1 commit-hook freebsd_committer freebsd_triage 2023-04-12 18:01:58 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bcc6ffd087d07cdee35c8633863fb0a92f00d346

commit bcc6ffd087d07cdee35c8633863fb0a92f00d346
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2023-04-12 18:01:19 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2023-04-12 18:01:19 +0000

    devel/llvm-devel: new snapshot, lit fixes

    Fix the the python module name to use an '_' in place of '-' in the
    port-specific module name.

    Remove a workaround that is now upstream.

    PR:             270670, 269931
    Co-Authored-by: Pawel Biernacki <kaktus@freebsd.org>

 devel/llvm-devel/Makefile                          | 23 +++---
 devel/llvm-devel/Makefile.snapshot                 |  4 +-
 devel/llvm-devel/distinfo                          |  6 +-
 ...ugins_Process_Utility_FreeBSDSignals.cpp (gone) | 13 ----
 devel/llvm-devel/pkg-plist                         | 86 +++++++++++++++-------
 5 files changed, 78 insertions(+), 54 deletions(-)
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-04-18 16:49:35 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=cd4074145d743032b5237a7caf34de04f73601bf

commit cd4074145d743032b5237a7caf34de04f73601bf
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2023-04-18 16:48:33 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2023-04-18 16:48:33 +0000

    devel/llvm-{cheri,morello}: new snapshots, lit fixes

    Fix the the python module name to use an '_' in place of '-' in the
    port-specific module name.

    PR:             270670, 269931
    Sponsored by:   DARPA
    Co-Authored-by: Pawel Biernacki <kaktus@freebsd.org>

 devel/llvm-cheri/Makefile            | 19 ++++++++++--------
 devel/llvm-cheri/Makefile.snapshot   |  4 ++--
 devel/llvm-cheri/distinfo            |  6 +++---
 devel/llvm-cheri/pkg-plist           | 38 ++++++++++++++++++------------------
 devel/llvm-morello/Makefile.snapshot |  4 ++--
 devel/llvm-morello/distinfo          |  6 +++---
 devel/llvm-morello/pkg-plist         | 38 ++++++++++++++++++------------------
 7 files changed, 59 insertions(+), 56 deletions(-)