diff options
-rw-r--r-- | meta-networking/recipes-extended/dlm/dlm/0001-dlm-fix-compile-error-since-xml2-config-should-not-b.patch | 36 | ||||
-rw-r--r-- | meta-networking/recipes-extended/dlm/dlm/0001-dlm-fix-package-qa-error.patch | 32 | ||||
-rw-r--r-- | meta-networking/recipes-extended/dlm/dlm/respect-ldflags-also-from-bin_ldflags.patch | 53 | ||||
-rw-r--r-- | meta-networking/recipes-extended/dlm/dlm_4.0.7.bb (renamed from meta-networking/recipes-extended/dlm/dlm_4.0.2.bb) | 12 |
4 files changed, 108 insertions, 25 deletions
diff --git a/meta-networking/recipes-extended/dlm/dlm/0001-dlm-fix-compile-error-since-xml2-config-should-not-b.patch b/meta-networking/recipes-extended/dlm/dlm/0001-dlm-fix-compile-error-since-xml2-config-should-not-b.patch new file mode 100644 index 000000000..0a2f31d55 --- /dev/null +++ b/meta-networking/recipes-extended/dlm/dlm/0001-dlm-fix-compile-error-since-xml2-config-should-not-b.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From 9107f3bd68aef6ae456a3cad664223b4f3d00131 Mon Sep 17 00:00:00 2001 | ||
2 | From: Changqing Li <changqing.li@windriver.com> | ||
3 | Date: Tue, 24 Jul 2018 17:04:39 +0800 | ||
4 | Subject: [PATCH] dlm: fix compile error since xml2-config should not be used | ||
5 | |||
6 | xml2-config is disabled, so change Makefile to use pkgconfig | ||
7 | to find libxml2. | ||
8 | |||
9 | Upstream-Status: Inappropriate | ||
10 | |||
11 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
12 | --- | ||
13 | fence/Makefile | 4 ++-- | ||
14 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
15 | |||
16 | diff --git a/fence/Makefile b/fence/Makefile | ||
17 | index 77bf0fd..cca0b2c 100644 | ||
18 | --- a/fence/Makefile | ||
19 | +++ b/fence/Makefile | ||
20 | @@ -30,11 +30,11 @@ BIN_CFLAGS += -D_GNU_SOURCE -O2 -ggdb \ | ||
21 | -fdiagnostics-show-option \ | ||
22 | |||
23 | BIN_CFLAGS += -fPIE -DPIE | ||
24 | -BIN_CFLAGS += `xml2-config --cflags` | ||
25 | +BIN_CFLAGS += `pkg-config libxml-2.0 --cflags` | ||
26 | BIN_CFLAGS += -I../include | ||
27 | |||
28 | BIN_LDFLAGS += -Wl,-z,now -Wl,-z,relro -pie | ||
29 | -BIN_LDFLAGS += `xml2-config --libs` | ||
30 | +BIN_LDFLAGS += `pkg-config libxml-2.0 --libs` | ||
31 | BIN_LDFLAGS += -ldl | ||
32 | |||
33 | all: $(BIN_TARGET) | ||
34 | -- | ||
35 | 2.7.4 | ||
36 | |||
diff --git a/meta-networking/recipes-extended/dlm/dlm/0001-dlm-fix-package-qa-error.patch b/meta-networking/recipes-extended/dlm/dlm/0001-dlm-fix-package-qa-error.patch new file mode 100644 index 000000000..3e384f7d9 --- /dev/null +++ b/meta-networking/recipes-extended/dlm/dlm/0001-dlm-fix-package-qa-error.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 1fb68433bde97d571fc781b52c9521b17fbb8df0 Mon Sep 17 00:00:00 2001 | ||
2 | From: Changqing Li <changqing.li@windriver.com> | ||
3 | Date: Tue, 24 Jul 2018 17:42:43 +0800 | ||
4 | Subject: [PATCH] dlm: fix package qa error | ||
5 | |||
6 | pass LDFLAG to makefile to fix below error: | ||
7 | do_package_qa: QA Issue: No GNU_HASH in the elf binary: | ||
8 | /packages-split/dlm/usr/sbin/dlm_stonith' [ldflags] | ||
9 | |||
10 | Upstream-Status: Inappropriate[oe-specific] | ||
11 | |||
12 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
13 | --- | ||
14 | fence/Makefile | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/fence/Makefile b/fence/Makefile | ||
18 | index cca0b2c..2b3963c 100644 | ||
19 | --- a/fence/Makefile | ||
20 | +++ b/fence/Makefile | ||
21 | @@ -33,7 +33,7 @@ BIN_CFLAGS += -fPIE -DPIE | ||
22 | BIN_CFLAGS += `pkg-config libxml-2.0 --cflags` | ||
23 | BIN_CFLAGS += -I../include | ||
24 | |||
25 | -BIN_LDFLAGS += -Wl,-z,now -Wl,-z,relro -pie | ||
26 | +BIN_LDFLAGS += $(LDFLAGS) -Wl,-z,now -Wl,-z,relro -pie | ||
27 | BIN_LDFLAGS += `pkg-config libxml-2.0 --libs` | ||
28 | BIN_LDFLAGS += -ldl | ||
29 | |||
30 | -- | ||
31 | 2.7.4 | ||
32 | |||
diff --git a/meta-networking/recipes-extended/dlm/dlm/respect-ldflags-also-from-bin_ldflags.patch b/meta-networking/recipes-extended/dlm/dlm/respect-ldflags-also-from-bin_ldflags.patch index 69b2f903c..6f01b2177 100644 --- a/meta-networking/recipes-extended/dlm/dlm/respect-ldflags-also-from-bin_ldflags.patch +++ b/meta-networking/recipes-extended/dlm/dlm/respect-ldflags-also-from-bin_ldflags.patch | |||
@@ -1,7 +1,23 @@ | |||
1 | diff -uNr dlm-4.0.2.orig/dlm_controld/Makefile dlm-4.0.2/dlm_controld/Makefile | 1 | From 34a9182814ae565d6f430f85cfe80c05fa9f2dda Mon Sep 17 00:00:00 2001 |
2 | --- dlm-4.0.2.orig/dlm_controld/Makefile 2017-04-04 10:49:23.661320260 +0200 | 2 | From: Changqing Li <changqing.li@windriver.com> |
3 | +++ dlm-4.0.2/dlm_controld/Makefile 2017-04-04 10:50:36.121326429 +0200 | 3 | Date: Tue, 24 Jul 2018 17:55:32 +0800 |
4 | @@ -55,7 +55,7 @@ | 4 | Subject: [PATCH] respect-ldflags-also-from-bin_ldflags |
5 | |||
6 | Upstream-Status: Inappropriate[oe-specific] | ||
7 | |||
8 | update original patch to version 4.0.7 | ||
9 | |||
10 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
11 | --- | ||
12 | dlm_controld/Makefile | 4 ++-- | ||
13 | dlm_tool/Makefile | 2 +- | ||
14 | 2 files changed, 3 insertions(+), 3 deletions(-) | ||
15 | |||
16 | diff --git a/dlm_controld/Makefile b/dlm_controld/Makefile | ||
17 | index cf556c9..3381730 100644 | ||
18 | --- a/dlm_controld/Makefile | ||
19 | +++ b/dlm_controld/Makefile | ||
20 | @@ -55,11 +55,11 @@ BIN_CFLAGS += -D_GNU_SOURCE -O2 -ggdb \ | ||
5 | BIN_CFLAGS += -fPIE -DPIE | 21 | BIN_CFLAGS += -fPIE -DPIE |
6 | BIN_CFLAGS += -I../include -I../libdlm | 22 | BIN_CFLAGS += -I../include -I../libdlm |
7 | 23 | ||
@@ -10,10 +26,16 @@ diff -uNr dlm-4.0.2.orig/dlm_controld/Makefile dlm-4.0.2/dlm_controld/Makefile | |||
10 | BIN_LDFLAGS += -lpthread -lrt -lcpg -lcmap -lcfg -lquorum | 26 | BIN_LDFLAGS += -lpthread -lrt -lcpg -lcmap -lcfg -lquorum |
11 | 27 | ||
12 | LIB_CFLAGS += $(BIN_CFLAGS) | 28 | LIB_CFLAGS += $(BIN_CFLAGS) |
13 | diff -uNr dlm-4.0.2.orig/dlm_tool/Makefile dlm-4.0.2/dlm_tool/Makefile | 29 | -LIB_LDFLAGS += -Wl,-z,relro -pie |
14 | --- dlm-4.0.2.orig/dlm_tool/Makefile 2013-07-31 17:50:26.000000000 +0200 | 30 | +LIB_LDFLAGS += $(LDFLAGS) -Wl,-z,relro -pie |
15 | +++ dlm-4.0.2/dlm_tool/Makefile 2017-04-04 10:50:44.617327153 +0200 | 31 | |
16 | @@ -32,7 +32,7 @@ | 32 | ifeq ($(USE_SD_NOTIFY),yes) |
33 | BIN_CFLAGS += $(shell pkg-config --cflags libsystemd) \ | ||
34 | diff --git a/dlm_tool/Makefile b/dlm_tool/Makefile | ||
35 | index c16d8f5..a48a26f 100644 | ||
36 | --- a/dlm_tool/Makefile | ||
37 | +++ b/dlm_tool/Makefile | ||
38 | @@ -32,7 +32,7 @@ BIN_CFLAGS += -D_GNU_SOURCE -O2 -ggdb \ | ||
17 | BIN_CFLAGS += -fPIE -DPIE | 39 | BIN_CFLAGS += -fPIE -DPIE |
18 | BIN_CFLAGS += -I../include -I../libdlm -I../dlm_controld | 40 | BIN_CFLAGS += -I../include -I../libdlm -I../dlm_controld |
19 | 41 | ||
@@ -22,15 +44,6 @@ diff -uNr dlm-4.0.2.orig/dlm_tool/Makefile dlm-4.0.2/dlm_tool/Makefile | |||
22 | BIN_LDFLAGS += -L../libdlm -L../dlm_controld | 44 | BIN_LDFLAGS += -L../libdlm -L../dlm_controld |
23 | BIN_LDFLAGS += -lpthread -ldlm -ldlmcontrol | 45 | BIN_LDFLAGS += -lpthread -ldlm -ldlmcontrol |
24 | 46 | ||
25 | diff -uNr dlm-4.0.2.orig/dlm_controld/Makefile dlm-4.0.2/dlm_controld/Makefile | 47 | -- |
26 | --- dlm-4.0.2.orig/dlm_controld/Makefile 2017-04-04 11:02:58.578389641 +0200 | 48 | 2.7.4 |
27 | +++ dlm-4.0.2/dlm_controld/Makefile 2017-04-04 11:07:55.672414935 +0200 | 49 | |
28 | @@ -59,7 +59,7 @@ | ||
29 | BIN_LDFLAGS += -lpthread -lrt -lcpg -lcmap -lcfg -lquorum | ||
30 | |||
31 | LIB_CFLAGS += $(BIN_CFLAGS) | ||
32 | -LIB_LDFLAGS += -Wl,-z,relro -pie | ||
33 | +LIB_LDFLAGS += $(LDFLAGS) -Wl,-z,relro -pie | ||
34 | |||
35 | ifeq ($(USE_SD_NOTIFY),yes) | ||
36 | BIN_CFLAGS += $(shell pkg-config --cflags libsystemd-daemon) \ | ||
diff --git a/meta-networking/recipes-extended/dlm/dlm_4.0.2.bb b/meta-networking/recipes-extended/dlm/dlm_4.0.7.bb index da7f98ac9..f7f7e188c 100644 --- a/meta-networking/recipes-extended/dlm/dlm_4.0.2.bb +++ b/meta-networking/recipes-extended/dlm/dlm_4.0.7.bb | |||
@@ -5,12 +5,14 @@ HOMEPAGE = "https://fedorahosted.org/cluster/wiki/HomePage" | |||
5 | 5 | ||
6 | REQUIRED_DISTRO_FEATURES = "systemd" | 6 | REQUIRED_DISTRO_FEATURES = "systemd" |
7 | 7 | ||
8 | SRC_URI = "https://git.fedorahosted.org/cgit/dlm.git/snapshot/${BP}.tar.xz \ | 8 | SRC_URI = "https://releases.pagure.org/dlm/${BP}.tar.gz \ |
9 | file://respect-ldflags-also-from-bin_ldflags.patch \ | 9 | file://respect-ldflags-also-from-bin_ldflags.patch \ |
10 | file://0001-dlm-fix-compile-error-since-xml2-config-should-not-b.patch \ | ||
11 | file://0001-dlm-fix-package-qa-error.patch \ | ||
10 | " | 12 | " |
11 | 13 | ||
12 | SRC_URI[md5sum] = "efc2ee6093aa6aa0a88aaad83e998a3f" | 14 | SRC_URI[md5sum] = "aa604a10d5ac2d3414eb89ec6984cd12" |
13 | SRC_URI[sha256sum] = "b89bc557aaffbab0ac005398025f247718a5589cff6574d902eaffe2b20e683e" | 15 | SRC_URI[sha256sum] = "639ddfc82369272a68d56816689736c00b8f1b6b2869a6b66b7dbf6dad86469a" |
14 | 16 | ||
15 | UPSTREAM_CHECK_URI = "https://pagure.io/dlm/releases" | 17 | UPSTREAM_CHECK_URI = "https://pagure.io/dlm/releases" |
16 | UPSTREAM_CHECK_REGEX = "dlm-(?P<pver>\d+(\.\d+)+)" | 18 | UPSTREAM_CHECK_REGEX = "dlm-(?P<pver>\d+(\.\d+)+)" |
@@ -18,7 +20,7 @@ UPSTREAM_CHECK_REGEX = "dlm-(?P<pver>\d+(\.\d+)+)" | |||
18 | LICENSE = "LGPLv2+ & GPLv2 & GPLv2+" | 20 | LICENSE = "LGPLv2+ & GPLv2 & GPLv2+" |
19 | LIC_FILES_CHKSUM = "file://README.license;md5=8f0bbcdd678df1bce9863492b6c8832d" | 21 | LIC_FILES_CHKSUM = "file://README.license;md5=8f0bbcdd678df1bce9863492b6c8832d" |
20 | 22 | ||
21 | DEPENDS = "corosync systemd" | 23 | DEPENDS = "corosync systemd pacemaker" |
22 | 24 | ||
23 | inherit pkgconfig systemd distro_features_check | 25 | inherit pkgconfig systemd distro_features_check |
24 | 26 | ||