Bug 703373 - Errors in spec file
Summary: Errors in spec file
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: grace
Version: el6
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: José Matos
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-10 08:14 UTC by Niels Walet
Modified: 2016-11-07 13:50 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-07 13:50:27 UTC
Type: ---


Attachments (Terms of Use)

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?


Note You need to log in before you can comment on or make changes to this bug.