diff options
author | Paul Barker <paul@paulbarker.me.uk> | 2014-08-20 15:15:12 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-23 23:01:57 +0100 |
commit | c8910783b58548543f4459998abeee76972fc02e (patch) | |
tree | 72900cb0055599b21a7ac99b24b2d874cbe52e0b | |
parent | 65fa712ae98324bc0182bc23b3bcdb957c3a21d9 (diff) | |
download | poky-c8910783b58548543f4459998abeee76972fc02e.tar.gz |
mc: Fix musl build failure
The CTRL macro just needs to be defined.
(From OE-Core rev: 27b63e39413b1bc5209270ffcd4888e9a4795ad1)
Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-extended/mc/mc/mc-CTRL.patch | 31 | ||||
-rw-r--r-- | meta/recipes-extended/mc/mc_4.7.5.2.bb | 4 | ||||
-rw-r--r-- | meta/recipes-extended/mc/mc_4.8.12.bb | 4 |
3 files changed, 37 insertions, 2 deletions
diff --git a/meta/recipes-extended/mc/mc/mc-CTRL.patch b/meta/recipes-extended/mc/mc/mc-CTRL.patch new file mode 100644 index 0000000000..d532bde9a6 --- /dev/null +++ b/meta/recipes-extended/mc/mc/mc-CTRL.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | Fix build with musl by ensuring CTRL is defined. | ||
2 | |||
3 | musl does not define CTRL in <termios.h>, we could include <sys/ttydefaults.h> | ||
4 | explicitly but it's easier just to ensure CTRL is defined. | ||
5 | |||
6 | This patch is taken from Sabotage Linux, the license statement for patches and | ||
7 | build scripts in Sabotage Linux says: | ||
8 | |||
9 | To the extent possible under law, Christian Neukirchen has waived | ||
10 | all copyright and related or neighboring rights to this work. | ||
11 | |||
12 | http://creativecommons.org/publicdomain/zero/1.0/ | ||
13 | |||
14 | Therefore this should be good to include in OpenEmbedded. | ||
15 | |||
16 | Signed-off-by: Paul Barker <paul@paulbarker.me.uk> | ||
17 | |||
18 | Upstream-status: Pending | ||
19 | |||
20 | diff -u mc-4.8.1.7.org/lib/tty/tty-ncurses.c mc-4.8.1.7/lib/tty/tty-ncurses.c | ||
21 | --- mc-4.8.1.7.org/lib/tty/tty-ncurses.c | ||
22 | +++ mc-4.8.1.7/lib/tty/tty-ncurses.c | ||
23 | @@ -65,7 +65,7 @@ | ||
24 | |||
25 | /*** file scope macro definitions ****************************************************************/ | ||
26 | |||
27 | -#if defined(_AIX) && !defined(CTRL) | ||
28 | +#if !defined(CTRL) | ||
29 | #define CTRL(x) ((x) & 0x1f) | ||
30 | #endif | ||
31 | |||
diff --git a/meta/recipes-extended/mc/mc_4.7.5.2.bb b/meta/recipes-extended/mc/mc_4.7.5.2.bb index 0e4434c7d9..b47eb02323 100644 --- a/meta/recipes-extended/mc/mc_4.7.5.2.bb +++ b/meta/recipes-extended/mc/mc_4.7.5.2.bb | |||
@@ -8,7 +8,9 @@ RDEPENDS_${PN} = "ncurses-terminfo" | |||
8 | 8 | ||
9 | PR = "r3" | 9 | PR = "r3" |
10 | 10 | ||
11 | SRC_URI = "http://www.midnight-commander.org/downloads/${BPN}-${PV}.tar.bz2" | 11 | SRC_URI = "http://www.midnight-commander.org/downloads/${BPN}-${PV}.tar.bz2 \ |
12 | file://mc-CTRL.patch \ | ||
13 | " | ||
12 | 14 | ||
13 | SRC_URI[md5sum] = "bdae966244496cd4f6d282d80c9cf3c6" | 15 | SRC_URI[md5sum] = "bdae966244496cd4f6d282d80c9cf3c6" |
14 | SRC_URI[sha256sum] = "a68338862bb30017eb65ed569a58e80ab66ae8cef11c886440c9e9f4d1efc6ab" | 16 | SRC_URI[sha256sum] = "a68338862bb30017eb65ed569a58e80ab66ae8cef11c886440c9e9f4d1efc6ab" |
diff --git a/meta/recipes-extended/mc/mc_4.8.12.bb b/meta/recipes-extended/mc/mc_4.8.12.bb index b8971931d9..bc462e3fc0 100644 --- a/meta/recipes-extended/mc/mc_4.8.12.bb +++ b/meta/recipes-extended/mc/mc_4.8.12.bb | |||
@@ -6,7 +6,9 @@ SECTION = "console/utils" | |||
6 | DEPENDS = "ncurses glib-2.0" | 6 | DEPENDS = "ncurses glib-2.0" |
7 | RDEPENDS_${PN} = "ncurses-terminfo" | 7 | RDEPENDS_${PN} = "ncurses-terminfo" |
8 | 8 | ||
9 | SRC_URI = "http://www.midnight-commander.org/downloads/${BPN}-${PV}.tar.bz2" | 9 | SRC_URI = "http://www.midnight-commander.org/downloads/${BPN}-${PV}.tar.bz2 \ |
10 | file://mc-CTRL.patch \ | ||
11 | " | ||
10 | 12 | ||
11 | SRC_URI[md5sum] = "a64c426364bfaee56b628f6c0738aade" | 13 | SRC_URI[md5sum] = "a64c426364bfaee56b628f6c0738aade" |
12 | SRC_URI[sha256sum] = "1054fcc27a488771cbe5b85d7c10135fa1cd1b7682a19930d44b51a023e39396" | 14 | SRC_URI[sha256sum] = "1054fcc27a488771cbe5b85d7c10135fa1cd1b7682a19930d44b51a023e39396" |