summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/readline/readline.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/readline/readline.inc')
-rw-r--r--meta/recipes-core/readline/readline.inc19
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."
6SECTION = "libs" 6SECTION = "libs"
7HOMEPAGE = "https://tiswww.case.edu/php/chet/readline/rltop.html" 7HOMEPAGE = "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)
10LICENSE = "GPLv3+" 10LICENSE = "GPL-3.0-or-later"
11LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" 11LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
12 12
13DEPENDS += "ncurses" 13DEPENDS += "ncurses"
@@ -18,16 +18,17 @@ SRC_URI += "file://inputrc"
18inherit autotools texinfo 18inherit autotools texinfo
19 19
20EXTRA_AUTORECONF += "--exclude=autoheader" 20EXTRA_AUTORECONF += "--exclude=autoheader"
21EXTRA_OECONF += "bash_cv_termcap_lib=ncurses --with-shared-termcap-library"
21 22
22LEAD_SONAME = "libreadline.so" 23LEAD_SONAME = "libreadline.so"
23 24
24do_configure_prepend () { 25do_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
30do_install_append () { 31do_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
43BBCLASSEXTEND = "native nativesdk" 44BBCLASSEXTEND = "native nativesdk"
44 45
45CONFFILES_${PN} += "${sysconfdir}/inputrc" 46CONFFILES:${PN} += "${sysconfdir}/inputrc"
46 47
47inherit update-alternatives 48inherit update-alternatives
48 49
49ALTERNATIVE_PRIORITY = "100" 50ALTERNATIVE_PRIORITY = "100"
50ALTERNATIVE_${PN}-doc = "history.3" 51ALTERNATIVE:${PN}-doc = "history.3"
51ALTERNATIVE_LINK_NAME[history.3] = "${mandir}/man3/history.3" 52ALTERNATIVE_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.
55SRC_URI_append_class-native = " file://rl-native.map" 56SRC_URI:append:class-native = " file://rl-native.map"
56LDFLAGS_append_class-native = " -Wl,--version-script=${WORKDIR}/rl-native.map" 57LDFLAGS:append:class-native = " -Wl,--version-script=${UNPACKDIR}/rl-native.map"