[Centos] rpm corruption

Johnny Hughes mailing-lists at hughesjr.com
Thu Apr 14 00:16:02 UTC 2005


On Thu, 2005-04-14 at 09:50 +1000, John Newbigin wrote:
> In answer to my own question, this is what I have done which appears to 
> fix the problem:
> 
> 1. Edit /usr/lib/rpm/macros and change the line
> %__dbi_rebuild		nofsync !log !txn !cdb
> to
> %__dbi_rebuild		nofsync !log !txn !cdb !thread
> 2. export LD_ASSUME_KERNEL=2.2.5
> 3. rpm --rebuilddb
> 4. unset LD_ASSUME_KERNEL
> 5. Edit /usr/lib/rpm/macros back to the original
> 6. rpm --rebuilddb
> 
> So far this fixes the problems I have been having.  I assume it is 
> possible to override the macro setting on the rpm command line so no 
> editing is required and a simple script can be run on all my machines.
> 
I use the --define switch to define rpm variables with rpmbuild ...
don't know if it will work with RPM too, but it might.  Here is an
example:

--define "_build i386-redhat-linux-gnu"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.centos.org/pipermail/centos/attachments/20050413/4f142a95/attachment.sig>


More information about the CentOS mailing list