Bug 80071

Summary: Static compile for chroot
Product: [Retired] Red Hat Linux Reporter: Jason Cosby <jason>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-12-19 16:24:51 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 Jason Cosby 2002-12-19 16:17:29 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461)

Description of problem:
Jason, a co-developer of LvR, is requesting that a dedicated static compiler 
flag be introduced into the source tree. What is needed is an entirely static 
rpm and rpmb, to build a core system in chroot. In rpm-4.0.3, this was 
accomplished with:

./configure --prefix=/static --disable-nls --enable-static --enable-static-
link --disable-shared && make LDFLAGS=-all-static && blah..blah

In 4.0.4, the --disable-shared bombs out the install, during the linking in the 
md5 section. Removing --disable-shared enables the build, but the binaries 
still retain lib dependencies. In 4.1, I've yet to be able to build a static 
version, and thus am still forced to use 4.0.3 in chroot.

In following the mailing lists, I see that more and more folk are "rolling 
their own" distro, and the need for building with rpm in chroot is definately 
growing. Tracking the changes in zlib, md5, beecrypt, db, etc and how they 
affect the build is very tedious and often frustrating. If this could become a 
permanent part of the tree, specifically targeting those people attempting to 
build rpm for this purpose, you might just never have to buy beer ever again :)

Thanks for all of your wonderful work,

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

How reproducible:

Steps to Reproduce:
1.Try --disable-nls --disable-shared --enable-static --enable-static-link --
with-python-subpackage=no && make LDFLAGS=-all-static on rpm-4.1


Additional info:

Comment 1 Jeff Johnson 2002-12-19 16:24:51 UTC
Edit the top level Makefile.am, remove '#' in


for now. I'm reluctant to add complexity to configure
for a minor feature.

Should work for all recent versions of rpm, I use this
for debugging all the time.