|
|
6c64be |
From 436ac9074def43ae09d7ecc28eec6cdc77a9d0e2 Mon Sep 17 00:00:00 2001
|
|
|
6c64be |
From: Chris Leech <cleech@redhat.com>
|
|
|
6c64be |
Date: Fri, 13 Sep 2013 16:56:51 -0700
|
|
|
6c64be |
Subject: [PATCH 65/65] fix hardened build of iscsiuio
|
|
|
6c64be |
|
|
|
6c64be |
The new iscsiuio code sets CFLAGS in configure.ac, wiping out the
|
|
|
6c64be |
environment setup by rpm. Patch that out.
|
|
|
6c64be |
|
|
|
6c64be |
Also fix local build when iscsi-initiator-utils is installed, but having
|
|
|
6c64be |
the check to prevent overwriting configuration files during install look
|
|
|
6c64be |
in DESTDIR.
|
|
|
6c64be |
---
|
|
|
6c64be |
Makefile | 2 +-
|
|
|
6c64be |
iscsiuio/configure | 2 +-
|
|
|
6c64be |
iscsiuio/configure.ac | 2 +-
|
|
|
6c64be |
3 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
6c64be |
mode change 100644 => 100755 iscsiuio/configure
|
|
|
6c64be |
|
|
|
6c64be |
diff --git a/Makefile b/Makefile
|
|
|
6c64be |
index 02346bf..172d30e 100644
|
|
|
6c64be |
--- a/Makefile
|
|
|
6c64be |
+++ b/Makefile
|
|
|
6c64be |
@@ -123,7 +123,7 @@ install_iface: $(IFACEFILES)
|
|
|
6c64be |
$(INSTALL) -m 644 $^ $(DESTDIR)$(etcdir)/iscsi/ifaces
|
|
|
6c64be |
|
|
|
6c64be |
install_etc: $(ETCFILES)
|
|
|
6c64be |
- if [ ! -f /etc/iscsi/iscsid.conf ]; then \
|
|
|
6c64be |
+ if [ ! -f $(DESTDIR)$(etcdir)/iscsi/iscsid.conf ]; then \
|
|
|
6c64be |
$(INSTALL) -d $(DESTDIR)$(etcdir)/iscsi ; \
|
|
|
6c64be |
$(INSTALL) -m 644 $^ $(DESTDIR)$(etcdir)/iscsi ; \
|
|
|
6c64be |
fi
|
|
|
6c64be |
diff --git a/iscsiuio/configure b/iscsiuio/configure
|
|
|
6c64be |
old mode 100644
|
|
|
6c64be |
new mode 100755
|
|
|
6c64be |
index 2740598..cd13f92
|
|
|
6c64be |
--- a/iscsiuio/configure
|
|
|
6c64be |
+++ b/iscsiuio/configure
|
|
|
6c64be |
@@ -21288,7 +21288,7 @@ LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
|
|
6c64be |
|
|
|
6c64be |
|
|
|
6c64be |
|
|
|
6c64be |
-CFLAGS="-O2 -Wall"
|
|
|
6c64be |
+CFLAGS="${CFLAGS} -O2 -Wall"
|
|
|
6c64be |
## check for --enable-debug first before checking CFLAGS before
|
|
|
6c64be |
## so that we don't mix -O and -g
|
|
|
6c64be |
# Check whether --enable-debug or --disable-debug was given.
|
|
|
6c64be |
diff --git a/iscsiuio/configure.ac b/iscsiuio/configure.ac
|
|
|
6c64be |
index e9a5e32..d9a6bdb 100644
|
|
|
6c64be |
--- a/iscsiuio/configure.ac
|
|
|
6c64be |
+++ b/iscsiuio/configure.ac
|
|
|
6c64be |
@@ -52,7 +52,7 @@ AC_LIBTOOL_DLOPEN
|
|
|
6c64be |
# libtool stuff
|
|
|
6c64be |
AC_PROG_LIBTOOL
|
|
|
6c64be |
|
|
|
6c64be |
-CFLAGS="-O2 -Wall"
|
|
|
6c64be |
+CFLAGS="${CFLAGS} -O2 -Wall"
|
|
|
6c64be |
## check for --enable-debug first before checking CFLAGS before
|
|
|
6c64be |
## so that we don't mix -O and -g
|
|
|
6c64be |
AC_ARG_ENABLE(debug,
|
|
|
6c64be |
--
|
|
|
6c64be |
1.8.1.4
|
|
|
6c64be |
|