From 9766d04299ad56a769d85807fd3f5bf61eaff773 Mon Sep 17 00:00:00 2001 From: jbu Date: Mon, 22 Jun 2015 02:50:58 +0200 Subject: [PATCH] minicom: unbreak musl --- .../minicom/patches/musl-sys_param_h.patch | 12 +++++++++++ srcpkgs/minicom/patches/musl-vc_music.patch | 21 +++++++++++++++++++ srcpkgs/minicom/template | 4 ++-- 3 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/minicom/patches/musl-sys_param_h.patch create mode 100644 srcpkgs/minicom/patches/musl-vc_music.patch diff --git a/srcpkgs/minicom/patches/musl-sys_param_h.patch b/srcpkgs/minicom/patches/musl-sys_param_h.patch new file mode 100644 index 00000000000..e59d67954c3 --- /dev/null +++ b/srcpkgs/minicom/patches/musl-sys_param_h.patch @@ -0,0 +1,12 @@ +MAXNAMLEN is defined in sys/param.h + +--- src/getsdir.c 2011-02-14 11:07:00.000000000 +0100 ++++ src/getsdir.c 2015-06-22 02:47:36.263541750 +0200 +@@ -28,6 +28,7 @@ + #include + #include + #include ++#include + #include + #include + #include diff --git a/srcpkgs/minicom/patches/musl-vc_music.patch b/srcpkgs/minicom/patches/musl-vc_music.patch new file mode 100644 index 00000000000..11caa9dced9 --- /dev/null +++ b/srcpkgs/minicom/patches/musl-vc_music.patch @@ -0,0 +1,21 @@ +In musl libc __GLIBC__ is not defined, while it has the +same required header files for VC_MUSIC to work. +Just disable the additional __GLIBC__ shield. + +--- src/dial.c 2013-05-09 20:32:02.000000000 +0200 ++++ src/dial.c 2015-06-22 02:44:34.768551564 +0200 +@@ -39,11 +39,9 @@ + #include "intl.h" + + #ifdef VC_MUSIC +-# if defined(__GLIBC__) +-# include +-# include +-# include +-# endif ++#include ++#include ++#include + #endif + + enum { CURRENT_VERSION = 6 }; diff --git a/srcpkgs/minicom/template b/srcpkgs/minicom/template index 7e98c49520f..2fa61a12268 100644 --- a/srcpkgs/minicom/template +++ b/srcpkgs/minicom/template @@ -1,12 +1,12 @@ # Template file for 'minicom' pkgname=minicom version=2.7 -revision=2 +revision=3 build_style=gnu-configure makedepends="ncurses-devel" short_desc="Menu driven communications program" maintainer="Juan RP " license="GPL-2" homepage="http://alioth.debian.org/projects/minicom/" -distfiles="https://www.alioth.debian.org/frs/download.php/latestfile/3/${pkgname}-${version}.tar.gz" +distfiles="${DEBIAN_SITE}/main/m/${pkgname}/${pkgname}_${version}.orig.tar.gz" checksum=9ac3a663b82f4f5df64114b4792b9926b536c85f59de0f2d2b321c7626a904f4