Skip to content
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

luajit的url不正确,无法安装 #5260

Open
jingkaimori opened this issue Sep 17, 2024 · 4 comments
Open

luajit的url不正确,无法安装 #5260

jingkaimori opened this issue Sep 17, 2024 · 4 comments
Labels

Comments

@jingkaimori
Copy link
Contributor

jingkaimori commented Sep 17, 2024

Xmake 版本

2.9.5

操作系统版本和架构

Windows 10 22H2

描述问题

由于luagit包的url配置过时,安装时报错。luagit有一个tarball包和三个git仓库地址。

tarball包

luagit不在官网上提供tarball包的下载:

No Release Tarballs or Binaries

LuaJIT uses rolling releases. There are no release tarballs available for download.

Please do not use obsolete versions from older tarballs or zip files. Please remove any outdated links to these downloads — these links will cease to work soon.

Do not use pseudo-releases or tarballs created by third parties. Do not use binaries offered for download by third parties.

http://luajit.org/download.html

git仓库

git仓库地址有效,但是tag为v2.1.0-beta3,而非代码中的2.1.0-beta3

期待的结果

正常安装,不报错

最好能支持git仓库,而且不会影响既有代码

工程配置

附加信息和错误日志

> xrepo install -y -v luajit
C:\Program Files\xmake\xmake.exe f -c --require=n
checking for platform ... windows
checking for architecture ... x64
checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.40.33811
C:\Program Files\xmake\xmake.exe require -y -v -j 18 --extra={system=false} luajit
checking for git ... ok
checking for gzip ... ok
checking for tar ... ok
git rev-parse HEAD
checking for xmake::luajit ... no
checking for ping ... ok
pinging the host(github.com) ... 106 ms
pinging the host(repo.or.cz) ... 270 ms
pinging the host(luajit.org) ... 243 ms
error: unmatched checksum, current hash(409f7fe5) != original hash(1ad2e34b)
  => download http://luajit.org/download/LuaJIT-2.1.0-beta3.tar.gz .. failed
git clone https://github.com/LuaJIT/LuaJIT.git --filter=tree:0 --no-checkout -c core.fsmonitor=false source.tmp\luajit
Cloning into 'source.tmp\luajit'...
remote: Enumerating objects: 2910, done.
remote: Counting objects: 100% (52/52), done.
remote: Compressing objects: 100% (52/52), done.
remote: Total 2910 (delta 0), reused 42 (delta 0), pack-reused 2858 (from 1)
Receiving objects: 100% (2910/2910), 512.69 KiB | 828.00 KiB/s, done.
Resolving deltas: 100% (1/1), done.
git -c core.fsmonitor=false checkout 2.1.0-beta3
error: pathspec '2.1.0-beta3' did not match any file(s) known to git
error: execv(git -c core.fsmonitor=false checkout 2.1.0-beta3) failed(1)
  => clone https://github.com/LuaJIT/LuaJIT.git 2.1.0-beta3 .. failed
git clone http://luajit.org/git/luajit-2.0.git --filter=tree:0 --no-checkout -c core.fsmonitor=false source.tmp\luajit
Cloning into 'source.tmp\luajit'...
Fetching objects: 20010, done.
git -c core.fsmonitor=false checkout 2.1.0-beta3
error: pathspec '2.1.0-beta3' did not match any file(s) known to git
error: execv(git -c core.fsmonitor=false checkout 2.1.0-beta3) failed(1)
  => clone http://luajit.org/git/luajit-2.0.git 2.1.0-beta3 .. failed
git clone http://repo.or.cz/luajit-2.0.git --filter=tree:0 --no-checkout -c core.fsmonitor=false source.tmp\luajit
Cloning into 'source.tmp\luajit'...
warning: redirecting to https://repo.or.cz/luajit-2.0.git/
warning: filtering not recognized by server, ignoring
remote: Counting objects: 20010, done.
remote: Total 20010 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (20010/20010), 4.26 MiB | 32.00 KiB/s, done.
Resolving deltas: 100% (16595/16595), done.
git -c core.fsmonitor=false checkout 2.1.0-beta3
error: pathspec '2.1.0-beta3' did not match any file(s) known to git
error: execv(git -c core.fsmonitor=false checkout 2.1.0-beta3) failed(1)
  => clone http://repo.or.cz/luajit-2.0.git 2.1.0-beta3 .. failed

we can also download these packages manually:
  - http://luajit.org/download/LuaJIT-2.1.0-beta3.tar.gz
  - https://github.com/LuaJIT/LuaJIT.git
  - http://luajit.org/git/luajit-2.0.git
  - http://repo.or.cz/luajit-2.0.git
to the local search directories: C:\Users\jingkaimori\Downloads
  - LuaJIT-2.1.0-beta3.tar.gz, LuaJIT, luajit-2.1.0-beta3.tar.gz, luajit-2.0, luajit
and we can run `xmake g --pkg_searchdirs=/xxx` to set the search directories.
error: 
error: execv(C:\Program Files\xmake\xmake.exe require -y -v -j 18 --extra={system=false} luajit) failed(
-1)
@jingkaimori jingkaimori changed the title luagit的url不正确,无法安装 luajit的url不正确,无法安装 Sep 17, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: luagit's url is incorrect and cannot be installed

@waruqi
Copy link
Member

waruqi commented Sep 17, 2024

这个包年久失修了,当前版本对应上游tar包被删了,如果要切到最新分支和tag,很多地方要改,否则编译不过。。暂时没空弄,可以直接来个pr过来

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


This package has been in disrepair for a long time. The upstream tar package corresponding to the current version has been deleted. If you want to switch to the latest branch and tag, many places need to be changed, otherwise it will not compile. . I don’t have time to do it right now, so I can just come over with a PR.

@star-hengxing
Copy link
Contributor

url 的问题我修了 #5263

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

No branches or pull requests

4 participants