Skip to contentSkip to conversation

alsa-tools: rewrite packaging

PATCH New Ross Burton 1 participant 1 message Jun 11, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 alsa-tools: rewrite packaging

alsa-tools is actually a collection of 20 separate tools, each with their own configure scripts. The dependencies are varied, old, and estoric (FLTK, GTK+ 1, 2, and 3, PyGTK 2, Qt3).

Instead of maintaining patches to try and pick a subset that builds, use PACKAGECONFIG and some magic to build what the user requests.

By default we build all the tools which have no dependencies, and the tools which need GTK+ 2 or GTK+ 3 if the relevant DISTRO_FEATURES are enabled.

The ncurses build dependency doesn't seem to be checked for, so remove that.

---
 ...g-Wreserved-user-defined-literal-warnings.patch | 14 +++-
 .../alsa/alsa-tools/autotools.patch                | 44 -----------
 .../alsa/alsa-tools/gitcompile_hdajacksensetest    | 13 ----
 .../alsa/alsa-tools/makefile_no_gtk.patch          | 29 -------
 meta/recipes-multimedia/alsa/alsa-tools_1.1.6.bb   | 91 +++++++++++++++-------
 5 files changed, 71 insertions(+), 120 deletions(-)
 delete mode 100644 meta/recipes-multimedia/alsa/alsa-tools/autotools.patch
 delete mode 100755 meta/recipes-multimedia/alsa/alsa-tools/gitcompile_hdajacksensetest
 delete mode 100644 meta/recipes-multimedia/alsa/alsa-tools/makefile_no_gtk.patch
meta/recipes-multimedia/alsa/alsa-tools/0002-Fix-clang-Wreserved-user-defined-literal-warnings.patch +10 -4
index 2290915eab8..c137bc8a284 100644
@@ -1,14 +1,18 @@
-From 2e48e4045e1e951433da0ca4b1e49798eedde14f Mon Sep 17 00:00:00 2001
+Upstream-Status: Backport
+Signed-off-by: Khem Raj <[email protected]>
+
+From a861bdabf02cd9bfb3ec7c0571c563c0fa14adfb Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
-Date: Tue, 24 Apr 2018 12:21:18 -0700
-Subject: [PATCH] Fix clang -Wreserved-user-defined-literal warnings
+Date: Tue, 24 Apr 2018 12:24:32 -0700
+Subject: [PATCH] us428control: Fix clang -Wreserved-user-defined-literal
+ warnings
 
 | us428control.cc:66:18: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
 |         printf("usage: "PROGNAME" [-v verbosity_level 0..2] [-c card] [-D device] [-u usb-device] [-m mode]\n");
 |                         ^
 
-Upstream-Status: Submitted [https://patchwork.kernel.org/patch/10360805/]
 Signed-off-by: Khem Raj <[email protected]>
+Signed-off-by: Takashi Iwai <[email protected]>
 ---
  us428control/us428control.cc | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
@@ -26,3 +30,5 @@ index e839bf4..8cb3c42 100644
  	printf("mode is one of (us224, us428, mixxx)\n");
  }
  /*
+-- 
+1.7.11.7
meta/recipes-multimedia/alsa/alsa-tools/autotools.patch deleted +0 -44

44 lines not on this page · raw message

meta/recipes-multimedia/alsa/alsa-tools/gitcompile_hdajacksensetest deleted +0 -13
deleted file mode 100755
index 58328bd3a50..00000000000
@@ -1,13 +0,0 @@
-#!/bin/bash
-
-aclocal $ACLOCAL_FLAGS || exit 1
-automake --foreign --add-missing || exit 1
-autoconf || exit 1
-export CFLAGS='-O2 -Wall -pipe -g'
-echo "CFLAGS=$CFLAGS"
-echo "./configure $@"
-./configure $@ || exit 1
-unset CFLAGS
-if [ -z "$GITCOMPILE_NO_MAKE" ]; then
-  make || exit 1
-fi
meta/recipes-multimedia/alsa/alsa-tools/makefile_no_gtk.patch deleted +0 -29
deleted file mode 100644
index 54373d1a8f3..00000000000
@@ -1,29 +0,0 @@
-Remove some sub-components which need gtk+.
-
-Upstream-Status: Inappropriate [configuration]
-
-Signed-off-by: Rogerio Nunes <[email protected]>
-Signed-off-by: Otavio Salvador <[email protected]>
-
-Update patch for alsa-tools 1.0.29
-
-Signed-off-by: Kai Kang <[email protected]>
-
-diff --git a/Makefile b/Makefile
-index 2457a1c..72346d9 100644
---- a/Makefile
-+++ b/Makefile
-@@ -1,9 +1,9 @@
- VERSION = 1.1.5
- TOP = .
--SUBDIRS = as10k1 envy24control \
--	  mixartloader pcxhrloader rmedigicontrol sb16_csp seq sscape_ctl \
--	  us428control usx2yloader vxloader echomixer \
--	  hwmixvolume hdajackretask hda-verb hdajacksensetest
-+SUBDIRS = as10k1 \
-+	  mixartloader pcxhrloader sb16_csp seq sscape_ctl \
-+	  us428control usx2yloader vxloader \
-+	  hwmixvolume hda-verb hdajacksensetest
- 
- all:
- 	@for i in $(SUBDIRS); do \
meta/recipes-multimedia/alsa/alsa-tools_1.1.6.bb +61 -30

113 lines not on this page · raw message

Signature · 1 line
2.11.0