[gentoo-commits] repo/gentoo:master commit in: dev-libs/cyrus-sasl/, dev-libs/cyrus-sasl/files/

2023-09-06 Thread David Seifert
commit: fb49d510b860364896096c1ae2ac7b4bfe236b60
Author: David Seifert  gentoo  org>
AuthorDate: Wed Sep  6 11:55:55 2023 +
Commit: David Seifert  gentoo  org>
CommitDate: Wed Sep  6 11:55:55 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb49d510

dev-libs/cyrus-sasl: drop 2.1.28-r2, 2.1.28-r3

Signed-off-by: David Seifert  gentoo.org>

 dev-libs/cyrus-sasl/Manifest   |   1 -
 dev-libs/cyrus-sasl/cyrus-sasl-2.1.28-r2.ebuild| 221 -
 dev-libs/cyrus-sasl/cyrus-sasl-2.1.28-r3.ebuild| 218 
 ...yrus-sasl-2.1.28-fix-configure-time-check.patch |  50 -
 4 files changed, 490 deletions(-)

diff --git a/dev-libs/cyrus-sasl/Manifest b/dev-libs/cyrus-sasl/Manifest
index bfa6547d559e..e6f246ba2943 100644
--- a/dev-libs/cyrus-sasl/Manifest
+++ b/dev-libs/cyrus-sasl/Manifest
@@ -1,3 +1,2 @@
-DIST cyrus-sasl-2.1.27-r6-patches.tar.bz2 5169 BLAKE2B 
43a2f0db4a8589ec1cde7807b31a93459eacb04d27ba36751a69dd5f4e669d1b28342194b0e1a5382e281a52a35e88168877b54065cfba01b9bd33e87fbd23f1
 SHA512 
41c4ca7c8f7b79e03faf5d826a6ff0ed398137239b93fb0046ccbf385f6ddeab2b9fb2f51d7a263dc74626e5fdbefb28615a1ee22aabe57ed57f10a52d382797
 DIST cyrus-sasl-2.1.28-r3-patches.tar.xz 4244 BLAKE2B 
113da9bb58cce3643269fca88ea8d700aa20226d9536427c9068ef7b43499c2b78cbcb233d8db2418d84136c7edd629cc05f52b31cdfddfcb529f9a9fcb4effb
 SHA512 
0cccbb27646dc118fbeea64b0cb688f312df97b31fced8c18d5230764cd5e2f0d48806bd2f5524aeddd02e8933cd835fb6f67dd3fbc1b0abfd1a3e1f0f53cf8a
 DIST cyrus-sasl-2.1.28.tar.gz 4034803 BLAKE2B 
6cca8c26cebb9c2ee5d539c43797d30b6309a476ec4233225789978e1d7315c4ea5d2abbc7f5464be0f3c0de5fd9212706b43fbc92f40b76cd0b1013cc00f823
 SHA512 
db15af9079758a9f385457a79390c8a7cd7ea666573dace8bf4fb01bb4b49037538d67285727d6a70ad799d2e2318f265c9372e2427de9371d626a1959dd6f78

diff --git a/dev-libs/cyrus-sasl/cyrus-sasl-2.1.28-r2.ebuild 
b/dev-libs/cyrus-sasl/cyrus-sasl-2.1.28-r2.ebuild
deleted file mode 100644
index 38733ce427bc..
--- a/dev-libs/cyrus-sasl/cyrus-sasl-2.1.28-r2.ebuild
+++ /dev/null
@@ -1,221 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit autotools edos2unix flag-o-matic multilib multilib-minimal pam db-use 
systemd toolchain-funcs tmpfiles
-
-SASLAUTHD_CONF_VER="2.1.26"
-MY_PATCH_VER="${PN}-2.1.27-r6-patches"
-DESCRIPTION="The Cyrus SASL (Simple Authentication and Security Layer)"
-HOMEPAGE="https://www.cyrusimap.org/sasl/;
-#SRC_URI="ftp://ftp.cyrusimap.org/cyrus-sasl/${P}.tar.gz;
-SRC_URI="https://github.com/cyrusimap/${PN}/releases/download/${P}/${P}.tar.gz;
-SRC_URI+=" 
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${MY_PATCH_VER}.tar.bz2;
-
-LICENSE="BSD-with-attribution"
-SLOT="2"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ~ppc ppc64 ~riscv 
~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
-IUSE="authdaemond berkdb gdbm kerberos ldapdb openldap mysql pam postgres 
sample selinux sqlite srp ssl static-libs urandom"
-REQUIRED_USE="ldapdb? ( openldap )"
-
-DEPEND="net-mail/mailbase
-   virtual/libcrypt:=
-   authdaemond? ( || ( net-mail/courier-imap mail-mta/courier ) )
-   berkdb? ( >=sys-libs/db-4.8.30-r1:=[${MULTILIB_USEDEP}] )
-   gdbm? ( >=sys-libs/gdbm-1.10-r1:=[${MULTILIB_USEDEP}] )
-   kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )
-   openldap? ( >=net-nds/openldap-2.4.38-r1:=[${MULTILIB_USEDEP}] )
-   mysql? ( dev-db/mysql-connector-c:0=[${MULTILIB_USEDEP}] )
-   pam? ( >=sys-libs/pam-0-r1[${MULTILIB_USEDEP}] )
-   postgres? ( dev-db/postgresql:* )
-   sqlite? ( >=dev-db/sqlite-3.8.2:3[${MULTILIB_USEDEP}] )
-   ssl? ( >=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}] )"
-RDEPEND="${DEPEND}
-   selinux? ( sec-policy/selinux-sasl )"
-
-MULTILIB_WRAPPED_HEADERS=(
-   /usr/include/sasl/md5global.h
-)
-
-PATCHES=(
-   "${WORKDIR}"/${MY_PATCH_VER}/cyrus-sasl-2.1.25-auxprop.patch
-   "${WORKDIR}"/${MY_PATCH_VER}/cyrus-sasl-2.1.27-avoid_pic_overwrite.patch
-   
"${WORKDIR}"/${MY_PATCH_VER}/cyrus-sasl-2.1.27-gss_c_nt_hostbased_service.patch
-   "${FILESDIR}"/cyrus-sasl-2.1.28-fix-configure-time-check.patch
-)
-
-src_prepare() {
-   default
-
-   # Use plugindir for sasldir
-   # https://github.com/cyrusimap/cyrus-sasl/issues/339 (I think)
-   sed -i '/^sasldir =/s:=.*:= $(plugindir):' \
-   "${S}"/plugins/Makefile.{am,in} || die "sed failed"
-
-   # bug #486740 and bug #468556 (dropped AM_CONFIG_HEADER sed in 2.1.28)
-   sed -i -e 's:AC_CONFIG_MACRO_DIR:AC_CONFIG_MACRO_DIRS:g' configure.ac 
|| die
-
-   eautoreconf
-}
-
-src_configure() {
-   export CC_FOR_BUILD="$(tc-getBUILD_CC)"
-
-   append-flags -fno-strict-aliasing
-
-   if [[ ${CHOST} == *-solaris* ]] ; then
-   # getpassphrase is defined in /usr/include/stdlib.h
-   

[gentoo-commits] repo/gentoo:master commit in: dev-libs/cyrus-sasl/, dev-libs/cyrus-sasl/files/

2022-02-22 Thread Sam James
commit: 65be5f298d5fc6b98119d01e946f0708fd40cde7
Author: Sam James  gentoo  org>
AuthorDate: Wed Feb 23 01:48:06 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Feb 23 01:48:20 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65be5f29

dev-libs/cyrus-sasl: drop 2.1.27-r4

Signed-off-by: Sam James  gentoo.org>

 dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r4.ebuild| 268 -
 .../files/cyrus-sasl-2.1.25-auxprop.patch  |  16 --
 .../files/cyrus-sasl-2.1.26-missing-size_t.patch   |  13 -
 .../files/cyrus-sasl-2.1.27-CVE-2019-19906.patch   |  20 --
 .../files/cyrus-sasl-2.1.27-as_needed.patch|  25 --
 .../files/cyrus-sasl-2.1.27-autotools_fixes.patch  |  31 ---
 .../cyrus-sasl-2.1.27-avoid_pic_overwrite.patch|  17 --
 .../files/cyrus-sasl-2.1.27-doc_build_fix.patch|  11 -
 ...us-sasl-2.1.27-gss_c_nt_hostbased_service.patch |  16 --
 .../files/cyrus-sasl-2.1.27-memmem.patch   |  53 
 .../files/cyrus-sasl-2.1.27-slibtool.patch |  18 --
 11 files changed, 488 deletions(-)

diff --git a/dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r4.ebuild 
b/dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r4.ebuild
deleted file mode 100644
index 670450a576e0..
--- a/dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r4.ebuild
+++ /dev/null
@@ -1,268 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit edos2unix flag-o-matic multilib multilib-minimal autotools pam 
java-pkg-opt-2 db-use systemd toolchain-funcs tmpfiles
-
-SASLAUTHD_CONF_VER="2.1.26"
-
-DESCRIPTION="The Cyrus SASL (Simple Authentication and Security Layer)"
-HOMEPAGE="https://www.cyrusimap.org/sasl/;
-#SRC_URI="ftp://ftp.cyrusimap.org/cyrus-sasl/${P}.tar.gz;
-SRC_URI="https://github.com/cyrusimap/${PN}/releases/download/${P}/${P}.tar.gz;
-
-LICENSE="BSD-with-attribution"
-SLOT="2"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc 
x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="authdaemond berkdb gdbm kerberos ldapdb openldap mysql pam postgres 
sample selinux sqlite srp ssl static-libs urandom"
-
-CDEPEND="
-   net-mail/mailbase
-   virtual/libcrypt:=
-   authdaemond? ( || ( net-mail/courier-imap mail-mta/courier ) )
-   berkdb? ( >=sys-libs/db-4.8.30-r1:=[${MULTILIB_USEDEP}] )
-   gdbm? ( >=sys-libs/gdbm-1.10-r1:=[${MULTILIB_USEDEP}] )
-   kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )
-   openldap? ( >=net-nds/openldap-2.4.38-r1[${MULTILIB_USEDEP}] )
-   mysql? ( dev-db/mysql-connector-c:0=[${MULTILIB_USEDEP}] )
-   pam? ( >=sys-libs/pam-0-r1[${MULTILIB_USEDEP}] )
-   postgres? ( dev-db/postgresql:* )
-   sqlite? ( >=dev-db/sqlite-3.8.2:3[${MULTILIB_USEDEP}] )
-   ssl? (
-   >=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}]
-   )
-   java? ( >=virtual/jdk-1.6:= )"
-
-REQUIRED_USE="ldapdb? ( openldap )"
-
-RDEPEND="
-   ${CDEPEND}
-   selinux? ( sec-policy/selinux-sasl )"
-
-DEPEND="${CDEPEND}"
-
-MULTILIB_WRAPPED_HEADERS=(
-   /usr/include/sasl/md5global.h
-)
-
-PATCHES=(
-   "${FILESDIR}/${PN}-2.1.27-avoid_pic_overwrite.patch"
-   "${FILESDIR}/${PN}-2.1.27-autotools_fixes.patch"
-   "${FILESDIR}/${PN}-2.1.27-as_needed.patch"
-   "${FILESDIR}/${PN}-2.1.25-auxprop.patch"
-   "${FILESDIR}/${PN}-2.1.27-gss_c_nt_hostbased_service.patch"
-   "${FILESDIR}/${PN}-2.1.26-missing-size_t.patch"
-   "${FILESDIR}/${PN}-2.1.27-doc_build_fix.patch"
-   "${FILESDIR}/${PN}-2.1.27-memmem.patch"
-   "${FILESDIR}/${PN}-2.1.27-CVE-2019-19906.patch"
-   "${FILESDIR}/${PN}-2.1.27-slibtool.patch"
-)
-
-pkg_setup() {
-   java-pkg-opt-2_pkg_setup
-}
-
-src_prepare() {
-   default
-
-   # Get rid of the -R switch (runpath_switch for Sun)
-   # >=gcc-4.6 errors out with unknown option
-   sed -i -e '/LIB_SQLITE.*-R/s/ -R[^"]*//' \
-   configure.ac || die
-
-   # Use plugindir for sasldir
-   sed -i '/^sasldir =/s:=.*:= $(plugindir):' \
-   "${S}"/plugins/Makefile.{am,in} || die "sed failed"
-
-   # #486740 #468556
-   sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:g' \
-   -e 's:AC_CONFIG_MACRO_DIR:AC_CONFIG_MACRO_DIRS:g' \
-   configure.ac || die
-
-   eautoreconf
-
-   export CC_FOR_BUILD="$(tc-getBUILD_CC)"
-}
-
-src_configure() {
-   append-flags -fno-strict-aliasing
-
-   if [[ ${CHOST} == *-solaris* ]] ; then
-   # getpassphrase is defined in /usr/include/stdlib.h
-   append-cppflags -DHAVE_GETPASSPHRASE
-   else
-   # this horrendously breaks things on Solaris
-   append-cppflags -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED 
-D_BSD_SOURCE -DLDAP_DEPRECATED
-   # replaces BSD_SOURCE (bug #579218)
-   append-cppflags 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/cyrus-sasl/, dev-libs/cyrus-sasl/files/

2022-02-22 Thread Sam James
commit: a065bacc267e31d5dd4a64d416de800cb6bc6fdd
Author: Sam James  gentoo  org>
AuthorDate: Wed Feb 23 00:52:37 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Feb 23 00:53:47 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a065bacc

dev-libs/cyrus-sasl: add 2.1.28

Java bindings dropped upstream. Fair amount of autotools changed upstream
too so hopefully those issues are fixed.

Bug: https://bugs.gentoo.org/539632
Bug: https://bugs.gentoo.org/591358
Bug: https://bugs.gentoo.org/409897
Closes: https://bugs.gentoo.org/476392
Closes: https://bugs.gentoo.org/818145
Signed-off-by: Sam James  gentoo.org>

 dev-libs/cyrus-sasl/Manifest   |   1 +
 dev-libs/cyrus-sasl/cyrus-sasl-2.1.28.ebuild   | 220 +
 ...yrus-sasl-2.1.28-fix-configure-time-check.patch |  50 +
 3 files changed, 271 insertions(+)

diff --git a/dev-libs/cyrus-sasl/Manifest b/dev-libs/cyrus-sasl/Manifest
index da2a2265fd42..0de2b299de60 100644
--- a/dev-libs/cyrus-sasl/Manifest
+++ b/dev-libs/cyrus-sasl/Manifest
@@ -1,2 +1,3 @@
 DIST cyrus-sasl-2.1.27-r6-patches.tar.bz2 5169 BLAKE2B 
43a2f0db4a8589ec1cde7807b31a93459eacb04d27ba36751a69dd5f4e669d1b28342194b0e1a5382e281a52a35e88168877b54065cfba01b9bd33e87fbd23f1
 SHA512 
41c4ca7c8f7b79e03faf5d826a6ff0ed398137239b93fb0046ccbf385f6ddeab2b9fb2f51d7a263dc74626e5fdbefb28615a1ee22aabe57ed57f10a52d382797
 DIST cyrus-sasl-2.1.27.tar.gz 4111249 BLAKE2B 
82c9acce8534521ce5c5806f093e927f1854b4bc4b83ea7db1b32ceaa811adc1a5b6fc16d03233d729194cd603836f6e58de67f915abab2cb74561a80d03f5a8
 SHA512 
d11549a99b3b06af79fc62d5478dba3305d7e7cc0824f4b91f0d2638daafbe940623eab235f85af9be38dcf5d42fc131db531c177040a85187aee5096b8df63b
+DIST cyrus-sasl-2.1.28.tar.gz 4034803 BLAKE2B 
6cca8c26cebb9c2ee5d539c43797d30b6309a476ec4233225789978e1d7315c4ea5d2abbc7f5464be0f3c0de5fd9212706b43fbc92f40b76cd0b1013cc00f823
 SHA512 
db15af9079758a9f385457a79390c8a7cd7ea666573dace8bf4fb01bb4b49037538d67285727d6a70ad799d2e2318f265c9372e2427de9371d626a1959dd6f78

diff --git a/dev-libs/cyrus-sasl/cyrus-sasl-2.1.28.ebuild 
b/dev-libs/cyrus-sasl/cyrus-sasl-2.1.28.ebuild
new file mode 100644
index ..84382b93e147
--- /dev/null
+++ b/dev-libs/cyrus-sasl/cyrus-sasl-2.1.28.ebuild
@@ -0,0 +1,220 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools edos2unix flag-o-matic multilib multilib-minimal pam db-use 
systemd toolchain-funcs tmpfiles
+
+SASLAUTHD_CONF_VER="2.1.26"
+MY_PATCH_VER="${PN}-2.1.27-r6-patches"
+DESCRIPTION="The Cyrus SASL (Simple Authentication and Security Layer)"
+HOMEPAGE="https://www.cyrusimap.org/sasl/;
+#SRC_URI="ftp://ftp.cyrusimap.org/cyrus-sasl/${P}.tar.gz;
+SRC_URI="https://github.com/cyrusimap/${PN}/releases/download/${P}/${P}.tar.gz;
+SRC_URI+=" 
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${MY_PATCH_VER}.tar.bz2;
+
+LICENSE="BSD-with-attribution"
+SLOT="2"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="authdaemond berkdb gdbm kerberos ldapdb openldap mysql pam postgres 
sample selinux sqlite srp ssl static-libs urandom"
+REQUIRED_USE="ldapdb? ( openldap )"
+
+DEPEND="net-mail/mailbase
+   virtual/libcrypt:=
+   authdaemond? ( || ( net-mail/courier-imap mail-mta/courier ) )
+   berkdb? ( >=sys-libs/db-4.8.30-r1:=[${MULTILIB_USEDEP}] )
+   gdbm? ( >=sys-libs/gdbm-1.10-r1:=[${MULTILIB_USEDEP}] )
+   kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )
+   openldap? ( >=net-nds/openldap-2.4.38-r1[${MULTILIB_USEDEP}] )
+   mysql? ( dev-db/mysql-connector-c:0=[${MULTILIB_USEDEP}] )
+   pam? ( >=sys-libs/pam-0-r1[${MULTILIB_USEDEP}] )
+   postgres? ( dev-db/postgresql:* )
+   sqlite? ( >=dev-db/sqlite-3.8.2:3[${MULTILIB_USEDEP}] )
+   ssl? ( >=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}] )"
+RDEPEND="${DEPEND}
+   selinux? ( sec-policy/selinux-sasl )"
+
+MULTILIB_WRAPPED_HEADERS=(
+   /usr/include/sasl/md5global.h
+)
+
+PATCHES=(
+   "${WORKDIR}"/${MY_PATCH_VER}/cyrus-sasl-2.1.25-auxprop.patch
+   "${WORKDIR}"/${MY_PATCH_VER}/cyrus-sasl-2.1.27-avoid_pic_overwrite.patch
+   
"${WORKDIR}"/${MY_PATCH_VER}/cyrus-sasl-2.1.27-gss_c_nt_hostbased_service.patch
+   "${FILESDIR}"/cyrus-sasl-2.1.28-fix-configure-time-check.patch
+)
+
+src_prepare() {
+   default
+
+   # Use plugindir for sasldir
+   sed -i '/^sasldir =/s:=.*:= $(plugindir):' \
+   "${S}"/plugins/Makefile.{am,in} || die "sed failed"
+
+   # bug #486740 and bug #468556 (dropped AM_CONFIG_HEADER sed in 2.1.28)
+   sed -i -e 's:AC_CONFIG_MACRO_DIR:AC_CONFIG_MACRO_DIRS:g' configure.ac 
|| die
+
+   eautoreconf
+}
+
+src_configure() {
+   export CC_FOR_BUILD="$(tc-getBUILD_CC)"
+
+   append-flags 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/cyrus-sasl/, dev-libs/cyrus-sasl/files/

2021-11-22 Thread Sam James
commit: 5ce7b15739d29a94773324e1295020c059f978ab
Author: Sam James  gentoo  org>
AuthorDate: Mon Nov 22 09:57:02 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Nov 22 09:57:28 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ce7b157

dev-libs/cyrus-sasl: switch to patchset for -r6

files/ was getting too large for the repository.

Signed-off-by: Sam James  gentoo.org>

 dev-libs/cyrus-sasl/Manifest   |  1 +
 dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r6.ebuild| 16 ++--
 .../files/cyrus-sasl-2.1.27-autoconf-2.71.patch| 45 --
 3 files changed, 4 insertions(+), 58 deletions(-)

diff --git a/dev-libs/cyrus-sasl/Manifest b/dev-libs/cyrus-sasl/Manifest
index 843afea7db80..da2a2265fd42 100644
--- a/dev-libs/cyrus-sasl/Manifest
+++ b/dev-libs/cyrus-sasl/Manifest
@@ -1 +1,2 @@
+DIST cyrus-sasl-2.1.27-r6-patches.tar.bz2 5169 BLAKE2B 
43a2f0db4a8589ec1cde7807b31a93459eacb04d27ba36751a69dd5f4e669d1b28342194b0e1a5382e281a52a35e88168877b54065cfba01b9bd33e87fbd23f1
 SHA512 
41c4ca7c8f7b79e03faf5d826a6ff0ed398137239b93fb0046ccbf385f6ddeab2b9fb2f51d7a263dc74626e5fdbefb28615a1ee22aabe57ed57f10a52d382797
 DIST cyrus-sasl-2.1.27.tar.gz 4111249 BLAKE2B 
82c9acce8534521ce5c5806f093e927f1854b4bc4b83ea7db1b32ceaa811adc1a5b6fc16d03233d729194cd603836f6e58de67f915abab2cb74561a80d03f5a8
 SHA512 
d11549a99b3b06af79fc62d5478dba3305d7e7cc0824f4b91f0d2638daafbe940623eab235f85af9be38dcf5d42fc131db531c177040a85187aee5096b8df63b

diff --git a/dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r6.ebuild 
b/dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r6.ebuild
index 3f20ae795401..99c0c56d8889 100644
--- a/dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r6.ebuild
+++ b/dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r6.ebuild
@@ -6,11 +6,12 @@ EAPI=7
 inherit edos2unix flag-o-matic multilib multilib-minimal autotools pam 
java-pkg-opt-2 db-use systemd toolchain-funcs tmpfiles
 
 SASLAUTHD_CONF_VER="2.1.26"
-
+MY_PATCH_VER="${PN}-2.1.27-r6-patches"
 DESCRIPTION="The Cyrus SASL (Simple Authentication and Security Layer)"
 HOMEPAGE="https://www.cyrusimap.org/sasl/;
 #SRC_URI="ftp://ftp.cyrusimap.org/cyrus-sasl/${P}.tar.gz;
 SRC_URI="https://github.com/cyrusimap/${PN}/releases/download/${P}/${P}.tar.gz;
+SRC_URI+=" 
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${MY_PATCH_VER}.tar.bz2;
 
 LICENSE="BSD-with-attribution"
 SLOT="2"
@@ -47,18 +48,7 @@ MULTILIB_WRAPPED_HEADERS=(
 )
 
 PATCHES=(
-   "${FILESDIR}/${PN}-2.1.27-avoid_pic_overwrite.patch"
-   "${FILESDIR}/${PN}-2.1.27-autotools_fixes.patch"
-   "${FILESDIR}/${PN}-2.1.27-as_needed.patch"
-   "${FILESDIR}/${PN}-2.1.25-auxprop.patch"
-   "${FILESDIR}/${PN}-2.1.27-gss_c_nt_hostbased_service.patch"
-   "${FILESDIR}/${PN}-2.1.26-missing-size_t.patch"
-   "${FILESDIR}/${PN}-2.1.27-doc_build_fix.patch"
-   "${FILESDIR}/${PN}-2.1.27-memmem.patch"
-   "${FILESDIR}/${PN}-2.1.27-CVE-2019-19906.patch"
-   "${FILESDIR}/${PN}-2.1.27-slibtool.patch"
-   
"${FILESDIR}/${PN}-2.1.27-db_gdbm-fix-gdbm_errno-overlay-from-gdbm_close.patch"
-   "${FILESDIR}/${PN}-2.1.27-autoconf-2.71.patch"
+   "${WORKDIR}"/${MY_PATCH_VER}/
 )
 
 pkg_setup() {

diff --git a/dev-libs/cyrus-sasl/files/cyrus-sasl-2.1.27-autoconf-2.71.patch 
b/dev-libs/cyrus-sasl/files/cyrus-sasl-2.1.27-autoconf-2.71.patch
deleted file mode 100644
index b346cd7e5002..
--- a/dev-libs/cyrus-sasl/files/cyrus-sasl-2.1.27-autoconf-2.71.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-https://bugs.gentoo.org/825342
-
-commit 5664c3f535289ce9efb513a2897991b5c436bb44
-Author: Pavel Raiskup 
-Date:   Thu Apr 1 17:26:28 2021 +0200
-
-configure.ac: properly quote macro arguments
-
-Autoconf 2.70+ is more picky about the quotation (even though with
-previous versions the arguments should have been quoted, too).  When we
-don't quote macros inside the AC_CACHE_VAL macro - some of the Autoconf
-initialization is wrongly ordered in ./configure script and we keep
-seeing bugs like:
-
-./configure: line 2165: ac_fn_c_try_run: command not found
-
-Original report: https://bugzilla.redhat.com/1943013
-
-Signed-off-by: Pavel Raiskup 
-
 a/configure.ac
-+++ b/configure.ac
-@@ -213,7 +213,8 @@ if test $sasl_cv_uscore = yes; then
-   AC_MSG_CHECKING(whether dlsym adds the underscore for us)
-   cmu_save_LIBS="$LIBS"
-   LIBS="$LIBS $SASL_DL_LIB"
--  AC_CACHE_VAL(sasl_cv_dlsym_adds_uscore,AC_TRY_RUN( [
-+  AC_CACHE_VAL([sasl_cv_dlsym_adds_uscore],
-+   [AC_TRY_RUN([
- #include 
- #include 
- #include 
-@@ -221,9 +222,9 @@ void foo() { int i=0;}
- int main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
- if(self) { ptr1=dlsym(self,"foo"); ptr2=dlsym(self,"_foo");
- if(ptr1 && !ptr2) exit(0); } exit(1); } 
--], [sasl_cv_dlsym_adds_uscore=yes], sasl_cv_dlsym_adds_uscore=no
--  AC_DEFINE(DLSYM_NEEDS_UNDERSCORE, [], [Do we need a leading _ 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/cyrus-sasl/, dev-libs/cyrus-sasl/files/

2021-11-22 Thread Sam James
commit: 6d0711ff5c0e069faa6aed313e975b8800e48a65
Author: Sam James  gentoo  org>
AuthorDate: Mon Nov 22 09:51:41 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Nov 22 09:51:41 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d0711ff

dev-libs/cyrus-sasl: fix autoconf 2.71 compatibility (breaks gssapi detection)

Closes: https://bugs.gentoo.org/825342
Signed-off-by: Sam James  gentoo.org>

 1.27-r5.ebuild => cyrus-sasl-2.1.27-r6.ebuild} |  1 +
 .../files/cyrus-sasl-2.1.27-autoconf-2.71.patch| 45 ++
 2 files changed, 46 insertions(+)

diff --git a/dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r5.ebuild 
b/dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r6.ebuild
similarity index 99%
rename from dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r5.ebuild
rename to dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r6.ebuild
index 1a07aa6eace3..3f20ae795401 100644
--- a/dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r5.ebuild
+++ b/dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r6.ebuild
@@ -58,6 +58,7 @@ PATCHES=(
"${FILESDIR}/${PN}-2.1.27-CVE-2019-19906.patch"
"${FILESDIR}/${PN}-2.1.27-slibtool.patch"

"${FILESDIR}/${PN}-2.1.27-db_gdbm-fix-gdbm_errno-overlay-from-gdbm_close.patch"
+   "${FILESDIR}/${PN}-2.1.27-autoconf-2.71.patch"
 )
 
 pkg_setup() {

diff --git a/dev-libs/cyrus-sasl/files/cyrus-sasl-2.1.27-autoconf-2.71.patch 
b/dev-libs/cyrus-sasl/files/cyrus-sasl-2.1.27-autoconf-2.71.patch
new file mode 100644
index ..b346cd7e5002
--- /dev/null
+++ b/dev-libs/cyrus-sasl/files/cyrus-sasl-2.1.27-autoconf-2.71.patch
@@ -0,0 +1,45 @@
+https://bugs.gentoo.org/825342
+
+commit 5664c3f535289ce9efb513a2897991b5c436bb44
+Author: Pavel Raiskup 
+Date:   Thu Apr 1 17:26:28 2021 +0200
+
+configure.ac: properly quote macro arguments
+
+Autoconf 2.70+ is more picky about the quotation (even though with
+previous versions the arguments should have been quoted, too).  When we
+don't quote macros inside the AC_CACHE_VAL macro - some of the Autoconf
+initialization is wrongly ordered in ./configure script and we keep
+seeing bugs like:
+
+./configure: line 2165: ac_fn_c_try_run: command not found
+
+Original report: https://bugzilla.redhat.com/1943013
+
+Signed-off-by: Pavel Raiskup 
+
+--- a/configure.ac
 b/configure.ac
+@@ -213,7 +213,8 @@ if test $sasl_cv_uscore = yes; then
+   AC_MSG_CHECKING(whether dlsym adds the underscore for us)
+   cmu_save_LIBS="$LIBS"
+   LIBS="$LIBS $SASL_DL_LIB"
+-  AC_CACHE_VAL(sasl_cv_dlsym_adds_uscore,AC_TRY_RUN( [
++  AC_CACHE_VAL([sasl_cv_dlsym_adds_uscore],
++   [AC_TRY_RUN([
+ #include 
+ #include 
+ #include 
+@@ -221,9 +222,9 @@ void foo() { int i=0;}
+ int main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
+ if(self) { ptr1=dlsym(self,"foo"); ptr2=dlsym(self,"_foo");
+ if(ptr1 && !ptr2) exit(0); } exit(1); } 
+-], [sasl_cv_dlsym_adds_uscore=yes], sasl_cv_dlsym_adds_uscore=no
+-  AC_DEFINE(DLSYM_NEEDS_UNDERSCORE, [], [Do we need a leading _ for 
dlsym?]),
+-  AC_MSG_WARN(cross-compiler, we'll do our best)))
++], [sasl_cv_dlsym_adds_uscore=yes], [sasl_cv_dlsym_adds_uscore=no
++  AC_DEFINE(DLSYM_NEEDS_UNDERSCORE, [], [Do we need a leading _ for 
dlsym?])],
++  [AC_MSG_WARN(cross-compiler, we'll do our best)])])
+   LIBS="$cmu_save_LIBS"
+   AC_MSG_RESULT($sasl_cv_dlsym_adds_uscore)
+ 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/cyrus-sasl/, dev-libs/cyrus-sasl/files/

2021-03-16 Thread Sam James
commit: ac8b393cb1ff7ca80be582820d2fd63c320c43c4
Author: Sam James  gentoo  org>
AuthorDate: Tue Mar 16 22:13:48 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Mar 16 22:13:48 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac8b393c

dev-libs/cyrus-sasl: fix build with slibtool

Thanks-to: orbea  riseup.net>
Closes: https://bugs.gentoo.org/775875
Signed-off-by: Sam James  gentoo.org>

 dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r4.ebuild|  1 +
 .../cyrus-sasl/files/cyrus-sasl-2.1.27-slibtool.patch  | 18 ++
 2 files changed, 19 insertions(+)

diff --git a/dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r4.ebuild 
b/dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r4.ebuild
index 500aa56870b..32fdde1ac70 100644
--- a/dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r4.ebuild
+++ b/dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r4.ebuild
@@ -57,6 +57,7 @@ PATCHES=(
"${FILESDIR}/${PN}-2.1.27-doc_build_fix.patch"
"${FILESDIR}/${PN}-2.1.27-memmem.patch"
"${FILESDIR}/${PN}-2.1.27-CVE-2019-19906.patch"
+   "${FILESDIR}/${PN}-2.1.27-slibtool.patch"
 )
 
 pkg_setup() {

diff --git a/dev-libs/cyrus-sasl/files/cyrus-sasl-2.1.27-slibtool.patch 
b/dev-libs/cyrus-sasl/files/cyrus-sasl-2.1.27-slibtool.patch
new file mode 100644
index 000..81198cb87f0
--- /dev/null
+++ b/dev-libs/cyrus-sasl/files/cyrus-sasl-2.1.27-slibtool.patch
@@ -0,0 +1,18 @@
+https://github.com/cyrusimap/cyrus-sasl/pull/623
+https://bugs.gentoo.org/775875
+
+From 5b8075eeba8d0334573689450b07610c176a2618 Mon Sep 17 00:00:00 2001
+From: orbea 
+Date: Wed, 9 Sep 2020 07:29:38 -0700
+Subject: [PATCH] common: Define the missing crypto_compat_version version.
+
+--- a/common/Makefile.am
 b/common/Makefile.am
+@@ -46,6 +46,7 @@
+ # See 
+ # CURRENT:REVISION:AGE
+ plugin_common_version = 3:0:0
++crypto_compat_version = 0:0:0
+ 
+ AM_CPPFLAGS=-fPIC -I$(top_srcdir)/include -I$(top_builddir)/include
+ 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/cyrus-sasl/, dev-libs/cyrus-sasl/files/

2019-12-23 Thread Thomas Deutschmann
commit: ec41e92e4aec19aa605f5d410ba06cc86e7b48f0
Author: Thomas Deutschmann  gentoo  org>
AuthorDate: Mon Dec 23 21:34:38 2019 +
Commit: Thomas Deutschmann  gentoo  org>
CommitDate: Mon Dec 23 21:34:54 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec41e92e

dev-libs/cyrus-sasl: fix CVE-2019-19906

Bug: https://bugs.gentoo.org/703628
Package-Manager: Portage-2.3.82, Repoman-2.3.20
Signed-off-by: Thomas Deutschmann  gentoo.org>

 dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r3.ebuild| 259 +
 .../files/cyrus-sasl-2.1.27-CVE-2019-19906.patch   |  20 ++
 2 files changed, 279 insertions(+)

diff --git a/dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r3.ebuild 
b/dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r3.ebuild
new file mode 100644
index 000..25c41df746a
--- /dev/null
+++ b/dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r3.ebuild
@@ -0,0 +1,259 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit flag-o-matic multilib multilib-minimal autotools pam java-pkg-opt-2 
db-use systemd eapi7-ver
+
+SASLAUTHD_CONF_VER="2.1.26"
+
+DESCRIPTION="The Cyrus SASL (Simple Authentication and Security Layer)"
+HOMEPAGE="https://www.cyrusimap.org/sasl/;
+#SRC_URI="ftp://ftp.cyrusimap.org/cyrus-sasl/${P}.tar.gz;
+SRC_URI="https://github.com/cyrusimap/${PN}/releases/download/${P}/${P}.tar.gz;
+
+LICENSE="BSD-with-attribution"
+SLOT="2"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="authdaemond berkdb gdbm kerberos ldapdb libressl openldap mysql pam 
postgres sample selinux sqlite srp ssl static-libs urandom"
+
+CDEPEND="
+   net-mail/mailbase
+   authdaemond? ( || ( net-mail/courier-imap mail-mta/courier ) )
+   berkdb? ( >=sys-libs/db-4.8.30-r1:=[${MULTILIB_USEDEP}] )
+   gdbm? ( >=sys-libs/gdbm-1.10-r1:=[${MULTILIB_USEDEP}] )
+   kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )
+   openldap? ( >=net-nds/openldap-2.4.38-r1[${MULTILIB_USEDEP}] )
+   mysql? ( dev-db/mysql-connector-c:0=[${MULTILIB_USEDEP}] )
+   pam? ( >=sys-libs/pam-0-r1[${MULTILIB_USEDEP}] )
+   postgres? ( dev-db/postgresql:* )
+   sqlite? ( >=dev-db/sqlite-3.8.2:3[${MULTILIB_USEDEP}] )
+   ssl? (
+   !libressl? ( 
>=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}] )
+   libressl? ( dev-libs/libressl:=[${MULTILIB_USEDEP}] )
+   )
+   java? ( >=virtual/jdk-1.6:= )"
+
+REQUIRED_USE="ldapdb? ( openldap )"
+
+RDEPEND="
+   ${CDEPEND}
+   selinux? ( sec-policy/selinux-sasl )"
+
+DEPEND="${CDEPEND}"
+
+MULTILIB_WRAPPED_HEADERS=(
+   /usr/include/sasl/md5global.h
+)
+
+PATCHES=(
+   "${FILESDIR}/${PN}-2.1.27-avoid_pic_overwrite.patch"
+   "${FILESDIR}/${PN}-2.1.27-autotools_fixes.patch"
+   "${FILESDIR}/${PN}-2.1.27-as_needed.patch"
+   "${FILESDIR}/${PN}-2.1.25-auxprop.patch"
+   "${FILESDIR}/${PN}-2.1.27-gss_c_nt_hostbased_service.patch"
+   "${FILESDIR}/${PN}-2.1.26-missing-size_t.patch"
+   "${FILESDIR}/${PN}-2.1.27-doc_build_fix.patch"
+   "${FILESDIR}/${PN}-2.1.27-memmem.patch"
+   "${FILESDIR}/${PN}-2.1.27-CVE-2019-19906.patch"
+)
+
+pkg_setup() {
+   java-pkg-opt-2_pkg_setup
+}
+
+src_prepare() {
+   default
+
+   # Get rid of the -R switch (runpath_switch for Sun)
+   # >=gcc-4.6 errors out with unknown option
+   sed -i -e '/LIB_SQLITE.*-R/s/ -R[^"]*//' \
+   configure.ac || die
+
+   # Use plugindir for sasldir
+   sed -i '/^sasldir =/s:=.*:= $(plugindir):' \
+   "${S}"/plugins/Makefile.{am,in} || die "sed failed"
+
+   # #486740 #468556
+   sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:g' \
+   -e 's:AC_CONFIG_MACRO_DIR:AC_CONFIG_MACRO_DIRS:g' \
+   configure.ac || die
+
+   eautoreconf
+}
+
+src_configure() {
+   append-flags -fno-strict-aliasing
+   if [[ ${CHOST} == *-solaris* ]] ; then
+   # getpassphrase is defined in /usr/include/stdlib.h
+   append-cppflags -DHAVE_GETPASSPHRASE
+   else
+   # this horrendously breaks things on Solaris
+   append-cppflags -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED 
-D_BSD_SOURCE -DLDAP_DEPRECATED
+   fi
+
+   multilib-minimal_src_configure
+}
+
+multilib_src_configure() {
+   # Java support.
+   multilib_is_native_abi && use java && export JAVAC="${JAVAC} 
${JAVACFLAGS}"
+
+   local myeconfargs=(
+   --enable-login
+   --enable-ntlm
+   --enable-auth-sasldb
+   --disable-cmulocal
+   --disable-krb4
+   --disable-macos-framework
+   --enable-otp
+   --without-sqlite
+   --with-saslauthd="${EPREFIX}"/run/saslauthd
+   

[gentoo-commits] repo/gentoo:master commit in: dev-libs/cyrus-sasl/, dev-libs/cyrus-sasl/files/

2019-01-01 Thread Lars Wendler
commit: 2f807113037587cd4572a79022313e7f66858e4e
Author: Lars Wendler  gentoo  org>
AuthorDate: Tue Nov 20 10:58:18 2018 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Tue Jan  1 16:05:46 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f807113

dev-libs/cyrus-sasl: Bump to version 2.1.27

Signed-off-by: Lars Wendler  gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/10454
Closes: https://bugs.gentoo.org/592528
Signed-off-by: Lars Wendler  gentoo.org>

 dev-libs/cyrus-sasl/Manifest   |   1 +
 dev-libs/cyrus-sasl/cyrus-sasl-2.1.27.ebuild   | 251 +
 .../files/cyrus-sasl-2.1.27-as_needed.patch|  25 ++
 .../files/cyrus-sasl-2.1.27-autotools_fixes.patch  |  31 +++
 .../cyrus-sasl-2.1.27-avoid_pic_overwrite.patch|  17 ++
 .../files/cyrus-sasl-2.1.27-doc_build_fix.patch|  11 +
 ...us-sasl-2.1.27-gss_c_nt_hostbased_service.patch |  16 ++
 7 files changed, 352 insertions(+)

diff --git a/dev-libs/cyrus-sasl/Manifest b/dev-libs/cyrus-sasl/Manifest
index 2d6baa82c81..5a11cc2bfeb 100644
--- a/dev-libs/cyrus-sasl/Manifest
+++ b/dev-libs/cyrus-sasl/Manifest
@@ -1 +1,2 @@
 DIST cyrus-sasl-2.1.26.tar.gz 5220231 BLAKE2B 
08fe5c1624e7cccb4b5e562f6987fddd047e1221b671cedbbb684d5a2f39e09a438ad14ffcedb5f398c203ca0b6e23574106c87f43a632028d50a69619c54970
 SHA512 
78819cb9bb38bea4537d6770d309df09ff44a67526177609d3e1257ff4334d2b5e5131d5a1e4dea7430d8db1918ea9d171f0dee38b5e8337f4b72ed068f0
+DIST cyrus-sasl-2.1.27.tar.gz 4111249 BLAKE2B 
82c9acce8534521ce5c5806f093e927f1854b4bc4b83ea7db1b32ceaa811adc1a5b6fc16d03233d729194cd603836f6e58de67f915abab2cb74561a80d03f5a8
 SHA512 
d11549a99b3b06af79fc62d5478dba3305d7e7cc0824f4b91f0d2638daafbe940623eab235f85af9be38dcf5d42fc131db531c177040a85187aee5096b8df63b

diff --git a/dev-libs/cyrus-sasl/cyrus-sasl-2.1.27.ebuild 
b/dev-libs/cyrus-sasl/cyrus-sasl-2.1.27.ebuild
new file mode 100644
index 000..09fe5b51147
--- /dev/null
+++ b/dev-libs/cyrus-sasl/cyrus-sasl-2.1.27.ebuild
@@ -0,0 +1,251 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit flag-o-matic multilib multilib-minimal autotools pam java-pkg-opt-2 
db-use systemd eapi7-ver
+
+SASLAUTHD_CONF_VER="2.1.26"
+
+DESCRIPTION="The Cyrus SASL (Simple Authentication and Security Layer)"
+HOMEPAGE="https://www.cyrusimap.org/sasl/;
+SRC_URI="ftp://ftp.cyrusimap.org/cyrus-sasl/${P}.tar.gz;
+
+LICENSE="BSD-with-attribution"
+SLOT="2"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh 
~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="authdaemond berkdb gdbm kerberos ldapdb libressl openldap mysql pam 
postgres sample selinux sqlite srp ssl static-libs urandom"
+
+CDEPEND="
+   net-mail/mailbase
+   authdaemond? ( || ( net-mail/courier-imap mail-mta/courier ) )
+   berkdb? ( >=sys-libs/db-4.8.30-r1:=[${MULTILIB_USEDEP}] )
+   gdbm? ( >=sys-libs/gdbm-1.10-r1:=[${MULTILIB_USEDEP}] )
+   kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )
+   openldap? ( >=net-nds/openldap-2.4.38-r1[${MULTILIB_USEDEP}] )
+   mysql? ( virtual/mysql )
+   pam? ( >=virtual/pam-0-r1[${MULTILIB_USEDEP}] )
+   postgres? ( dev-db/postgresql:* )
+   sqlite? ( >=dev-db/sqlite-3.8.2:3[${MULTILIB_USEDEP}] )
+   ssl? (
+   !libressl? ( 
>=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}] )
+   libressl? ( dev-libs/libressl:=[${MULTILIB_USEDEP}] )
+   )
+   java? ( >=virtual/jdk-1.6:= )"
+
+RDEPEND="
+   ${CDEPEND}
+   selinux? ( sec-policy/selinux-sasl )"
+
+DEPEND="${CDEPEND}
+   dev-perl/Pod-POM-View-Restructured
+   dev-python/sphinx"
+
+MULTILIB_WRAPPED_HEADERS=(
+   /usr/include/sasl/md5global.h
+)
+
+PATCHES=(
+   "${FILESDIR}/${PN}-2.1.27-avoid_pic_overwrite.patch"
+   "${FILESDIR}/${PN}-2.1.27-autotools_fixes.patch"
+   "${FILESDIR}/${PN}-2.1.27-as_needed.patch"
+   "${FILESDIR}/${PN}-2.1.25-auxprop.patch"
+   "${FILESDIR}/${PN}-2.1.27-gss_c_nt_hostbased_service.patch"
+   "${FILESDIR}/${PN}-2.1.26-missing-size_t.patch"
+   "${FILESDIR}/${PN}-2.1.27-doc_build_fix.patch"
+)
+
+pkg_setup() {
+   java-pkg-opt-2_pkg_setup
+}
+
+src_prepare() {
+   default
+
+   # Get rid of the -R switch (runpath_switch for Sun)
+   # >=gcc-4.6 errors out with unknown option
+   sed -i -e '/LIB_SQLITE.*-R/s/ -R[^"]*//' \
+   configure.ac || die
+
+   # Use plugindir for sasldir
+   sed -i '/^sasldir =/s:=.*:= $(plugindir):' \
+   "${S}"/plugins/Makefile.{am,in} || die "sed failed"
+
+   # #486740 #468556
+   sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:g' \
+   -e 's:AC_CONFIG_MACRO_DIR:AC_CONFIG_MACRO_DIRS:g' \
+   configure.ac || die
+
+   

[gentoo-commits] repo/gentoo:master commit in: dev-libs/cyrus-sasl/, dev-libs/cyrus-sasl/files/

2018-10-24 Thread Lars Wendler
commit: ab9cb2adf29b582afb8541b4ceb5a3185c82ba30
Author: Lars Wendler  gentoo  org>
AuthorDate: Wed Oct 24 12:30:31 2018 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Wed Oct 24 12:30:31 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab9cb2ad

dev-libs/cyrus-sasl: Fixed build with openssl-1.1

Bumped to EAPI-6 and did some ebuild cleanup.

Closes: https://bugs.gentoo.org/592528
Signed-off-by: Lars Wendler  gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

 dev-libs/cyrus-sasl/cyrus-sasl-2.1.26-r11.ebuild   | 111 ---
 ...us-sasl-2.1.23-gss_c_nt_hostbased_service.patch |   4 +-
 .../files/cyrus-sasl-2.1.25-fix_heimdal.patch  |   8 +-
 .../files/cyrus-sasl-2.1.25-missing_header.patch   |   4 +-
 .../files/cyrus-sasl-2.1.25-service_keytabs.patch  |   8 +-
 ...us-sasl-2.1.26-fix_dovecot_authentication.patch |   8 +-
 .../files/cyrus-sasl-2.1.26-missing-size_t.patch   |   4 +-
 .../files/cyrus-sasl-2.1.26-openssl-1.1.patch  | 353 +
 8 files changed, 425 insertions(+), 75 deletions(-)

diff --git a/dev-libs/cyrus-sasl/cyrus-sasl-2.1.26-r11.ebuild 
b/dev-libs/cyrus-sasl/cyrus-sasl-2.1.26-r11.ebuild
index 582c8463da1..f7351ba 100644
--- a/dev-libs/cyrus-sasl/cyrus-sasl-2.1.26-r11.ebuild
+++ b/dev-libs/cyrus-sasl/cyrus-sasl-2.1.26-r11.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=6
 
-inherit eutils flag-o-matic multilib multilib-minimal autotools pam 
java-pkg-opt-2 db-use systemd
+inherit flag-o-matic multilib multilib-minimal autotools pam java-pkg-opt-2 
db-use systemd
 
 SASLAUTHD_CONF_VER="2.1.26"
 
@@ -58,6 +58,7 @@ PATCHES=(
"${FILESDIR}/${PN}-2.1.26-send-imap-logout.patch"
"${FILESDIR}/${PN}-2.1.26-canonuser-ldapdb-garbage-in-out-buffer.patch"
"${FILESDIR}/${PN}-2.1.26-fix_dovecot_authentication.patch"
+   "${FILESDIR}/${PN}-2.1.26-openssl-1.1.patch" #592528
 )
 
 pkg_setup() {
@@ -65,7 +66,7 @@ pkg_setup() {
 }
 
 src_prepare() {
-   epatch "${PATCHES[@]}"
+   default
 
# Get rid of the -R switch (runpath_switch for Sun)
# >=gcc-4.6 errors out with unknown option
@@ -103,73 +104,66 @@ multilib_src_configure() {
# Java support.
multilib_is_native_abi && use java && export JAVAC="${JAVAC} 
${JAVACFLAGS}"
 
-   local myconf=()
-
-   # Add authdaemond support (bug #56523).
-   if use authdaemond ; then
-   myconf+=( 
--with-authdaemond="${EPREFIX}"/var/lib/courier/authdaemon/socket )
-   fi
-
-   # Fix for bug #59634.
-   if ! use ssl ; then
-   myconf+=( --without-des )
-   fi
+   local myeconfargs=(
+   --enable-login
+   --enable-ntlm
+   --enable-auth-sasldb
+   --disable-cmulocal
+   --disable-krb4
+   --disable-macos-framework
+   --enable-otp
+   --without-sqlite
+   --with-saslauthd="${EPREFIX}"/run/saslauthd
+   --with-pwcheck="${EPREFIX}"/run/saslauthd
+   --with-configdir="${EPREFIX}"/etc/sasl2
+   --with-plugindir="${EPREFIX}"/usr/$(get_libdir)/sasl2
+   --with-dbpath="${EPREFIX}"/etc/sasl2/sasldb2
+   $(use_with ssl openssl)
+   $(use_with pam)
+   $(use_with openldap ldap)
+   $(use_enable ldapdb)
+   $(multilib_native_use_enable sample)
+   $(use_enable kerberos gssapi)
+   $(multilib_native_use_enable java)
+   $(multilib_native_use_with java javahome ${JAVA_HOME})
+   $(multilib_native_use_with mysql mysql "${EPREFIX}"/usr)
+   $(multilib_native_use_with postgres pgsql)
+   $(use_with sqlite sqlite3 "${EPREFIX}"/usr/$(get_libdir))
+   $(use_enable srp)
+   $(use_enable static-libs static)
+
+   # Add authdaemond support (bug #56523).
+   $(usex authdaemond 
--with-authdaemond="${EPREFIX}"/var/lib/courier/authdaemon/socket '')
+
+   # Fix for bug #59634.
+   $(usex ssl '' --without-des)
+
+   # Use /dev/urandom instead of /dev/random (bug #46038).
+   $(usex urandom --with-devrandom=/dev/urandom '')
+   )
 
if use sqlite || { multilib_is_native_abi && { use mysql || use 
postgres; }; } ; then
-   myconf+=( --enable-sql )
+   myeconfargs+=( --enable-sql )
else
-   myconf+=( --disable-sql )
+   myeconfargs+=( --disable-sql )
fi
 
# Default to GDBM if both 'gdbm' and 'berkdb' are present.
if use gdbm ; then
einfo "Building with GNU DB as database backend for your SASLdb"
-   myconf+=( --with-dblib=gdbm )
+   myeconfargs+=(