* [Buildroot] [PATCH] libiscsi: bump version to 1.18.0
@ 2016-10-16 10:13 Vicente Olivert Riera
2016-10-16 11:02 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Vicente Olivert Riera @ 2016-10-16 10:13 UTC (permalink / raw)
To: buildroot
Also...
- Switch to GitHub.
- Remove LD=CC logic in libscsi.mk. This is now handled by the configure
script.
- Add patch to fix unsafe include paths issues. This patch has been sent
upstream as a pull request.
- Autoreconf fails. Use a hook to run autogen.sh.
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
...lude.-This-is-unsafe-when-cross-compiling.patch | 67 ++++++++++++++++++++++
package/libiscsi/libiscsi.hash | 2 +-
package/libiscsi/libiscsi.mk | 16 ++++--
3 files changed, 79 insertions(+), 6 deletions(-)
create mode 100644 package/libiscsi/0001-Do-not-use-I-usr-include.-This-is-unsafe-when-cross-compiling.patch
diff --git a/package/libiscsi/0001-Do-not-use-I-usr-include.-This-is-unsafe-when-cross-compiling.patch b/package/libiscsi/0001-Do-not-use-I-usr-include.-This-is-unsafe-when-cross-compiling.patch
new file mode 100644
index 0000000..dc047ef
--- /dev/null
+++ b/package/libiscsi/0001-Do-not-use-I-usr-include.-This-is-unsafe-when-cross-compiling.patch
@@ -0,0 +1,67 @@
+From f27bdf64f0c375352ca42928071a9178a5a04c46 Mon Sep 17 00:00:00 2001
+From: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
+Date: Sun, 16 Oct 2016 10:53:13 +0100
+Subject: [PATCH] Do not use -I/usr/include. This is unsafe when cross-compiling.
+
+Upstream status: PR sent (https://github.com/sahlberg/libiscsi/pull/219)
+
+Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
+---
+ examples/Makefile.am | 2 +-
+ lib/Makefile.am | 2 +-
+ tests/Makefile.am | 2 +-
+ utils/Makefile.am | 2 +-
+ 4 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/examples/Makefile.am b/examples/Makefile.am
+index 0de0b1f..42ad818 100644
+--- a/examples/Makefile.am
++++ b/examples/Makefile.am
+@@ -1,6 +1,6 @@
+ AM_CPPFLAGS=-I. -I${srcdir}/../include "-D_U_=__attribute__((unused))" \
+ "-D_R_(A,B)=__attribute__((format(printf,A,B)))"
+-AM_CFLAGS=$(WARN_CFLAGS) -I/usr/include
++AM_CFLAGS=$(WARN_CFLAGS)
+ LDADD = ../lib/libiscsi.la
+
+ noinst_PROGRAMS = iscsiclient iscsi-dd
+diff --git a/lib/Makefile.am b/lib/Makefile.am
+index d612fb7..47ffc33 100644
+--- a/lib/Makefile.am
++++ b/lib/Makefile.am
+@@ -29,7 +29,7 @@ libiscsi_la_CPPFLAGS = -I${srcdir}/../include -I$(srcdir)/include \
+ "-D_U_=__attribute__((unused))" \
+ "-D_R_(A,B)=__attribute__((format(printf,A,B)))"
+
+-AM_CFLAGS=$(WARN_CFLAGS) -I/usr/include
++AM_CFLAGS=$(WARN_CFLAGS)
+
+ dist_noinst_DATA = libiscsi.syms libiscsi.def
+
+diff --git a/tests/Makefile.am b/tests/Makefile.am
+index 9d699fc..b4cbf21 100644
+--- a/tests/Makefile.am
++++ b/tests/Makefile.am
+@@ -1,6 +1,6 @@
+ AM_CPPFLAGS = -I../include "-D_U_=__attribute__((unused))" \
+ "-D_R_(A,B)=__attribute__((format(printf,A,B)))"
+-AM_CFLAGS = $(WARN_CFLAGS) -I/usr/include
++AM_CFLAGS = $(WARN_CFLAGS)
+ LDADD = ../lib/libiscsi.la
+
+ noinst_PROGRAMS = prog_reconnect prog_reconnect_timeout prog_noop_reply \
+diff --git a/utils/Makefile.am b/utils/Makefile.am
+index 657ca9d..bde1c81 100644
+--- a/utils/Makefile.am
++++ b/utils/Makefile.am
+@@ -1,6 +1,6 @@
+ AM_CPPFLAGS = -I${srcdir}/../include "-D_U_=__attribute__((unused))" \
+ "-D_R_(A,B)=__attribute__((format(printf,A,B)))"
+-AM_CFLAGS = $(WARN_CFLAGS) -I/usr/include
++AM_CFLAGS = $(WARN_CFLAGS)
+ LDADD = ../lib/libiscsi.la
+
+ bin_PROGRAMS = iscsi-inq iscsi-ls iscsi-perf iscsi-readcapacity16 \
+--
+2.10.0
+
diff --git a/package/libiscsi/libiscsi.hash b/package/libiscsi/libiscsi.hash
index 8ccc264..4f7d1af 100644
--- a/package/libiscsi/libiscsi.hash
+++ b/package/libiscsi/libiscsi.hash
@@ -1,2 +1,2 @@
# Locally computed:
-sha256 26aa5583053d4fe0d4686f76a76c216c7dce00130f008e652ece305b88758ff1 libiscsi-1.15.0.tar.gz
+sha256 464d104e12533dc11f0dd7662cbc2f01c132f94aa4f5bd519e3413ef485830e8 libiscsi-1.18.0.tar.gz
diff --git a/package/libiscsi/libiscsi.mk b/package/libiscsi/libiscsi.mk
index 71c10c1..751da10 100644
--- a/package/libiscsi/libiscsi.mk
+++ b/package/libiscsi/libiscsi.mk
@@ -4,14 +4,20 @@
#
################################################################################
-LIBISCSI_VERSION = 1.15.0
-LIBISCSI_SITE = https://sites.google.com/site/libiscsitarballs/libiscsitarballs
+LIBISCSI_VERSION = 1.18.0
+LIBISCSI_SITE = $(call github,sahlberg,libiscsi,$(LIBISCSI_VERSION))
LIBISCSI_LICENSE = GPLv2+, LGPLv2.1+
LIBISCSI_LICENSE_FILES = COPYING LICENCE-GPL-2.txt LICENCE-LGPL-2.1.txt
LIBISCSI_INSTALL_STAGING = YES
-# Force libiscsi to use gcc as the linker, otherwise it uses directly
-# ld, which doesn't work for certain architectures.
-LIBISCSI_CONF_ENV = LD="$(TARGET_CC)"
+# configure is missing but libiscsi seems to not be compatible with our
+# autoreconf mechanism so we have to do it manually instead of using
+# LIBISCSI_AUTORECONF = YES
+define LIBISCSI_RUN_AUTOGEN
+ cd $(@D) && PATH=$(BR_PATH) ./autogen.sh
+endef
+LIBISCSI_PRE_CONFIGURE_HOOKS += LIBISCSI_RUN_AUTOGEN
+
+LIBISCSI_DEPENDENCIES += host-automake host-autoconf host-libtool
$(eval $(autotools-package))
--
2.10.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] libiscsi: bump version to 1.18.0
2016-10-16 10:13 [Buildroot] [PATCH] libiscsi: bump version to 1.18.0 Vicente Olivert Riera
@ 2016-10-16 11:02 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-10-16 11:02 UTC (permalink / raw)
To: buildroot
Hello,
On Sun, 16 Oct 2016 11:13:05 +0100, Vicente Olivert Riera wrote:
> Also...
>
> - Switch to GitHub.
> - Remove LD=CC logic in libscsi.mk. This is now handled by the configure
> script.
> - Add patch to fix unsafe include paths issues. This patch has been sent
> upstream as a pull request.
> - Autoreconf fails. Use a hook to run autogen.sh.
>
> Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
> ---
> ...lude.-This-is-unsafe-when-cross-compiling.patch | 67 ++++++++++++++++++++++
> package/libiscsi/libiscsi.hash | 2 +-
> package/libiscsi/libiscsi.mk | 16 ++++--
> 3 files changed, 79 insertions(+), 6 deletions(-)
> create mode 100644 package/libiscsi/0001-Do-not-use-I-usr-include.-This-is-unsafe-when-cross-compiling.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-10-16 11:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-16 10:13 [Buildroot] [PATCH] libiscsi: bump version to 1.18.0 Vicente Olivert Riera
2016-10-16 11:02 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox