Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/cifs-utils/, net-fs/cifs-utils/files/
Date: Wed, 09 Aug 2017 18:50:48
Message-Id: 1502304626.82fd27bd179c57ee98732718805eeb11df55b16c.wizardedit@gentoo
1 commit: 82fd27bd179c57ee98732718805eeb11df55b16c
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 8 19:08:40 2017 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 9 18:50:26 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82fd27bd
7
8 net-fs/cifs-utils: add patch to fix building when talloc is not installed
9
10 Gentoo-Bug: https://bugs.gentoo.org/612018
11 Acked-By: axs <AT> gentoo.org
12 Package-Manager: Portage-2.3.6, Repoman-2.3.2
13
14 net-fs/cifs-utils/cifs-utils-6.7.ebuild | 4 +++
15 .../cifs-utils/files/cifs-utils-6.7-talloc.patch | 29 ++++++++++++++++++++++
16 2 files changed, 33 insertions(+)
17
18 diff --git a/net-fs/cifs-utils/cifs-utils-6.7.ebuild b/net-fs/cifs-utils/cifs-utils-6.7.ebuild
19 index e312ad6cd2b..b18e773d460 100644
20 --- a/net-fs/cifs-utils/cifs-utils-6.7.ebuild
21 +++ b/net-fs/cifs-utils/cifs-utils-6.7.ebuild
22 @@ -35,6 +35,10 @@ REQUIRED_USE="acl? ( ads )"
23
24 DOCS="doc/linux-cifs-client-guide.odt"
25
26 +PATCHES=(
27 + "${FILESDIR}/${P}-talloc.patch"
28 +)
29 +
30 pkg_setup() {
31 linux-info_pkg_setup
32
33
34 diff --git a/net-fs/cifs-utils/files/cifs-utils-6.7-talloc.patch b/net-fs/cifs-utils/files/cifs-utils-6.7-talloc.patch
35 new file mode 100644
36 index 00000000000..7e3418631bd
37 --- /dev/null
38 +++ b/net-fs/cifs-utils/files/cifs-utils-6.7-talloc.patch
39 @@ -0,0 +1,29 @@
40 +https://bugs.gentoo.org/show_bug.cgi?id=612018
41 +
42 +From: Thomas Witt <pyromaniac@×××××××.org>
43 +Date: Wed, 15 Mar 2017 20:20:44 +0000 (+0000)
44 +Subject: mount.cifs: Remove data_blob.h include
45 +X-Git-Url: https://git.samba.org/?p=cifs-utils.git;a=commitdiff_plain;h=272d523a57a4e8791d625a479128613be5e401f5
46 +
47 +mount.cifs: Remove data_blob.h include
48 +
49 +data_blob.h includes talloc.h from libtalloc, but that is only marked as
50 +a dependency for cifs.upcall. No symbols from that header are used by
51 +cifs.mount, so remove it to avoid the libtalloc dependency
52 +
53 +Signed-off-by: Thomas Witt <pyromaniac@×××××××.org>
54 +---
55 +
56 +diff --git a/mount.cifs.c b/mount.cifs.c
57 +index 13b71ef..2612feb 100644
58 +--- a/mount.cifs.c
59 ++++ b/mount.cifs.c
60 +@@ -61,7 +61,6 @@
61 + #include "mount.h"
62 + #include "util.h"
63 + #include "resolve_host.h"
64 +-#include "data_blob.h"
65 +
66 + #ifndef MS_MOVE
67 + #define MS_MOVE 8192
68 +