Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libiscsi/files/, net-libs/libiscsi/
Date: Thu, 07 Jan 2021 10:08:38
Message-Id: 1610014102.21c320c1a5455367d0df77c43005b26a8685cdff.soap@gentoo
1 commit: 21c320c1a5455367d0df77c43005b26a8685cdff
2 Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
3 AuthorDate: Thu Jan 7 10:08:22 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 7 10:08:22 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21c320c1
7
8 net-libs/libiscsi: Port to EAPI 7
9
10 * Disable static-libs
11 * Fix build with gcc-10
12
13 Closes: https://bugs.gentoo.org/708526
14 Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
15 Signed-off-by: David Seifert <soap <AT> gentoo.org>
16
17 .../files/libiscsi-1.18.0-fno-common.patch | 14 +++++++++++++
18 net-libs/libiscsi/libiscsi-1.18.0.ebuild | 23 ++++++++++++++--------
19 2 files changed, 29 insertions(+), 8 deletions(-)
20
21 diff --git a/net-libs/libiscsi/files/libiscsi-1.18.0-fno-common.patch b/net-libs/libiscsi/files/libiscsi-1.18.0-fno-common.patch
22 new file mode 100644
23 index 00000000000..e5ce2f7bd49
24 --- /dev/null
25 +++ b/net-libs/libiscsi/files/libiscsi-1.18.0-fno-common.patch
26 @@ -0,0 +1,14 @@
27 +https://bugs.gentoo.org/708526
28 +Taken from: https://github.com/sahlberg/libiscsi/pull/307
29 +Author: wanghonghao <wanghonghao@×××××××××.com>
30 +--- a/include/iser-private.h
31 ++++ b/include/iser-private.h
32 +@@ -159,7 +159,7 @@ struct iser_tx_desc {
33 + struct iser_cm_hdr {
34 + uint8_t flags;
35 + uint8_t rsvd[3];
36 +-} __packed;
37 ++};
38 +
39 + struct iser_pdu {
40 + struct iscsi_pdu iscsi_pdu;
41
42 diff --git a/net-libs/libiscsi/libiscsi-1.18.0.ebuild b/net-libs/libiscsi/libiscsi-1.18.0.ebuild
43 index 652b0b2953a..d5f2c942c2d 100644
44 --- a/net-libs/libiscsi/libiscsi-1.18.0.ebuild
45 +++ b/net-libs/libiscsi/libiscsi-1.18.0.ebuild
46 @@ -1,22 +1,29 @@
47 -# Copyright 1999-2020 Gentoo Authors
48 +# Copyright 1999-2021 Gentoo Authors
49 # Distributed under the terms of the GNU General Public License v2
50
51 -EAPI=6
52 +EAPI=7
53
54 inherit autotools
55
56 +if [[ ${PV} == *9999 ]] ; then
57 + EGIT_REPO_URI="https://github.com/sahlberg/${PN}.git"
58 + inherit git-r3
59 +else
60 + SRC_URI="https://github.com/sahlberg/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
61 + KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~ppc ppc64 ~sparc x86"
62 +fi
63 +
64 DESCRIPTION="iscsi client library and utilities"
65 HOMEPAGE="https://github.com/sahlberg/libiscsi"
66 -SRC_URI="https://github.com/sahlberg/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
67
68 SLOT="0"
69 LICENSE="GPL-2 LGPL-2"
70 -KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~ppc ppc64 ~sparc x86"
71 -IUSE="static-libs"
72
73 RDEPEND="dev-libs/libgcrypt:0="
74 DEPEND="${RDEPEND}"
75
76 +PATCHES=( "${FILESDIR}"/${P}-fno-common.patch )
77 +
78 src_prepare() {
79 default
80 eautoreconf
81 @@ -25,11 +32,11 @@ src_prepare() {
82 src_configure() {
83 econf \
84 --enable-manpages \
85 - --disable-werror \
86 - $(use_enable static-libs static)
87 + --disable-static \
88 + --disable-werror
89 }
90
91 src_install() {
92 default
93 - find "${D}" -name '*.la' -delete || die
94 + find "${ED}" -name '*.la' -delete || die
95 }