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

improve pacman packages #5855

Merged
merged 4 commits into from
Nov 22, 2024
Merged

improve pacman packages #5855

merged 4 commits into from
Nov 22, 2024

Conversation

waruqi
Copy link
Member

@waruqi waruqi commented Nov 21, 2024

@waruqi waruqi added this to the v2.9.7 milestone Nov 21, 2024
else
name = prefix .. arch .. name
-- TODO other msystem, e.g. clang, msys, ucrt, ...
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@star-hengxing
Copy link
Contributor

感觉有点不好处理,假如 kind 为 library 的时候就会 fetch 失败。

checking for pacman ... ok
checking for pacman::flex ... no
installing flex from pacman ..
pacman -Sy --noconfirm --needed --disable-download-timeout flex --verbose
Root      : /
Conf File : /etc/pacman.conf
DB Path   : /var/lib/pacman/
Cache Dirs: /var/cache/pacman/pkg/
Hook Dirs : /usr/share/libalpm/hooks/  /etc/pacman.d/hooks/
Lock File : /var/lib/pacman/db.lck
Log File  : /var/log/pacman.log
GPG Dir   : /etc/pacman.d/gnupg/
Targets   : flex
:: 正在同步软件包数据库...
 clangarm64 已经是最新版本
 mingw32 已经是最新版本
 mingw64 已经是最新版本
 ucrt64 已经是最新版本
 clang32 已经是最新版本
 clang64 已经是最新版本
 msys 已经是最新版本
警告:flex-2.6.4-3 已经为最新 -- 跳过
 今日无事可做
finding flex from pacman ..
checking for pacman::flex ... no

error: ...\modules\private\action\require\impl\actions\install.lua:418: fetch pacman::flex-latest failed!
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:1004]: in function 'raiselevel'
    [@programdir\core\sandbox\modules\utils.lua:143]: in function 'assert'
    [...\modules\private\action\require\impl\actions\install.lua:418]:

  => install pacman::flex latest .. failed
error: @programdir\core\main.lua:329: @programdir\modules\async\runjobs.lua:325: ...\modules\private\action\require\impl\actions\install.lua:494: install failed!
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:1004]:
    [...\modules\private\action\require\impl\actions\install.lua:494]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [...\modules\private\action\require\impl\actions\install.lua:362]:
    [...modules\private\action\require\impl\install_packages.lua:496]: in function 'jobfunc'
    [@programdir\modules\async\runjobs.lua:241]:

stack traceback:
        [C]: in function 'error'
        @programdir\core\base\os.lua:1004: in function 'base/os.raiselevel'
        (...tail calls...)
        @programdir\core\main.lua:329: in upvalue 'cotask'
        @programdir\core\base\scheduler.lua:406: in function <@programdir\core\base\scheduler.lua:399>

@waruqi
Copy link
Member Author

waruqi commented Nov 22, 2024

感觉有点不好处理,假如 kind 为 library 的时候就会 fetch 失败。

checking for pacman ... ok
checking for pacman::flex ... no
installing flex from pacman ..
pacman -Sy --noconfirm --needed --disable-download-timeout flex --verbose
Root      : /
Conf File : /etc/pacman.conf
DB Path   : /var/lib/pacman/
Cache Dirs: /var/cache/pacman/pkg/
Hook Dirs : /usr/share/libalpm/hooks/  /etc/pacman.d/hooks/
Lock File : /var/lib/pacman/db.lck
Log File  : /var/log/pacman.log
GPG Dir   : /etc/pacman.d/gnupg/
Targets   : flex
:: 正在同步软件包数据库...
 clangarm64 已经是最新版本
 mingw32 已经是最新版本
 mingw64 已经是最新版本
 ucrt64 已经是最新版本
 clang32 已经是最新版本
 clang64 已经是最新版本
 msys 已经是最新版本
警告:flex-2.6.4-3 已经为最新 -- 跳过
 今日无事可做
finding flex from pacman ..
checking for pacman::flex ... no

error: ...\modules\private\action\require\impl\actions\install.lua:418: fetch pacman::flex-latest failed!
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:1004]: in function 'raiselevel'
    [@programdir\core\sandbox\modules\utils.lua:143]: in function 'assert'
    [...\modules\private\action\require\impl\actions\install.lua:418]:

  => install pacman::flex latest .. failed
error: @programdir\core\main.lua:329: @programdir\modules\async\runjobs.lua:325: ...\modules\private\action\require\impl\actions\install.lua:494: install failed!
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:1004]:
    [...\modules\private\action\require\impl\actions\install.lua:494]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [...\modules\private\action\require\impl\actions\install.lua:362]:
    [...modules\private\action\require\impl\install_packages.lua:496]: in function 'jobfunc'
    [@programdir\modules\async\runjobs.lua:241]:

stack traceback:
        [C]: in function 'error'
        @programdir\core\base\os.lua:1004: in function 'base/os.raiselevel'
        (...tail calls...)
        @programdir\core\main.lua:329: in upvalue 'cotask'
        @programdir\core\base\scheduler.lua:406: in function <@programdir\core\base\scheduler.lua:399>

仅仅只是 pacman/find_package 没做处理而已,改了下,再试试

wangrunqing@IIGS-A8825-D MINGW64 ~
$ xrepo install -vD -y -f 'msystem="msys"' pacman::flex
C:\msys64\mingw64\bin\xmake.exe f -c --require=n -vD
checking for platform ... mingw
checking for architecture ... x86_64
checking for mingw directory ... C:/msys64/mingw64
configure
{
    mingw = C:/msys64/mingw64
    arch = x86_64
    clean = true
    kind = static
    proxy_pac = pac.lua
    plat = mingw
    buildir = build
    network = public
    theme = default
    ndk_stdcxx = true
    host = windows
    ccache = true
    mode = release
}
C:\msys64\mingw64\bin\xmake.exe require -y -v -D -j 6 --extra={system=false,configs={msystem=\"msys\"}} pacman::flex
checking for git ... ok
checking for gzip ... ok
checking for tar ... ok
finding flex from pacman ..
checking for pacman ... ok
checking for cygpath ... ok
checking for pacman::flex ... flex 2.6.4

@waruqi waruqi merged commit 9b75cbb into dev Nov 22, 2024
38 checks passed
@waruqi waruqi deleted the pacman branch November 22, 2024 03:13
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

Successfully merging this pull request may close these issues.

2 participants