<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>77455</bug_id>
          
          <creation_ts>2005-01-10 19:09 0000</creation_ts>
          <short_desc>dev-libs/apr-0.9.5 dev-libs/apr-util-0.9.5 test request</short_desc>
          <delta_ts>2005-09-10 12:14:18 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>76457</blocked>
    
    <blocked>79435</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>vericgar@gentoo.org</reporter>
          <assigned_to>apache-bugs@gentoo.org</assigned_to>
          <cc>nes.yarug@xs4all.nl</cc>
    
    <cc>swegener@gentoo.org</cc>
    
    <cc>zmedico@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>vericgar@gentoo.org</who>
            <bug_when>2005-01-10 19:09:14 0000</bug_when>
            <thetext>APR has been split out of Apache.
net-www/apache-2.0.52-r3 (currently hardmasked) depends on dev-libs/apr-0.9.5 and dev-libs/apr-util-0.9.5.
Apache currently has the keywords: ~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86
apr and apr-util has keywords: ~x86

Archs, please test apr and apr-util.

Thanks!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>weeve@gentoo.org</who>
            <bug_when>2005-01-10 20:14:07 0000</bug_when>
            <thetext>~sparc&apos;d</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>corsair@gentoo.org</who>
            <bug_when>2005-01-11 06:50:57 0000</bug_when>
            <thetext>Added ~ppc64 to KEYWORDS.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gmsoft@gentoo.org</who>
            <bug_when>2005-01-11 07:53:23 0000</bug_when>
            <thetext>Stamped ~hppa.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>james@piolyte.net</who>
            <bug_when>2005-01-11 15:06:41 0000</bug_when>
            <thetext>AMD64 Arch Tester piolyte tested:

dev-libs/apr-0.9.5
dev-libs/apr-util-0.9.5
net-www/apache-2.0.52-r3

And is happy that they install and work.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kingtaco@gentoo.org</who>
            <bug_when>2005-01-11 15:18:42 0000</bug_when>
            <thetext>~amd64&apos;d</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hansmi@gentoo.org</who>
            <bug_when>2005-01-28 14:55:30 0000</bug_when>
            <thetext>ppc done.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vericgar@gentoo.org</who>
            <bug_when>2005-02-05 11:22:03 0000</bug_when>
            <thetext>We will be unmasking (hopefully) on Feb 12. Please KEYWORD before then. Any archs that haven&apos;t done this will have to be dropped from apache-2.0. Thanks!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kloeri@gentoo.org</who>
            <bug_when>2005-02-05 13:21:02 0000</bug_when>
            <thetext>~alpha keyworded.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>beu@gentoo.org</who>
            <bug_when>2005-02-24 04:59:07 0000</bug_when>
            <thetext>Our unmask date was pushed forward slightly and we&apos;re now hoping to unleash our stuff this saturday (26th).  arm, mips and s390 devs, please test and mark apr-0.9.5 and apr-util-0.9.5 testing.  Thanks.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vericgar@gentoo.org</who>
            <bug_when>2005-02-27 10:08:26 0000</bug_when>
            <thetext>It&apos;s time to unmask, so we are removing the following KEYWORDS from Apache-2.0.52-r3:

~arm
~mips
~s390

Please feel free to fix apr and apr-util and then re-add the keywords to apache.

Thanks!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>geoman@gentoo.org</who>
            <bug_when>2005-02-27 10:15:21 0000</bug_when>
            <thetext>If you insist on removing keywords, please make sure doing so doesn&apos;t break the tree before you commit anything.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vericgar@gentoo.org</who>
            <bug_when>2005-02-27 10:25:15 0000</bug_when>
            <thetext>This removal is to avoid breaking the tree by keeping said archs at a lower revision of apache until they are able to test apr and apr-util at which time they can re-add thier arch to the latest apache. Note that the latest apache and apr and apr-util are all currently package.mask-ed but will be shortly going into ~arch, that&apos;s why this is necessary.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>swegener@gentoo.org</who>
            <bug_when>2005-03-02 15:46:40 0000</bug_when>
            <thetext>I have an issue with apr and apr-util. During compilation of apr-util it uses
the libtool (/usr/share/apr-0/build/libtool) installed by apr. libtool uses
lockfiles and it creates the lockfiles by creating hardlinks of itself. But if
the user keeps /usr and /var/tmp in separate filesystem the linking fails and
libtool goes into an endless loop trying to create the link over and over again.

Code from apr&apos;s libtool:

&gt;    # Calculate the filename of the output object if compiler does
&gt;    # not support -o with -c
&gt;    if test &quot;$compiler_c_o&quot; = no; then
&gt;      output_obj=`$echo &quot;X$srcfile&quot; | $Xsed -e &apos;s%^.*/%%&apos; -e &apos;s%\.[^.]*$%%&apos;`.${objext}
&gt;      lockfile=&quot;$output_obj.lock&quot;
&gt;      removelist=&quot;$removelist $output_obj $lockfile&quot;
&gt;      trap &quot;$run $rm $removelist; exit $EXIT_FAILURE&quot; 1 2 15
&gt;    else
&gt;      output_obj=
&gt;      need_locks=no
&gt;      lockfile=
&gt;    fi
&gt;
&gt;    # Lock this critical section if it is needed
&gt;    # We use this script file to make the link, it avoids creating a new file
&gt;    if test &quot;$need_locks&quot; = yes; then
&gt;      until $run ln &quot;$progpath&quot; &quot;$lockfile&quot; 2&gt;/dev/null; do
&gt;        $show &quot;Waiting for $lockfile to be removed&quot;
&gt;        sleep 2
&gt;      done
&gt;    elif test &quot;$need_locks&quot; = warn; then

need_locks is yes by default and set to no if compiler_c_o (compiler supports
-c and -o at the same time) is yes, which is set to no at the top of the file.
gcc supports -c and -o at the same time, I wonder why it&apos;s set to no.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zmedico@gentoo.org</who>
            <bug_when>2005-03-04 16:14:02 0000</bug_when>
            <thetext>I had the same problem reported by Sven.  When PORTAGE_TMPDIR from make.conf points to a different partition than the one where /usr/share/apr-0/build/libtool resides then the hardlink will fail resulting in an infinite loop.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>swegener@gentoo.org</who>
            <bug_when>2005-03-05 06:06:19 0000</bug_when>
            <thetext>It&apos;s -Wl,-O1 in my CFLAGS that&apos;s causing libtool to think gcc doesn&apos;t support
-c and -o at the same time. gcc prints a warning when using -c compiling with
-Wl flags active and it gets recognized as an error by apr.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>swegener@gentoo.org</who>
            <bug_when>2005-03-05 06:19:32 0000</bug_when>
            <thetext>from the configure script portion that check -c -o arguments support:

# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>trapni@gentoo.org</who>
            <bug_when>2005-03-12 00:09:06 0000</bug_when>
            <thetext>can we go off the test-request phase and mark it fixed? or do we still have some outstanding issues on this bug?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vericgar@gentoo.org</who>
            <bug_when>2005-03-14 00:30:00 0000</bug_when>
            <thetext>This bug can be closed when archs that were originally CCed remove themselves from it, indicating that they have addressed the issue. As it doesn&apos;t affect whether we move to stable on x86, there is no harm in leaving this bug open as a reminder to them. Though reviewing the comments, it looks like there may be some issues on these archs.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>beu@gentoo.org</who>
            <bug_when>2005-03-14 00:40:13 0000</bug_when>
            <thetext>This needs to remain open until the issues brought up by Sven are fixed too.  Apparently, an &quot;elibtoolize&quot; in the ebuild will fix it, but I have been two snowed under to make the change and test it on an older gcc.

If someone wants to do this before I can, you&apos;ll want to read through the patches in gentoo-x86/eclass/ET-patches to double check that an elibtoolize won&apos;t break binary compatability.  You&apos;ll also need a setup where /usr and /var are on different filesystems, too.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbarnes@csus.edu</who>
            <bug_when>2005-03-21 10:46:25 0000</bug_when>
            <thetext>I have the same problem that Sven has.  If you need a system where /usr and /var are on different partitions on which to test a fix, I have one, and am willing to help squash this bug...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>beu@gentoo.org</who>
            <bug_when>2005-03-21 11:44:08 0000</bug_when>
            <thetext>I&apos;ve just added an elibtoolize call to apr-0.9.5-r2 and apr-0.9.6-r2 (currently in package.mask) which I hear will fix this issue.  I don&apos;t have an older gcc that causes this libtool bug, so if those that have been affected by this could unmask &quot;dev-libs/apr&quot; in /etc/portage/package.unmask and re-emerge and see if this fixes it, it&apos;d be much appreciated. :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>swegener@gentoo.org</who>
            <bug_when>2005-03-22 07:25:58 0000</bug_when>
            <thetext>Doesn&apos;t fix the issue. /usr/share/apr-0/build/libtool still contains:

# Does compiler simultaneously support -c and -o options?
compiler_c_o=&quot;no&quot;

And /usr/share/apr-0/build/libtool tries to hardlink itself into the build root when building apr-util.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chris@siliconhotrod.com</who>
            <bug_when>2005-03-22 15:51:38 0000</bug_when>
            <thetext>Any word on apr-util getting fixed yet?  all ~x86 systems I run are still breaking on this package.

http://forums.gentoo.org/viewtopic-t-303851-highlight-aprutil.html Describes the symptoms.  The ebuild &quot;freezes&quot; at this line:

##########
/bin/sh /usr/share/apr-0/build/libtool --silent --mode=compile i686-pc-linux-gnu    -gcc -pthread  -O2 -mcpu=i686 -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 -D_LAR    GEFILE_SOURCE -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_XO    PEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE   -I/var/tmp/portage/a    pr-util-0.9.6/work/apr-util-0.9.6/include -I/var/tmp/portage/apr-util-0.9.6/work    /apr-util-0.9.6/include/private  -I/usr/include/apr-0     -c apr_buckets_pool.c     &amp;&amp; touch apr_buckets_pool.lo

I have /var and /usr on different partitions...but each is a similar filesystem (ext3).

Cheers,
-Chris</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zmedico@gentoo.org</who>
            <bug_when>2005-04-14 15:59:35 0000</bug_when>
            <thetext>I&apos;m still having the same problem merging apr-util-0.9.6-r1 with libtool from apr-0.9.6-r2.  Maybe this is not a complete fix but at least I am able to emerge apr-util if I simply substitute a symlink for a hardlink:

--- /usr/share/apr-0/build/libtool.orig 2005-04-14 15:05:45.000000000 -0700
+++ /usr/share/apr-0/build/libtool      2005-04-14 15:07:11.000000000 -0700
@@ -1161,7 +1161,7 @@
     # Lock this critical section if it is needed
     # We use this script file to make the link, it avoids creating a new file
     if test &quot;$need_locks&quot; = yes; then
-      until $run ln &quot;$progpath&quot; &quot;$lockfile&quot; 2&gt;/dev/null; do
+      until $run ln -s &quot;$progpath&quot; &quot;$lockfile&quot; 2&gt;/dev/null; do
        $show &quot;Waiting for $lockfile to be removed&quot;
        sleep 2
       done</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nes.yarug@xs4all.nl</who>
            <bug_when>2005-04-19 02:22:34 0000</bug_when>
            <thetext>Same here. Emerge seems to hang on this (apr-util-0.9.6-r1):

/bin/sh /usr/share/apr-0/build/libtool --silent --mode=compile i686-pc-linux-gnu-gcc -pthread  -march=pentium4 -pipe -Os -mcpu=i686 -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE   -I/var/tmp/portage/apr-util-0.9.6-r1/work/apr-util-0.9.6/include -I/var/tmp/portage/apr-util-0.9.6-r1/work/apr-util-0.9.6/include/private  -I/usr/include/apr-0     -c apr_buckets_pool.c &amp;&amp; touch apr_buckets_pool.lo

Output from emerge --info:

ortage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.9-gentoo-r1 i686)
=================================================================
System uname: 2.6.9-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr 18 2005, 15:41:03)]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-march=pentium4 -pipe -Os -mcpu=i686 -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-march=pentium4 -pipe -Os -mcpu=i686 -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs autoconfig ccache distlocks sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://ftp.easynet.nl/mirror/gentoo/ http://gentoo.mirror.sdv.fr http://gentoo.tiscali.nl/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo&quot;
LANG=&quot;en_US.utf8&quot;
LC_ALL=&quot;en_US.utf8&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;x86 alsa apache2 apm bash-completion berkdb bitmap-fonts crypt cups emboss encode foomaticdb fortran gdbm gif gpm hardened imlib ipv6 jpeg libg++ libwww mad mikmod motif mp3 mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python readline sasl sdl slang spell ssl svga tcpd truetype truetype-fonts type1-fonts unicode xml2 xmms xv zlib&quot;
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS, LINGUAS, PORTDIR_OVERLAY</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>beu@gentoo.org</who>
            <bug_when>2005-04-19 02:32:05 0000</bug_when>
            <thetext>Ouch, so sorry this has been neglected.  This will be fixed later on today, one way or another.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2005-04-24 01:45:22 0000</bug_when>
            <thetext>arm/s390 are done</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nes.yarug@xs4all.nl</who>
            <bug_when>2005-04-25 06:12:45 0000</bug_when>
            <thetext>FWIW, I applied the patch as suggested in comment #24 and that worked for me.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bowzer@gmail.com</who>
            <bug_when>2005-05-09 08:34:50 0000</bug_when>
            <thetext>Confirmed. I did use that patch (which I had to make the change by hand because of a strange error) and it did work for me. :-D</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hollow@gentoo.org</who>
            <bug_when>2005-07-10 15:39:17 0000</bug_when>
            <thetext>sorry... </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vericgar@gentoo.org</who>
            <bug_when>2005-09-10 12:14:18 0000</bug_when>
            <thetext>were ready to go stable -&gt; stable request is bug 105516</thetext>
          </long_desc>
      
    </bug>

</bugzilla>