Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 363839 - dev-lang/gnat-gcc: 4.4.3 and gnatbuild.eclass = broken gnat.info symlink
Summary: dev-lang/gnat-gcc: 4.4.3 and gnatbuild.eclass = broken gnat.info symlink
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: ada team [OBSOLETE]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-16 15:30 UTC by Steve Arnold
Modified: 2013-11-25 03:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Arnold archtester gentoo-dev 2011-04-16 15:30:23 UTC
This line in the eclass, which works for 4.3, results in a broken symlink with 4.4:

dosym ${DATAPATH}/info/gnat_ugn_unw.info ${DATAPATH}/info/gnat.info

since the real filename is gnat_ugn.info (no idea why it changed).
Comment 1 Martin von Gagern 2012-10-31 15:48:17 UTC
Still a problem with dev-lang/gnat-gcc-4.5.4:

 * Regenerating GNU info directory index...
 * Processed 5 info files; 1 errors.
install-info: No such file or directory for /usr/share/gnat-gcc-data/x86_64-pc-linux-gnu/4.5/info/gnat.info
# readlink /usr/share/gnat-gcc-data/x86_64-pc-linux-gnu/4.5/info/gnat.info
/usr/share/gnat-gcc-data/x86_64-pc-linux-gnu/4.5/info/gnat_ugn_unw.info
# ls -F /usr/share/gnat-gcc-data/x86_64-pc-linux-gnu/4.5/info/
dir  gnat.info@  gnat_rm.info  gnat-style.info  gnat_ugn.info  libgomp.info

Apart from the fact that the target file name is incorrect, I can't help but wonder why this symlink is using an absolute path. There seems to be no good reason for this, and I believe that in general, relative links are preferred, as they use less space, are easier to read and also work for chroots.
Comment 2 Steve Arnold archtester gentoo-dev 2013-11-25 03:52:26 UTC
Fixed for newer versions in the eclass, and breaks on the oldest ones.  I'll talk to George about stabilizing something newer and cleaning out the old cruft.