diff options
| author | Martin Jansa <Martin.Jansa@gmail.com> | 2020-12-27 16:50:40 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2020-12-28 22:34:02 -0800 |
| commit | f48b66b8bac11156780c8df5dc8ee72efdc58a4b (patch) | |
| tree | b369f9fd1787160e02b1eb0621d081945d095d6e /meta-oe/recipes-extended/linuxconsole | |
| parent | dcff7a008462ed8af21f0281fc0c276bfa4d41cd (diff) | |
| download | meta-openembedded-f48b66b8bac11156780c8df5dc8ee72efdc58a4b.tar.gz | |
linuxconsole: move jscal to separate package, add to packagegroup
* migrate the changes from 'joystick' recipe in meta-ros:
https://github.com/ros/meta-ros/commit/ee3a3f6051594bdf39322d43ec08cce0df8f172c
* add 'joystick' in PROVIDES
* provide separate joystick-jscal package
* add PACKAGECONFIG for sdl use only to build ffmvforce
* respect nonarch_base_libdir to fix QA issue with usrmerge:
ERROR: QA Issue: joystick package is not obeying usrmerge distro feature. /lib should be relocated to /usr. [usrmerge]
and
ERROR: linuxconsole-1.7.0-r0 do_package: QA Issue: linuxconsole: Files/directories were installed but not shipped in any package:
/lib
/lib/udev
/lib/udev/js-set-enum-leds
/lib/udev/rules.d
/lib/udev/rules.d/80-stelladaptor-joystick.rules
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
linuxconsole: 5 installed and not shipped files. [installed-vs-shipped]
as in:
https://github.com/ros/meta-ros/commit/9fbfe41ac55a423afd57d9e24173a5655448acd5
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/linuxconsole')
| -rw-r--r-- | meta-oe/recipes-extended/linuxconsole/linuxconsole_1.7.0.bb | 37 |
1 files changed, 25 insertions, 12 deletions
diff --git a/meta-oe/recipes-extended/linuxconsole/linuxconsole_1.7.0.bb b/meta-oe/recipes-extended/linuxconsole/linuxconsole_1.7.0.bb index c4cd1d609b..fb161b6583 100644 --- a/meta-oe/recipes-extended/linuxconsole/linuxconsole_1.7.0.bb +++ b/meta-oe/recipes-extended/linuxconsole/linuxconsole_1.7.0.bb | |||
| @@ -8,8 +8,7 @@ HOMEPAGE = "https://sourceforge.net/projects/linuxconsole" | |||
| 8 | LICENSE = "GPLv2" | 8 | LICENSE = "GPLv2" |
| 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
| 10 | 10 | ||
| 11 | DEPENDS = "libsdl2" | 11 | DEPENDS = "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" |
| 12 | DEPENDS += "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" | ||
| 13 | 12 | ||
| 14 | SRC_URI = "\ | 13 | SRC_URI = "\ |
| 15 | ${SOURCEFORGE_MIRROR}/linuxconsole/linuxconsoletools-${PV}.tar.bz2 \ | 14 | ${SOURCEFORGE_MIRROR}/linuxconsole/linuxconsoletools-${PV}.tar.bz2 \ |
| @@ -32,21 +31,32 @@ SYSTEMD_PACKAGES += "inputattach" | |||
| 32 | SYSTEMD_SERVICE_inputattach = "inputattach.service" | 31 | SYSTEMD_SERVICE_inputattach = "inputattach.service" |
| 33 | SYSTEMD_AUTO_ENABLE_inputattach = "enable" | 32 | SYSTEMD_AUTO_ENABLE_inputattach = "enable" |
| 34 | 33 | ||
| 34 | PROVIDES += "joystick" | ||
| 35 | |||
| 36 | PACKAGECONFIG ??= "sdl" | ||
| 37 | PACKAGECONFIG[sdl] = ",,libsdl2" | ||
| 38 | |||
| 35 | do_compile() { | 39 | do_compile() { |
| 40 | if ! ${@bb.utils.contains('PACKAGECONFIG', 'sdl', 'true', 'false', d)}; then | ||
| 41 | # drop ffmvforce so that we don't need libsdl2 | ||
| 42 | sed '/^PROGRAMS/s/ffmvforce *//g' -i ${S}/utils/Makefile | ||
| 43 | fi | ||
| 44 | # respect nonarch_base_libdir path to keep QA check happy | ||
| 45 | sed 's#DESTDIR)/lib/udev#DESTDIR)/${nonarch_base_libdir}/udev#g' -i ${S}/utils/Makefile | ||
| 36 | oe_runmake | 46 | oe_runmake |
| 37 | } | 47 | } |
| 38 | 48 | ||
| 39 | do_install() { | 49 | do_install() { |
| 40 | oe_runmake install | 50 | oe_runmake install |
| 41 | 51 | ||
| 42 | install -Dm 0644 ${WORKDIR}/51-these-are-not-joysticks-rm.rules ${D}${base_libdir}/udev/rules.d/51-these-are-not-joysticks-rm.rules | 52 | install -Dm 0644 ${WORKDIR}/51-these-are-not-joysticks-rm.rules ${D}${nonarch_base_libdir}/udev/rules.d/51-these-are-not-joysticks-rm.rules |
| 43 | install -Dm 0644 ${WORKDIR}/60-joystick.rules ${D}${base_libdir}/udev/rules.d/60-joystick.rules | 53 | install -Dm 0644 ${WORKDIR}/60-joystick.rules ${D}${nonarch_base_libdir}/udev/rules.d/60-joystick.rules |
| 44 | 54 | ||
| 45 | install -Dm 0644 ${WORKDIR}/inputattach.service ${D}${systemd_system_unitdir}/inputattach.service | 55 | install -Dm 0644 ${WORKDIR}/inputattach.service ${D}${systemd_system_unitdir}/inputattach.service |
| 46 | install -Dm 0755 ${WORKDIR}/inputattachctl ${D}${bindir}/inputattachctl | 56 | install -Dm 0755 ${WORKDIR}/inputattachctl ${D}${bindir}/inputattachctl |
| 47 | } | 57 | } |
| 48 | 58 | ||
| 49 | PACKAGES += "inputattach joystick" | 59 | PACKAGES += "inputattach joystick-jscal joystick" |
| 50 | 60 | ||
| 51 | # We won't package any file here as we are following the same packaging schema | 61 | # We won't package any file here as we are following the same packaging schema |
| 52 | # Debian does and we are splitting it in 'inputattach' and 'joystick' packages. | 62 | # Debian does and we are splitting it in 'inputattach' and 'joystick' packages. |
| @@ -64,20 +74,23 @@ FILES_joystick += "\ | |||
| 64 | ${bindir}/ffmvforce \ | 74 | ${bindir}/ffmvforce \ |
| 65 | ${bindir}/ffset \ | 75 | ${bindir}/ffset \ |
| 66 | ${bindir}/fftest \ | 76 | ${bindir}/fftest \ |
| 77 | ${bindir}/jstest \ | ||
| 78 | ${nonarch_base_libdir}/udev/rules.d/51-these-are-not-joysticks-rm.rules \ | ||
| 79 | ${nonarch_base_libdir}/udev/js-set-enum-leds \ | ||
| 80 | ${nonarch_base_libdir}/udev/rules.d/60-joystick.rules \ | ||
| 81 | ${nonarch_base_libdir}/udev/rules.d/80-stelladaptor-joystick.rules \ | ||
| 82 | " | ||
| 83 | |||
| 84 | FILES_joystick-jscal = " \ | ||
| 85 | ${datadir}/joystick \ | ||
| 67 | ${bindir}/jscal \ | 86 | ${bindir}/jscal \ |
| 68 | ${bindir}/jscal-restore \ | 87 | ${bindir}/jscal-restore \ |
| 69 | ${bindir}/jscal-store \ | 88 | ${bindir}/jscal-store \ |
| 70 | ${bindir}/jstest \ | ||
| 71 | ${datadir}/joystick \ | ||
| 72 | ${base_libdir}/udev/rules.d/51-these-are-not-joysticks-rm.rules \ | ||
| 73 | ${base_libdir}/udev/js-set-enum-leds \ | ||
| 74 | ${base_libdir}/udev/rules.d/60-joystick.rules \ | ||
| 75 | ${base_libdir}/udev/rules.d/80-stelladaptor-joystick.rules \ | ||
| 76 | " | 89 | " |
| 77 | 90 | ||
| 78 | RDEPENDS_inputattach += "inputattach-config" | 91 | RDEPENDS_inputattach += "inputattach-config" |
| 79 | 92 | ||
| 80 | RDEPENDS_joystick += "\ | 93 | RDEPENDS_joystick-jscal += "\ |
| 81 | bash \ | 94 | bash \ |
| 82 | gawk \ | 95 | gawk \ |
| 83 | " | 96 | " |
