Skip to content

Commit 12d55bd

Browse files
committed
fix(opencv): declare scode:linux-headers (real payload), not the xim wrapper
CI got past glibc headers (stdlib.h found) but failed on <linux/limits.h> that glibc's local_lim.h pulls: xim:linux-headers is a WRAPPER (empty install_dir; real kernel headers live in scode:linux-headers, its dep). So build_dep('linux-headers') off the xim wrapper gave an empty include/ — locally the host's /usr/include/linux masked it, on the CI runner it hard-failed. Declare scode:linux-headers@5.11.1 so XLINGS_BUILDDEP_LINUX_HEADERS_PATH points at the real payload and build_dep resolves its include/ (has linux/limits.h).
1 parent c714106 commit 12d55bd

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎pkgs/c/compat.opencv.lua‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,13 @@ package = {
5050
-- xim:glibc is declared explicitly (though transitively pulled by
5151
-- cmake/gcc) so install() can resolve its lib dir via pkginfo for the
5252
-- LINK-time LIBRARY_PATH (crt1.o/crti.o/libm) — see install() below.
53+
-- NB: kernel headers come from scode:linux-headers (the REAL payload).
54+
-- xim:linux-headers is a wrapper whose own install_dir is empty (it just
55+
-- deps on scode:linux-headers), so build_dep("linux-headers") off the
56+
-- wrapper yields no include/ — declare the real one so glibc's
57+
-- <linux/limits.h> resolves host-free.
5358
deps = { "xim:cmake@4.0.2", "xim:make@latest", "xim:gcc@16.1.0",
54-
"xim:glibc@2.39", "xim:linux-headers@5.11.1" },
59+
"xim:glibc@2.39", "scode:linux-headers@5.11.1" },
5560
["4.13.0"] = {
5661
-- Plain-string GLOBAL url (no CN mirror table): this session lacks
5762
-- mcpp-res write access. Per the add-package skill, CN users fall

0 commit comments

Comments
 (0)