1 |
commit: 60cae9e5131fb42796cdacf8a10b20738d3cf783 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 30 03:23:46 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 30 03:47:59 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60cae9e5 |
7 |
|
8 |
net-fs/samba: conditionally depend on cmocka |
9 |
|
10 |
- Conditionally depend on cmocka by "using" the bundled copy |
11 |
when we're not running tests (just to satisfy configure). |
12 |
|
13 |
- Tidy up ebuild a bit while here. |
14 |
|
15 |
Closes: https://bugs.gentoo.org/802531 |
16 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
17 |
|
18 |
...{samba-4.16.5.ebuild => samba-4.16.5-r1.ebuild} | 43 +++++++++++----------- |
19 |
1 file changed, 22 insertions(+), 21 deletions(-) |
20 |
|
21 |
diff --git a/net-fs/samba/samba-4.16.5.ebuild b/net-fs/samba/samba-4.16.5-r1.ebuild |
22 |
similarity index 92% |
23 |
rename from net-fs/samba/samba-4.16.5.ebuild |
24 |
rename to net-fs/samba/samba-4.16.5-r1.ebuild |
25 |
index 4caf13dffc76..c0a4ddf823c6 100644 |
26 |
--- a/net-fs/samba/samba-4.16.5.ebuild |
27 |
+++ b/net-fs/samba/samba-4.16.5-r1.ebuild |
28 |
@@ -69,24 +69,24 @@ COMMON_DEPEND=" |
29 |
<sys-libs/ldb-2.6.0[ldap(+)?,${MULTILIB_USEDEP}] |
30 |
sys-libs/libcap[${MULTILIB_USEDEP}] |
31 |
sys-libs/liburing:=[${MULTILIB_USEDEP}] |
32 |
- sys-libs/ncurses:0= |
33 |
- sys-libs/readline:0= |
34 |
+ sys-libs/ncurses:= |
35 |
+ sys-libs/readline:= |
36 |
>=sys-libs/talloc-2.3.3[${MULTILIB_USEDEP}] |
37 |
>=sys-libs/tdb-1.4.6[${MULTILIB_USEDEP}] |
38 |
>=sys-libs/tevent-0.11.0[${MULTILIB_USEDEP}] |
39 |
sys-libs/zlib[${MULTILIB_USEDEP}] |
40 |
virtual/libcrypt:=[${MULTILIB_USEDEP}] |
41 |
virtual/libiconv |
42 |
- $(python_gen_cond_dep " |
43 |
+ $(python_gen_cond_dep ' |
44 |
addc? ( |
45 |
- dev-python/dnspython:=[\${PYTHON_USEDEP}] |
46 |
- dev-python/markdown[\${PYTHON_USEDEP}] |
47 |
+ dev-python/dnspython:=[${PYTHON_USEDEP}] |
48 |
+ dev-python/markdown[${PYTHON_USEDEP}] |
49 |
) |
50 |
ads? ( |
51 |
- dev-python/dnspython:=[\${PYTHON_USEDEP}] |
52 |
+ dev-python/dnspython:=[${PYTHON_USEDEP}] |
53 |
net-dns/bind-tools[gssapi] |
54 |
) |
55 |
- ") |
56 |
+ ') |
57 |
acl? ( virtual/acl ) |
58 |
ceph? ( sys-cluster/ceph ) |
59 |
cluster? ( net-libs/rpcsvc-proto ) |
60 |
@@ -106,7 +106,7 @@ COMMON_DEPEND=" |
61 |
snapper? ( sys-apps/dbus ) |
62 |
system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] ) |
63 |
system-mitkrb5? ( >=app-crypt/mit-krb5-1.19[${MULTILIB_USEDEP}] ) |
64 |
- systemd? ( sys-apps/systemd:0= ) |
65 |
+ systemd? ( sys-apps/systemd:= ) |
66 |
unwind? ( |
67 |
llvm-libunwind? ( sys-libs/llvm-libunwind:= ) |
68 |
!llvm-libunwind? ( sys-libs/libunwind:= ) |
69 |
@@ -114,15 +114,12 @@ COMMON_DEPEND=" |
70 |
zeroconf? ( net-dns/avahi[dbus] ) |
71 |
" |
72 |
DEPEND="${COMMON_DEPEND} |
73 |
- >=dev-util/cmocka-1.1.3[${MULTILIB_USEDEP}] |
74 |
dev-perl/JSON |
75 |
net-libs/libtirpc[${MULTILIB_USEDEP}] |
76 |
- || ( |
77 |
- net-libs/rpcsvc-proto |
78 |
- <sys-libs/glibc-2.26[rpc(+)] |
79 |
- ) |
80 |
+ net-libs/rpcsvc-proto |
81 |
spotlight? ( dev-libs/glib ) |
82 |
test? ( |
83 |
+ >=dev-util/cmocka-1.1.3[${MULTILIB_USEDEP}] |
84 |
$(python_gen_cond_dep "dev-python/subunit[\${PYTHON_USEDEP},${MULTILIB_USEDEP}]" ) |
85 |
!system-mitkrb5? ( |
86 |
>=net-dns/resolv_wrapper-1.1.4 |
87 |
@@ -150,11 +147,8 @@ PATCHES=( |
88 |
"${FILESDIR}/${PN}-4.15.9-libunwind-automagic.patch" |
89 |
) |
90 |
|
91 |
-#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" |
92 |
CONFDIR="${FILESDIR}/4.4" |
93 |
- |
94 |
WAF_BINARY="${S}/buildtools/bin/waf" |
95 |
- |
96 |
SHAREDMODS="" |
97 |
|
98 |
pkg_setup() { |
99 |
@@ -175,33 +169,40 @@ pkg_setup() { |
100 |
src_prepare() { |
101 |
default |
102 |
|
103 |
- # un-bundle dnspython |
104 |
+ # Unbundle dnspython |
105 |
sed -i -e '/"dns.resolver":/d' "${S}"/third_party/wscript || die |
106 |
|
107 |
- # unbundle iso8601 unless tests are enabled |
108 |
+ # Unbundle iso8601 unless tests are enabled |
109 |
if ! use test ; then |
110 |
sed -i -e '/"iso8601":/d' "${S}"/third_party/wscript || die |
111 |
fi |
112 |
|
113 |
- ## ugly hackaround for bug #592502 |
114 |
+ # Ugly hackaround for bug #592502 |
115 |
#cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die |
116 |
|
117 |
sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \ |
118 |
-i source4/dsdb/samdb/ldb_modules/password_hash.c \ |
119 |
|| die |
120 |
|
121 |
- # Friggin' WAF shit |
122 |
+ # WAF |
123 |
multilib_copy_sources |
124 |
} |
125 |
|
126 |
multilib_src_configure() { |
127 |
- # when specifying libs for samba build you must append NONE to the end to |
128 |
+ # When specifying libs for samba build you must append NONE to the end to |
129 |
# stop it automatically including things |
130 |
local bundled_libs="NONE" |
131 |
if ! use system-heimdal && ! use system-mitkrb5 ; then |
132 |
bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE" |
133 |
fi |
134 |
|
135 |
+ # We "use" bundled cmocka when we're not running tests as we're |
136 |
+ # not using it anyway. Means we avoid making users install it for |
137 |
+ # no reason. bug #802531 |
138 |
+ if ! use test ; then |
139 |
+ bundled_libs="cmocka,${bundled_libs}" |
140 |
+ fi |
141 |
+ |
142 |
local myconf=( |
143 |
--enable-fhs |
144 |
--sysconfdir="${EPREFIX}/etc" |