diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-12-30 23:45:12 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-12-31 10:40:32 -0800 |
commit | 1a98a89385a0ba89af7300de30e9abe2547e81ac (patch) | |
tree | a4b40095bef365f0eb6984b6cf5a31171787450a | |
parent | 37d3681e739867cf78d1be754498ea2332a34e5f (diff) | |
download | meta-openembedded-1a98a89385a0ba89af7300de30e9abe2547e81ac.tar.gz |
boinc-client: Fix build when using 64bit time_t
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-extended/boinc/boinc-client/0001-Do-not-undefine-_FILE_OFFSET_BITS.patch | 59 | ||||
-rw-r--r-- | meta-oe/recipes-extended/boinc/boinc-client_7.20.4.bb | 1 |
2 files changed, 60 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/boinc/boinc-client/0001-Do-not-undefine-_FILE_OFFSET_BITS.patch b/meta-oe/recipes-extended/boinc/boinc-client/0001-Do-not-undefine-_FILE_OFFSET_BITS.patch new file mode 100644 index 0000000000..846fb099dc --- /dev/null +++ b/meta-oe/recipes-extended/boinc/boinc-client/0001-Do-not-undefine-_FILE_OFFSET_BITS.patch | |||
@@ -0,0 +1,59 @@ | |||
1 | From 4e5c5a245f248976ea55fe1f805badb0cb1bb072 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 30 Dec 2022 23:41:36 -0800 | ||
4 | Subject: [PATCH] Do not undefine _FILE_OFFSET_BITS | ||
5 | |||
6 | This does not work when we want to use 64bit time_t in glibc | ||
7 | therefore let system decide on defining these macros | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | client/client_types.cpp | 9 --------- | ||
14 | client/hostinfo_unix.cpp | 9 --------- | ||
15 | 2 files changed, 18 deletions(-) | ||
16 | |||
17 | diff --git a/client/client_types.cpp b/client/client_types.cpp | ||
18 | index 2977ef7863..7653517302 100644 | ||
19 | --- a/client/client_types.cpp | ||
20 | +++ b/client/client_types.cpp | ||
21 | @@ -22,15 +22,6 @@ | ||
22 | #include "zlib.h" | ||
23 | #else | ||
24 | #include "config.h" | ||
25 | -// Somehow having config.h define _FILE_OFFSET_BITS or _LARGE_FILES is | ||
26 | -// causing open to be redefined to open64 which somehow, in some versions | ||
27 | -// of zlib.h causes gzopen to be redefined as gzopen64 which subsequently gets | ||
28 | -// reported as a linker error. So for this file, we compile in small files | ||
29 | -// mode, regardless of these settings | ||
30 | -#undef _FILE_OFFSET_BITS | ||
31 | -#undef _LARGE_FILES | ||
32 | -#undef _LARGEFILE_SOURCE | ||
33 | -#undef _LARGEFILE64_SOURCE | ||
34 | #include <sys/stat.h> | ||
35 | #include <sys/types.h> | ||
36 | #include <zlib.h> | ||
37 | diff --git a/client/hostinfo_unix.cpp b/client/hostinfo_unix.cpp | ||
38 | index ff0b596221..0ad6841b39 100644 | ||
39 | --- a/client/hostinfo_unix.cpp | ||
40 | +++ b/client/hostinfo_unix.cpp | ||
41 | @@ -26,15 +26,6 @@ | ||
42 | |||
43 | #if !defined(_WIN32) || defined(__CYGWIN32__) | ||
44 | |||
45 | -// Access to binary files in /proc filesystem doesn't work in the 64bit | ||
46 | -// files environment on some systems. | ||
47 | -// None of the functions here need 64bit file functions, | ||
48 | -// so undefine _FILE_OFFSET_BITS and _LARGE_FILES. | ||
49 | -// | ||
50 | -#undef _FILE_OFFSET_BITS | ||
51 | -#undef _LARGE_FILES | ||
52 | -#undef _LARGEFILE_SOURCE | ||
53 | -#undef _LARGEFILE64_SOURCE | ||
54 | #include <iostream> | ||
55 | #include <vector> | ||
56 | #include <string> | ||
57 | -- | ||
58 | 2.39.0 | ||
59 | |||
diff --git a/meta-oe/recipes-extended/boinc/boinc-client_7.20.4.bb b/meta-oe/recipes-extended/boinc/boinc-client_7.20.4.bb index 4cbbca23f2..a16117b993 100644 --- a/meta-oe/recipes-extended/boinc/boinc-client_7.20.4.bb +++ b/meta-oe/recipes-extended/boinc/boinc-client_7.20.4.bb | |||
@@ -34,6 +34,7 @@ BRANCH = "client_release/7/7.20" | |||
34 | SRC_URI = "git://github.com/BOINC/boinc;protocol=https;branch=${BRANCH} \ | 34 | SRC_URI = "git://github.com/BOINC/boinc;protocol=https;branch=${BRANCH} \ |
35 | file://boinc-AM_CONDITIONAL.patch \ | 35 | file://boinc-AM_CONDITIONAL.patch \ |
36 | file://0001-scripts-Do-not-check-for-files-on-build-host.patch \ | 36 | file://0001-scripts-Do-not-check-for-files-on-build-host.patch \ |
37 | file://0001-Do-not-undefine-_FILE_OFFSET_BITS.patch \ | ||
37 | " | 38 | " |
38 | 39 | ||
39 | inherit gettext autotools pkgconfig features_check systemd | 40 | inherit gettext autotools pkgconfig features_check systemd |