diff options
Diffstat (limited to 'meta/recipes-connectivity/kea/files/fix-multilib-conflict.patch')
-rw-r--r-- | meta/recipes-connectivity/kea/files/fix-multilib-conflict.patch | 81 |
1 files changed, 55 insertions, 26 deletions
diff --git a/meta/recipes-connectivity/kea/files/fix-multilib-conflict.patch b/meta/recipes-connectivity/kea/files/fix-multilib-conflict.patch index 733adf5536..763639327a 100644 --- a/meta/recipes-connectivity/kea/files/fix-multilib-conflict.patch +++ b/meta/recipes-connectivity/kea/files/fix-multilib-conflict.patch | |||
@@ -1,25 +1,34 @@ | |||
1 | There are conflict of config files between kea and lib32-kea: | 1 | From 06ebd1b2ced426c420ed162980eca194f9f918ae Mon Sep 17 00:00:00 2001 |
2 | From: Kai Kang <kai.kang@windriver.com> | ||
3 | Date: Tue, 22 Sep 2020 15:02:33 +0800 | ||
4 | Subject: [PATCH] There are conflict of config files between kea and lib32-kea: | ||
2 | 5 | ||
3 | | Error: Transaction test error: | 6 | | Error: Transaction test error: |
4 | | file /etc/kea/kea-ctrl-agent.conf conflicts between attempted installs of | 7 | | 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 | 8 | 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 | 9 | | 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 | 10 | lib32-kea-1.7.10-r0.core2_32 and kea-1.7.10-r0.core2_64 |
11 | | file /etc/kea/kea-dhcp6.conf conflicts between attempted installs of | ||
12 | lib32-kea-2.6.1-r0.core2_32 and kea-2.6.1-r0.core2_64 | ||
8 | 13 | ||
9 | Because they are all commented out, replace the expanded libdir path with | 14 | Because they are all commented out, replace the expanded libdir path with |
10 | '$libdir' in the config files to avoid conflict. | 15 | '$libdir' in the config files to avoid conflict. |
11 | 16 | ||
17 | Upstream-Status: Submitted [https://gitlab.isc.org/isc-projects/kea/-/issues/2602] | ||
12 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | 18 | Signed-off-by: Kai Kang <kai.kang@windriver.com> |
19 | Signed-off-by: Lei Maohui <leimaohui@fujitsu.com> | ||
20 | |||
13 | --- | 21 | --- |
14 | src/bin/keactrl/kea-ctrl-agent.conf.pre | 3 ++- | 22 | src/bin/keactrl/kea-ctrl-agent.conf.pre | 3 ++- |
15 | src/bin/keactrl/kea-dhcp4.conf.pre | 6 ++++-- | 23 | src/bin/keactrl/kea-dhcp4.conf.pre | 4 ++-- |
16 | 2 files changed, 6 insertions(+), 3 deletions(-) | 24 | src/bin/keactrl/kea-dhcp6.conf.pre | 4 ++-- |
25 | 3 files changed, 6 insertions(+), 5 deletions(-) | ||
17 | 26 | ||
18 | diff --git a/src/bin/keactrl/kea-ctrl-agent.conf.pre b/src/bin/keactrl/kea-ctrl-agent.conf.pre | 27 | diff --git a/src/bin/keactrl/kea-ctrl-agent.conf.pre b/src/bin/keactrl/kea-ctrl-agent.conf.pre |
19 | index 211b7ff..d710ec7 100644 | 28 | index e6ae8b8..50a3092 100644 |
20 | --- a/src/bin/keactrl/kea-ctrl-agent.conf.pre | 29 | --- a/src/bin/keactrl/kea-ctrl-agent.conf.pre |
21 | +++ b/src/bin/keactrl/kea-ctrl-agent.conf.pre | 30 | +++ b/src/bin/keactrl/kea-ctrl-agent.conf.pre |
22 | @@ -45,7 +45,8 @@ | 31 | @@ -51,7 +51,8 @@ |
23 | // Agent will fail to start. | 32 | // Agent will fail to start. |
24 | "hooks-libraries": [ | 33 | "hooks-libraries": [ |
25 | // { | 34 | // { |
@@ -30,26 +39,46 @@ index 211b7ff..d710ec7 100644 | |||
30 | // "param1": "foo" | 39 | // "param1": "foo" |
31 | // } | 40 | // } |
32 | diff --git a/src/bin/keactrl/kea-dhcp4.conf.pre b/src/bin/keactrl/kea-dhcp4.conf.pre | 41 | diff --git a/src/bin/keactrl/kea-dhcp4.conf.pre b/src/bin/keactrl/kea-dhcp4.conf.pre |
33 | index 5f77a32..70ae3d9 100644 | 42 | index 6edb8a1..b2a7385 100644 |
34 | --- a/src/bin/keactrl/kea-dhcp4.conf.pre | 43 | --- a/src/bin/keactrl/kea-dhcp4.conf.pre |
35 | +++ b/src/bin/keactrl/kea-dhcp4.conf.pre | 44 | +++ b/src/bin/keactrl/kea-dhcp4.conf.pre |
36 | @@ -252,7 +252,8 @@ | 45 | @@ -255,7 +255,7 @@ |
37 | // // of all devices serviced by Kea, including their identifiers | 46 | // // of all devices serviced by Kea, including their identifiers |
38 | // // (like MAC address), their location in the network, times | 47 | // // (like MAC address), their location in the network, times |
39 | // // when they were active etc. | 48 | // // when they were active etc. |
40 | - // "library": "@libdir@/kea/hooks/libdhcp_legal_log.so" | 49 | - // "library": "@libdir@/kea/hooks/libdhcp_legal_log.so", |
41 | + // // Replace $libdir with real library path /usr/lib or /usr/lib64 | 50 | + // "library": "$libdir/kea/hooks/libdhcp_legal_log.so", |
42 | + // "library": "$libdir/kea/hooks/libdhcp_legal_log.so" | 51 | // "parameters": { |
43 | // "parameters": { | 52 | // "path": "/var/lib/kea", |
44 | // "path": "/var/lib/kea", | 53 | // "base-name": "kea-forensic4" |
45 | // "base-name": "kea-forensic4" | 54 | @@ -272,7 +272,7 @@ |
46 | @@ -269,7 +270,8 @@ | 55 | // // of specific options or perhaps even a combination of several |
47 | // // of specific options or perhaps even a combination of several | 56 | // // options and fields to uniquely identify a client. Those scenarios |
48 | // // options and fields to uniquely identify a client. Those scenarios | 57 | // // are addressed by the Flexible Identifiers hook application. |
49 | // // are addressed by the Flexible Identifiers hook application. | 58 | - // "library": "@libdir@/kea/hooks/libdhcp_flex_id.so", |
50 | - // "library": "@libdir@/kea/hooks/libdhcp_flex_id.so", | 59 | + // "library": "$libdir/kea/hooks/libdhcp_flex_id.so", |
51 | + // // Replace $libdir with real library path /usr/lib or /usr/lib64 | 60 | // "parameters": { |
52 | + // "library": "$libdir/kea/hooks/libdhcp_flex_id.so", | 61 | // "identifier-expression": "relay4[2].hex" |
53 | // "parameters": { | 62 | // } |
54 | // "identifier-expression": "substring(relay6[0].option[18],0,8)" | 63 | diff --git a/src/bin/keactrl/kea-dhcp6.conf.pre b/src/bin/keactrl/kea-dhcp6.conf.pre |
55 | // } | 64 | index 271021b..5b85854 100644 |
65 | --- a/src/bin/keactrl/kea-dhcp6.conf.pre | ||
66 | +++ b/src/bin/keactrl/kea-dhcp6.conf.pre | ||
67 | @@ -201,7 +201,7 @@ | ||
68 | // // of all devices serviced by Kea, including their identifiers | ||
69 | // // (like MAC address), their location in the network, times | ||
70 | // // when they were active etc. | ||
71 | - // "library": "@libdir@/kea/hooks/libdhcp_legal_log.so", | ||
72 | + // "library": "$libdir/kea/hooks/libdhcp_legal_log.so", | ||
73 | // "parameters": { | ||
74 | // "path": "/var/lib/kea", | ||
75 | // "base-name": "kea-forensic6" | ||
76 | @@ -218,7 +218,7 @@ | ||
77 | // // of specific options or perhaps even a combination of several | ||
78 | // // options and fields to uniquely identify a client. Those scenarios | ||
79 | // // are addressed by the Flexible Identifiers hook application. | ||
80 | - // "library": "@libdir@/kea/hooks/libdhcp_flex_id.so", | ||
81 | + // "library": "$libdir/kea/hooks/libdhcp_flex_id.so", | ||
82 | // "parameters": { | ||
83 | // "identifier-expression": "relay6[0].option[37].hex" | ||
84 | // } | ||