diff mbox series

[meta-networking,2/2] cifs-utils: fix broken PACKAGECONFIGs

Message ID 20251225192151.3580069-2-skandigraun@gmail.com
State Under Review
Headers show
Series [meta-networking,1/2] cifs-utils: upgrade 7.0 -> 7.4 | expand

Commit Message

Gyorgy Sarvari Dec. 25, 2025, 7:21 p.m. UTC
Some PACKAGECONFIGs (cifsidmap, cifsacl, pam) were failing to build since
a while, erroring out with:

| ../sources/cifs-utils-7.4/resolve_host.c:23:10: fatal error: config.h: No such file or directory
|    23 | #include "config.h"
|       |          ^~~~~~~~~~
| compilation terminated.

The config.h header is generated in the root of build folder, and it seems
that the recipe can't be built 100% out of the source tree.

To avoid this issue, add ${B} as an include folder to CFLAGS, so it finds
the required header.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
---
 meta-networking/recipes-support/cifs/cifs-utils_7.4.bb | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta-networking/recipes-support/cifs/cifs-utils_7.4.bb b/meta-networking/recipes-support/cifs/cifs-utils_7.4.bb
index 9c7b9e3246..d8ab2dacb1 100644
--- a/meta-networking/recipes-support/cifs/cifs-utils_7.4.bb
+++ b/meta-networking/recipes-support/cifs/cifs-utils_7.4.bb
@@ -21,6 +21,8 @@  PACKAGECONFIG[pam] = "--enable-pam --with-pamdir=${base_libdir}/security,--disab
 
 inherit autotools pkgconfig
 
+CFLAGS += "-I ${B}"
+
 do_configure:prepend() {
     # want installed to /usr/sbin rather than /sbin to be DISTRO_FEATURES usrmerge compliant
     # must override ROOTSBINDIR (default '/sbin'),