From 235a2b12fb4782beccfe1ceec7e6eb5680f5c7e2 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Sun, 16 Aug 2015 14:46:11 +0200 Subject: [PATCH] macchanger: add alpine patch to fix musl. --- srcpkgs/macchanger/patches/fix-caddr_t.patch | 13 +++++++++++++ srcpkgs/macchanger/template | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/macchanger/patches/fix-caddr_t.patch diff --git a/srcpkgs/macchanger/patches/fix-caddr_t.patch b/srcpkgs/macchanger/patches/fix-caddr_t.patch new file mode 100644 index 0000000000..c5fe5f6e16 --- /dev/null +++ b/srcpkgs/macchanger/patches/fix-caddr_t.patch @@ -0,0 +1,13 @@ +https://github.com/alobbs/macchanger/issues/14 + +--- ./src/netinfo.c.orig ++++ ./src/netinfo.c +@@ -113,7 +113,7 @@ + epa->size = IFHWADDRLEN; + + memcpy(&req, &(net->dev), sizeof(struct ifreq)); +- req.ifr_data = (caddr_t)epa; ++ req.ifr_data = (void *)epa; + + if (ioctl(net->sock, SIOCETHTOOL, &req) < 0) { + perror ("[ERROR] Could not read permanent MAC"); diff --git a/srcpkgs/macchanger/template b/srcpkgs/macchanger/template index ceb9d9ed28..da760bb154 100644 --- a/srcpkgs/macchanger/template +++ b/srcpkgs/macchanger/template @@ -1,7 +1,7 @@ # Template file for 'macchanger' pkgname=macchanger version=1.7.0 -revision=1 +revision=2 build_pie=yes build_style=gnu-configure configure_script="./autogen.sh"