summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/librepo
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-08-27 09:22:02 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-09-01 10:14:01 +0100
commitc00ae16610dedd685ee5cb400647ee8fbc794eb1 (patch)
tree8b92eaed97e09145fc27ec4e32635fc59b9ed13a /meta/recipes-devtools/librepo
parente9edf8bfea5e2f6318ac4771060e55a94e487a30 (diff)
downloadpoky-c00ae16610dedd685ee5cb400647ee8fbc794eb1.tar.gz
librepo: Fix build on musl
Add missing header file (From OE-Core rev: 3673c759131d2001937037062bf463698f30895c) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/librepo')
-rw-r--r--meta/recipes-devtools/librepo/librepo/0001-metadata_downloader-Include-unistd.h-for-lseek.patch34
-rw-r--r--meta/recipes-devtools/librepo/librepo_1.14.4.bb1
2 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-devtools/librepo/librepo/0001-metadata_downloader-Include-unistd.h-for-lseek.patch b/meta/recipes-devtools/librepo/librepo/0001-metadata_downloader-Include-unistd.h-for-lseek.patch
new file mode 100644
index 0000000000..22b3110a61
--- /dev/null
+++ b/meta/recipes-devtools/librepo/librepo/0001-metadata_downloader-Include-unistd.h-for-lseek.patch
@@ -0,0 +1,34 @@
1From 5c63ec2e2d4726268ace85e5c61727cbd811d982 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 27 Aug 2022 09:00:24 -0700
4Subject: [PATCH] metadata_downloader: Include unistd.h for lseek()
5
6This is found when compiling on musl systems
7
8Fixes
9
10metadata_downloader.c:331:9: error: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
11 lseek(fd_value, SEEK_SET, 0);
12 ^
13
14Upstream-Status: Submitted [https://github.com/rpm-software-management/librepo/pull/263]
15Signed-off-by: Khem Raj <raj.khem@gmail.com>
16---
17 librepo/metadata_downloader.c | 1 +
18 1 file changed, 1 insertion(+)
19
20diff --git a/librepo/metadata_downloader.c b/librepo/metadata_downloader.c
21index 123c77b..6604255 100644
22--- a/librepo/metadata_downloader.c
23+++ b/librepo/metadata_downloader.c
24@@ -24,6 +24,7 @@
25 #include <assert.h>
26 #include <string.h>
27 #include <errno.h>
28+#include <unistd.h>
29 #include <sys/stat.h>
30
31 #include "librepo/librepo.h"
32--
332.37.2
34
diff --git a/meta/recipes-devtools/librepo/librepo_1.14.4.bb b/meta/recipes-devtools/librepo/librepo_1.14.4.bb
index cdd9645298..2b8bd132f3 100644
--- a/meta/recipes-devtools/librepo/librepo_1.14.4.bb
+++ b/meta/recipes-devtools/librepo/librepo_1.14.4.bb
@@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
8SRC_URI = "git://github.com/rpm-software-management/librepo.git;branch=master;protocol=https \ 8SRC_URI = "git://github.com/rpm-software-management/librepo.git;branch=master;protocol=https \
9 file://0002-Do-not-try-to-obtain-PYTHON_INSTALL_DIR-by-running-p.patch \ 9 file://0002-Do-not-try-to-obtain-PYTHON_INSTALL_DIR-by-running-p.patch \
10 file://0004-Set-gpgme-variables-with-pkg-config-not-with-cmake-m.patch \ 10 file://0004-Set-gpgme-variables-with-pkg-config-not-with-cmake-m.patch \
11 file://0001-metadata_downloader-Include-unistd.h-for-lseek.patch \
11 " 12 "
12 13
13SRCREV = "2bd1041c741c85bc196ca01dcca1eae6099eb742" 14SRCREV = "2bd1041c741c85bc196ca01dcca1eae6099eb742"