diff options
Diffstat (limited to 'meta/recipes-core/readline/readline.inc')
-rw-r--r-- | meta/recipes-core/readline/readline.inc | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/meta/recipes-core/readline/readline.inc b/meta/recipes-core/readline/readline.inc index 039ffdee00..555bd0876f 100644 --- a/meta/recipes-core/readline/readline.inc +++ b/meta/recipes-core/readline/readline.inc | |||
@@ -6,8 +6,8 @@ lines, and perform csh-like history expansion on previous commands." | |||
6 | SECTION = "libs" | 6 | SECTION = "libs" |
7 | HOMEPAGE = "https://tiswww.case.edu/php/chet/readline/rltop.html" | 7 | HOMEPAGE = "https://tiswww.case.edu/php/chet/readline/rltop.html" |
8 | 8 | ||
9 | # GPLv2+ (< 6.0), GPLv3+ (>= 6.0) | 9 | # GPL-2.0-or-later (< 6.0), GPL-3.0-or-later (>= 6.0) |
10 | LICENSE = "GPLv3+" | 10 | LICENSE = "GPL-3.0-or-later" |
11 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" |
12 | 12 | ||
13 | DEPENDS += "ncurses" | 13 | DEPENDS += "ncurses" |
@@ -18,16 +18,17 @@ SRC_URI += "file://inputrc" | |||
18 | inherit autotools texinfo | 18 | inherit autotools texinfo |
19 | 19 | ||
20 | EXTRA_AUTORECONF += "--exclude=autoheader" | 20 | EXTRA_AUTORECONF += "--exclude=autoheader" |
21 | EXTRA_OECONF += "bash_cv_termcap_lib=ncurses --with-shared-termcap-library" | ||
21 | 22 | ||
22 | LEAD_SONAME = "libreadline.so" | 23 | LEAD_SONAME = "libreadline.so" |
23 | 24 | ||
24 | do_configure_prepend () { | 25 | do_configure:prepend () { |
25 | if [ ! -e ${S}/acinclude.m4 ]; then | 26 | if [ ! -e ${S}/acinclude.m4 ]; then |
26 | cat ${S}/aclocal.m4 > ${S}/acinclude.m4 | 27 | cat ${S}/aclocal.m4 > ${S}/acinclude.m4 |
27 | fi | 28 | fi |
28 | } | 29 | } |
29 | 30 | ||
30 | do_install_append () { | 31 | do_install:append () { |
31 | # Make install doesn't properly install these | 32 | # Make install doesn't properly install these |
32 | oe_libinstall -so -C shlib libhistory ${D}${libdir} | 33 | oe_libinstall -so -C shlib libhistory ${D}${libdir} |
33 | oe_libinstall -so -C shlib libreadline ${D}${libdir} | 34 | oe_libinstall -so -C shlib libreadline ${D}${libdir} |
@@ -37,20 +38,20 @@ do_install_append () { | |||
37 | rmdir ${D}${datadir}/${BPN} || true | 38 | rmdir ${D}${datadir}/${BPN} || true |
38 | 39 | ||
39 | install -m 0755 -d ${D}${sysconfdir} | 40 | install -m 0755 -d ${D}${sysconfdir} |
40 | install -m 0644 ${WORKDIR}/inputrc ${D}${sysconfdir}/inputrc | 41 | install -m 0644 ${UNPACKDIR}/inputrc ${D}${sysconfdir}/inputrc |
41 | } | 42 | } |
42 | 43 | ||
43 | BBCLASSEXTEND = "native nativesdk" | 44 | BBCLASSEXTEND = "native nativesdk" |
44 | 45 | ||
45 | CONFFILES_${PN} += "${sysconfdir}/inputrc" | 46 | CONFFILES:${PN} += "${sysconfdir}/inputrc" |
46 | 47 | ||
47 | inherit update-alternatives | 48 | inherit update-alternatives |
48 | 49 | ||
49 | ALTERNATIVE_PRIORITY = "100" | 50 | ALTERNATIVE_PRIORITY = "100" |
50 | ALTERNATIVE_${PN}-doc = "history.3" | 51 | ALTERNATIVE:${PN}-doc = "history.3" |
51 | ALTERNATIVE_LINK_NAME[history.3] = "${mandir}/man3/history.3" | 52 | ALTERNATIVE_LINK_NAME[history.3] = "${mandir}/man3/history.3" |
52 | 53 | ||
53 | # OpenSuse injects versions into libreadline leading to conficits between our native one and theirs | 54 | # OpenSuse injects versions into libreadline leading to conficits between our native one and theirs |
54 | # see their spec file for where this is injected. Extra versioning is harmless so we just do the same. | 55 | # see their spec file for where this is injected. Extra versioning is harmless so we just do the same. |
55 | SRC_URI_append_class-native = " file://rl-native.map" | 56 | SRC_URI:append:class-native = " file://rl-native.map" |
56 | LDFLAGS_append_class-native = " -Wl,--version-script=${WORKDIR}/rl-native.map" | 57 | LDFLAGS:append:class-native = " -Wl,--version-script=${UNPACKDIR}/rl-native.map" |