Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Ismael Luceno (3a4751fcdcee78293e0198b046ea6a134cd40e60)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Ismael Luceno <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Ismael Luceno (3a4751fcdcee78293e0198b046ea6a134cd40e60)
  • Date: Sun, 21 Jun 2020 12:37:41 +0000

GIT changes to master grimoire by Ismael Luceno <ismael AT sourcemage.org>:

net/dhcpcd/HISTORY
| 4 +
net/dhcpcd/PRE_BUILD
| 3

net/dhcpcd/patches/0001-Fix-missing-mode_t-in-common.h-in-a-strict-libc.patch
| 34 ++++++++++
3 files changed, 41 insertions(+)

New commits:
commit 3a4751fcdcee78293e0198b046ea6a134cd40e60
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

dhcpcd: Fix build against musl libc

diff --git a/net/dhcpcd/HISTORY b/net/dhcpcd/HISTORY
index 7276d9c..8ee60ef 100644
--- a/net/dhcpcd/HISTORY
+++ b/net/dhcpcd/HISTORY
@@ -1,3 +1,7 @@
+2020-06-21 Ismael Luceno <ismael AT sourcemage.org>
+ * PRE_BUILD,
patches/0001-Fix-missing-mode_t-in-common.h-in-a-strict-libc.patch:
+ Fixed build against musl libc
+
2020-06-20 Treeve Jelbert <treeve AT sourcemage.org>
* DETAILS: version 9.1.2

diff --git a/net/dhcpcd/PRE_BUILD b/net/dhcpcd/PRE_BUILD
new file mode 100755
index 0000000..c230ad1
--- /dev/null
+++ b/net/dhcpcd/PRE_BUILD
@@ -0,0 +1,3 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+apply_patch_dir patches
diff --git
a/net/dhcpcd/patches/0001-Fix-missing-mode_t-in-common.h-in-a-strict-libc.patch

b/net/dhcpcd/patches/0001-Fix-missing-mode_t-in-common.h-in-a-strict-libc.patch
new file mode 100644
index 0000000..c43f98f
--- /dev/null
+++
b/net/dhcpcd/patches/0001-Fix-missing-mode_t-in-common.h-in-a-strict-libc.patch
@@ -0,0 +1,34 @@
+From e931bb98d3ab4b67566b000395fe3c111e5f8c1e Mon Sep 17 00:00:00 2001
+From: Ismael Luceno <ismael AT iodev.co.uk>
+Date: Mon, 8 Jun 2020 22:11:57 +0200
+Subject: [PATCH] Fix missing mode_t in common.h in a strict libc
+
+Libc implementations are allowed to require the explicit inclusion of
+either <sys/types.h> (where it should be defined) or <sys/stat.h>
+(prototypes requiring it) to expose mode_t.
+
+Without that it fails to be exposed in musl libc, and potentially other
+implementations.
+
+Ref: <http://manpages.ubuntu.com/manpages/focal/man7/sys_types.h.7posix.html>
+
+Signed-off-by: Ismael Luceno <ismael AT iodev.co.uk>
+---
+ src/common.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/common.h b/src/common.h
+index 6a68fa1549c3..e38c43931e1d 100644
+--- a/src/common.h
++++ b/src/common.h
+@@ -29,6 +29,7 @@
+ #ifndef COMMON_H
+ #define COMMON_H
+
++#include <sys/types.h>
+ #include <sys/param.h>
+ #include <sys/time.h>
+ #include <stdint.h>
+--
+2.27.0
+



  • [SM-Commit] GIT changes to master grimoire by Ismael Luceno (3a4751fcdcee78293e0198b046ea6a134cd40e60), Ismael Luceno, 06/21/2020

Archive powered by MHonArc 2.6.24.

Top of Page