diff options
-rw-r--r-- | meta/recipes-connectivity/kea/files/fix-multilib-conflict.patch | 55 | ||||
-rw-r--r-- | meta/recipes-connectivity/kea/kea_1.7.10.bb | 1 |
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 @@ | |||
1 | There 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 | |||
9 | Because they are all commented out, replace the expanded libdir path with | ||
10 | '$libdir' in the config files to avoid conflict. | ||
11 | |||
12 | Signed-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 | |||
18 | 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 | ||
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 | // } | ||
32 | diff --git a/src/bin/keactrl/kea-dhcp4.conf.pre b/src/bin/keactrl/kea-dhcp4.conf.pre | ||
33 | index 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 | " |
17 | SRC_URI[sha256sum] = "4e121f0e58b175a827581c69cb1d60778647049fa47f142940dddc9ce58f3c82" | 18 | SRC_URI[sha256sum] = "4e121f0e58b175a827581c69cb1d60778647049fa47f142940dddc9ce58f3c82" |
18 | 19 | ||