[OpenWrt-Devel] [PATCH] kernel.mk: fix kmod VERSION string

John Crispin john at phrozen.org
Thu Jul 12 03:11:54 EDT 2018



On 06/07/18 14:13, Florian Eckert wrote:
> If a "+" is in the version string of a kernel package then the package could
> not get installed by opkg with ftp. Because the file could not get found.
> "kmod-wireguard_4.4.135%2b0.0.20180519-1_mips_24kc.ipk: No such file or directory"
> The problem is that "+" is replaced with "%2b".
>
> Change the "+" in version string to "-" will solve this issue.
>
> Kmod version string:
> old: $(LINUX_VERSIO)+$(PKG_VERSION)-$(PKG_RELEASE)
> new: $(LINUX_VERSIO)-$(PKG_VERSION)-$(PKG_RELEASE)
this needs to be fixed in opkg or wget. ftp urls should not be encoded.
     John

> Signed-off-by: Florian Eckert <fe at dev.tdt.de>
> ---
>   include/kernel.mk | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/kernel.mk b/include/kernel.mk
> index c169550f48..cd186e9d3b 100644
> --- a/include/kernel.mk
> +++ b/include/kernel.mk
> @@ -196,7 +196,7 @@ define KernelPackage
>       CATEGORY:=Kernel modules
>       DESCRIPTION:=$(DESCRIPTION)
>       EXTRA_DEPENDS:=kernel (=$(LINUX_VERSION)-$(LINUX_RELEASE)-$(LINUX_VERMAGIC))
> -    VERSION:=$(LINUX_VERSION)$(if $(PKG_VERSION),+$(PKG_VERSION))-$(if $(PKG_RELEASE),$(PKG_RELEASE),$(LINUX_RELEASE))
> +    VERSION:=$(LINUX_VERSION)$(if $(PKG_VERSION),-$(PKG_VERSION))-$(if $(PKG_RELEASE),$(PKG_RELEASE),$(LINUX_RELEASE))
>       PKGFLAGS:=$(PKGFLAGS)
>       $(call KernelPackage/$(1))
>       $(call KernelPackage/$(1)/$(BOARD))


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list