diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-03-16 13:58:58 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-03-17 07:06:56 -0700 |
commit | 8c83377f7455a743c1528eb69c4a61fc8a3ba198 (patch) | |
tree | 24e7ae8b635f3538f19733476ac8c5d96edefadc | |
parent | 0f639730c0c1c49214834fbb0837b645477e3e1b (diff) | |
download | meta-openembedded-8c83377f7455a743c1528eb69c4a61fc8a3ba198.tar.gz |
lirc: Fix build with usrmerge feature building on ubuntu hosts
We get a very cryptic error during do_package
ERROR: Didn't find service unit 'lircmd.service', specified in SYSTEMD_SERVICE:lirc.
The reason is on ubuntu build hosts configure pokes at build host and
decided its ubuntu and applies hardcoded value of /lib/systemd/system
for systemdunitdir instead of /usr/lib/systemd/system as passed from
recipe
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Unbolt-ubuntu-hack.patch | 26 | ||||
-rw-r--r-- | meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb | 1 |
2 files changed, 27 insertions, 0 deletions
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Unbolt-ubuntu-hack.patch b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Unbolt-ubuntu-hack.patch new file mode 100644 index 0000000000..e58a93b6f6 --- /dev/null +++ b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-Unbolt-ubuntu-hack.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | From ca126a2832aaff0deef3ba7eaf411dd0dc43b068 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 16 Mar 2023 11:31:14 -0700 | ||
4 | Subject: [PATCH] Unbolt ubuntu hack | ||
5 | |||
6 | This bites during cross compiling where the target is different than | ||
7 | build host and build host might be ubuntu but that does not matter in | ||
8 | cross compilation case. This fails builds when usrmerge feature is used | ||
9 | |||
10 | Upstream-Status: Inappropriates [ Cross-compile specific ] | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | configure.ac | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | --- a/configure.ac | ||
17 | +++ b/configure.ac | ||
18 | @@ -429,7 +429,7 @@ AC_CHECK_LIB([udev], [udev_device_new_fr | ||
19 | ]) | ||
20 | |||
21 | dnl Ubuntu's systemd pkg-config seems broken beyond repair. So: | ||
22 | -kernelversion=`cat /proc/version || echo "non-linux"` | ||
23 | +kernelversion="cross-compiled" | ||
24 | AS_CASE([$kernelversion], | ||
25 | [*Ubuntu*],[ | ||
26 | AC_MSG_NOTICE([Hardwiring Ubuntu systemd setup]) | ||
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb index 458d9d7cdd..88e3f0486b 100644 --- a/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb +++ b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb | |||
@@ -21,6 +21,7 @@ SRC_URI = "http://prdownloads.sourceforge.net/lirc/lirc-${PV}.tar.bz2 \ | |||
21 | file://lirc_options.conf \ | 21 | file://lirc_options.conf \ |
22 | file://lirc.tmpfiles \ | 22 | file://lirc.tmpfiles \ |
23 | file://0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch \ | 23 | file://0001-Makefile.am-do-not-clobber-PYTHONPATH-from-build-env.patch \ |
24 | file://0001-Unbolt-ubuntu-hack.patch \ | ||
24 | " | 25 | " |
25 | SRC_URI[sha256sum] = "3d44ec8274881cf262f160805641f0827ffcc20ade0d85e7e6f3b90e0d3d222a" | 26 | SRC_URI[sha256sum] = "3d44ec8274881cf262f160805641f0827ffcc20ade0d85e7e6f3b90e0d3d222a" |
26 | 27 | ||