I want to change a package name before compiling it how can I do that
You change its name in the Makefile in your local source repo.
why am i getting this error ? how to solve this
make package/bypass/compile -j5 V=s
make[2]: Entering directory '/home/hasan/openwrt/scripts/config'
make[2]: 'conf' is up to date.
make[2]: Leaving directory '/home/hasan/openwrt/scripts/config'
make[1]: Entering directory '/home/hasan/openwrt'
make[2]: Entering directory '/home/hasan/openwrt/package/libs/toolchain'
rm -rf /home/hasan/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/toolchain/.pkgdir/libc.installed /home/hasan/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/toolchain/.pkgdir/libc
mkdir -p /home/hasan/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/toolchain/.pkgdir/libc
install -d -m0755 /home/hasan/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/toolchain/.pkgdir/libc/lib /home/hasan/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/toolchain/.pkgdir/libc/usr/bin
cp -fpR /home/hasan/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-12.3.0_musl_eabi/lib/ld-musl-*.so* /home/hasan/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/toolchain/.pkgdir/libc/lib/
cp: cannot stat '/home/hasan/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-12.3.0_musl_eabi/lib/ld-musl-*.so*': No such file or directory
make[2]: *** [Makefile:726: /home/hasan/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/toolchain/.pkgdir/libc.installed] Error 1
make[2]: Leaving directory '/home/hasan/openwrt/package/libs/toolchain'
time: package/libs/toolchain/compile#0.37#0.13#0.45
ERROR: package/libs/toolchain failed to build.
make[1]: *** [package/Makefile:120: package/libs/toolchain/compile] Error 1
make[1]: Leaving directory '/home/hasan/openwrt'
make: *** [/home/hasan/openwrt/include/toplevel.mk:232: package/bypass/compile] Error
why iam getting this error ?
make package/bypass/compile -j5 V=s
make[2]: Entering directory '/home/hasan/openwrt/scripts/config'
make[2]: 'conf' is up to date.
make[2]: Leaving directory '/home/hasan/openwrt/scripts/config'
make[1]: Entering directory '/home/hasan/openwrt'
make[2]: Entering directory '/home/hasan/openwrt/package/libs/toolchain'
rm -rf /home/hasan/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/toolchain/.pkgdir/libc.installed /home/hasan/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/toolchain/.pkgdir/libc
mkdir -p /home/hasan/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/toolchain/.pkgdir/libc
install -d -m0755 /home/hasan/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/toolchain/.pkgdir/libc/lib /home/hasan/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/toolchain/.pkgdir/libc/usr/bin
cp -fpR /home/hasan/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-12.3.0_musl_eabi/lib/ld-musl-*.so* /home/hasan/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/toolchain/.pkgdir/libc/lib/
cp: cannot stat '/home/hasan/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-12.3.0_musl_eabi/lib/ld-musl-*.so*': No such file or directory
make[2]: *** [Makefile:726: /home/hasan/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/toolchain/.pkgdir/libc.installed] Error 1
make[2]: Leaving directory '/home/hasan/openwrt/package/libs/toolchain'
time: package/libs/toolchain/compile#0.37#0.13#0.45
ERROR: package/libs/toolchain failed to build.
make[1]: *** [package/Makefile:120: package/libs/toolchain/compile] Error 1
make[1]: Leaving directory '/home/hasan/openwrt'
make: *** [/home/hasan/openwrt/include/toplevel.mk:232: package/bypass/compile] Error```
Rerun it with -j1
getting this error
Applying ./patches/0006-fix_default_config_location.patch using plaintext:
can't find file to patch at input line 9
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Description: change the default config file location
| bypass by default looks for ./bypass.conf. Change this to
| /etc/bypass.conf for a more deterministic behaviour.
|Author: Apollon Oikonomopoulos <apoikos@gmail.com>
|Forwared: no
|Last-Update: 2013-04-23
|--- a/main.c
|+++ b/main.c
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
Patch failed! Please fix ./patches/0006-fix_default_config_location.patch!
make[2]: *** [Makefile:67: /home/hasan/openwrt/build_dir/target-mips_24kc_musl/bypass-release-0.5/.prepared_8c5bce6ffe3f04763849987e5f09b893_6664517399ebbbc92a37c5bb081b5c53] Error 1
make[2]: Leaving directory '/home/hasan/openwrt/feeds/packages/net/bypass'
time: package/feeds/packages/bypass/compile#0.30#0.11#0.38
ERROR: package/feeds/packages/bypass failed to build.
make[1]: *** [package/Makefile:120: package/feeds/packages/bypass/compile] Error 1
make[1]: Leaving directory '/home/hasan/openwrt'
make: *** [/home/hasan/openwrt/include/toplevel.mk:232: package/bypass/compile] Error 2
hasan@debain:~/openwrt$
the patch file patches/0006-fix_default_config_location.patch
Description: change the default config file location
bypass by default looks for ./bypass.conf. Change this to
/etc/bypass.conf for a more deterministic behaviour.
Author: Apollon Oikonomopoulos <apoikos@gmail.com>
Forwared: no
Last-Update: 2013-04-23
--- a/main.c
+++ b/main.c
@@ -45,7 +45,7 @@ app_subsys *subsystems[] = {
&dnstc_subsys,
};
-static const char *confname = "bypass.conf";
+static const char *confname = "/etc/bypass.conf";
static const char *pidfile = NULL;
static void terminate(int sig, short what, void *_arg)
Sort of tells you what, why, and how to fix?