Bug 456100

Summary: rpm: Assertion `EVR != ((void *)0)' failed on invalid Version in .pc file(s)
Product: [Fedora] Fedora Reporter: Rex Dieter <rdieter>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: ffesti, jnovy, pnasrat
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-09-27 11:57:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 438943    

Description Rex Dieter 2008-07-21 15:19:45 UTC
Trying to build kdeadmin pkg in rawhide fails at the end with
...
+ cp -pr AUTHORS COPYING README
/builddir/rpmbuild/BUILDROOT/kdeadmin-4.0.99-1.fc10.x86_64/usr/share/doc/kdeadmin-4.0.99
+ exit 0
rpmbuild: rpmfc.c:423: rpmfcHelper: Assertion `EVR != ((void *)0)' failed.
EXCEPTION: Command failed. See logs for output.

It's always built fine until recently in rawhide (and builds fine on stock F-9).

See also:
http://koji.fedoraproject.org/koji/taskinfo?taskID=726996

Comment 1 Panu Matilainen 2008-07-22 11:32:58 UTC
This is what the rpm pkg-config dep extraction barfs on with kdeadmin 4.0.5, I
suspect it's the same with 4.0.99:
$ pkg-config --print-provides system-tools-backends
system-tools-backends = 

Looking at the generated system-tools-backends.pc, the version information is
missing :
...
Name: gst-backends
Description: GNOME System Tools backends
Version:
Requires:
...

system-tools-backends.pc.cmake says "Version: ${VERSION}" so the root cause
seems to be version not getting populated correctly. And sure, rpm needs to
handle it better than dying on assert().

Comment 2 Rex Dieter 2008-07-22 13:22:22 UTC
thanks!  looks like a bug on our end then.

I'll defer to you whether you want to keep this open wrt:
"rpm needs to handle it better than dying on assert()"

Comment 3 Kevin Kofler 2008-07-24 17:31:47 UTC
Taking this off the KDE 4.1 blocker: it doesn't affect pushing KDE 4.1 to F9 at 
all, and we also have a workaround for Rawhide (we simply remove the 
offending .pc file, it appears to be unused anyway (crossing fingers)).

Comment 4 Panu Matilainen 2008-09-27 11:57:04 UTC
Fixed upstream so it'll bail out cleanly instead of assert(), rawhide will get it on next tarball update.