rpm-4.5-69.i686 crash on Qt upgrade
Jeffrey Johnson
n3npq at me.com
Mon Oct 1 20:41:15 CEST 2012
On Oct 1, 2012, at 1:33 PM, Jeffrey Johnson wrote:
>
> The assertion is a sanity check on the number of hex digits in RPMTAG_FILEDIGESTS
> strings (which will always be even).
>
> What digest is in use for file content? The digest algorithm is configurable in rpm-5.x, and
> is more likely to be SHA256/SHA1 than MD5 these days.
>
The simplest "legacy compatible" fix is to drop the Filedigests index.
You will lose the ability to query by "fileid" (which I doubt you will miss).
(untested patch against cvs, not PLD rpm-4.5)
Index: macros.in
===================================================================
RCS file: /v/rpm/cvs/rpm/Attic/macros.in,v
retrieving revision 1.159.2.14
diff -p -u -w -r1.159.2.14 macros.in
--- macros.in 19 Mar 2009 01:04:41 -0000 1.159.2.14
+++ macros.in 1 Oct 2012 18:39:07 -0000
@@ -633,7 +633,7 @@ print (t)\
%{!?_rpmdb_rebuild:%{__dbi_btconfig_current}}\
%{nil}
-%_dbi_tags Packages:Name:Basenames:Group:Requirename:Providename:Conflictname:Triggername:Dirnames:Requireversion:Provideversion:Installtid:Sigmd5:Sha1header:Filemd5s:Depends:Pubkeys
+%_dbi_tags Packages:Name:Basenames:Group:Requirename:Providename:Conflictname:Triggername:Dirnames:Requireversion:Provideversion:Installtid:Sigmd5:Sha1header:Depends:Pubkeys
%_dbi_config_Dirnames %{_dbi_btconfig}
%_dbi_config_Requireversion %{_dbi_btconfig}
hth
73 de Jeff
More information about the pld-devel-en
mailing list