summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-11-27 14:17:33 +0000
committerSam James <sam@gentoo.org>2021-11-27 14:17:33 +0000
commit20d362fcb2d6b9aaa734d460962b281d19497163 (patch)
treeb40c363daa96183176ea1545484edca296c31d38 /www-apache
parentwww-apache/mod_auth_tkt: add missing dies, use BDEPEND for Perl (diff)
downloadgentoo-20d362fcb2d6b9aaa734d460962b281d19497163.tar.gz
gentoo-20d362fcb2d6b9aaa734d460962b281d19497163.tar.bz2
gentoo-20d362fcb2d6b9aaa734d460962b281d19497163.zip
www-apache/mod_backtrace: use pkg-config for libunwind
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'www-apache')
-rw-r--r--www-apache/mod_backtrace/mod_backtrace-2.01-r2.ebuild (renamed from www-apache/mod_backtrace/mod_backtrace-2.01-r1.ebuild)12
1 files changed, 6 insertions, 6 deletions
diff --git a/www-apache/mod_backtrace/mod_backtrace-2.01-r1.ebuild b/www-apache/mod_backtrace/mod_backtrace-2.01-r2.ebuild
index a9e764270295..84a65ffa352c 100644
--- a/www-apache/mod_backtrace/mod_backtrace-2.01-r1.ebuild
+++ b/www-apache/mod_backtrace/mod_backtrace-2.01-r2.ebuild
@@ -3,11 +3,12 @@
EAPI=7
-inherit apache-module depend.apache
+inherit apache-module depend.apache toolchain-funcs
DESCRIPTION="Debug segmentation faults in Apache threads"
HOMEPAGE="https://emptyhammock.com/projects/httpd/diag/"
SRC_URI="https://emptyhammock.com/media/downloads/wku_bt-${PV}.zip"
+S="${WORKDIR}/wku_bt-${PV}"
LICENSE="Apache-2.0"
SLOT="0"
@@ -15,17 +16,16 @@ KEYWORDS="~amd64 ~x86"
IUSE="unwind"
RDEPEND="=www-servers/apache-2*[debug]
- unwind? ( sys-libs/libunwind )"
+ unwind? ( sys-libs/libunwind:= )"
DEPEND="${RDEPEND}"
-BDEPEND="app-arch/unzip"
+BDEPEND="app-arch/unzip
+ unwind? ( virtual/pkgconfig )"
APACHE2_MOD_CONF="10_${PN}"
APACHE2_MOD_DEFINE="BACKTRACE"
need_apache2
-S="${WORKDIR}/wku_bt-${PV}"
-
# Work around Bug #616612
pkg_setup() {
_init_apache2
@@ -35,7 +35,7 @@ pkg_setup() {
src_compile() {
APXS2_ARGS="-c ${PN}.c diag.c -ldl"
if use unwind; then
- APXS2_ARGS+=" -lunwind -DDIAG_HAVE_LIBUNWIND_BACKTRACE=1"
+ APXS2_ARGS+=" $($(tc-getPKG_CONFIG) --libs libunwind) -DDIAG_HAVE_LIBUNWIND_BACKTRACE=1"
fi
apache-module_src_compile
}