[Fedora-packaging] For a cross-compiling toolchain, does it matter if /usr/bin/* links are symbolic or hard?

Ralf Corsepius rc040203 at freenet.de
Thu Nov 12 15:50:47 UTC 2015


On 11/12/2015 04:46 PM, Ralf Corsepius wrote:
> On 11/12/2015 04:36 PM, Nico Kadel-Garcia wrote:
>> On Thu, Nov 12, 2015 at 4:11 AM, Jonathan Dieter <jdieter at lesbg.com>
>> wrote:
>>> I'm reviewing nacl-binutils (https://bugzilla.redhat.com/show_bug.cgi?i
>>> d=1270355), which has hard links from /usr/x86_64-nacl/* to
>>> /usr/bin/x86_64-nacl-*.  According to https://fedoraproject.org/wiki/Pa
>>> ckaging_Cross_Compiling_Toolchains, these should be symlinks, and
>>> rpmlint complains about cross-directory-hard-links.  Is there any
>>> reason to convert these to symlinks or can we just leave them as hard
>>> links?
>>>
>>> Thanks,
>>> Jonathan
>>
>> Thereis is, generally, no good excuse for a hardlink in an RPM. The
>> symlinks help indicate where the component actually resides,
> Things are not so clear as you think.
>
> May-by are in a position to tell where a cross-gcc|as|ar|ld recides?
>
> Though I have been an active contributor/maintainer to binutils and gcc
> for ca. a decade, I am not. The different locations are different views
> at identical binaries, aiming at different use-cases.
>
> Also, these links exist for very long times (>> 15 years) and have
> never, ever been a problem.

FWIW: Even on Debian, these are hardlinks.

Ralf




More information about the packaging mailing list