diff options
| -rw-r--r-- | meta-networking/recipes-daemons/iscsi-initiator-utils/files/0001-Makefile-Do-not-set-Werror.patch | 31 | ||||
| -rw-r--r-- | meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.1.2.bb (renamed from meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.1.0.bb) | 9 |
2 files changed, 34 insertions, 6 deletions
diff --git a/meta-networking/recipes-daemons/iscsi-initiator-utils/files/0001-Makefile-Do-not-set-Werror.patch b/meta-networking/recipes-daemons/iscsi-initiator-utils/files/0001-Makefile-Do-not-set-Werror.patch new file mode 100644 index 0000000000..d5e0deb899 --- /dev/null +++ b/meta-networking/recipes-daemons/iscsi-initiator-utils/files/0001-Makefile-Do-not-set-Werror.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | From 31d88f46bfc67de2659991674253a5d5dfb92afc Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Wed, 12 Aug 2020 12:00:29 -0700 | ||
| 4 | Subject: [PATCH] Makefile: Do not set -Werror | ||
| 5 | |||
| 6 | clang finds more warnings which causes build to fail, disable treating | ||
| 7 | warning as errors | ||
| 8 | |||
| 9 | Upstream-Status: Inappropriate [OE-Specific] | ||
| 10 | |||
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 12 | --- | ||
| 13 | usr/Makefile | 2 +- | ||
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 15 | |||
| 16 | diff --git a/usr/Makefile b/usr/Makefile | ||
| 17 | index 21bb154..0018605 100644 | ||
| 18 | --- a/usr/Makefile | ||
| 19 | +++ b/usr/Makefile | ||
| 20 | @@ -35,7 +35,7 @@ endif | ||
| 21 | PKG_CONFIG = /usr/bin/pkg-config | ||
| 22 | |||
| 23 | CFLAGS ?= -O2 -g | ||
| 24 | -WARNFLAGS ?= -Wall -Wextra -Werror -Wstrict-prototypes -fno-common | ||
| 25 | +WARNFLAGS ?= -Wall -Wextra -Wstrict-prototypes -fno-common | ||
| 26 | CFLAGS += $(WARNFLAGS) -I../include -I. -D_GNU_SOURCE \ | ||
| 27 | -I$(TOPDIR)/libopeniscsiusr | ||
| 28 | CFLAGS += $(shell $(PKG_CONFIG) --cflags libkmod) | ||
| 29 | -- | ||
| 30 | 2.28.0 | ||
| 31 | |||
diff --git a/meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.1.0.bb b/meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.1.2.bb index 97b5563574..254362881b 100644 --- a/meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.1.0.bb +++ b/meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.1.2.bb | |||
| @@ -12,9 +12,10 @@ DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d) | |||
| 12 | 12 | ||
| 13 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | 13 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
| 14 | 14 | ||
| 15 | SRCREV ?= "549f8987be49583bb06b117a364bea3a8fc5250c" | 15 | SRCREV ?= "802688debcd88c48edabe86deb7e7ed47ebadc26" |
| 16 | 16 | ||
| 17 | SRC_URI = "git://github.com/open-iscsi/open-iscsi \ | 17 | SRC_URI = "git://github.com/open-iscsi/open-iscsi \ |
| 18 | file://0001-Makefile-Do-not-set-Werror.patch \ | ||
| 18 | file://initd.debian \ | 19 | file://initd.debian \ |
| 19 | file://99_iscsi-initiator-utils \ | 20 | file://99_iscsi-initiator-utils \ |
| 20 | file://iscsi-initiator \ | 21 | file://iscsi-initiator \ |
| @@ -23,9 +24,6 @@ SRC_URI = "git://github.com/open-iscsi/open-iscsi \ | |||
| 23 | file://set_initiatorname \ | 24 | file://set_initiatorname \ |
| 24 | " | 25 | " |
| 25 | S = "${WORKDIR}/git" | 26 | S = "${WORKDIR}/git" |
| 26 | B = "${WORKDIR}/build" | ||
| 27 | |||
| 28 | PV .= "+git${SRCPV}" | ||
| 29 | 27 | ||
| 30 | inherit update-rc.d systemd autotools pkgconfig | 28 | inherit update-rc.d systemd autotools pkgconfig |
| 31 | 29 | ||
| @@ -34,7 +32,7 @@ EXTRA_OECONF = " \ | |||
| 34 | --host=${BUILD_SYS} \ | 32 | --host=${BUILD_SYS} \ |
| 35 | " | 33 | " |
| 36 | 34 | ||
| 37 | EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '', '--without-systemd', d)}" | 35 | EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '', '--without-systemd NO_SYSTEMD=1', d)}" |
| 38 | 36 | ||
| 39 | EXTRA_OEMAKE = ' \ | 37 | EXTRA_OEMAKE = ' \ |
| 40 | OS="${TARGET_SYS}" \ | 38 | OS="${TARGET_SYS}" \ |
| @@ -43,7 +41,6 @@ EXTRA_OEMAKE = ' \ | |||
| 43 | MANDIR="${mandir}" \ | 41 | MANDIR="${mandir}" \ |
| 44 | OPTFLAGS="-DNO_SYSTEMD ${CFLAGS}" \ | 42 | OPTFLAGS="-DNO_SYSTEMD ${CFLAGS}" \ |
| 45 | PKG_CONFIG="${STAGING_BINDIR_NATIVE}/pkg-config" \ | 43 | PKG_CONFIG="${STAGING_BINDIR_NATIVE}/pkg-config" \ |
| 46 | NO_SYSTEMD=1 \ | ||
| 47 | ' | 44 | ' |
| 48 | 45 | ||
| 49 | 46 | ||
