浏览代码

package/passt: needs headers >= 5.0

Upstream passt only documents runtime dependencies; and they advertise
being able to run on kernel 3.8 or later. However, they do not document
the build dependencies.

As reported by Julien, since 2024_12_11.09478d5, upstream requires
kernel headers >= 5.0, as they make use of linux/vhost_types.h, only
introduced in 5.0.

Add a dependency to kernel headers, and propagate it to podman's passt
backend.

Reported-by: Julien Olivain <ju.o@free.fr>
Signed-off-by: Yann E. MORIN <yann.morin@orange.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
Yann E. MORIN 3 周之前
父节点
当前提交
ed99b77e5d
共有 2 个文件被更改,包括 8 次插入0 次删除
  1. 4 0
      package/passt/Config.in
  2. 4 0
      package/podman/Config.in

+ 4 - 0
package/passt/Config.in

@@ -1,5 +1,6 @@
 config BR2_PACKAGE_PASST
 	bool "passt"
+	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0
 	help
 	  passt: Plug A Simple Socket Transport
 	  pasta: Pack A Subtle Tap Abstraction
@@ -17,3 +18,6 @@ config BR2_PACKAGE_PASST
 	  hence not requiring any capabilities or privileges.
 
 	  https://passt.top/passt/about/
+
+comment "passt needs a toolchain w/ headers >= 5.0"
+	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0

+ 4 - 0
package/podman/Config.in

@@ -72,8 +72,12 @@ choice
 
 config BR2_PACKAGE_PODMAN_NET_PASST
 	bool "passt/pasta"
+	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0  # passt
 	select BR2_PACKAGE_PASST  # runtime
 
+comment "passt/pasta backend needs a toolchain w/ headers >= 5.0"
+	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0
+
 config BR2_PACKAGE_PODMAN_NET_SLIRP4NETNS
 	bool "slirp4netns"
 	select BR2_PACKAGE_SLIRP4NETNS  # runtime