You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failed to resolve the transaction:
Problem: cannot install the best candidate for the job
nothing provides /usr/bin/pwsh needed by xmake-2.9.7-4.fc41.x86_64 from copr:copr.fedorainfracloud.org:shelpam:xmake # 此处我克隆了一份copr库,和原库是一样的
You can try to add to command line:
--no-best to not limit the transaction to the best candidates
--setopt=optional_metadata_types=filelists to load additional filelists metadata
--skip-broken to skip uninstallable packages
Xmake 版本
2.9.5
操作系统版本和架构
6.12.7-200.fc41.x86_64
描述问题
当我使用
dnf enable waruqi/xmake && dnf install xmake -y
的时候,报如下错误:Failed to resolve the transaction:
Problem: cannot install the best candidate for the job
You can try to add to command line:
--no-best to not limit the transaction to the best candidates
--setopt=optional_metadata_types=filelists to load additional filelists metadata
--skip-broken to skip uninstallable packages
可是/usr/bin/pwsh不是必须的依赖。
期待的结果
rpmbuild在构建包的时候,不要加入不必要的依赖,如/usr/bin/pwsh。
工程配置
无
附加信息和错误日志
然而,不需要关闭所有自动查询依赖的功能。
我仔细研究了一下pwsh依赖的来源,发现:
Mangling shebangs 导致 xmake/scripts/ 中各种脚本中的
#!/usr/bin/env xxx
被替换为#!/usr/bin/xxx
。如:在 xmake/scripts/unzip.ps1 中,第一行被替换为#!/usr/bin/pwsh
,而此处引入了 /usr/bin/pwsh 的依赖。可能的修复方法
scripts/rpmbuild/xmake.spec 中,在第二行后插入一行
%undefine __brp_mangle_shebangs
。The text was updated successfully, but these errors were encountered: