fix(deps): Add PKG_FLAGS:=nonshared to prevent automatic libc dependency
The OpenWrt SDK automatically adds libc as a dependency to all packages, even pure shell/JavaScript packages that don't need it. This causes opkg installation failures when the local feed version of libc doesn't match the router's installed version. Solution: Add PKG_FLAGS:=nonshared to Makefiles of arch-independent packages (secubox-core, luci-app-secubox-admin, secubox-app-bonus). This tells the build system these packages don't link against libc. Changes: - secubox-core: 0.10.0-r6 → r7 with PKG_FLAGS:=nonshared - luci-app-secubox-admin: 1.0.0-r17 → r18 with PKG_FLAGS:=nonshared - secubox-app-bonus: 0.3.0-r1 → r2 with PKG_FLAGS:=nonshared - Regenerated Packages index without libc dependencies Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
b64f9a0a1d
commit
1b228d40d1
@ -174,7 +174,8 @@
|
||||
"Bash(ar -t:*)",
|
||||
"Bash(zstd:*)",
|
||||
"Bash(source /home/reepost/CyberMindStudio/secubox-openwrt/secubox-tools/local-build.sh)",
|
||||
"Bash(strip_libc_from_ipk:*)"
|
||||
"Bash(strip_libc_from_ipk:*)",
|
||||
"Bash(sort:*)"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,10 +2,12 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=luci-app-secubox-admin
|
||||
PKG_VERSION:=1.0.0
|
||||
PKG_RELEASE:=17
|
||||
PKG_RELEASE:=18
|
||||
PKG_LICENSE:=MIT
|
||||
PKG_MAINTAINER:=CyberMind <contact@cybermind.fr>
|
||||
PKG_ARCH:=all
|
||||
# Prevent automatic libc dependency - pure JS/JSON LuCI app
|
||||
PKG_FLAGS:=nonshared
|
||||
|
||||
LUCI_TITLE:=LuCI SecuBox Admin Control Center
|
||||
LUCI_DEPENDS:=+luci-base +rpcd +secubox-core
|
||||
|
||||
@ -2,10 +2,12 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=secubox-app-bonus
|
||||
PKG_VERSION:=0.3.0
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
PKG_LICENSE:=Apache-2.0
|
||||
PKG_MAINTAINER:=CyberMind <contact@cybermind.fr>
|
||||
PKG_ARCH:=all
|
||||
# Prevent automatic libc dependency - this is a pure data/script package
|
||||
PKG_FLAGS:=nonshared
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
@ -14,6 +16,8 @@ define Package/secubox-app-bonus
|
||||
CATEGORY:=SecuBox
|
||||
TITLE:=SecuBox Local Package Feed & Documentation
|
||||
PKGARCH:=all
|
||||
# Explicitly no dependencies - pure shell scripts and static files
|
||||
DEPENDS:=
|
||||
endef
|
||||
|
||||
define Package/secubox-app-bonus/description
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -6,10 +6,12 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=secubox-core
|
||||
PKG_VERSION:=0.10.0
|
||||
PKG_RELEASE:=6
|
||||
PKG_RELEASE:=7
|
||||
PKG_ARCH:=all
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
PKG_MAINTAINER:=SecuBox Team
|
||||
# Prevent automatic libc dependency - shell scripts only
|
||||
PKG_FLAGS:=nonshared
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
@ -17,6 +19,7 @@ define Package/secubox-core
|
||||
SECTION:=admin
|
||||
CATEGORY:=Administration
|
||||
TITLE:=SecuBox Core Framework
|
||||
# Runtime dependencies (libc not needed - these packages handle their own deps)
|
||||
DEPENDS:=+libubox +libubus +libuci +rpcd +bash +coreutils-base64 +jsonfilter +jq
|
||||
PKGARCH:=all
|
||||
endef
|
||||
|
||||
Loading…
Reference in New Issue
Block a user