Bug 80071 - Static compile for chroot
Summary: Static compile for chroot
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 8.0
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2002-12-19 16:17 UTC by Jason Cosby
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Last Closed: 2002-12-19 16:24:51 UTC

Attachments (Terms of Use)

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.

Note You need to log in before you can comment on or make changes to this bug.