summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2024-04-19 14:19:32 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-04-22 22:05:57 +0100
commitc68a59ec2d1747c1b66710938c401f2fb00a6254 (patch)
tree589c31060773025c441f342ee5e74b885a662844
parent734124a9018abc5313565835a2556dd606ee7880 (diff)
downloadpoky-c68a59ec2d1747c1b66710938c401f2fb00a6254.tar.gz
kea: remove unnecessary reproducibility patch
Rather, adjust the sed invocation to do the correct thing directly. (From OE-Core rev: 8434c1ea841cd58c74b51599f94870b6971b6863) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-connectivity/kea/files/0001-kea-fix-reproducible-build-failure.patch62
-rw-r--r--meta/recipes-connectivity/kea/kea_2.4.1.bb3
2 files changed, 1 insertions, 64 deletions
diff --git a/meta/recipes-connectivity/kea/files/0001-kea-fix-reproducible-build-failure.patch b/meta/recipes-connectivity/kea/files/0001-kea-fix-reproducible-build-failure.patch
deleted file mode 100644
index 8a5bd00302..0000000000
--- a/meta/recipes-connectivity/kea/files/0001-kea-fix-reproducible-build-failure.patch
+++ /dev/null
@@ -1,62 +0,0 @@
1From f9bcfed5a1d44d9211c5f6eba403a9898c8c9057 Mon Sep 17 00:00:00 2001
2From: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
3Date: Tue, 8 Aug 2023 19:03:13 +0100
4Subject: [PATCH] kea: fix reproducible build failure
5
6New version of Kea has started using path of build-dir instead of
7src-dir which results in reproducible builds failure.
8Use src-dir as is used in v2.2.0
9
10Upstream-Status: Pending
11https://gitlab.isc.org/isc-projects/kea/-/issues/3007
12
13Upstream has confirmed the patch will not be accepted but discussions
14with upstream is still going on, we might have a proper solution later.
15
16Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
17---
18 src/bin/admin/kea-admin.in | 8 ++++----
19 1 file changed, 4 insertions(+), 4 deletions(-)
20
21diff --git a/src/bin/admin/kea-admin.in b/src/bin/admin/kea-admin.in
22index 034a0ee..8ab11ab 100644
23--- a/src/bin/admin/kea-admin.in
24+++ b/src/bin/admin/kea-admin.in
25@@ -51,14 +51,14 @@ dump_qry=""
26 if test -f "@datarootdir@/@PACKAGE_NAME@/scripts/admin-utils.sh"; then
27 . "@datarootdir@/@PACKAGE_NAME@/scripts/admin-utils.sh"
28 else
29- . "@abs_top_builddir@/src/bin/admin/admin-utils.sh"
30+ . "@abs_top_srcdir@/src/bin/admin/admin-utils.sh"
31 fi
32
33 # Find the installed kea-lfc if available. Fallback to sources otherwise.
34 if test -x "@sbindir@/kea-lfc"; then
35 kea_lfc="@sbindir@/kea-lfc"
36 else
37- kea_lfc="@abs_top_builddir@/src/bin/lfc/kea-lfc"
38+ kea_lfc="@abs_top_srcdir@/src/bin/lfc/kea-lfc"
39 fi
40
41 # Prints out usage version.
42@@ -355,7 +355,7 @@ mysql_upgrade() {
43 # Check if there are any files in it
44 num_files=$(find "${upgrade_scripts_dir}" -name 'upgrade*.sh' -type f | wc -l)
45 if [ "$num_files" -eq 0 ]; then
46- upgrade_scripts_dir=@abs_top_builddir@/src/share/database/scripts/mysql
47+ upgrade_scripts_dir=@abs_top_srcdir@/src/share/database/scripts/mysql
48
49 # Check if the scripts directory exists at all.
50 if [ ! -d ${upgrade_scripts_dir} ]; then
51@@ -405,7 +405,7 @@ pgsql_upgrade() {
52 # Check if there are any files in it
53 num_files=$(find "${upgrade_scripts_dir}" -name 'upgrade*.sh' -type f | wc -l)
54 if [ "$num_files" -eq 0 ]; then
55- upgrade_scripts_dir=@abs_top_builddir@/src/share/database/scripts/pgsql
56+ upgrade_scripts_dir=@abs_top_srcdir@/src/share/database/scripts/pgsql
57
58 # Check if the scripts directory exists at all.
59 if [ ! -d ${upgrade_scripts_dir} ]; then
60--
612.39.2
62
diff --git a/meta/recipes-connectivity/kea/kea_2.4.1.bb b/meta/recipes-connectivity/kea/kea_2.4.1.bb
index c3aa4dc8f0..9f8758f379 100644
--- a/meta/recipes-connectivity/kea/kea_2.4.1.bb
+++ b/meta/recipes-connectivity/kea/kea_2.4.1.bb
@@ -17,7 +17,6 @@ SRC_URI = "http://ftp.isc.org/isc/kea/${PV}/${BP}.tar.gz \
17 file://fix-multilib-conflict.patch \ 17 file://fix-multilib-conflict.patch \
18 file://fix_pid_keactrl.patch \ 18 file://fix_pid_keactrl.patch \
19 file://0001-src-lib-log-logger_unittest_support.cc-do-not-write-.patch \ 19 file://0001-src-lib-log-logger_unittest_support.cc-do-not-write-.patch \
20 file://0001-kea-fix-reproducible-build-failure.patch \
21 " 20 "
22SRC_URI[sha256sum] = "815c61f5c271caa4a1db31dd656eb50a7f6ea973da3690f7c8581408e180131a" 21SRC_URI[sha256sum] = "815c61f5c271caa4a1db31dd656eb50a7f6ea973da3690f7c8581408e180131a"
23 22
@@ -47,7 +46,7 @@ do_configure:prepend() {
47 # replace abs_top_builddir to avoid introducing the build path 46 # replace abs_top_builddir to avoid introducing the build path
48 # don't expand the abs_top_builddir on the target as the abs_top_builddir is meanlingless on the target 47 # don't expand the abs_top_builddir on the target as the abs_top_builddir is meanlingless on the target
49 find ${S} -type f -name *.sh.in | xargs sed -i "s:@abs_top_builddir@:@abs_top_builddir_placeholder@:g" 48 find ${S} -type f -name *.sh.in | xargs sed -i "s:@abs_top_builddir@:@abs_top_builddir_placeholder@:g"
50 sed -i "s:@abs_top_srcdir@:@abs_top_srcdir_placeholder@:g" ${S}/src/bin/admin/kea-admin.in 49 sed -i "s:@abs_top_builddir@:@abs_top_builddir_placeholder@:g" ${S}/src/bin/admin/kea-admin.in
51} 50}
52 51
53# patch out build host paths for reproducibility 52# patch out build host paths for reproducibility