kenzok8 / openwrt-packages

openwrt常用软件包
https://op.dllkids.xyz
6.43k stars 2.6k forks source link

SSRP依赖sagernet-core缺失 #298

Closed wang1zhen closed 2 years ago

wang1zhen commented 2 years ago
Makefile 'package/feeds/kenzo/luci-app-ssr-plus/Makefile' has a dependency on 'sagernet-core', which does not exist
wendaoshenyang commented 2 years ago

同样遇到了,编译报错日志如下: Configuring luci-i18n-firewall-zh-cn. Configuring ppp-mod-pppoe. Configuring luci-i18n-nlbwmon-zh-cn. Collected errors:

ligehhh commented 2 years ago

天灵源码有 https://github.com/xiaorouji/openwrt-passwall/tree/packages/sagernet-core 大佬拉一下

kenzok8 commented 2 years ago

下午就添加了,你们重新拉下

wang1zhen commented 2 years ago
Building targets
../../../../../dl/go-mod-cache/github.com/sagernet/sing@v0.0.0-20220606113732-5efacc1c7db5/common/metadata/addr.go:5:2: package net/netip is not in GOROOT (/home/wang1zhen/openwrt/staging_dir/hostpkg/lib/go-cross/src/net/netip)
lisonglin980 commented 2 years ago

Collected errors:

ligehhh commented 2 years ago

Collected errors:

  • check_conflicts_for: The following packages conflict with sagernet-core:
  • check_conflicts_for: v2ray-core check_conflicts_for: xray-core
  • opkg_install_cmd: Cannot install package luci-app-ssr-plus.
  • check_conflicts_for: The following packages conflict with sagernet-core:
  • check_conflicts_for: v2ray-core check_conflicts_for: xray-core
  • opkg_install_cmd: Cannot install package sagernet-core. make[2]: [package/Makefile:70: package/install] Error 255 make[2]: Leaving directory '/home/lee/lede' make[1]: [package/Makefile:111: /home/lee/lede/staging_dir/target-x86_64_musl/stamp/.package_install] Error 2 make[1]: Leaving directory '/home/lee/lede' make: *** [/home/lee/lede/include/toplevel.mk:230: world] Error 2

取消一个 现在lede的源码还有问题

wendaoshenyang commented 2 years ago

同楼上: Collected errors:

xztxy commented 2 years ago

为什么我重新拉了还是一样的问题啊

kenzok8 commented 2 years ago

如果是写入feeds的 rm -rf ./feeds && ./scripts/feeds update -a && ./scripts/feeds install -a && rm -rf ./tmp && make menuconfig 如果是git到lean/package目录下的 cd lean/package 运行rm -rf 该文件夹

wang1zhen commented 2 years ago

可以了,顺便问一下,解锁网易云的插件依赖ucode,可以也加进来吗?

xztxy commented 2 years ago

如果是写入feeds的 rm -rf ./feeds && ./scripts/feeds update -a && ./scripts/feeds install -a && rm -rf ./tmp && make menuconfig 如果是git到lean/package目录下的 cd lean/package 运行rm -rf 该文件夹

好的,我去试试,感谢!

i0668 commented 2 years ago

如果是写入feeds的 rm -rf ./feeds && ./scripts/feeds update -a && ./scripts/feeds install -a && rm -rf ./tmp && make menuconfig 如果是git到lean/package目录下的 cd lean/package 运行rm -rf 该文件夹

一样不行


 * check_conflicts_for: The following packages conflict with sagernet-core:
 * check_conflicts_for:         v2ray-core * check_conflicts_for:       xray-core * 
 * opkg_install_cmd: Cannot install package luci-app-ssr-plus.
 * check_conflicts_for: The following packages conflict with sagernet-core:
 * check_conflicts_for:         v2ray-core * check_conflicts_for:       xray-core * 
 * opkg_install_cmd: Cannot install package sagernet-core.
make[2]: *** [package/Makefile:70: package/install] Error 255
make[2]: Leaving directory '/home/test/lede'
make[1]: *** [package/Makefile:111: /home/test/lede/staging_dir/target-x86_64_musl/stamp/.package_install] Error 2
make[1]: Leaving directory '/home/test/lede'
make: *** [/home/test/lede/include/toplevel.mk:230: world] Error 2```
WYC-2020 commented 2 years ago

这明显就是冲突嘛,不要选v2ray-core

wang1zhen commented 2 years ago
Building targets
../../../../../dl/go-mod-cache/github.com/sagernet/sing@v0.0.0-20220606113732-5efacc1c7db5/common/metadata/addr.go:5:2: package net/netip is not in GOROOT (/home/wang1zhen/openwrt/staging_dir/hostpkg/lib/go-cross/src/net/netip)

是sagernet-core的makefile有问题吗?

WYC-2020 commented 2 years ago

go 1.18

wang1zhen commented 2 years ago

你好,问一下该怎么解决?

zheyiyuezhuo commented 2 years ago

我也好像这个报错

Collected errors:
 * check_conflicts_for: The following packages conflict with sagernet-core:
 * check_conflicts_for:         v2ray-core * check_conflicts_for:       xray-core *
 * opkg_install_cmd: Cannot install package luci-app-ssr-plus.
 * check_conflicts_for: The following packages conflict with sagernet-core:
 * check_conflicts_for:         v2ray-core * check_conflicts_for:       xray-core *
 * opkg_install_cmd: Cannot install package sagernet-core.
 * resolve_conffiles: Existing conffile /home/sic/lede/build_dir/target-x86_64_musl/root-x86/etc/config/socat is different from the conffile in the new package. The new conffile will be placed at /home/sic/lede/build_dir/target-x86_64_musl/root-x86/etc/config/socat-opkg.
make[2]: *** [package/Makefile:70: package/install] Error 255
make[2]: Leaving directory '/home/sic/lede'
make[1]: *** [package/Makefile:111: /home/sic/lede/staging_dir/target-x86_64_musl/stamp/.package_install] Error 2
make[1]: Leaving directory '/home/sic/lede'
make: *** [/home/sic/lede/include/toplevel.mk:230: world] Error 2

然后取消了ssr-plus的sagernet-core这项就编译成功了,就是不知道ssr-plus会有什么问题

Gzxhwq commented 2 years ago

SSRP切换到Sagernet内核了,而且把Sagernet内核和V2ray/Xray内核做了互斥处理。 Passwall现在还是用V2ray/Xray,所以Passwall和SSRP也成了互斥了。 想要同时编译SSRP和Passwall的话,要把SSRP的Sagernet-core去掉,这样就会让SSRP使用Xray-core了

wang1zhen commented 2 years ago

SSRP切换到Sagernet内核了,而且把Sagernet内核和V2ray/Xray内核做了互斥处理。 Passwall现在还是用V2ray/Xray,所以Passwall和SSRP也成了互斥了。 想要同时编译SSRP和Passwall的话,要把SSRP的Sagernet-core去掉,这样就会让SSRP使用Xray-core了

make menuconfig时取消sagernet-core进行编译,仍然会有报错:package net/netip is not in GOROOTERROR: package/feeds/kenzo/sagernet-core failed to build.

Gzxhwq commented 2 years ago

SSRP切换到Sagernet内核了,而且把Sagernet内核和V2ray/Xray内核做了互斥处理。 Passwall现在还是用V2ray/Xray,所以Passwall和SSRP也成了互斥了。 想要同时编译SSRP和Passwall的话,要把SSRP的Sagernet-core去掉,这样就会让SSRP使用Xray-core了

make menuconfig时取消sagernet-core进行编译,仍然会有报错:package net/netip is not in GOROOTERROR: package/feeds/kenzo/sagernet-core failed to build.

你只是取消了SSRP的那个选项,并没有取消Sagernet-core这个包,你用"/"搜一下这个包的位置,然后手动取消

wang1zhen commented 2 years ago

SSRP切换到Sagernet内核了,而且把Sagernet内核和V2ray/Xray内核做了互斥处理。 Passwall现在还是用V2ray/Xray,所以Passwall和SSRP也成了互斥了。 想要同时编译SSRP和Passwall的话,要把SSRP的Sagernet-core去掉,这样就会让SSRP使用Xray-core了

make menuconfig时取消sagernet-core进行编译,仍然会有报错:package net/netip is not in GOROOTERROR: package/feeds/kenzo/sagernet-core failed to build.

你只是取消了SSRP的那个选项,并没有取消Sagernet-core这个包,你用"/"搜一下这个包的位置,然后手动取消

感谢,编译成功了。另外问一下,在取消了passwall, passwall2并且勾选了sagernet-core的基础上,编译就会产生上面的package net/netip is not in GOROOT,是否与golang的编译环境有关?无论我是否安装golang-go与否,都会得到相同的报错。

zhangguanzhang commented 2 years ago

SSRP切换到Sagernet内核了,而且把Sagernet内核和V2ray/Xray内核做了互斥处理。 Passwall现在还是用V2ray/Xray,所以Passwall和SSRP也成了互斥了。 想要同时编译SSRP和Passwall的话,要把SSRP的Sagernet-core去掉,这样就会让SSRP使用Xray-core了

make menuconfig时取消sagernet-core进行编译,仍然会有报错:package net/netip is not in GOROOTERROR: package/feeds/kenzo/sagernet-core failed to build.

你只是取消了SSRP的那个选项,并没有取消Sagernet-core这个包,你用"/"搜一下这个包的位置,然后手动取消

🤔我的pw和酸酸乳p的luci-app都是 =m ,然后酸酸乳p选的是 Sagernet-core,现在两个包的ipk都编译出来了,但是Sagernet-core包报错

Building targets
../../../../../dl/go-mod-cache/github.com/sagernet/sing@v0.0.0-202207050[90](https://github.com/zhangguanzhang/Actions-OpenWrt/runs/7341742352?check_suite_focus=true#step:19:91)238-53c9f8d1374f/common/metadata/addr.go:5:2: package net/netip is not in GOROOT (/workdir/openwrt/staging_dir/hostpkg/lib/go-cross/src/net/netip)
make[2]: *** [Makefile:114: /workdir/openwrt/build_dir/target-x86_64_musl/sagernet-core-5.0.16-2022-07-06-c2f83820/.built] Error 1
make[2]: Leaving directory '/workdir/openwrt/feeds/helloworld/sagernet-core'
time: package/feeds/helloworld/sagernet-core/compile#1.30#0.65#1.49
    ERROR: package/feeds/helloworld/sagernet-core failed to build.

🤣难道没有共存的ipk编译办法吗