Bug 159221

Summary: RFE: track libtool .la dependencies
Product: [Fedora] Fedora Reporter: Nalin Dahyabhai <nalin>
Component: rpmAssignee: Paul Nasrat <nobody+pnasrat>
Status: CLOSED UPSTREAM QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: n3npq, rdieter
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-11-06 15:44:49 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: 153935    

Description Nalin Dahyabhai 2005-05-31 17:54:26 UTC
Description of problem:
A libtool .la file lists the .la files on which it depends using their exact
paths -- if the depended-on .la files is removed, the dependent .la file is
rendered useless.  This causes bugs like bug #159144 to just pop up from time to
time.

Version-Release number of selected component (if applicable):
4.4.1-21

How reproducible:
Always.

Steps to Reproduce:
1. Remove /usr/lib/libxml2.la from your system, or move it elsewhere.
2. Verify that /usr/lib/libxmlsec1-openssl.la lists /usr/lib/libxml2.la in its
   dependency_libs list.
3. Try to build a program using libtool:
   cat > foo.c << EOF
   int main(int argc, char **argv) { return 0; }
   EOF
   libtool --mode=compile --tag=CC cc -o foo.lo -c foo.c
   libtool --mode=link    --tag=CC cc -o foo foo.lo -lxmlsec1-openssl
  
Actual results:
libtool: link: cannot find the library `/usr/lib/libxml2.la'

Expected results:
(nothing)

Additional info:
Examples of how to do this are attachment #112735 [details] and attachment #112738 [details],
attached to bug #153935.

Comment 1 Jeff Johnson 2005-07-13 12:12:29 UTC
Scripts added to rpm-4_4, no plumbing yet.

Comment 2 Jeff Johnson 2005-11-06 15:44:49 UTC
Fixed in cvs, will be in rpm-4.4.3-0.38 when built.