In my working example i also used a SLES box and in the broken example i used centos.
So it seems like only the RPM shipped with centos is affected. I try to do further research to be clear under which cirumstaces the Problem appears.
Ok it seems like the Problem is clearly related to the rpm-4.8.x-region-size.patch which is included in centos .src.rpm.
I try to rebuilding and installing the RPM without the specified patch and the verification works.
the patch is not included (at least in opensuse repos .src.rpm 4.8.0 and 4.10.2)
Fix region length calculation and sanity check against header size
- When calculating length of dribbles, we need to take into account the
size up to that point, otherwise the alignment can be wrong causing
the sizes not to add up.
- With the sizes now correctly calculated, verify the sizes match up
diff --git a/lib/header.c b/lib/header.c
index 2d68854…4ef7564 100644
— a/lib/header.c
+++ b/lib/header.c
@@ -853,13 +853,12 @@ Header headerLoad(void * uh)
indexEntry newEntry = entry + ril;
int ne = (h->indexUsed - ril);
int rid = entry->info.offset+1;
If there is something I can do to test specifically, please let me know.
So far I cannot detect the problem, or work out how to do manual
verification of the package in a way that makes sense, so I’m kind of suck
assuming things are working since much-later versions of ‘rpm’ are
reporting a proper package. The bug you mentioned originally was from
2012, and I see much newer code in my ‘rpm’ package’s changelog.
–
Good luck.
If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…
Thanks for your help so far and sorry for my late Response
No more need to test since I can clearly relate the Problem to the patch I mention before. Since we are switching to SP3 in the near future we can live with the behavior of rpm. (Problem not appear with packages in SP3 repo)
The question is if the patch is broken or if the signatures are broken. I cannot tell and I am not sure where to fill a bug report
On 03/16/2016 07:14 AM, ihopenscape wrote:[color=blue]
No more need to test since I can clearly relate the Problem to the patch
I mention before. Since we are switching to SP3 in the near future we
can live with the behavior of rpm. (Problem not appear with packages in
SP3 repo)[/color]
Maybe they were broken back then, which would make a little sense I
suppose. Since I cannot duplicate it with old or new systems, I cannot tell.
[color=blue]
The question is if the patch is broken or if the signatures are broken.
I cannot tell and I am not sure where to fill a bug report :/[/color]
If the problem only exists prior to SP3 you’ll likely not get a fix unless
on SP3 LTSS or SP4, and in those cases you already do not see the problem.
At this point I’d continue moving there and stick with the workaround in
the meantime.
–
Good luck.
If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…