From d0a4d12d6d7292447e853c6bd8da7f4f40138e55 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 28 Mar 2020 19:29:45 -0700 Subject: [PATCH] hfsprogs: fix compile with newer musl Signed-off-by: Rosen Penev --- utils/hfsprogs/Makefile | 14 ++++++------ utils/hfsprogs/patches/020-cdefs.patch | 30 ++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 8 deletions(-) create mode 100644 utils/hfsprogs/patches/020-cdefs.patch diff --git a/utils/hfsprogs/Makefile b/utils/hfsprogs/Makefile index 4c5b59f94..a31571176 100644 --- a/utils/hfsprogs/Makefile +++ b/utils/hfsprogs/Makefile @@ -9,18 +9,16 @@ include $(TOPDIR)/rules.mk PKG_NAME:=hfsprogs PKG_VERSION:=332.25 -PKG_RELEASE:=3 - -PKG_LICENSE:=GPL-3.0-or-later -PKG_LICENSE_FILES:=COPYING - -PKG_MAINTAINER:= +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz PKG_SOURCE_URL:=http://archive.ubuntu.com/ubuntu/pool/universe/h/$(PKG_NAME) -PKG_BUILD_DIR:=$(BUILD_DIR)/diskdev_cmds-$(PKG_VERSION) PKG_HASH:=74c9aeca899ed7f4bf155c65fc45bf0f250c0f6d57360ea953b1d536d9aa45e6 -PKG_LICENSE:=APSL 2.0 +PKG_BUILD_DIR:=$(BUILD_DIR)/diskdev_cmds-$(PKG_VERSION) + +PKG_MAINTAINER:= +PKG_LICENSE:=APSL-2.0 +PKG_LICENSE_FILES:=COPYING include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/nls.mk diff --git a/utils/hfsprogs/patches/020-cdefs.patch b/utils/hfsprogs/patches/020-cdefs.patch new file mode 100644 index 000000000..0610df7a0 --- /dev/null +++ b/utils/hfsprogs/patches/020-cdefs.patch @@ -0,0 +1,30 @@ +--- a/fsck_hfs.tproj/fsck_hfs.h ++++ b/fsck_hfs.tproj/fsck_hfs.h +@@ -24,6 +24,7 @@ + + #include "cache.h" + ++#include + + const extern char *cdevname; /* name of device being checked */ + extern char *progname; +--- a/newfs_hfs.tproj/makehfs.c ++++ b/newfs_hfs.tproj/makehfs.c +@@ -28,6 +28,7 @@ + + */ + ++#include + #include + #include + #include +--- a/newfs_hfs.tproj/newfs_hfs.c ++++ b/newfs_hfs.tproj/newfs_hfs.c +@@ -34,6 +34,7 @@ + #include + #include + ++#include + #include + #include + #include