1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-14 12:21:53 +00:00

Fix opkg install argument list too long

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-04-04 16:00:23 +02:00
parent 38caba6330
commit 29e7137a83
2 changed files with 18 additions and 0 deletions

View file

@ -195,6 +195,13 @@ if [ ! -d target/linux/mvebu/patches-5.4 ]; then
fi
echo "Done"
echo "Checking if opkg install arguement too long patch is set or not"
if ! patch -Rf -N -p1 -s --dry-run < ../../patches/package-too-long.patch; then
echo "apply..."
patch -N -p1 -s < ../../patches/package-too-long.patch
fi
echo "Done"
#echo "Patch protobuf wrong hash"
#patch -N -R -p1 -s < ../../patches/protobuf_hash.patch

View file

@ -0,0 +1,11 @@
--- a/package/Makefile 2020-04-04 15:52:15.706831084 +0200
+++ b/package/Makefile 2020-04-04 15:53:54.645052663 +0200
@@ -66,7 +66,7 @@
rm -rf $(TARGET_DIR) $(TARGET_DIR_ORIG)
mkdir -p $(TARGET_DIR)/tmp
$(call opkg,$(TARGET_DIR)) install \
- $(call opkg_package_files,$(foreach pkg,$(shell cat $(PACKAGE_INSTALL_FILES) 2>/dev/null),$(pkg)$(call GetABISuffix,$(pkg))))
+ $(subst $(TOPDIR)/,,$(call opkg_package_files,$(foreach pkg,$(shell cat $(PACKAGE_INSTALL_FILES) 2>/dev/null),$(pkg)$(call GetABISuffix,$(pkg)))))
@for file in $(PACKAGE_INSTALL_FILES); do \
[ -s $$file.flags ] || continue; \
for flag in `cat $$file.flags`; do \