summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2020-09-22 15:02:33 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-23 20:54:03 +0100
commit8cc65e7eb067413b4a9b1449c51f88158f3a6ae1 (patch)
tree8e6ae1c989b4850ebcbae21c17d7fdd0d8d3564e /meta
parentcfdbefde5a12b8ce90d4a02f94b0cd0e4fb4ccc8 (diff)
downloadpoky-8cc65e7eb067413b4a9b1449c51f88158f3a6ae1.tar.gz
kea: fix conflict between multilibs
There are conflict of config files between kea and lib32-kea: | Error: Transaction test error: | file /etc/kea/kea-ctrl-agent.conf conflicts between attempted installs of lib32-kea-1.7.10-r0.core2_32 and kea-1.7.10-r0.core2_64 | file /etc/kea/kea-dhcp4.conf conflicts between attempted installs of lib32-kea-1.7.10-r0.core2_32 and kea-1.7.10-r0.core2_64 Because they are all commented out, replace the expanded libdir path with '$libdir' in the config files to avoid conflict. (From OE-Core rev: 2cc07c4685c95e1d7a7f8e84947ea4f01e8357d3) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-connectivity/kea/files/fix-multilib-conflict.patch55
-rw-r--r--meta/recipes-connectivity/kea/kea_1.7.10.bb1
2 files changed, 56 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/kea/files/fix-multilib-conflict.patch b/meta/recipes-connectivity/kea/files/fix-multilib-conflict.patch
new file mode 100644
index 0000000000..733adf5536
--- /dev/null
+++ b/meta/recipes-connectivity/kea/files/fix-multilib-conflict.patch
@@ -0,0 +1,55 @@
1There are conflict of config files between kea and lib32-kea:
2
3| Error: Transaction test error:
4| file /etc/kea/kea-ctrl-agent.conf conflicts between attempted installs of
5 lib32-kea-1.7.10-r0.core2_32 and kea-1.7.10-r0.core2_64
6| file /etc/kea/kea-dhcp4.conf conflicts between attempted installs of
7 lib32-kea-1.7.10-r0.core2_32 and kea-1.7.10-r0.core2_64
8
9Because they are all commented out, replace the expanded libdir path with
10'$libdir' in the config files to avoid conflict.
11
12Signed-off-by: Kai Kang <kai.kang@windriver.com>
13---
14 src/bin/keactrl/kea-ctrl-agent.conf.pre | 3 ++-
15 src/bin/keactrl/kea-dhcp4.conf.pre | 6 ++++--
16 2 files changed, 6 insertions(+), 3 deletions(-)
17
18diff --git a/src/bin/keactrl/kea-ctrl-agent.conf.pre b/src/bin/keactrl/kea-ctrl-agent.conf.pre
19index 211b7ff..d710ec7 100644
20--- a/src/bin/keactrl/kea-ctrl-agent.conf.pre
21+++ b/src/bin/keactrl/kea-ctrl-agent.conf.pre
22@@ -45,7 +45,8 @@
23 // Agent will fail to start.
24 "hooks-libraries": [
25 // {
26-// "library": "@libdir@/kea/hooks/control-agent-commands.so",
27+// // Replace $libdir with real library path /usr/lib or /usr/lib64
28+// "library": "$libdir/kea/hooks/control-agent-commands.so",
29 // "parameters": {
30 // "param1": "foo"
31 // }
32diff --git a/src/bin/keactrl/kea-dhcp4.conf.pre b/src/bin/keactrl/kea-dhcp4.conf.pre
33index 5f77a32..70ae3d9 100644
34--- a/src/bin/keactrl/kea-dhcp4.conf.pre
35+++ b/src/bin/keactrl/kea-dhcp4.conf.pre
36@@ -252,7 +252,8 @@
37 // // of all devices serviced by Kea, including their identifiers
38 // // (like MAC address), their location in the network, times
39 // // when they were active etc.
40- // "library": "@libdir@/kea/hooks/libdhcp_legal_log.so"
41+ // // Replace $libdir with real library path /usr/lib or /usr/lib64
42+ // "library": "$libdir/kea/hooks/libdhcp_legal_log.so"
43 // "parameters": {
44 // "path": "/var/lib/kea",
45 // "base-name": "kea-forensic4"
46@@ -269,7 +270,8 @@
47 // // of specific options or perhaps even a combination of several
48 // // options and fields to uniquely identify a client. Those scenarios
49 // // are addressed by the Flexible Identifiers hook application.
50- // "library": "@libdir@/kea/hooks/libdhcp_flex_id.so",
51+ // // Replace $libdir with real library path /usr/lib or /usr/lib64
52+ // "library": "$libdir/kea/hooks/libdhcp_flex_id.so",
53 // "parameters": {
54 // "identifier-expression": "substring(relay6[0].option[18],0,8)"
55 // }
diff --git a/meta/recipes-connectivity/kea/kea_1.7.10.bb b/meta/recipes-connectivity/kea/kea_1.7.10.bb
index d3c8834b46..2ea4b12758 100644
--- a/meta/recipes-connectivity/kea/kea_1.7.10.bb
+++ b/meta/recipes-connectivity/kea/kea_1.7.10.bb
@@ -13,6 +13,7 @@ SRC_URI = "\
13 file://kea-dhcp4.service \ 13 file://kea-dhcp4.service \
14 file://kea-dhcp6.service \ 14 file://kea-dhcp6.service \
15 file://kea-dhcp-ddns.service \ 15 file://kea-dhcp-ddns.service \
16 file://fix-multilib-conflict.patch \
16" 17"
17SRC_URI[sha256sum] = "4e121f0e58b175a827581c69cb1d60778647049fa47f142940dddc9ce58f3c82" 18SRC_URI[sha256sum] = "4e121f0e58b175a827581c69cb1d60778647049fa47f142940dddc9ce58f3c82"
18 19