net-ftp/proftpd: unconditionally enable USE=trace, disable broken tests, bug #624570
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 15 Jul 2017 09:42:57 +0000 (10:42 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 15 Jul 2017 09:43:24 +0000 (10:43 +0100)
Reported-by: Toralf Förster
Bug: https://bugs.gentoo.org/624570
Package-Manager: Portage-2.3.6, Repoman-2.3.2

net-ftp/proftpd/files/proftpd-1.3.6-use-trace.patch [new file with mode: 0644]
net-ftp/proftpd/proftpd-1.3.6.ebuild

diff --git a/net-ftp/proftpd/files/proftpd-1.3.6-use-trace.patch b/net-ftp/proftpd/files/proftpd-1.3.6-use-trace.patch
new file mode 100644 (file)
index 0000000..c7d9184
--- /dev/null
@@ -0,0 +1,18 @@
+Make --disable-trace a build-time failure instead of link-time one.
+
+Reported-by: Toralf Förster
+Bug: https://bugs.gentoo.org/624570
+diff --git a/include/trace.h b/include/trace.h
+index f05dd0e..398e939 100644
+--- a/include/trace.h
++++ b/include/trace.h
+@@ -29,2 +29,4 @@
++#ifdef PR_USE_TRACE
++
+ #define PR_TRACE_DEFAULT_CHANNEL      "DEFAULT"
+@@ -64,2 +66,4 @@ int pr_trace_vmsg(const char *, int, const char *, va_list);
++#endif /* PR_USE_TRACE */
++
+ #endif /* PR_TRACE_H */
index 2c767eb641b57e2ee30053518a9886b164e63d9b..fffba1c6c266a1120ac44e44226ac0d031929931 100644 (file)
@@ -30,7 +30,7 @@ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd
 IUSE="acl authfile ban +caps case clamav copy ctrls deflate diskuse doc dso dynmasq exec ifsession ifversion ident ipv6
        kerberos ldap libressl linguas_bg_BG linguas_en_US linguas_fr_FR linguas_it_IT linguas_ja_JP linguas_ko_KR
        linguas_ru_RU linguas_zh_CN linguas_zh_TW log_forensic memcache msg mysql ncurses nls pam +pcre postgres qos radius
-       ratio readme rewrite selinux sftp shaper sitemisc snmp softquota sqlite ssl tcpd test trace unique_id vroot xinetd"
+       ratio readme rewrite selinux sftp shaper sitemisc snmp softquota sqlite ssl tcpd test unique_id vroot xinetd"
 # TODO: geoip
 REQUIRED_USE="ban? ( ctrls )
        msg? ( ctrls )
@@ -63,6 +63,10 @@ RDEPEND="${CDEPEND}
 
 S="${WORKDIR}/${P/_/}"
 
+PATCHES=("${FILESDIR}"/${PN}-1.3.6-use-trace.patch)
+
+RESTRICT=test # tests corrupt memory. need to be fixed upstream first
+
 in_dir() {
        pushd "${WORKDIR}/${1}" || die
        shift
@@ -218,7 +222,7 @@ src_configure() {
                $(use_enable pam auth-pam) \
                $(use_enable pcre) \
                $(use_enable test tests) \
-               $(use_enable trace) \
+               --enable-trace \
                $(use_enable userland_GNU shadow) \
                $(use_enable userland_GNU autoshadow) \
                ${c:1}