Skip to contentSkip to conversation

package/atf: update project URL

PATCH Applied Bernd Kuhls 2 participants 5 messages Jan 2 – Jan 13

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/atf: update project URL

The old URL redirects to the new URL.

---
v2: initial revision

 package/atf/Config.in | 2 +-
 package/atf/atf.mk    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/atf/Config.in +1 -1
index 43a5d4f2c9..800b488945 100644
@@ -6,7 +6,7 @@ config BR2_PACKAGE_ATF
 	  ATF, or Automated Testing Framework, is a collection of
 	  libraries to write test programs in C, C++ and POSIX shell.
 
-	  https://github.com/jmmv/atf
+	  https://github.com/freebsd/atf
 
 comment "atf needs a toolchain w/ C++"
 	depends on !BR2_INSTALL_LIBSTDCPP
package/atf/atf.mk +1 -1
index 27c25c8b27..91d2fb5567 100644
@@ -5,7 +5,7 @@
 ################################################################################
 
 ATF_VERSION = 0.23
-ATF_SITE = https://github.com/jmmv/atf/releases/download/atf-$(ATF_VERSION)
+ATF_SITE = https://github.com/freebsd/atf/releases/download/atf-$(ATF_VERSION)
 ATF_INSTALL_STAGING = YES
 ATF_LICENSE = BSD-2-Clause, BSD-3-Clause
 ATF_LICENSE_FILES = COPYING
Signature · 6 lines
2.47.3

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

PATCH 2/2 package/atf: fix build with newer gcc

Buildroot commit d6c3257e931ed256e3ebcd78938f6146bba8586f bumped the package from 0.21 to 0.23. Upstream release 0.22 includes commit
https://github.com/freebsd/atf/commit/d7c7c53c0626ab59a62aa4efcf05323b3621baa9
which uses CLOCK_MONOTONIC without including time.h.

Fixes:
https://autobuild.buildroot.net/results/41b/41b25ee8e66e34323eca011e4b5fe479ece9ed76/

Minimal defconfig to reproduce the build error:

BR2_TOOLCHAIN_BUILDROOT_UCLIBC=y
BR2_PTHREADS_NONE=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_PACKAGE_ATF=y

All defconfigs of the build errors recorded by the buildroot autobuilders contain BR2_PTHREADS_NONE=y.

---
v2: added minimal defconfig (Thomas)
updated patch URL after upstream commit

 .../0001-atf-check.cpp-include-time.h.patch   | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 package/atf/0001-atf-check.cpp-include-time.h.patch
package/atf/0001-atf-check.cpp-include-time.h.patch new file +33 -0
new file mode 100644
index 0000000000..359172c0e6
@@ -0,0 +1,33 @@
+From 67e7d350a15aff88c151b1fc838dac83d35be955 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <[email protected]>
+Date: Sat, 22 Nov 2025 23:47:41 +0100
+Subject: [PATCH] atf-check.cpp: include time.h
+
+Fixes build error with gcc 14 as reported by the buildroot autobuilders:
+https://autobuild.buildroot.net/results/41b/41b25ee8e66e34323eca011e4b5fe479ece9ed76/build-end.log
+
+atf-sh/atf-check.cpp: In function 'useconds_t get_monotonic_useconds()':
+atf-sh/atf-check.cpp:183:24: error: 'CLOCK_MONOTONIC' was not declared in this scope
+
+Upstream: https://github.com/freebsd/atf/commit/67e7d350a15aff88c151b1fc838dac83d35be955
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+---
+ atf-sh/atf-check.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/atf-sh/atf-check.cpp b/atf-sh/atf-check.cpp
+index 1354e3a..94da413 100644
+--- a/atf-sh/atf-check.cpp
++++ b/atf-sh/atf-check.cpp
+@@ -30,6 +30,7 @@ extern "C" {
+ #include <limits.h>
+ #include <signal.h>
+ #include <stdint.h>
++#include <time.h>
+ #include <unistd.h>
+ }
+ 
+-- 
+2.47.3
+
Signature · 6 lines
2.47.3

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

Re: [Buildroot] [PATCH 2/2] package/atf: fix build with newer gcc

Hello Bernd,

Quoted 8 lines · On Fri, 2 Jan 2026 15:54:07 +0100 Bernd Kuhls <[email protected]> wrote:

Buildroot commit d6c3257e931ed256e3ebcd78938f6146bba8586f bumped the package from 0.21 to 0.23. Upstream release 0.22 includes commit
https://github.com/freebsd/atf/commit/d7c7c53c0626ab59a62aa4efcf05323b3621baa9
which uses CLOCK_MONOTONIC without including time.h.

Fixes:
https://autobuild.buildroot.net/results/41b/41b25ee8e66e34323eca011e4b5fe479ece9ed76/

Quoted 6 lines

Minimal defconfig to reproduce the build error:

BR2_TOOLCHAIN_BUILDROOT_UCLIBC=y
BR2_PTHREADS_NONE=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_PACKAGE_ATF=y

Thanks for the additional analysis, it makes more sense.

However, how is this related to "newer gcc" then? If the code uses CLOCK_MONOTONIC, without including <time.h>, it's going to fail regardless of the gcc version.

Did you test a build with an older gcc (13.x is still supported for example) ? I assume it will also fail to build without your patch, meaning that the problem is not gcc version related.

Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw
In reply to Bernd Kuhls
Quoted 5 lines · On Fri, 2 Jan 2026 15:54:06 +0100 Bernd Kuhls <[email protected]> wrote:

The old URL redirects to the new URL.

---
v2: initial revision

Applied to master, thanks.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw
In reply to Bernd Kuhls

In reply of:

Quoted 3 lines

The old URL redirects to the new URL.

Applied to 2025.02.x and 2025.11.x. Thanks

Quoted 40 lines

---
v2: initial revision

 package/atf/Config.in | 2 +-
 package/atf/atf.mk    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/atf/Config.in +1 -1
index 43a5d4f2c9..800b488945 100644
@@ -6,7 +6,7 @@ config BR2_PACKAGE_ATF
 	  ATF, or Automated Testing Framework, is a collection of
 	  libraries to write test programs in C, C++ and POSIX shell.
 
-	  https://github.com/jmmv/atf
+	  https://github.com/freebsd/atf
 
 comment "atf needs a toolchain w/ C++"
 	depends on !BR2_INSTALL_LIBSTDCPP
package/atf/atf.mk +1 -1
index 27c25c8b27..91d2fb5567 100644
@@ -5,7 +5,7 @@
 ################################################################################
 
 ATF_VERSION = 0.23
-ATF_SITE = https://github.com/jmmv/atf/releases/download/atf-$(ATF_VERSION)
+ATF_SITE = https://github.com/freebsd/atf/releases/download/atf-$(ATF_VERSION)
 ATF_INSTALL_STAGING = YES
 ATF_LICENSE = BSD-2-Clause, BSD-3-Clause
 ATF_LICENSE_FILES = COPYING
Signature · 6 lines
2.47.3

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

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