Skip to contentSkip to conversation

package/libmicrohttpd: fix build without pkgconf

PATCH In review Bernd Kuhls 2 participants 2 messages Apr 27 – May 15

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libmicrohttpd: fix build without pkgconf

Buildroot commit 712121326f84e2508ab161053c2b04e45511c79f bumped the package to 1.0.5 which includes upstream commit
https://github.com/Karlson2k/libmicrohttpd/commit/a1f937422658d3c6d53853c587bc025274afac4d
that breaks the build if pkgconf was not found:
https://github.com/Karlson2k/libmicrohttpd/blame/master/m4/pkg.m4#L84

Added PKG_CONFIG=true to _CONF_ENV to fix the problem.

Fixes:
https://autobuild.buildroot.net/results/e3e/e3e25753c670b5d86d042d850582e2e1e0eedca5/

---
 package/libmicrohttpd/libmicrohttpd.mk | 1 +
 1 file changed, 1 insertion(+)
package/libmicrohttpd/libmicrohttpd.mk +1 -0
index 7a243b42cf..01d8d5f11e 100644
@@ -20,6 +20,7 @@ LIBMICROHTTPD_DEPENDENCIES += host-pkgconf gnutls
 LIBMICROHTTPD_CONF_OPTS += --enable-https --with-gnutls=$(STAGING_DIR)/usr
 else
 LIBMICROHTTPD_LICENSE = LGPL-2.1+ or eCos
+LIBMICROHTTPD_CONF_ENV += PKG_CONFIG=true
 LIBMICROHTTPD_CONF_OPTS += --disable-https
 endif
 
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hello Bernd, All,

Le 27/04/2026 à 22:15, Bernd Kuhls a écrit :

Quoted 21 lines

Buildroot commit 712121326f84e2508ab161053c2b04e45511c79f bumped the package to 1.0.5 which includes upstream commit
https://github.com/Karlson2k/libmicrohttpd/commit/a1f937422658d3c6d53853c587bc025274afac4d
that breaks the build if pkgconf was not found:
https://github.com/Karlson2k/libmicrohttpd/blame/master/m4/pkg.m4#L84

Added PKG_CONFIG=true to _CONF_ENV to fix the problem.

Fixes:
https://autobuild.buildroot.net/results/e3e/e3e25753c670b5d86d042d850582e2e1e0eedca5/

---
 package/libmicrohttpd/libmicrohttpd.mk | 1 +
 1 file changed, 1 insertion(+)
package/libmicrohttpd/libmicrohttpd.mk +0 -0
index 7a243b42cf..01d8d5f11e 100644

package/libmicrohttpd/libmicrohttpd.mk LIBMICROHTTPD_DEPENDENCIES += host-pkgconf gnutls · line 23

Quoted 4 lines
package/libmicrohttpd/libmicrohttpd.mk +1 -0
@@ -20,6 +20,7 @@ LIBMICROHTTPD_DEPENDENCIES += host-pkgconf gnutls
 LIBMICROHTTPD_CONF_OPTS += --enable-https --with-gnutls=$(STAGING_DIR)/usr
 else
 LIBMICROHTTPD_LICENSE = LGPL-2.1+ or eCos
+LIBMICROHTTPD_CONF_ENV += PKG_CONFIG=true

I think host-pkgconf dependency should be added to libmicrohttpd unconditionally instead of fake it.

It doesn't takes a lot of time to build and may be future proof if there is any later upstream changes using it.

This also fixes some gitlab-ci failures:

https://gitlab.com/buildroot.org/buildroot/-/jobs/14386351826
(TestInitSystemSystemdRoFullOverlayfsVarBackingMountUnit)

https://gitlab.com/buildroot.org/buildroot/-/jobs/14386351872
(TestInitSystemSystemdRwFull)

https://gitlab.com/buildroot.org/buildroot/-/jobs/14386351824
(TestInitSystemSystemdRoFullOverlayfsVarBackingFstab)

https://gitlab.com/buildroot.org/buildroot/-/jobs/14386351805
(TestInitSystemSystemdRoFullOverlayfs)

https://gitlab.com/buildroot.org/buildroot/-/jobs/14386351799
(TestInitSystemSystemdRoFullFactory)

https://gitlab.com/buildroot.org/buildroot/-/jobs/14386351797
(TestInitSystemSystemdRoFull)

Best regards,
Romain

package/libmicrohttpd/libmicrohttpd.mk LIBMICROHTTPD_DEPENDENCIES += host-pkgconf gnutls · line 26

Quoted 3 lines
package/libmicrohttpd/libmicrohttpd.mk +0 -0
 LIBMICROHTTPD_CONF_OPTS += --disable-https
 endif
 

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot