Skip to contentSkip to conversation

package/ltp-testsuite: Always require host-pkgconf

PATCH Applied Petr Vorel 2 participants 6 messages Feb 3 – Apr 14

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

PATCH 1/2 package/ltp-testsuite: Always require host-pkgconf

Require host-pkgconf only for libtirpc is not enough because libmnl requires as well.

Upstream added it since 20200515 commit
553ca8ea3b ("net/route: Add netlink based route change tests") using it in m4/ltp-libmnl.m4.

Later, in 20210524 in commit
6e17e2ba13 ("configure: Improve error message on missing pkg-config") configure.ac required it explicitly:

m4_ifndef([PKG_CHECK_EXISTS],
[m4_fatal([must install pkg-config or pkgconfig and pkg.m4 macro (usual dependency), see INSTALL])])

This fixes error:
checking pkg-config is at least version 0.9.0... ./configure: line 7419: br-mips64r6-el-hf-glibc/host/bin/pkg-config: No such file or directory

---
Hi all,

It fixes failures on these old toolchains:
* br-mips64r6-el-hf-glibc [33/35]: FAILED
* br-powerpc64-power7-glibc [35/35]: FAILED

Although both removed in 8bab0acff6 and 573a113edd it's a valid change.

 package/ltp-testsuite/ltp-testsuite.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
package/ltp-testsuite/ltp-testsuite.mk +3 -1
index e4e3ff8717..12db8f2d3b 100644
@@ -11,6 +11,8 @@ LTP_TESTSUITE_SITE = https://github.com/linux-test-project/ltp/releases/download
 LTP_TESTSUITE_LICENSE = GPL-2.0, GPL-2.0+
 LTP_TESTSUITE_LICENSE_FILES = COPYING
 
+LTP_TESTSUITE_DEPENDENCIES += host-pkgconf
+
 LTP_TESTSUITE_CONF_OPTS += --disable-metadata
 
 ifeq ($(BR2_PACKAGE_LTP_TESTSUITE_OPEN_POSIX),y)
@@ -51,7 +53,7 @@ LTP_TESTSUITE_CFLAGS = $(TARGET_CFLAGS)
 LTP_TESTSUITE_LIBS =
 
 ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
-LTP_TESTSUITE_DEPENDENCIES += libtirpc host-pkgconf
+LTP_TESTSUITE_DEPENDENCIES += libtirpc
 LTP_TESTSUITE_CFLAGS += "`$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`"
 LTP_TESTSUITE_LIBS += "`$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`"
 endif
Signature · 6 lines
2.51.0

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

PATCH 2/2 package/ltp-testsuite: bump version to 20260130

---
Hi all,

there are sill some failures:
* br-arm-basic [28/35]: FAILED
fcntl31.c:122:22: error: ‘F_GETOWN_EX’ undeclared (first use in this function); did you mean ‘F_GETOWN’?
122 | TEST(fcntl(test_fd, F_GETOWN_EX, &orig_own_ex));
fcntl31.c:182:22: error: ‘F_SETOWN_EX’ undeclared (first use in this function); did you mean ‘F_SETOWN’?
TEST(fcntl(test_fd, F_SETOWN_EX, &orig_own_ex));

The config have:
BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_9=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_UCLIBC=y

I was thinking about something like:

	depends on !BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_HEADERS_AT_LEAST_?_?

but it's not about kernel headers (include/uapi/asm-generic/fcntl.h contains both F_GETOWN_EX and F_SETOWN_EX in 2.6), but more about the fact that uClibc-ng version in the toolchain is 1.0.36, but <fcntl.h> requires newer uClibc-ng, as it was added in v1.0.45:
98576ab8d ("fcntl.h: declare f_owner_ex for all architectures")

How to express this dependency in Buildroot?
Also, I could fix it in LTP upstream if you think 1.0.36 is still new enough and there are users who actually use LTP with these older toolchains.

Kind regards,
Petr

 package/ltp-testsuite/ltp-testsuite.hash | 4 ++--
 package/ltp-testsuite/ltp-testsuite.mk   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
package/ltp-testsuite/ltp-testsuite.hash +2 -2
index b96e1f46fa..e1861ae4e4 100644
@@ -1,4 +1,4 @@
-# From: https://github.com/linux-test-project/ltp/releases/download/20250930/ltp-full-20250930.tar.xz.sha256
-sha256  048fa4d69ddbe8a94aa15da9bdc85713ab07a0abbc3de2b8bdd9757644aef1e4  ltp-full-20250930.tar.xz
+# From: https://github.com/linux-test-project/ltp/releases/download/20260130/ltp-full-20260130.tar.xz.sha256
+sha256  5effc9d3eb3f5cd45d47e8ac3d78f59cb8f3f73c8598a2f182ef5b40ddfff311  ltp-full-20260130.tar.xz
 # Locally computed
 sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  COPYING
package/ltp-testsuite/ltp-testsuite.mk +1 -1
index 12db8f2d3b..2e4767b1a5 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LTP_TESTSUITE_VERSION = 20250930
+LTP_TESTSUITE_VERSION = 20260130
 LTP_TESTSUITE_SOURCE = ltp-full-$(LTP_TESTSUITE_VERSION).tar.xz
 LTP_TESTSUITE_SITE = https://github.com/linux-test-project/ltp/releases/download/$(LTP_TESTSUITE_VERSION)
 
Signature · 6 lines
2.51.0

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

Re: [Buildroot] [PATCH 2/2] package/ltp-testsuite: bump version to 20260130

Hi all,

Quoted 5 lines

---
Hi all,

there are sill some failures:

s/sill/still/

Quoted 19 lines

* br-arm-basic [28/35]: FAILED
fcntl31.c:122:22: error: ‘F_GETOWN_EX’ undeclared (first use in this function); did you mean ‘F_GETOWN’?
122 | TEST(fcntl(test_fd, F_GETOWN_EX, &orig_own_ex));
fcntl31.c:182:22: error: ‘F_SETOWN_EX’ undeclared (first use in this function); did you mean ‘F_SETOWN’?
TEST(fcntl(test_fd, F_SETOWN_EX, &orig_own_ex));

The config have:
BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_9=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_UCLIBC=y

I was thinking about something like:

	depends on !BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_HEADERS_AT_LEAST_?_?

but it's not about kernel headers (include/uapi/asm-generic/fcntl.h contains both F_GETOWN_EX and F_SETOWN_EX in 2.6), but more about the fact that uClibc-ng version in the toolchain is 1.0.36, but <fcntl.h> requires newer uClibc-ng, as it was added in v1.0.45:
98576ab8d ("fcntl.h: declare f_owner_ex for all architectures")

Quoted 4 lines

How to express this dependency in Buildroot?
Also, I could fix it in LTP upstream if you think 1.0.36 is still new enough and there are users who actually use LTP with these older toolchains.

Gently ping about this.

Kind regards,
Petr

Quoted 23 lines

Kind regards,
Petr

 package/ltp-testsuite/ltp-testsuite.hash | 4 ++--
 package/ltp-testsuite/ltp-testsuite.mk   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
package/ltp-testsuite/ltp-testsuite.hash +2 -2
index b96e1f46fa..e1861ae4e4 100644
@@ -1,4 +1,4 @@
-# From: https://github.com/linux-test-project/ltp/releases/download/20250930/ltp-full-20250930.tar.xz.sha256
-sha256  048fa4d69ddbe8a94aa15da9bdc85713ab07a0abbc3de2b8bdd9757644aef1e4  ltp-full-20250930.tar.xz
+# From: https://github.com/linux-test-project/ltp/releases/download/20260130/ltp-full-20260130.tar.xz.sha256
+sha256  5effc9d3eb3f5cd45d47e8ac3d78f59cb8f3f73c8598a2f182ef5b40ddfff311  ltp-full-20260130.tar.xz
 # Locally computed
 sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  COPYING
package/ltp-testsuite/ltp-testsuite.mk +0 -0
index 12db8f2d3b..2e4767b1a5 100644

package/ltp-testsuite/ltp-testsuite.mk line 9

Quoted 7 lines
package/ltp-testsuite/ltp-testsuite.mk +1 -1
@@ -4,7 +4,7 @@
 
 
 
-LTP_TESTSUITE_VERSION = 20250930
+LTP_TESTSUITE_VERSION = 20260130
 LTP_TESTSUITE_SOURCE = ltp-full-$(LTP_TESTSUITE_VERSION).tar.xz
 LTP_TESTSUITE_SITE = https://github.com/linux-test-project/ltp/releases/download/$(LTP_TESTSUITE_VERSION)

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

author
#3 lore raw
In reply to Petr Vorel

Hi all,

Quoted 18 lines

Require host-pkgconf only for libtirpc is not enough because libmnl requires as well.

Upstream added it since 20200515 commit
553ca8ea3b ("net/route: Add netlink based route change tests") using it in m4/ltp-libmnl.m4.

Later, in 20210524 in commit
6e17e2ba13 ("configure: Improve error message on missing pkg-config") configure.ac required it explicitly:

m4_ifndef([PKG_CHECK_EXISTS],
[m4_fatal([must install pkg-config or pkgconfig and pkg.m4 macro (usual dependency), see INSTALL])])

This fixes error:
checking pkg-config is at least version 0.9.0... ./configure: line 7419: br-mips64r6-el-hf-glibc/host/bin/pkg-config: No such file or directory

Quoted 8 lines

---
Hi all,

It fixes failures on these old toolchains:
* br-mips64r6-el-hf-glibc [33/35]: FAILED
* br-powerpc64-power7-glibc [35/35]: FAILED

Although both removed in 8bab0acff6 and 573a113edd it's a valid change.

Gently ping about this commit. It fixes build errors.

Kind regards,
Petr

Quoted 17 lines
 package/ltp-testsuite/ltp-testsuite.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
package/ltp-testsuite/ltp-testsuite.mk +2 -0
index e4e3ff8717..12db8f2d3b 100644
@@ -11,6 +11,8 @@ LTP_TESTSUITE_SITE = https://github.com/linux-test-project/ltp/releases/download
 LTP_TESTSUITE_LICENSE = GPL-2.0, GPL-2.0+
 LTP_TESTSUITE_LICENSE_FILES = COPYING
 
+LTP_TESTSUITE_DEPENDENCIES += host-pkgconf
+
 LTP_TESTSUITE_CONF_OPTS += --disable-metadata
 
 ifeq ($(BR2_PACKAGE_LTP_TESTSUITE_OPEN_POSIX),y)

package/ltp-testsuite/ltp-testsuite.mk LTP_TESTSUITE_CFLAGS = $(TARGET_CFLAGS) · line 59

Quoted 8 lines
package/ltp-testsuite/ltp-testsuite.mk +1 -1
@@ -51,7 +53,7 @@ LTP_TESTSUITE_CFLAGS = $(TARGET_CFLAGS)
 LTP_TESTSUITE_LIBS =
 
 ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
-LTP_TESTSUITE_DEPENDENCIES += libtirpc host-pkgconf
+LTP_TESTSUITE_DEPENDENCIES += libtirpc
 LTP_TESTSUITE_CFLAGS += "`$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`"
 LTP_TESTSUITE_LIBS += "`$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`"
 endif

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

#4 lore raw
In reply to Petr Vorel
Quoted 11 lines · Petr Vorel

Require host-pkgconf only for libtirpc is not enough because libmnl requires as well.

Upstream added it since 20200515 commit
553ca8ea3b ("net/route: Add netlink based route change tests") using it in m4/ltp-libmnl.m4.

Later, in 20210524 in commit
6e17e2ba13 ("configure: Improve error message on missing pkg-config") configure.ac required it explicitly:

Quoted 8 lines

m4_ifndef([PKG_CHECK_EXISTS],
[m4_fatal([must install pkg-config or pkgconfig and pkg.m4 macro
(usual dependency), see INSTALL])])

This fixes error:
checking pkg-config is at least version 0.9.0... ./configure: line 7419: br-mips64r6-el-hf-glibc/host/bin/pkg-config: No such file or directory

Series applied to master, thanks.
For info, I added a link to the changelog, and fixed the ltp runtime test. See:
https://gitlab.com/buildroot.org/buildroot/-/commit/fc6377f7f949ac23d38fb58c2c4a2f27bba73b1f

Best regards,

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

#5 lore raw
In reply to Petr Vorel

In reply of:

Quoted 11 lines

Require host-pkgconf only for libtirpc is not enough because libmnl requires as well.

Upstream added it since 20200515 commit
553ca8ea3b ("net/route: Add netlink based route change tests") using it in m4/ltp-libmnl.m4.

Later, in 20210524 in commit
6e17e2ba13 ("configure: Improve error message on missing pkg-config") configure.ac required it explicitly:

Quoted 7 lines

m4_ifndef([PKG_CHECK_EXISTS],
[m4_fatal([must install pkg-config or pkgconfig and pkg.m4 macro (usual dependency), see INSTALL])])

This fixes error:
checking pkg-config is at least version 0.9.0... ./configure: line 7419: br-mips64r6-el-hf-glibc/host/bin/pkg-config: No such file or directory

Applied to 2025.02.x & 2026.02.x. Thanks

Quoted 41 lines

---
Hi all,

It fixes failures on these old toolchains:
* br-mips64r6-el-hf-glibc [33/35]: FAILED
* br-powerpc64-power7-glibc [35/35]: FAILED

Although both removed in 8bab0acff6 and 573a113edd it's a valid change.

 package/ltp-testsuite/ltp-testsuite.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
package/ltp-testsuite/ltp-testsuite.mk +3 -1
index e4e3ff8717..12db8f2d3b 100644
@@ -11,6 +11,8 @@ LTP_TESTSUITE_SITE = https://github.com/linux-test-project/ltp/releases/download
 LTP_TESTSUITE_LICENSE = GPL-2.0, GPL-2.0+
 LTP_TESTSUITE_LICENSE_FILES = COPYING
 
+LTP_TESTSUITE_DEPENDENCIES += host-pkgconf
+
 LTP_TESTSUITE_CONF_OPTS += --disable-metadata
 
 ifeq ($(BR2_PACKAGE_LTP_TESTSUITE_OPEN_POSIX),y)
@@ -51,7 +53,7 @@ LTP_TESTSUITE_CFLAGS = $(TARGET_CFLAGS)
 LTP_TESTSUITE_LIBS =
 
 ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
-LTP_TESTSUITE_DEPENDENCIES += libtirpc host-pkgconf
+LTP_TESTSUITE_DEPENDENCIES += libtirpc
 LTP_TESTSUITE_CFLAGS += "`$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`"
 LTP_TESTSUITE_LIBS += "`$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`"
 endif
Signature · 6 lines
2.51.0

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

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