Bug 80071 - Static compile for chroot
Static compile for chroot
Status: CLOSED WONTFIX
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
8.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-12-19 11:17 EST by Jason Cosby
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-12-19 11:24:51 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jason Cosby 2002-12-19 11:17:29 EST
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,
Jason

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


How reproducible:
Always

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 11:24:51 EST
Edit the top level Makefile.am, remove '#' in

    myLDFLAGS = # @LDFLAGS_STATIC@

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.