summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/kea/files
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/recipes-connectivity/kea/files
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/recipes-connectivity/kea/files')
-rw-r--r--meta/recipes-connectivity/kea/files/fix-multilib-conflict.patch55
1 files changed, 55 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 // }