diff options
Diffstat (limited to 'meta/recipes-devtools/apt')
-rw-r--r-- | meta/recipes-devtools/apt/apt.inc | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/apt/apt/0001-The-C.UTF-8-locale-is-not-portable-use-std-locale-cl.patch | 27 |
2 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-devtools/apt/apt.inc b/meta/recipes-devtools/apt/apt.inc index 13f5969f86..87d533782f 100644 --- a/meta/recipes-devtools/apt/apt.inc +++ b/meta/recipes-devtools/apt/apt.inc | |||
@@ -17,6 +17,7 @@ SRC_URI = "https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/${BPN}/${P | |||
17 | file://0001-environment.mak-musl-based-systems-can-generate-shar.patch \ | 17 | file://0001-environment.mak-musl-based-systems-can-generate-shar.patch \ |
18 | file://0001-apt-1.2.12-Fix-musl-build.patch \ | 18 | file://0001-apt-1.2.12-Fix-musl-build.patch \ |
19 | file://0001-Include-array.h-for-std-array.patch \ | 19 | file://0001-Include-array.h-for-std-array.patch \ |
20 | file://0001-The-C.UTF-8-locale-is-not-portable-use-std-locale-cl.patch \ | ||
20 | " | 21 | " |
21 | SRC_URI[md5sum] = "d30eed9304e82ea8238c854b5c5a34d9" | 22 | SRC_URI[md5sum] = "d30eed9304e82ea8238c854b5c5a34d9" |
22 | SRC_URI[sha256sum] = "03ded4f5e9b8d43ecec083704b2dcabf20c182ed382db9ac7251da0b0b038059" | 23 | SRC_URI[sha256sum] = "03ded4f5e9b8d43ecec083704b2dcabf20c182ed382db9ac7251da0b0b038059" |
diff --git a/meta/recipes-devtools/apt/apt/0001-The-C.UTF-8-locale-is-not-portable-use-std-locale-cl.patch b/meta/recipes-devtools/apt/apt/0001-The-C.UTF-8-locale-is-not-portable-use-std-locale-cl.patch new file mode 100644 index 0000000000..ce5c005086 --- /dev/null +++ b/meta/recipes-devtools/apt/apt/0001-The-C.UTF-8-locale-is-not-portable-use-std-locale-cl.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From 7e8839731ae3fdf7502b91643aa6b252f6c5eaa6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Adrian Bunk <bunk@stusta.de> | ||
3 | Date: Thu, 14 May 2020 00:08:21 +0300 | ||
4 | Subject: The C.UTF-8 locale is not portable, use std::locale::classic() | ||
5 | |||
6 | Upstream-Status: Inappropriate [Similar fix already in apt >= 1.3] | ||
7 | Signed-off-by: Adrian Bunk <bunk@stusta.de> | ||
8 | --- | ||
9 | ftparchive/writer.cc | 2 +- | ||
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
11 | |||
12 | diff --git a/ftparchive/writer.cc b/ftparchive/writer.cc | ||
13 | index 25963820a..6ad571d2a 100644 | ||
14 | --- a/ftparchive/writer.cc | ||
15 | +++ b/ftparchive/writer.cc | ||
16 | @@ -984,7 +984,7 @@ ReleaseWriter::ReleaseWriter(FileFd * const GivenOutput, string const &/*DB*/) : | ||
17 | AddPatterns(_config->FindVector("APT::FTPArchive::Release::Patterns")); | ||
18 | |||
19 | time_t const now = time(NULL); | ||
20 | - auto const posix = std::locale("C.UTF-8"); | ||
21 | + auto const posix = std::locale::classic(); | ||
22 | |||
23 | // FIXME: use TimeRFC1123 here? But that uses GMT to satisfy HTTP/1.1 | ||
24 | std::ostringstream datestr; | ||
25 | -- | ||
26 | 2.20.1 | ||
27 | |||