Bug 51925
Summary: | will not build from src rpm | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Chris Ricker <chris.ricker> | ||||
Component: | kdebase | Assignee: | Bernhard Rosenkraenzer <bero> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | Ben Levenson <benl> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 7.3 | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2001-08-22 19:09:45 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: | |||||||
Attachments: |
|
Description
Chris Ricker
2001-08-16 22:35:10 UTC
This defect is considered SHOULD-FIX for Fairfax. Works here (and obviously in the build system). Maybe your grep is broken? I was trying to build it on a standard 7.1 system. The problem I had with the spec file was the line which did something like (sorry, don't have access to the file right now, so I'm making up the wording): cat $file.list | grep -v foo | grep -v bar | grep -v baz > $file.list.tmp several of the foo, bar, and baz were written as foo$, bar$, baz$, and the "$" on the end prevented grep from matching it and excluding it from the list, so consequently they wound up being specified twice. Removing the $ from the file names made things work. This would actually indicate either your find or your grep is broken - $ is the end-of-line marker, and removing it WILL break things. (e.g. if konsole is removed, it will also remove konsole_grantpty) does echo "blah" |grep 'blah$' work on your system? I was trying to compile on a stock (+ all errata) RH 7.1 box. Here's what I get on there: [guru@fuzz guru]$ echo "blah" | grep 'blah$' blah [guru@fuzz guru]$ Your grep seems to be ok then... I don't see why it's failing on the file list then (removing the $s is not an option - that would remove every file). Please attach the file list the build process generated for you, both before and after the grep command was run on it. (I can't reproduce the problem, and the code looks correct as well). Created attachment 28996 [details]
file list after failed build
I've attached the file.list.kdebase from 2.2-5 (failed build on RH 7.1 box). The build fails with: File listed twice: /usr/bin/kcheckpass File listed twice: /usr/bin/kdesud File listed twice: /usr/bin/konsole_grantpty It looks like the spec file does %attr(4755,root,root) %{prefix}/bin/kcheckpass %attr(2755,root,root) %{prefix}/bin/kdesud %attr(0755,root,root) %{prefix}/bin/konsole_grantpty after it includes the file list. Since the file list already lists %attr(-,root,root) "/usr/bin/konsole_grantpty" %attr(-,root,root) "/usr/bin/kdesud" %attr(-,root,root) "/usr/bin/kcheckpass" Bad Things happen. Adding |grep -v 'kdesud' |grep -v 'konsole_grantpty' |grep -v 'kcheckpass' to the grep exclusion in the spec should fix things. I'll try that now to see. Ah, found the problem. The find script adds quotes around filenames, therefore it's actually "kcheckpass" rather than kcheckpass, so $ can't work on them. Worked here because rpm 4.0.3 handles the situation correctly. Fixed in 2.2-7 |