Skip to content

lilac fails to start in version r1219.a95a3c6-1 due to broken shebang #4270

Closed
@Misaka13514

Description

@Misaka13514

问题类型 / Type of issues

  • 打包错误 / packaging error

受影响的软件包 / Affected packages

  • lilac-git

请在此补充说明。
Please describe in detail here.

# Install old version (works)
$ sudo pacman -U https://mirrors.pku.edu.cn/archlinuxcn/x86_64/lilac-git-r1217.79b7cd8-1-any.pkg.tar.zst
$ head -n 1 /usr/bin/lilac
#!/usr/bin/python -Xno_debug_ranges
$ lilac
# works as expected

# Install new version (broken)
$ sudo pacman -U https://repo.archlinuxcn.org/x86_64/lilac-git-r1219.a95a3c6-1-any.pkg.tar.zst
$ head -n 1 /usr/bin/lilac
#!python -Xno_debug_ranges
$ lilac
bash: /usr/bin/lilac: cannot execute: required file not found
$ /usr/bin/python /usr/bin/lilac
# fail with the following log:
[D 04-19 08:49:27.805 building:223] received from worker: {'status': 'failed', 'msg': "CalledProcessError(255, ['env', 'GNUPGHOME=/home/lilac/.lilac/gnupg', 'extra-x86_64-build', '--', '-d', '/home/lilac/.cargo:/build/.cargo', '-d', '/home/lilac/.cache/pip:/build/.cache/pip', '-d', '/home/lilac/.cache/archbuild-bind-cache/ghcup:/build/.ghcup', '-d', '/home/lilac/.cache/archbuild-bind-cache:/build/.cache', '-t', '/build/.cache/bazel', '-l', 'lilac-0', '--', '--noprogressbar', '--holdver'])", 'version': '0.19.0-2'}
sudo: unable to execute /usr/bin/build-cleaner: No such file or directory
[E 04-19 08:49:27.825 building:117] build failed with exception
    Traceback (most recent call last):
      File "/usr/lib/python3.13/site-packages/lilac2/building.py", line 87, in build_package
        raise error
    lilac2.building.BuildFailed: CalledProcessError(255, ['env', 'GNUPGHOME=/home/lilac/.lilac/gnupg', 'extra-x86_64-build', '--', '-d', '/home/lilac/.cargo:/build/.cargo', '-d', '/home/lilac/.cache/pip:/build/.cache/pip', '-d', '/home/lilac/.cache/archbuild-bind-cache/ghcup:/build/.ghcup', '-d', '/home/lilac/.cache/archbuild-bind-cache:/build/.cache', '-t', '/build/.cache/bazel', '-l', 'lilac-0', '--', '--noprogressbar', '--holdver'])
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/usr/lib/python3.13/site-packages/lilac2/building.py", line 89, in build_package
        may_need_cleanup()
        ~~~~~~~~~~~~~~~~^^
      File "/usr/lib/python3.13/site-packages/lilac2/building.py", line 154, in may_need_cleanup
        subprocess.check_call(['sudo', 'build-cleaner'])
        ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.13/subprocess.py", line 419, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['sudo', 'build-cleaner']' returned non-zero exit status 1.
head -n 1 /usr/bin/build-cleaner
#!python

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions