Bug 449534

Summary: FTBFS libapreq2-2.09-0.15.rc2.fc9
Product: [Fedora] Fedora Reporter: FTBFS <ftbfs>
Component: libapreq2Assignee: Bojan Smojver <bojan>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://linux.dell.com/files/fedora/FixBuildRequires/mock-results-core/
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-06-05 01:09:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 440169    
Attachments:
Description Flags
root.log.bz2
none
build.log.bz2
none
root.log.bz2
none
build.log.bz2
none
config.status none

Description FTBFS 2008-06-02 20:25:55 UTC
libapreq2-2.09-0.15.rc2.fc9.src.rpm Failed To Build From Source against the rawhide tree.  See http://fedoraproject.org/wiki/FTBFS for more information.

Comment 1 FTBFS 2008-06-02 20:26:20 UTC
Created attachment 307783 [details]
root.log.bz2

root.log for i386

Comment 2 FTBFS 2008-06-02 20:26:29 UTC
Created attachment 307784 [details]
build.log.bz2

build.log for i386

Comment 3 FTBFS 2008-06-02 20:26:39 UTC
Created attachment 307785 [details]
root.log.bz2

root.log for x86_64

Comment 4 FTBFS 2008-06-02 20:26:50 UTC
Created attachment 307786 [details]
build.log.bz2

build.log for x86_64

Comment 5 Bojan Smojver 2008-06-02 23:40:22 UTC
Looking at the build log:
-----------------------------------
/etc/profile: line 38: /bin/hostname: No such file or directory
sh: /usr/sbin/apxs: No such file or directory
cat: 
/.mmn
: No such file or directory
-----------------------------------

Without apxs, this build has zero chance of succeeding. The package spec file
correctly includes:
-----------------------------------
BuildRequires:  httpd-devel >= 2.0.48
-----------------------------------

Which in turn delivers /usr/sbin/apxs.

So, I don't know what's going on here. Maybe we don't have permission to look
into /usr/sbin or something in the build system?

Comment 6 Matt Domsch 2008-06-03 04:08:12 UTC
I don't think that's the problem.  It's something to do with glue:

Making all in glue
make[1]: Entering directory `/builddir/build/BUILD/libapreq2-2.09/glue'
cd perl; perl  Makefile.PL -apxs /usr/sbin/apxs INSTALLDIRS=vendor
Can't find apache include directory at Makefile.PL line 66.
make[1]: *** [perl/Makefile] Error 9
make[1]: Leaving directory `/builddir/build/BUILD/libapreq2-2.09/glue'
make: *** [all-recursive] Error 1




Comment 7 Bojan Smojver 2008-06-03 04:40:51 UTC
The "Can't find apache include directory at Makefile.PL line 66." is the result
of APACHE2_INCLUDES not being present in config.status:
----------------------------
    slurp my $config => "$base_dir/config.status";
    $config =~ /^s,\@APACHE2_INCLUDES\@,([^,]+)/m or
        die "Can't find apache include directory";
----------------------------

And this line of config.status is supposed to be written out by configure, using
this in acinclude.m4:
----------------------------
APACHE2_INCLUDES=-I`$APACHE2_APXS -q INCLUDEDIR`
[...]
AC_SUBST(APACHE2_INCLUDES)
----------------------------

I can see this in my config.status on my F9 machine. Can you attach the
config.status file from that run?

Comment 8 Matt Domsch 2008-06-03 14:27:07 UTC
Created attachment 308242 [details]
config.status

Comment 9 Bojan Smojver 2008-06-03 22:58:52 UTC
Thank Matt. Looks like the format of config.status changed:

new: S["APACHE2_INCLUDES"]="-I/usr/include/httpd"

old: s,@APACHE2_INCLUDES@,|#_!!_#|-I/home/groups/devel/run/apache/include,g

I'm guessing the version of autoconf delivered this change or something...


Comment 10 Bojan Smojver 2008-06-05 01:09:09 UTC
This has been fixed in 0.17.rc2. Fix for this has been committed upstream as well.