代码拉取完成,页面将自动刷新
nothing provides ppp = bad needed by NetworkManager-l2tp-1.20.10-1.oe2309.aarch64
Hi small_leek, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Networking, and any of the maintainers: @Apricity , @seuzw , @luzhihao , @kircher , @gebidelidaye , @robertxw , @孙苏皖
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
NetworkManager-l2tp依赖指定版本的ppp包
Requires: ppp = %{ppp_version}
ppp版本从编译环境中过滤pppd的头文件所得,失败则显示版本号为bad
%global ppp_version %(sed -n 's/^#define\\s*VERSION\\s*"\\([^\\s]*\\)"$/\\1/p' %{_includedir}/pppd/patchlevel.h 2>/dev/null | grep . ||
echo bad)
ppp包升级到2.5.0版本后,不再提供patchlevel.h文件,因此版本号过滤失败
建议解决方案:
修改ppp版本号过滤方法为:
%global ppp_version %(pkg-config --modversion pppd 2>/dev/null || sed -n 's/^#define\\s*VERSION\\s*"\\([^\\s]*\\)"$/\\1/p' %{_includedir}/pppd/patchlevel.h 2>/dev/null | grep . || echo bad)
登录 后才可以发表评论