| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
apparmor: update epkg profile and reload profile after copy - Update epkg profile to a working version in Ubuntu - Automatically reload the AppArmor profile after copying it to /etc/apparmor.d/ Fixes: https://atomgit.com/openeuler/epkg/issues/70 Signed-off-by: Xinwei Hu <huxinwei@huawei.com> Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> | 4 个月前 | |
LICENSES: add BSD-2-Clause for homebrew code Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> | 3 个月前 | |
init: Move epkg.entitlements to assets/macos/ and codesign downloaded binary Problem/Purpose: - epkg.entitlements was in target/ directory which is build output - downloaded epkg binary during self install needs codesign for libkrun Solution: - Move epkg.entitlements to assets/macos/ for proper versioning - Add codesign_with_entitlements() function in init.rs - Call codesign after setup_epkg_src() installs assets to self env - Sign both epkg and epkg-linux binaries on macOS Files: - assets/macos/epkg.entitlements (new): hypervisor entitlements file - bin/make.sh: update entitlements path to assets/macos/ - src/init.rs: add codesign logic in setup_common_binaries() Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> | 3 个月前 | |
assets: gather sources/ and lib/epkg-rc.sh for end user deployment 迁移清单 ┌─────────────────────────────┬────────────────────────────────────┐ │ 原路径 │ 新路径 │ ├─────────────────────────────┼────────────────────────────────────┤ │ lib/epkg-rc.sh │ assets/shell/epkg.sh │ ├─────────────────────────────┼────────────────────────────────────┤ │ sources/*.yaml │ assets/repos/*.yaml │ ├─────────────────────────────┼────────────────────────────────────┤ │ sources/mirrors.json │ assets/mirrors/mirrors.json │ │ sources/manual-mirrors.json │ assets/mirrors/manual-mirrors.json │ │ sources/cc-timezone.txt │ assets/mirrors/cc-timezone.txt │ └─────────────────────────────┴────────────────────────────────────┘ Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> | 4 个月前 | |
msys2: add cross-platform tests and enable Windows hash Problem/Purpose: - epkg on Windows used "unknown" as package hash prefix - No tests existed for MSYS2 channel on Windows Solution: 1. Enable cross-platform content-addressable hash calculation: - hash.rs: make Unix-specific imports and file type checks conditional - main.rs: remove #[cfg(unix)] gates from hash module and command - store.rs: call epkg_store_hash() on all platforms 2. Fix MSYS2 channel URL structure: - msys repo: $mirror/msys/$arch/$repo.files.tar.zst - mingw repos: $mirror/mingw/$repo/$repo.files.tar.zst - mingw repos don't have $arch subdirectory 3. Add MSYS2 test suite: - tests/cross-platform/channels/msys2.sh - Skip nodejs (mingw packages install to mingw64/bin/) - Skip go (not available in MSYS2 repos) - Skip numpy/scipy/scikit-learn (not available in MSYS2 repos) 4. Fix build warnings in mktemp.rs: - Prefix unused variable with underscore: Err(_e) if quiet Usage: ENV_NAME=test-msys2 EPKG_BIN=/path/to/epkg ./tests/cross-platform/channels/msys2.sh Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> | 4 个月前 | |
epkg.ps1: fix PowerShell parameter ambiguity for short options Root Cause Analysis: - PowerShell's [CmdletBinding()] enables common parameters like -ErrorAction and -ErrorVariable - When user runs 'epkg -e alpine', PowerShell interprets '-e' as an ambiguous prefix matching multiple common parameters - This causes the error: "参数名称'e'具有二义性" Solution: Remove [CmdletBinding()] and param() block, use $args automatic variable instead. This prevents PowerShell from parsing arguments as common parameter abbreviations, allowing epkg options like -e, -r, -q, -v to pass through correctly to the Rust binary. Fixes: epkg -e alpine info jq ParameterBindingException: 参数名称"e"具有二义性 可能的匹配项包括: -ErrorAction -ErrorVariable Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> | 3 个月前 | |
tool_wrapper: move config from ~/.config/epkg to ~/.epkg/config Problem/Purpose: - Tool config at ~/.config/epkg/tool required separate virtiofs mount - ~/.epkg is already mounted in VM guest, so config under it needs no extra mount Solution: 1. Change config path from ~/.config/epkg/tool to ~/.epkg/config/tool 2. Update all wrapper scripts to use new path with EPKG_HOME support 3. Remove separate tool_config mount in libkrun/core.rs 4. Update docs and comments for new path Benefits: - Eliminates one virtiofs mount (virtiofs has limited device slots) - Config is under home_epkg which is already mounted - Simpler code, no special handling needed Files changed: - src/tool_wrapper.rs: get_tool_config_dir() path change - assets/tool/wrappers/*: config path + EPKG_HOME fallback - src/libkrun/core.rs: remove tool_config mount code - docs: update path references - src/models.rs, src/run.rs, CHANGELOG.md: comment updates Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> | 3 个月前 |