Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Misaka13514 opened this issue Apr 19, 2025 · 3 comments
Closed
Assignees

Comments

@Misaka13514
Copy link
Contributor

问题类型 / 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
@lilydjwg
Copy link
Member

Upstream bug: pypa/setuptools#4934

@lilydjwg
Copy link
Member

Should have been fixed by a new version of python-setuptools. Have a check?

@Misaka13514
Copy link
Contributor Author

Thank you! I have checked the package and it has been fixed:

diff -r lilac-git-r1219.a95a3c6-2-any.pkg/usr/ lilac-git-r1219.a95a3c6-3-any.pkg/usr/
diff '--color=auto' -r lilac-git-r1219.a95a3c6-2-any.pkg/usr/bin/build-cleaner lilac-git-r1219.a95a3c6-3-any.pkg/usr/bin/build-cleaner
1c1
< #!python
---
> #!/usr/bin/python
diff '--color=auto' -r lilac-git-r1219.a95a3c6-2-any.pkg/usr/bin/lilac lilac-git-r1219.a95a3c6-3-any.pkg/usr/bin/lilac
1c1
< #!python -Xno_debug_ranges
---
> #!/usr/bin/python -Xno_debug_ranges
diff '--color=auto' -r lilac-git-r1219.a95a3c6-2-any.pkg/usr/bin/lilac-cleaner lilac-git-r1219.a95a3c6-3-any.pkg/usr/bin/lilac-cleaner
1c1
< #!python
---
> #!/usr/bin/python

https://gitlab.archlinux.org/archlinux/packaging/packages/python-setuptools/-/commit/35ebb6020d88c681d123e603e5c9978f2e7e7eab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants