macchanger: bump to version 1.7.0
PATCH 1/2 macchanger: bump to version 1.7.0
Switch to github repository to fetch latest version, which also added the missing license file.
--- package/macchanger/macchanger.hash | 2 +- package/macchanger/macchanger.mk | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
package/macchanger/macchanger.hash +1 -1
@@ -1,2 +1,2 @@ # Locally calculated after checking pgp signature -sha256 31534f138f1d21fa247be74ba6bef3fbfa47bbcd5033e99bd10c432fe58e51f7 macchanger-1.6.0.tar.gz +sha256 dae2717c270fd5f62d790dbf80c19793c651b1b26b62c101b82d5fdf25a845bf macchanger-1.7.0.tar.gz
package/macchanger/macchanger.mk +3 -3
@@ -4,9 +4,9 @@ # ################################################################################ -MACCHANGER_VERSION = 1.6.0 -MACCHANGER_SITE = $(BR2_GNU_MIRROR)/macchanger +MACCHANGER_VERSION = 1.7.0 +MACCHANGER_SITE = https://github.com/alobbs/macchanger/releases/download/$(MACCHANGER_VERSION) MACCHANGER_LICENSE = GPLv2+ -MACCHANGER_LICENSE_FILES = src/main.c +MACCHANGER_LICENSE_FILES = COPYING $(eval $(autotools-package))
Signature · 1 line
2.8.2
PATCH 2/2 macchanger: add patch to fix musl build
Add a patch to fix a build error with the musl C library.
caddr_t is defined in <sys/types.h>. This header file must be included to fix build with the musl C library:
netinfo.c: In function 'mc_net_info_get_permanent_mac':
netinfo.c:116:28: error: 'caddr_t' undeclared (first use in this function)
req.ifr_data = (caddr_t)epa;
The project looks dead, the last commit dates Jan 1, 2014. So the fix is not sent upstream.
Fixes:
http://autobuild.buildroot.net/results/796/7966ad4f994d893918368891107f660295164f07/
http://autobuild.buildroot.net/results/177/177db3c7cbb59e4388c6742e987f92df53a23fc3/
.. and many more
Replaces:
http://patchwork.ozlabs.org/patch/572195/
--- .../0001-Fix-missing-include-for-caddr_t.patch | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 package/macchanger/0001-Fix-missing-include-for-caddr_t.patch
package/macchanger/0001-Fix-missing-include-for-caddr_t.patch new file +35 -0
@@ -0,0 +1,35 @@ +From 4eeb901b7aadb167e44f476fd665f7fedf491e51 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?J=C3=B6rg=20Krause?= <[email protected]> +Date: Fri, 6 May 2016 09:28:36 +0200 +Subject: [PATCH] Fix missing include for caddr_t +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +caddr_t is defined in <sys/types.h>. This header file must be included to fix +build with the musl C library: + +netinfo.c: In function 'mc_net_info_get_permanent_mac': +netinfo.c:116:28: error: 'caddr_t' undeclared (first use in this function) + req.ifr_data = (caddr_t)epa; + +Signed-off-by: J?rg Krause <[email protected]> +--- + src/netinfo.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/netinfo.c b/src/netinfo.c +index 3525123..1aa3293 100644 +--- a/src/netinfo.c ++++ b/src/netinfo.c +@@ -28,6 +28,7 @@ + #include <string.h> + #include <unistd.h> + #include <sys/ioctl.h> ++#include <sys/types.h> + + #include <linux/ethtool.h> + #include <linux/sockios.h> +-- +2.8.2 +
Signature · 1 line
2.8.2
PATCH 1/2 macchanger: bump to version 1.7.0
In reply to Jörg KrauseHello,
Quoted 8 lines · J?rg Krause
Switch to github repository to fetch latest version, which also added the missing license file.
Signed-off-by J?rg Krause <[email protected]>--- package/macchanger/macchanger.hash | 2 +- package/macchanger/macchanger.mk | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
Both applied, thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com