From 7aa1ebe6128a555aa7f00d7889b82147e3225761 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Mon, 28 Apr 2014 16:54:11 +0200 Subject: [PATCH] musl: fixed mine to build --- .../musl/pkg/mine/mine-md5-cdefs-legacy.patch | 30 +++++++++++++++++++ base/musl/pkg/mine/mine.conf | 18 +++++++++++ 2 files changed, 48 insertions(+) create mode 100644 base/musl/pkg/mine/mine-md5-cdefs-legacy.patch create mode 100644 base/musl/pkg/mine/mine.conf diff --git a/base/musl/pkg/mine/mine-md5-cdefs-legacy.patch b/base/musl/pkg/mine/mine-md5-cdefs-legacy.patch new file mode 100644 index 000000000..5af71030b --- /dev/null +++ b/base/musl/pkg/mine/mine-md5-cdefs-legacy.patch @@ -0,0 +1,30 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../musl/pkg/mine/mine-md5-cdefs-legacy.patch +# Copyright (C) 2014 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- SDE-COPYRIGHT-NOTE-END --- + +--- a/md5.c 2014-04-28 16:22:50.653150935 +0200 ++++ b/md5.c 2014-04-28 16:23:50.329249501 +0200 +@@ -39,6 +39,11 @@ + # define SWAP(n) (n) + #endif + ++/* glibc legacy defined in but obsolete */ ++#ifndef __P ++# define __P(args) args ++#endif ++ + typedef unsigned int md5_uint32; + + /* Structure to save state of computation between the single steps. */ diff --git a/base/musl/pkg/mine/mine.conf b/base/musl/pkg/mine/mine.conf new file mode 100644 index 000000000..7ee6001db --- /dev/null +++ b/base/musl/pkg/mine/mine.conf @@ -0,0 +1,18 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../musl/pkg/mine/mine.conf +# Copyright (C) 2014 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. A copy of the +# GNU General Public License can be found in the file COPYING. +# --- SDE-COPYRIGHT-NOTE-END --- + +# cannot be checked when cross-compiling +if atstage cross; then + var_append configcache ' ' "compat_cv_func_makedev_three_args=no" +fi