Bug 670621

Summary: apr doesn't build anymore with latest libtool
Product: [Fedora] Fedora Reporter: Karsten Hopp <karsten>
Component: aprAssignee: Joe Orton <jorton>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: bojan, jorton, oliver
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-04 16:37:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Karsten Hopp 2011-01-18 20:28:41 UTC
Description of problem:
/usr/bin/libtoolize has changed and some sed commands in apr-1.4.2/buildconf won't work anymore. aclocal_dir and ltfiles variables will be empty, see p.e.
http://ppc.koji.fedoraproject.org/koji/getfile?taskID=120623&name=build.log
Please review these changes and apply, if they are ok with you.

--- apr-1.4.2/buildconf 2009-11-12 23:19:49.000000000 +0100
+++ apr-1.4.2_new/buildconf     2011-01-18 21:21:10.645322522 +0100
@@ -52,8 +52,8 @@
    ltfile=`pwd`/libtool.m4
 elif grep all_pkgmacro_files $libtoolize > /dev/null; then
     # libtool 2.x
-   aclocal_dir=`sed -n '/^aclocaldir=/{s/.*=//;p;q;}' < $libtoolize`
-   ltfiles=`sed -n '/^all_pkgmacro_files=/{s/.*=//;;s/"//;p;q;}' < $libtoolize`
+   aclocal_dir=`sed -n '/aclocaldir=/{s/.*=//;p;q;}' < $libtoolize`
+   ltfiles=`grep all_pkgmacro_files= $libtoolize| sed -n '/all_pkgmacro_files=/{s/.*=//;;s/"//;p;q;}'` 
    for f in $ltfiles; do
        test -f "$aclocal_dir/$f" && cp "$aclocal_dir/$f" build
    done


Version-Release number of selected component (if applicable):
apr-1.4.2

Comment 1 Joe Orton 2011-03-04 16:37:12 UTC
Thanks, fixed.