mirror of
https://git.yoctoproject.org/poky
synced 2026-02-10 18:53:13 +01:00
fix-configure.patch is removed as it's not appropriate, and the new version of util-linux has solved the problem this patch is trying to solve. util-linux-ensure-the-existence-of-directory-for-PAT.patch is removed as the new version of util-linux has solved the problem this patch is trying to solve. util-linux-native.patch is rebased. util-linux-ng-replace-siginterrupt.patch is rebased. Add PACKAGECONFIG for 'pylibmount' to build out python bindings for libmount optionally. util-linux-pylibmount is added to PACKAGES if PACKAGECONFIG has 'pylibmount' in it. Fix PACAGECONFIG for 'systemd' as the new version has changed things related to systemd. Now util-linux would have a dependency on systemd if 'systemd' is in PACKAGECONFIG. Fix SYSTEMD_PACKAGES, SYSTEMD_SERVICE and SYSTEMD_AUTO_ENABLE variable to match the new version. Four lines in do_compile task are deleted because they caused do_compile failure and nowhere in util-linux are they used. Corresponding files are also removed. (From OE-Core rev: 264e2fde3a8624c87d2451d2752c9f3ed8911672) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
58 lines
1.4 KiB
Diff
58 lines
1.4 KiB
Diff
Support older hosts with latest util-linux-native
|
|
|
|
mkostemp is not defined on older machines. So we detect this and
|
|
provide a define that uses mkstemp instead.
|
|
|
|
O_CLOEXEC is not defined on older machines. It is however defined
|
|
in the 'c.h' header. Fix up the users to include 'c.h'.
|
|
|
|
fdisks/fdisksunlabel.c was modified to use qsort_r, however
|
|
this is not defined on older hosts. Revert:
|
|
commit c69bbca9c1f6645097bd20fe3a21f5a99a2a0698
|
|
fdisk: (sun): use ask API, remove global variable
|
|
|
|
Upstream-Status: Inappropriate [other]
|
|
Patches revert upstream changes in order to support older
|
|
machines.
|
|
|
|
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
|
|
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
|
|
---
|
|
configure.ac | 1 +
|
|
include/c.h | 7 +++++++
|
|
2 files changed, 8 insertions(+)
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
index eb3680b..93e015f 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -318,6 +318,7 @@ AC_CHECK_FUNCS([ \
|
|
llseek \
|
|
lseek64 \
|
|
mempcpy \
|
|
+ mkostemp \
|
|
nanosleep \
|
|
open_memstream \
|
|
personality \
|
|
diff --git a/include/c.h b/include/c.h
|
|
index e423e8b..cf33b94 100644
|
|
--- a/include/c.h
|
|
+++ b/include/c.h
|
|
@@ -233,6 +233,13 @@ static inline int dirfd(DIR *d)
|
|
#endif
|
|
|
|
/*
|
|
+ * mkostemp replacement
|
|
+ */
|
|
+#ifndef HAVE_MKOSTEMP
|
|
+#define mkostemp(template, flags) mkstemp(template)
|
|
+#endif
|
|
+
|
|
+/*
|
|
* MAXHOSTNAMELEN replacement
|
|
*/
|
|
static inline size_t get_hostname_max(void)
|
|
--
|
|
1.9.1
|
|
|