dev-util/subversion ebuilds through version 1.1.2-r1 work fine on the same machine. (~x86, with subversion in package.unmask) But version 1.1.3 fails to emerge. If dev-libs/apr is installed, the emerge blocks, like this: [blocks B ] dev-libs/apr (from pkg dev-util/subversion-1.1.3) [ebuild U ] dev-util/subversion-1.1.3 [1.1.2-r1] If dev-libs/apr is not installed, the emerge fails like this: #configure: Apache Portable Runtime (APR) library configuration #checking for APR... configure: error: the --with-apr parameter is incorrect. It #must specify an install prefix, a build directory, or an apr-config file. # emerge info Portage 2.0.51-r13 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.2.5-r2,glibc-2.3.4.20041102-r0, 2.6.10 i686) ================================================================= System uname: 2.6.10 i686 Unknown CPU Typ Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4,dev-lang/python-2.2.3-r5,dev-lang/python-2.4 [2.4 (#1, Jan 6 2005, 14:34:42)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4, 2.2.3-r5, 2.4 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.8.5-r2, 1.5, 1.6.3, 1.7.9, 1.4_p6, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://mirror.datapipe.net/gentoo http://128.213.5.34/gentoo/ http://mirror.datapipe.net/gentoo" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://bonnie.ripton.net/gentoo-portage" USE="3dnow X aalib alsa apache2 apm avi berkdb bitmap-fonts bonobo cdr crypt cscope cups dvd encode esd f77 fam flac font-server foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib ipv6 jack java jpeg junit kde libg++ libwww mad maildir mikmod mmx motif mozilla mozsvg mpeg mysql ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline ruby samba scanner sdl slang speex spell sse ssl svg svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts x86 xml xml2 xmms xv zlib" Unset: LDFLAGS # cat /var/tmp/portage/subversion-1.1.3/work/subversion-1.1.3/config.log This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by subversion configure 1.1.3, which was generated by GNU Autoconf 2.59. Invocation command line was $ ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-apxs=/usr/sbin/apxs2 --with-apr=/usr --with-apr-util=/usr --enable-javahl --without-jikes --with-swig --with-ssl --with-berkeley-db --with-python --with-neon=/usr --disable-experimental-libtool --disable-mod-activation ## --------- ## ## Platform. ## ## --------- ## hostname = al uname -m = i686 uname -r = 2.6.10 uname -s = Linux uname -v = #1 Thu Dec 30 22:47:46 EST 2004 /usr/bin/uname -p = Unknown CPU Typ /bin/uname -X = unknown /bin/arch = i686 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/lib/ccache/bin PATH: /sbin PATH: /usr/sbin PATH: /usr/lib/portage/bin PATH: /bin PATH: /usr/bin PATH: /opt/bin PATH: /usr/i686-pc-linux-gnu/gcc-bin/3.4.3 PATH: /opt/Acrobat5 PATH: /opt/ghc/bin PATH: /usr/X11R6/bin PATH: /opt/sun-jdk-1.4.2.06/bin PATH: /opt/sun-jdk-1.4.2.06/jre/bin PATH: /opt/sun-jdk-1.4.2.06/jre/javaws PATH: /usr/qt/3/bin PATH: /usr/kde/3.3/sbin PATH: /usr/kde/3.3/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:1869: checking for i686-pc-linux-gnu-gcc configure:1885: found /usr/lib/ccache/bin/i686-pc-linux-gnu-gcc configure:1895: result: i686-pc-linux-gnu-gcc configure:2177: checking for C compiler version configure:2180: i686-pc-linux-gnu-gcc --version </dev/null >&5 i686-pc-linux-gnu-gcc (GCC) 3.4.3 20050110 (Gentoo Linux 3.4.3.20050110, ssp-3.4.3.20050110-0, pie-8.7.7) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:2183: $? = 0 configure:2185: i686-pc-linux-gnu-gcc -v </dev/null >&5 Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/specs Configured with: /var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4.3 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include/g++-v3 --host=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-shared --enable-threads=posix --disable-libgcj --enable-languages=c,c++,f77 Thread model: posix gcc version 3.4.3 20050110 (Gentoo Linux 3.4.3.20050110, ssp-3.4.3.20050110-0, pie-8.7.7) configure:2188: $? = 0 configure:2190: i686-pc-linux-gnu-gcc -V </dev/null >&5 i686-pc-linux-gnu-gcc: `-V' option must have argument configure:2193: $? = 1 configure:2216: checking for C compiler default output file name configure:2219: i686-pc-linux-gnu-gcc -march=athlon-xp -O2 -pipe conftest.c >&5 configure:2222: $? = 0 configure:2268: result: a.out configure:2273: checking whether the C compiler works configure:2279: ./a.out configure:2282: $? = 0 configure:2299: result: yes configure:2306: checking whether we are cross compiling configure:2308: result: no configure:2311: checking for suffix of executables configure:2313: i686-pc-linux-gnu-gcc -o conftest -march=athlon-xp -O2 -pipe conftest.c >&5 configure:2316: $? = 0 configure:2341: result: configure:2347: checking for suffix of object files configure:2368: i686-pc-linux-gnu-gcc -c -march=athlon-xp -O2 -pipe conftest.c >&5 configure:2371: $? = 0 configure:2393: result: o configure:2397: checking whether we are using the GNU C compiler configure:2421: i686-pc-linux-gnu-gcc -c -march=athlon-xp -O2 -pipe conftest.c >&5 configure:2427: $? = 0 configure:2431: test -z || test ! -s conftest.err configure:2434: $? = 0 configure:2437: test -s conftest.o configure:2440: $? = 0 configure:2453: result: yes configure:2459: checking whether i686-pc-linux-gnu-gcc accepts -g configure:2480: i686-pc-linux-gnu-gcc -c -g conftest.c >&5 configure:2486: $? = 0 configure:2490: test -z || test ! -s conftest.err configure:2493: $? = 0 configure:2496: test -s conftest.o configure:2499: $? = 0 configure:2510: result: yes configure:2527: checking for i686-pc-linux-gnu-gcc option to accept ANSI C configure:2597: i686-pc-linux-gnu-gcc -c -march=athlon-xp -O2 -pipe conftest.c >&5 configure:2603: $? = 0 configure:2607: test -z || test ! -s conftest.err configure:2610: $? = 0 configure:2613: test -s conftest.o configure:2616: $? = 0 configure:2634: result: none needed configure:2652: i686-pc-linux-gnu-gcc -c -march=athlon-xp -O2 -pipe conftest.c >&5 conftest.c:2: error: parse error before "me" configure:2658: $? = 1 configure: failed program was: | #ifndef __cplusplus | choke me | #endif configure:2797: checking how to run the C preprocessor configure:2832: i686-pc-linux-gnu-gcc -E conftest.c configure:2838: $? = 0 configure:2870: i686-pc-linux-gnu-gcc -E conftest.c conftest.c:9:28: ac_nonexistent.h: No such file or directory configure:2876: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "subversion" | #define PACKAGE_TARNAME "subversion" | #define PACKAGE_VERSION " 1.1.3" | #define PACKAGE_STRING "subversion 1.1.3" | #define PACKAGE_BUGREPORT "http://subversion.tigris.org/" | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:2915: result: i686-pc-linux-gnu-gcc -E configure:2939: i686-pc-linux-gnu-gcc -E conftest.c configure:2945: $? = 0 configure:2977: i686-pc-linux-gnu-gcc -E conftest.c conftest.c:9:28: ac_nonexistent.h: No such file or directory configure:2983: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "subversion" | #define PACKAGE_TARNAME "subversion" | #define PACKAGE_VERSION " 1.1.3" | #define PACKAGE_STRING "subversion 1.1.3" | #define PACKAGE_BUGREPORT "http://subversion.tigris.org/" | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:3027: checking for egrep configure:3037: result: grep -E configure:3043: checking whether ln -s works configure:3047: result: yes configure:3091: Apache Portable Runtime (APR) library configuration configure:3119: checking for APR configure:3150: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build d irectory, or an apr-config file. ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_c_compiler_gnu=yes ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-march=athlon-xp -O2 -pipe' ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_CXXFLAGS_set=set ac_cv_env_CXXFLAGS_value='-march=athlon-xp -O2 -pipe' ac_cv_env_CXX_set= ac_cv_env_CXX_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set=set ac_cv_env_host_alias_value=i686-pc-linux-gnu ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_exeext= ac_cv_objext=o ac_cv_prog_CC=i686-pc-linux-gnu-gcc ac_cv_prog_CPP='i686-pc-linux-gnu-gcc -E' ac_cv_prog_cc_g=yes ac_cv_prog_cc_stdc= ac_cv_prog_egrep='grep -E' ## ----------------- ## ## Output variables. ## ## ----------------- ## APACHE_INCLUDES='' APACHE_LIBEXECDIR='' APACHE_TARGET='' APXS='' BDB_TEST_DEPS='' BDB_TEST_PROGRAMS='' BINNAME='' BUILD_APACHE_RULE='' BUILD_RULES='' CC='i686-pc-linux-gnu-gcc' CFLAGS='-march=athlon-xp -O2 -pipe' CPP='i686-pc-linux-gnu-gcc -E' CPPFLAGS='' CXX='' CXXFLAGS='-march=athlon-xp -O2 -pipe' DEFS='' ECHO='echo' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='grep -E' EXEEXT='' GETTEXT_CODESET='' INCLUDE_OUTPUTS='' INSTALL='/var/tmp/portage/subversion-1.1.3/work/subversion-1.1.3/ac-helpers/install-sh -c' INSTALL_APACHE_RULE='' INSTALL_EXTRA_JAVAHL_LIB='' INSTALL_INFO='' INSTALL_IT='' INSTALL_RULES='' INSTALL_STATIC_RULES='' JAR='' JAVA='' JAVAC='/opt/sun-jdk-1.4.2.06/bin/javac' JAVAC_FLAGS='' JAVAH='' JAVAHL_TESTS_TARGET='' JAVA_CLASSPATH='' JDK='' JNI_INCLUDES='' LDFLAGS='' LIBOBJS='' LIBS='' LIBTOOL='' LN_S='ln -s' LTLIBOBJS='' LT_CXX_LIBADD='' LT_LDFLAGS='' LT_NO_UNDEFINED='' MAKEINFO='' MKDIR='/var/tmp/portage/subversion-1.1.3/work/subversion-1.1.3/ac-helpers/install-sh -c -d' MOD_ACTIVATION='' MSGFMT='' MSGMERGE='' NEON_LIBS='' NO_GETTEXT_CODESET='' OBJEXT='o' PACKAGE_BUGREPORT='http://subversion.tigris.org/' PACKAGE_NAME='subversion' PACKAGE_STRING='subversion 1.1.3' PACKAGE_TARNAME='subversion' PACKAGE_VERSION=' 1.1.3' PATH_SEPARATOR=':' PERL='' PYTHON2='' PYTHON='' RANLIB='' SHELL='/bin/sh' STRIP='' SVN_APRUTIL_EXPORT_LIBS='' SVN_APRUTIL_INCLUDES='' SVN_APRUTIL_LIBS='' SVN_APRUTIL_PREFIX='' SVN_APR_EXPORT_LIBS='' SVN_APR_INCLUDES='' SVN_APR_LIBS='' SVN_APR_PREFIX='' SVN_APR_SHLIB_PATH_VAR='' SVN_BINDIR='' SVN_EXTRA_INCLUDES='-I$(top_srcdir)/subversion/include -I$(top_builddir)/subversion' SVN_EXTRA_LIBS='' SVN_FS_LIB_DEPS='' SVN_FS_LIB_LINK='' SVN_LIBTOOL='' SVN_NEON_INCLUDES='' SVN_RA_LIB_DEPS='' SVN_RA_LIB_LINK='' SVN_SUBDIRS='' SWIG='' SWIG_CLEAN_RULES='' SWIG_JAVA_COMPILE='' SWIG_JAVA_INCLUDES='' SWIG_JAVA_LINK='' SWIG_LDFLAGS='' SWIG_LIBSWIG_DIR='' SWIG_NORUNTIME_FLAG='' SWIG_PL_INCLUDES='' SWIG_PY_COMPILE='' SWIG_PY_INCLUDES='' SWIG_PY_LIBS='' SWIG_PY_LINK='' SWIG_VERSION='' XGETTEXT='' abs_builddir='/var/tmp/portage/subversion-1.1.3/work/subversion-1.1.3' abs_srcdir='/var/tmp/portage/subversion-1.1.3/work/subversion-1.1.3' ac_ct_CC='' ac_ct_CXX='' ac_ct_RANLIB='' ac_ct_STRIP='' bindir='${exec_prefix}/bin' build='' build_alias='' build_cpu='' build_os='' build_vendor='' datadir='/usr/share' docdir='' exec_prefix='NONE' host='i686-pc-linux-gnu' host_alias='i686-pc-linux-gnu' host_cpu='' host_os='' host_vendor='' includedir='${prefix}/include' infodir='/usr/share/info' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='' localstatedir='/var/lib' mandir='/usr/share/man' neon_config='' oldincludedir='/usr/include' prefix='/usr' program_transform_name='s,x,x,' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## #define PACKAGE_BUGREPORT "http://subversion.tigris.org/" #define PACKAGE_NAME "subversion" #define PACKAGE_STRING "subversion 1.1.3" #define PACKAGE_TARNAME "subversion" #define PACKAGE_VERSION " 1.1.3" configure: exit 1
When you just unmerged apr, you removed all apr implementations your system has. The problem is that the 1.1.3 version is NOT compatible with 1.1.2-r1 (which I didn't make). While I support going to an external apr/apu I did not make the -r1 ebuild, which can not work without apr. To support a new subversion version I can't use the apr-utils using ebuild. What you should do in your situation is to remerge apr/apr-utils and then merge with --nodeps.
Paul, your --nodeps workaround worked fine for me. Thanks.
Could this be documented somewhere, like in a subversion "ewarn" or something? I ran into this and I had to truck through **262** subversion bugs to find the relevant one, only to find out that there was a workaround and not a fix. Apparently "emerge kde-meta" to pull in KDE 3.4 requires subversion, so this is likely to hit a bunch of bleeding edgers like me who want KDE 3.4.
Edward. I don't know what bug you have hit, but this particular bug was caused by a masked version of subversion that was never valid. If you want to use apr, you must use the 1.1.3-r1 ebuild that does use the external apr library.
Created attachment 54127 [details] emerge info from failed subversion install
Well ... here goes ... emerge -v --nodeps subversion (1.1.3-r1) yields cd subversion/clients/cmdline && /bin/sh /var/tmp/portage/subversion-1.1.3-r1/work/subversion-1.1.3/libtool --silent --mode=link i686-pc-linux-gnu-gcc -L/var/tmp/portage/subversion-1.1.3-r1/image//usr/lib -O2 -march=i686 -pipe -fomit-frame-pointer -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -pthread -DNEON_ZLIB -DNEON_SSL -L/usr/lib -rpath /usr/lib -o svn add-cmd.o blame-cmd.o cat-cmd.o checkout-cmd.o cleanup-cmd.o commit-cmd.o copy-cmd.o delete-cmd.o diff-cmd.o export-cmd.o help-cmd.o import-cmd.o info-cmd.o log-cmd.o ls-cmd.o main.o merge-cmd.o mkdir-cmd.o move-cmd.o notify.o prompt.o propdel-cmd.o propedit-cmd.o propget-cmd.o proplist-cmd.o props.o propset-cmd.o resolved-cmd.o revert-cmd.o status-cmd.o status.o switch-cmd.o update-cmd.o util.o ../../../subversion/libsvn_client/libsvn_client-1.la ../../../subversion/libsvn_wc/libsvn_wc-1.la ../../../subversion/libsvn_ra/libsvn_ra-1.la ../../../subversion/libsvn_delta/libsvn_delta-1.la ../../../subversion/libsvn_subr/libsvn_subr-1.la /usr/lib/libaprutil-0.la -lgdbm -ldb -lexpat /usr/lib/libapr-0.la -lrt -lm -lcrypt -lnsl -lpthread -ldl -lneon -lz -lssl -lcrypto -ldl -lxml2 -lz -lpthread -lm /usr/lib/libaprutil-0.so: undefined reference to `db_create_4001' /usr/lib/libaprutil-0.so: undefined reference to `db_strerror_4001' collect2: ld returned 1 exit status distcc[15715] ERROR: compile (null) on localhost failed make: *** [subversion/clients/cmdline/svn] Error 1 !!! ERROR: dev-util/subversion-1.1.3-r1 failed. !!! Function src_compile, Line 103, Exitcode 2 !!! make of subversion failed !!! If you need support, post the topmost build error, NOT this status message. I've attached the output of "emerge info"; it's huge. In any event, I ran into essentially the same situation reported by the original poster -- a block, which I attempted to resolve by unmerging apr, and following the advice here, I attempted to fix by reinstalling apr and then doing the emerge of subversion with --nodeps.
Yeah, known bug. I'll try to create a fix for it. It's the problem of apr not specifying completely which berkeley db it should link with.
Should this bug be closed - or should a new one be opened? The comments lead into another bug, which you suggest that you're going to fix. However, I couldn't find any other reference to that bug - should one be created? I'll gladly file it, but I don't want to dupe something else if it is just hiding. Any workarounds for this - I'm trying to emerge kde 3.4.
My fix would in the first place just suggest the workaround. The "fix"/workaround is to remerge apache-2 (stable) or apr and apr-util (unstable). After that subversion should build correctly. Alternatively you could edit apu-config to have it specify the correct include dir for the used db version.