[vlc-commits] contrib: aribb25: don't build the sample app

Steve Lhomme git at videolan.org
Wed Jun 3 13:46:28 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jun  3 10:39:13 2020 +0200| [c81a99f2c9a31b034ea1b3803e133dec9b3d107a] | committer: Steve Lhomme

contrib: aribb25: don't build the sample app

No idea why the test code is built with -Werror when the code is not clean.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c81a99f2c9a31b034ea1b3803e133dec9b3d107a
---

 ...n-option-not-to-build-the-b25-sample-code.patch | 44 ++++++++++++++++++++++
 contrib/src/aribb25/rules.mak                      |  3 +-
 2 files changed, 46 insertions(+), 1 deletion(-)

diff --git a/contrib/src/aribb25/0001-add-an-option-not-to-build-the-b25-sample-code.patch b/contrib/src/aribb25/0001-add-an-option-not-to-build-the-b25-sample-code.patch
new file mode 100644
index 0000000000..78700cb758
--- /dev/null
+++ b/contrib/src/aribb25/0001-add-an-option-not-to-build-the-b25-sample-code.patch
@@ -0,0 +1,44 @@
+From 3d18150434e374d1e7f3b2ff9973ff24c993dc36 Mon Sep 17 00:00:00 2001
+From: Steve Lhomme <robux4 at ycbcr.xyz>
+Date: Wed, 3 Jun 2020 11:34:26 +0200
+Subject: [PATCH] add an option not to build the b25 sample code
+
+Given it's built with -Werror it may fail in many cases.
+---
+ Makefile.am  | 2 ++
+ configure.ac | 5 +++++
+ 2 files changed, 7 insertions(+)
+
+diff --git a/Makefile.am b/Makefile.am
+index 0cf8e51..dd9ddc8 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -17,7 +17,9 @@ pkginclude_HEADERS = src/arib_std_b25_error_code.h src/b_cas_card_error_code.h \
+ pkgconfigdir = $(libdir)/pkgconfig
+ pkgconfig_DATA = src/aribb25.pc
+ 
++if BUILD_B25
+ bin_PROGRAMS = b25
++endif
+ b25_SOURCES = src/td.c
+ b25_CFLAGS = $(AM_CFLAGS) -Wall -Werror $(pcsclite_CFLAGS)
+ b25_LDADD = libaribb25.la $(pcsclite_LIBS) $(PCSC_LIBS)
+diff --git a/configure.ac b/configure.ac
+index baa856e..292a748 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -82,6 +82,11 @@ AS_IF([test "$SYS" = mingw32],[
+   ], [AC_MSG_ERROR([${pcsclite_PKG_ERRORS}.])])
+ ])
+ 
++AC_ARG_ENABLE([b25],
++  AS_HELP_STRING([--disable-b25], [don't build the b25 sample app]))
++AM_CONDITIONAL([BUILD_B25], [test "${enable_b25}" != "no"])
++
++
+ AC_CONFIG_HEADERS([src/config.h])
+ AC_CONFIG_FILES([Makefile src/aribb25.pc])
+ AC_OUTPUT
+-- 
+2.26.0.windows.1
+
diff --git a/contrib/src/aribb25/rules.mak b/contrib/src/aribb25/rules.mak
index 67f4a2cc72..7ed0936b9b 100644
--- a/contrib/src/aribb25/rules.mak
+++ b/contrib/src/aribb25/rules.mak
@@ -24,10 +24,11 @@ aribb25: aribb25-$(ARIBB25_VERSION).tar.gz .sum-aribb25
 	$(UNPACK)
 	$(APPLY) $(SRC)/aribb25/0001-fix-build-script.patch
 	$(APPLY) $(SRC)/aribb25/0002-fix-libs-include.patch
+	$(APPLY) $(SRC)/aribb25/0001-add-an-option-not-to-build-the-b25-sample-code.patch
 	$(MOVE)
 
 .aribb25: aribb25
 	$(RECONF)
-	cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
+	cd $< && $(HOSTVARS) ./configure $(HOSTCONF) --disable-b25
 	cd $< && $(MAKE) && $(MAKE) install
 	touch $@



More information about the vlc-commits mailing list