From 4181e251b7e63176181acc8bf6d7de031e1d94df Mon Sep 17 00:00:00 2001 From: Lukas Rusak Date: Thu, 5 Mar 2020 09:33:09 -0800 Subject: [depends] libcdio-gplv3: add patch to remove glob reference This patch can be removed with android api 28 --- .../libcdio-gplv3/01-fix-glob-on-android.patch | 41 ++++++++++++++++++++++ tools/depends/target/libcdio-gplv3/Makefile | 3 +- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 tools/depends/target/libcdio-gplv3/01-fix-glob-on-android.patch (limited to 'tools/depends/target/libcdio-gplv3') diff --git a/tools/depends/target/libcdio-gplv3/01-fix-glob-on-android.patch b/tools/depends/target/libcdio-gplv3/01-fix-glob-on-android.patch new file mode 100644 index 0000000000..669871ff05 --- /dev/null +++ b/tools/depends/target/libcdio-gplv3/01-fix-glob-on-android.patch @@ -0,0 +1,41 @@ +diff -Naur a/lib/driver/image/bincue.c b/lib/driver/image/bincue.c +--- a/lib/driver/image/bincue.c 2018-12-30 15:44:21.000000000 -0800 ++++ b/lib/driver/image/bincue.c 2020-03-05 09:27:25.906767475 -0800 +@@ -1,3 +1,4 @@ ++ + /* + Copyright (C) 2002-2006, 2008, 2011-2012, 2014, 2017 + Rocky Bernstein +@@ -1045,7 +1046,7 @@ + { + char **drives = NULL; + unsigned int num_files=0; +-#ifdef HAVE_GLOB_H ++#if defined(HAVE_GLOB_H) && !defined(__ANDROID__) + unsigned int i; + glob_t globbuf; + globbuf.gl_offs = 0; +diff -Naur a/lib/driver/image/cdrdao.c b/lib/driver/image/cdrdao.c +--- a/lib/driver/image/cdrdao.c 2018-08-12 09:33:48.000000000 -0700 ++++ b/lib/driver/image/cdrdao.c 2020-03-05 09:28:25.873265269 -0800 +@@ -1149,7 +1149,7 @@ + { + char **drives = NULL; + unsigned int num_files=0; +-#ifdef HAVE_GLOB_H ++#if defined(HAVE_GLOB_H) && !defined(__ANDROID__) + unsigned int i; + glob_t globbuf; + globbuf.gl_offs = 0; +diff -Naur a/lib/driver/image/nrg.c b/lib/driver/image/nrg.c +--- a/lib/driver/image/nrg.c 2018-08-12 09:33:48.000000000 -0700 ++++ b/lib/driver/image/nrg.c 2020-03-05 09:27:59.899482793 -0800 +@@ -1167,7 +1167,7 @@ + { + char **drives = NULL; + unsigned int num_files=0; +-#ifdef HAVE_GLOB_H ++#if defined(HAVE_GLOB_H) && !defined(__ANDROID__) + unsigned int i; + glob_t globbuf; + globbuf.gl_offs = 0; diff --git a/tools/depends/target/libcdio-gplv3/Makefile b/tools/depends/target/libcdio-gplv3/Makefile index dce31596a7..a7ac211673 100644 --- a/tools/depends/target/libcdio-gplv3/Makefile +++ b/tools/depends/target/libcdio-gplv3/Makefile @@ -1,5 +1,5 @@ include ../../Makefile.include -DEPS= ../../Makefile.include Makefile osx.patch +DEPS= ../../Makefile.include Makefile osx.patch 01-fix-glob-on-android.patch # lib name, version LIBNAME=libcdio @@ -24,6 +24,7 @@ $(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS) rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM) cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE) cd $(PLATFORM); patch -p1 -i ../osx.patch + cd $(PLATFORM); patch -p1 -i ../01-fix-glob-on-android.patch cd $(PLATFORM); $(AUTORECONF) -vif cd $(PLATFORM); $(CONFIGURE) -- cgit v1.2.3