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

softethervpn5: Fails to build (patching of src/Mayaqua/Encrypt.h fails). #3

Open
dreirund opened this issue Sep 27, 2022 · 0 comments

Comments

@dreirund
Copy link

Ahoj,

when I try to build softethervpn5 from the handsomefeed feed, it fails with

patching file src/Mayaqua/Encrypt.h
Hunk #1 FAILED at 9 (different line endings).

After a failing make -j6, here the terminal output of
make -j1 V=sc package/feeds/packages/softethervpn5/compile:

grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
grep: warning: stray \ before /
make[1]: Entering directory '/[...]'
grep: warning: stray \ before /
make[2]: Entering directory '/[...]/package/libs/toolchain'
echo "libc" >> /[...]/staging_dir/target-aarch64_cortex-a53+neon_musl/pkginfo/toolchain.default.install
echo "libgcc" >> /[...]/staging_dir/target-aarch64_cortex-a53+neon_musl/pkginfo/toolchain.default.install
echo "libatomic" >> /[...]/staging_dir/target-aarch64_cortex-a53+neon_musl/pkginfo/toolchain.default.install
echo "libstdcpp" >> /[...]/staging_dir/target-aarch64_cortex-a53+neon_musl/pkginfo/toolchain.default.install
echo "libpthread" >> /[...]/staging_dir/target-aarch64_cortex-a53+neon_musl/pkginfo/toolchain.default.install
echo "librt" >> /[...]/staging_dir/target-aarch64_cortex-a53+neon_musl/pkginfo/toolchain.default.install
make[2]: Leaving directory '/[...]/package/libs/toolchain'
time: package/libs/toolchain/compile#0.34#0.04#0.36
make[2]: Entering directory '/[...]/feeds/packages/libs/libsodium'
mkdir -p /[...]/dl
SHELL= flock /[...]/tmp/.libsodium-1.0.18.tar.gz.flock -c '  	/[...]/scripts/download.pl "/[...]/dl" "libsodium-1.0.18.tar.gz" "6f504490b342a4f8a4c4a02fc9b866cbef8622d5df4e5452b46be121e46636c1" "" "https://download.libsodium.org/libsodium/releases" "https://github.com/jedisct1/libsodium/releases/download/1.0.18"    '
make[2]: Leaving directory '/[...]/feeds/packages/libs/libsodium'
time: package/feeds/packages/libsodium/compile#0.37#0.08#0.42
make[2]: Entering directory '/[...]/package/libs/ncurses'
mkdir -p /[...]/dl
SHELL= flock /[...]/tmp/.ncurses-6.2.tar.gz.flock -c '  	/[...]/scripts/download.pl "/[...]/dl" "ncurses-6.2.tar.gz" "30306e0c76e0f9f1f0de987cf1c82a5c21e1ce6568b9227f7da5b71cbea86c9d" "" "@GNU/ncurses"    '
make[2]: Leaving directory '/[...]/package/libs/ncurses'
time: package/libs/ncurses/host-compile#0.49#0.06#0.51
make[2]: Entering directory '/[...]/package/libs/readline'
mkdir -p /[...]/dl
SHELL= flock /[...]/tmp/.readline-8.1.tar.gz.flock -c '  	/[...]/scripts/download.pl "/[...]/dl" "readline-8.1.tar.gz" "f8ceb4ee131e3232226a17f51b164afc46cd0b9e6cef344be87c65962cb82b02" "" "@GNU/readline"    '
make[2]: Leaving directory '/[...]/package/libs/readline'
time: package/libs/readline/host-compile#0.43#0.06#0.44
make[2]: Entering directory '/[...]/feeds/packages/net/softethervpn5'
mkdir -p /[...]/dl
SHELL= flock /[...]/tmp/.SoftEtherVPN-5.02.5180.tar.xz.flock -c '  	/[...]/scripts/download.pl "/[...]/dl" "SoftEtherVPN-5.02.5180.tar.xz" "b5649a8ea3cc6477325e09e2248ef708d434ee3b2251eb8764bcfc15fb1de456" "" "https://github.com/SoftEtherVPN/SoftEtherVPN/releases/download/5.02.5180/"    '
. /[...]/include/shell.sh; xzcat /[...]/dl/SoftEtherVPN-5.02.5180.tar.xz | tar -C /[...]/build_dir/hostpkg/SoftEtherVPN-5.02.5180/.. -xf -
[ ! -d ./src/ ] || cp -fpR ./src/* /[...]/build_dir/hostpkg/SoftEtherVPN-5.02.5180

Applying ./patches/001-iconv-cmake-fix.patch using plaintext: 
patching file src/Mayaqua/CMakeLists.txt

Applying ./patches/002-pthread-include-fix.patch using plaintext: 
patching file src/Mayaqua/Encrypt.h
Hunk #1 FAILED at 9 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file src/Mayaqua/Encrypt.h.rej
Patch failed!  Please fix ./patches/002-pthread-include-fix.patch!
make[2]: *** [Makefile:178: /[...]/build_dir/hostpkg/SoftEtherVPN-5.02.5180/.prepared4ea6d9ec9138d999142961142b2c06bb_6664517399ebbbc92a37c5bb081b5c53] Error 1
make[2]: Leaving directory '/[...]/feeds/packages/net/softethervpn5'
time: package/feeds/packages/softethervpn5/host-compile#1.28#0.45#1.42
    ERROR: package/feeds/packages/softethervpn5 [host] failed to build.
make[1]: *** [package/Makefile:114: package/feeds/packages/softethervpn5/host/compile] Error 1
make[1]: Leaving directory '/[...]'
make: *** [/[...]/include/toplevel.mk:230: package/feeds/packages/softethervpn5/compile] Error 2
  • grep -i softethervpn .config:
    CONFIG_PACKAGE_luci-app-softethervpn=m
    # CONFIG_PACKAGE_luci-i18n-softethervpn-zh-cn is not set
    # CONFIG_PACKAGE_softethervpn-base is not set
    # CONFIG_PACKAGE_softethervpn-bridge is not set
    # CONFIG_PACKAGE_softethervpn-client is not set
    # CONFIG_PACKAGE_softethervpn-server is not set
    CONFIG_PACKAGE_softethervpn5-bridge=m
    CONFIG_PACKAGE_softethervpn5-client=m
    CONFIG_PACKAGE_softethervpn5-libs=m
    CONFIG_PACKAGE_softethervpn5-server=m
    
  • → Full .config.
@dreirund dreirund changed the title softethervpn5: Fails to build (patch fails). softethervpn5: Fails to build (patching of src/Mayaqua/Encrypt.h fails). Sep 27, 2022
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

No branches or pull requests

1 participant