Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 607832 - dev-vcs/subversion-1.9.5 - respect EPREFIX during configure checks
Summary: dev-vcs/subversion-1.9.5 - respect EPREFIX during configure checks
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-31 17:01 UTC by Martin Mokrejš
Modified: 2019-04-29 00:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
config.log (config.log,26.75 KB, text/plain)
2017-01-31 17:03 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2017-01-31 17:01:08 UTC
It looks one test of configure does not respect EPREFIX variable:

checking for Apache module support via DSO through APXS... ./configure: line 5808: /usr/bin/apxs: No such file or directory
configure: error: no - APXS refers to an old version of Apache
                      Unable to locate /mod_dav.h

!!! Please attach the following file when seeking support:
!!! /apps/gentoo/var/tmp/portage/dev-vcs/subversion-1.9.5/work/subversion-1.9.5/config.log
 * ERROR: dev-vcs/subversion-1.9.5::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh, line  115:  Called src_configure
 *             environment, line 7686:  Called econf '--libdir=/apps/gentoo/usr/lib64' '--with-apache-libexecdir' '--with-apxs=/usr/bin/apxs' '--with-berkeley-db=db.h:/apps/gentoo/usr/include/db6.0::db-6.0' '--without-ctypesgen' '--enable-runtime-module-search' '--without-gnome-keyring' '--enable-javahl' '--with-jdk=/apps/gentoo/opt/oracle-jdk-bin-1.8.0.121' '--without-kwallet' '--enable-nls' '--without-sasl' '--with-serf' '--with-swig' '--without-junit' '--enable-local-library-preloading' '--disable-disallowing-of-undefined-references' '--with-apr=/apps/gentoo/usr/bin/apr-1-config' '--with-apr-util=/apps/gentoo/usr/bin/apu-1-config' '--disable-experimental-libtool' '--without-jikes' '--disable-mod-activation' '--disable-static'
 *        phase-helpers.sh, line  665:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  117:  Called die
 * The specific snippet of code:
 *              die "$@"
 * 
 * If you need support, post the output of `emerge --info '=dev-vcs/subversion-1.9.5::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-vcs/subversion-1.9.5::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=oracle-jdk-bin-1.8  CLASSPATH="" JAVA_HOME="/apps/gentoo/opt/oracle-jdk-bin-1.8.0.121"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER=""
and of course, the output of emerge --info =subversion-1.9.5
 * The complete build log is located at '/apps/gentoo/var/tmp/portage/dev-vcs/subversion-1.9.5/temp/build.log'.
 * The ebuild environment file is located at '/apps/gentoo/var/tmp/portage/dev-vcs/subversion-1.9.5/temp/environment'.
 * Working directory: '/apps/gentoo/var/tmp/portage/dev-vcs/subversion-1.9.5/work/subversion-1.9.5'
 * S: '/apps/gentoo/var/tmp/portage/dev-vcs/subversion-1.9.5/work/subversion-1.9.5'
Comment 1 Martin Mokrejš 2017-01-31 17:03:41 UTC
Created attachment 462016 [details]
config.log
Comment 2 Martin Mokrejš 2017-02-18 14:56:29 UTC
I hit the same again now. While looking at configure I see these lines:

 5776 HTTPD_WANTED_MMN="20051115"
 5777 
 5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache module support via DSO through APXS" >&5
 5779 $as_echo_n "checking for Apache module support via DSO through APXS... " >&6; }
 5780 
 5781 # Check whether --with-apxs was given.
 5782 if test "${with_apxs+set}" = set; then :
 5783   withval=$with_apxs;
 5784     if test "$withval" = "yes"; then
 5785       APXS=apxs
 5786     else
 5787       APXS="$withval"
 5788     fi
 5789     APXS_EXPLICIT=1
 5790 
 5791 fi
 5792 
 5793 
 5794 if test -z "$APXS"; then
 5795   for i in /usr/sbin /usr/local/apache/bin /usr/local/apache2/bin /usr/bin ; do
 5796     if test -f "$i/apxs2"; then
 5797       APXS="$i/apxs2"
 5798       break
 5799     fi
 5800     if test -f "$i/apxs"; then
 5801       APXS="$i/apxs"
 5802       break
 5803     fi
 5804   done
 5805 fi


I have no idea what to fix in configure.ac.
Comment 3 Martin Mokrejš 2017-02-20 23:30:53 UTC
This is actually a bug in some apache-related eclass causing "${APXS}" being set to /usr/bin/apxs.

This patch works for me but the upstream bug should be squashed.

--- subversion-1.9.5.ebuild.ori 2017-02-21 00:25:13.238853671 +0100
+++ subversion-1.9.5.ebuild     2017-02-21 00:26:51.502913405 +0100
@@ -221,7 +221,7 @@
        ac_cv_python_includes='-I$(PYTHON_INCLUDEDIR)' \
        econf --libdir="${EPREFIX}/usr/$(get_libdir)" \
                $(use_with apache2 apache-libexecdir) \
-               $(use_with apache2 apxs "${APXS}") \
+               $(use_with apache2 apxs "${EPREFIX}/usr/bin/apxs") \
                $(use_with berkdb berkeley-db "db.h:${EPREFIX}/usr/include/db${SVN_BDB_VERSION}::db-${SVN_BDB_VERSION}") \
                $(use_with ctypes-python ctypesgen "${EPREFIX}/usr") \
                $(use_enable dso runtime-module-search) \
Comment 4 Larry the Git Cow gentoo-dev 2019-04-29 00:11:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e0a3b6550bb33d90290f10c52d3a33966be8b5e

commit 8e0a3b6550bb33d90290f10c52d3a33966be8b5e
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2019-04-29 00:11:05 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2019-04-29 00:11:30 +0000

    dev-vcs/subversion: Provide correct path to apxs binary
    
    Thanks-to:  Martin Mokrejš <mmokrejs@gmail.com>
    Closes: https://bugs.gentoo.org/607832
    Package-Manager: Portage-2.3.65, Repoman-2.3.12
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 dev-vcs/subversion/subversion-1.10.4.ebuild | 2 +-
 dev-vcs/subversion/subversion-1.11.1.ebuild | 2 +-
 dev-vcs/subversion/subversion-1.12.0.ebuild | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)