Bug 703373

Summary: Errors in spec file
Product: [Fedora] Fedora EPEL Reporter: Niels Walet <Niels.Walet>
Component: graceAssignee: José Matos <jamatos>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: el6CC: dominik, jamatos, pertusus
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-07 13:50:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Niels Walet 2011-05-10 08:14:20 UTC
Description of problem:
The spec file for the current version of grace (I used the fc14 to build) contains mistake (but similar errors occured in the EL5 version) 
1. the whole of /usr/share/grace/bin gets hardlinked to /usr/bin on the installing machine
2. There are missing linebreaks in the  /usr/share/grace/fonts/FontDataBase file

Version-Release number of selected component (if applicable):
5.1.22-7

How reproducible:
100%

Steps to Reproduce:
bug 2 may depend on installed fonts
  
Actual results:


Expected results:


Additional info:
The changes required to the spec file are tiny:
change
grep $base $FontDataBaseFile >> $FontDataBaseFile.tmp
to
echo `grep $base $FontDataBaseFile` >> $FontDataBaseFile.tmp
and 
add the line
%exclude %{_datadir}/%{name}/bin
to the install excludes

Comment 1 José Matos 2011-06-12 21:37:21 UTC
Regarding the issue 1. (let us not call it bug or bugzilla will index it to the first bug in the database :-) ):

/usr/share/grace/bin is _symbolic link_ to /usr/bin not a hard link. This is what I get in my machine:

$ ll /usr/share/grace/bin
lrwxrwxrwx. 1 root root 9 Mar 29 15:26 /usr/share/grace/bin -> ../../bin

The same is a consequence of the spec file:

install -pm 755 bin/*   %{buildroot}%{_bindir}/
rm -rf bin
ln -s ../../bin bin

With respect to the second issue):

I am not sure what is the difference between

grep $base $FontDataBaseFile >> $FontDataBaseFile.tmp
and
echo `grep $base $FontDataBaseFile` >> $FontDataBaseFile.tmp

why does the second form works?

I agree that this is a serious problem and I would like to fix it...

Comment 2 José Matos 2012-11-26 14:09:34 UTC
Do you have an example of the issue 2. That is a FontDataBase where this fails?