diff options
author | Phil Blundell <pb@pbcl.net> | 2013-04-26 14:05:07 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-04-29 14:45:10 +0100 |
commit | ac5b5bedfa22ceabdc870df1c6f59d1bafe5c134 (patch) | |
tree | 367e3c3e0a606085594683d719935683138ef8b1 /meta | |
parent | 9a3d8c214c2f95fcf0fb5f5c82467981ea96cf66 (diff) | |
download | poky-ac5b5bedfa22ceabdc870df1c6f59d1bafe5c134.tar.gz |
alsa-utils: Move alsaconf to its own recipe
18575b082a4042376fd1575465e69562dea04ddc added bash as a dependency of
alsa-utils-alsaconf so that the script interpreter will be available at
run time. However, this has the undesirable side effect of making bash
be a build dependency for alsa-utils and, for those folks who don't need
alsaconf but do want some other part of alsa-utils, this cure is worse
than the original disease.
Fix this by moving alsaconf to a separate recipe so that the bash
dependency only applies when alsaconf is specifically requested.
(From OE-Core rev: 7317c8055cf3af8912a66badb3074f0a60f75ec2)
Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-multimedia/alsa/alsa-utils-alsaconf_1.0.26.bb | 17 | ||||
-rw-r--r-- | meta/recipes-multimedia/alsa/alsa-utils_1.0.26.bb | 12 |
2 files changed, 25 insertions, 4 deletions
diff --git a/meta/recipes-multimedia/alsa/alsa-utils-alsaconf_1.0.26.bb b/meta/recipes-multimedia/alsa/alsa-utils-alsaconf_1.0.26.bb new file mode 100644 index 0000000000..a3fa1d076b --- /dev/null +++ b/meta/recipes-multimedia/alsa/alsa-utils-alsaconf_1.0.26.bb | |||
@@ -0,0 +1,17 @@ | |||
1 | require alsa-utils_${PV}.bb | ||
2 | |||
3 | THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" | ||
4 | FILESPATH =. "${@base_set_filespath(["${THISDIR}/alsa-utils"], d)}:" | ||
5 | |||
6 | PACKAGES = "${PN}" | ||
7 | RDEPENDS_${PN} += "bash" | ||
8 | |||
9 | DESCRIPTION_${PN} = "a bash script that creates ALSA configuration files" | ||
10 | FILES_${PN} = "${sbindir}/alsaconf" | ||
11 | |||
12 | S = "${WORKDIR}/alsa-utils-${PV}" | ||
13 | |||
14 | do_install() { | ||
15 | install -d ${D}${sbindir} | ||
16 | install -m 0755 ${S}/alsaconf/alsaconf ${D}${sbindir}/ | ||
17 | } | ||
diff --git a/meta/recipes-multimedia/alsa/alsa-utils_1.0.26.bb b/meta/recipes-multimedia/alsa/alsa-utils_1.0.26.bb index d566d94d05..e0bf75532c 100644 --- a/meta/recipes-multimedia/alsa/alsa-utils_1.0.26.bb +++ b/meta/recipes-multimedia/alsa/alsa-utils_1.0.26.bb | |||
@@ -39,7 +39,6 @@ ALSA_UTILS_PKGS = "\ | |||
39 | alsa-utils-speakertest \ | 39 | alsa-utils-speakertest \ |
40 | alsa-utils-aseqnet \ | 40 | alsa-utils-aseqnet \ |
41 | alsa-utils-aseqdump \ | 41 | alsa-utils-aseqdump \ |
42 | alsa-utils-alsaconf \ | ||
43 | alsa-utils-alsactl \ | 42 | alsa-utils-alsactl \ |
44 | alsa-utils-alsaloop \ | 43 | alsa-utils-alsaloop \ |
45 | alsa-utils-alsaucm \ | 44 | alsa-utils-alsaucm \ |
@@ -47,7 +46,6 @@ ALSA_UTILS_PKGS = "\ | |||
47 | 46 | ||
48 | PACKAGES += "${ALSA_UTILS_PKGS}" | 47 | PACKAGES += "${ALSA_UTILS_PKGS}" |
49 | RDEPENDS_${PN} += "${ALSA_UTILS_PKGS}" | 48 | RDEPENDS_${PN} += "${ALSA_UTILS_PKGS}" |
50 | RDEPENDS_alsa-utils-alsaconf += "bash" | ||
51 | 49 | ||
52 | FILES_${PN} = "" | 50 | FILES_${PN} = "" |
53 | FILES_alsa-utils-aplay = "${bindir}/aplay ${bindir}/arecord" | 51 | FILES_alsa-utils-aplay = "${bindir}/aplay ${bindir}/arecord" |
@@ -60,7 +58,6 @@ FILES_alsa-utils-aseqnet = "${bindir}/aseqnet" | |||
60 | FILES_alsa-utils-iecset = "${bindir}/iecset" | 58 | FILES_alsa-utils-iecset = "${bindir}/iecset" |
61 | FILES_alsa-utils-alsactl = "${sbindir}/alsactl */udev/rules.d ${systemd_unitdir} ${localstatedir}/lib/alsa ${datadir}/alsa/init/" | 59 | FILES_alsa-utils-alsactl = "${sbindir}/alsactl */udev/rules.d ${systemd_unitdir} ${localstatedir}/lib/alsa ${datadir}/alsa/init/" |
62 | FILES_alsa-utils-aseqdump = "${bindir}/aseqdump" | 60 | FILES_alsa-utils-aseqdump = "${bindir}/aseqdump" |
63 | FILES_alsa-utils-alsaconf = "${sbindir}/alsaconf" | ||
64 | FILES_alsa-utils-alsaloop = "${bindir}/alsaloop" | 61 | FILES_alsa-utils-alsaloop = "${bindir}/alsaloop" |
65 | FILES_alsa-utils-alsaucm = "${bindir}/alsaucm" | 62 | FILES_alsa-utils-alsaucm = "${bindir}/alsaucm" |
66 | 63 | ||
@@ -73,9 +70,16 @@ DESCRIPTION_alsa-utils-midi = "miscalleanous MIDI utilities for ALSA" | |||
73 | DESCRIPTION_alsa-utils-aconnect = "ALSA sequencer connection manager" | 70 | DESCRIPTION_alsa-utils-aconnect = "ALSA sequencer connection manager" |
74 | DESCRIPTION_alsa-utils-aseqnet = "network client/server on ALSA sequencer" | 71 | DESCRIPTION_alsa-utils-aseqnet = "network client/server on ALSA sequencer" |
75 | DESCRIPTION_alsa-utils-alsactl = "saves/restores ALSA-settings in /etc/asound.state" | 72 | DESCRIPTION_alsa-utils-alsactl = "saves/restores ALSA-settings in /etc/asound.state" |
76 | DESCRIPTION_alsa-utils-alsaconf = "a bash script that creates ALSA configuration files" | ||
77 | DESCRIPTION_alsa-utils-alsaucm = "ALSA Use Case Manager" | 73 | DESCRIPTION_alsa-utils-alsaucm = "ALSA Use Case Manager" |
78 | 74 | ||
79 | RRECOMMENDS_alsa-utils-alsactl = "alsa-states" | 75 | RRECOMMENDS_alsa-utils-alsactl = "alsa-states" |
80 | 76 | ||
81 | ALLOW_EMPTY_alsa-utils = "1" | 77 | ALLOW_EMPTY_alsa-utils = "1" |
78 | |||
79 | do_install() { | ||
80 | autotools_do_install | ||
81 | |||
82 | # We don't ship this here because it requires a dependency on bash. | ||
83 | # See alsa-utils-alsaconf_${PV}.bb | ||
84 | rm ${D}${sbindir}/alsaconf | ||
85 | } | ||