mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-31 21:13:00 +02:00
Bump rousette to latest GIT hash
Since we are using an old GCC we need to add a new requirement for rousette 'date' this is included in GCC 14+.
This commit is contained in:
committed by
Joachim Wiberg
parent
c456fa1c75
commit
f5884098fb
@@ -0,0 +1,29 @@
|
||||
From c8ec120afa3a66674ef30b10490eeeb36d806eed Mon Sep 17 00:00:00 2001
|
||||
From: Tomas Pecka <peckato1@fit.cvut.cz>
|
||||
Date: Fri, 17 Feb 2023 13:50:17 +0100
|
||||
Subject: [PATCH] Fix getting current timezone on ARM-based devices
|
||||
Our software using date on buildroot ARM-based device terminates with an
|
||||
uncaught exception.
|
||||
terminate called after throwing an instance of 'std::runtime_error'
|
||||
what(): posix/Etc/UTC not found in timezone database
|
||||
I have applied workaround from [1].
|
||||
[1] https://github.com/HowardHinnant/date/issues/252
|
||||
Bug: https://github.com/HowardHinnant/date/issues/252
|
||||
---
|
||||
src/tz.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
diff --git a/src/tz.cpp b/src/tz.cpp
|
||||
index bd9fad4..eea48ce 100644
|
||||
--- a/src/tz.cpp
|
||||
+++ b/src/tz.cpp
|
||||
@@ -3925,7 +3925,7 @@ sniff_realpath(const char* timezone)
|
||||
if (realpath(timezone, rp) == nullptr)
|
||||
throw system_error(errno, system_category(), "realpath() failed");
|
||||
auto result = extract_tz_name(rp);
|
||||
- return result != "posixrules";
|
||||
+ return result.find("posix") == decltype(result)::npos;
|
||||
}
|
||||
|
||||
const time_zone*
|
||||
--
|
||||
2.39.2
|
||||
@@ -0,0 +1,6 @@
|
||||
config BR2_PACKAGE_DATE_CPP
|
||||
bool "date-cpp"
|
||||
help
|
||||
A date and time library based on the C++11/14/17 <chrono> header
|
||||
|
||||
https://github.com/HowardHinnant/date
|
||||
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 c90f6c00fb961170560299cbda28ca2d45804913aa8b2a9f36dbb8e0028d6930 LICENSE.txt
|
||||
sha256 7a390f200f0ccd207e8cff6757e04817c1a0aec3e327b006b7eb451c57ee3538 date-3.0.1.tar.gz
|
||||
@@ -0,0 +1,10 @@
|
||||
DATE_CPP_VERSION = 3.0.1
|
||||
DATE_CPP_SITE = $(call github,HowardHinnant,date,v$(DATE_CPP_VERSION))
|
||||
DATE_CPP_INSTALL_STAGING = YES
|
||||
DATE_CPP_LICENSE = MIT
|
||||
DATE_CPP_LICENSE_FILES = LICENSE.txt
|
||||
DATE_CPP_CONF_OPTS = \
|
||||
-DBUILD_TZ_LIB=ON \
|
||||
-DUSE_SYSTEM_TZ_DB:BOOL=ON \
|
||||
-DENABLE_DATE_TESTING=OFF
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user