Skip to contentSkip to conversation

Debian lintian warning: symlink-is-self-recursive

Xenomai-core Roland Stigge 3 participants 4 messages Apr 19, 2008 – Apr 22, 2008

lore
Share & tools
lore
#0 lore raw

Hi,

Debian's lintian(1), the package checker, tells me:

=========================================================================
W: libxenomai-dev: symlink-is-self-recursive
usr/include/xenomai/asm-generic/xenomai .
N:

N:   The symbolic link is recursive to a higher directory of the symlink
N:   itself. This means, that you can infinitely chdir with this symlink.
N:   This is usually not okay, but sometimes wanted behaviour.

N:
W: libxenomai-dev: symlink-is-self-recursive usr/include/xenomai/asm-sim/asm .
W: libxenomai-dev: symlink-is-self-recursive usr/include/xenomai/asm-sim/xenomai .
W: libxenomai-dev: symlink-is-self-recursive usr/include/xenomai/asm-x86/xenomai .
W: libxenomai-dev: symlink-is-self-recursive usr/include/xenomai/xenomai .
=========================================================================

I.e. installing Xenomai created those recursive links which might be there for source compatibility reasons. Can they be removed at some point or should I accept the above issue as intended for the future?

Thanks,

Roland

#1 lore raw

Re: [Xenomai-core] warning: symlink-is-self-recursive

Hi,

Quoted 17 lines · Roland Stigge

=========================================================================
W: libxenomai-dev: symlink-is-self-recursive
usr/include/xenomai/asm-generic/xenomai .
N:

N:   The symbolic link is recursive to a higher directory of the symlink
N:   itself. This means, that you can infinitely chdir with this symlink.
N:   This is usually not okay, but sometimes wanted behaviour.

N:
W: libxenomai-dev: symlink-is-self-recursive usr/include/xenomai/asm-sim/asm .
W: libxenomai-dev: symlink-is-self-recursive usr/include/xenomai/asm-sim/xenomai .
W: libxenomai-dev: symlink-is-self-recursive usr/include/xenomai/asm-x86/xenomai .
W: libxenomai-dev: symlink-is-self-recursive usr/include/xenomai/xenomai .
=========================================================================

Quoted 3 lines

I.e. installing Xenomai created those recursive links which might be there for source compatibility reasons. Can they be removed at some point or should I accept the above issue as intended for the future?

No comment from anyone? Maybe I should detect the necessity for those links by removing and seeing if anyone complains? ;-)

bye,
Roland

#2 lore raw

Re: [Xenomai-core] warning: symlink-is-self-recursive

Quoted 20 lines · Roland Stigge

Hi,

Quoted 17 lines · Roland Stigge

=========================================================================
W: libxenomai-dev: symlink-is-self-recursive
usr/include/xenomai/asm-generic/xenomai .
N:

N:   The symbolic link is recursive to a higher directory of the symlink
N:   itself. This means, that you can infinitely chdir with this symlink.
N:   This is usually not okay, but sometimes wanted behaviour.

N:
W: libxenomai-dev: symlink-is-self-recursive usr/include/xenomai/asm-sim/asm .
W: libxenomai-dev: symlink-is-self-recursive usr/include/xenomai/asm-sim/xenomai .
W: libxenomai-dev: symlink-is-self-recursive usr/include/xenomai/asm-x86/xenomai .
W: libxenomai-dev: symlink-is-self-recursive usr/include/xenomai/xenomai .
=========================================================================

Quoted 7 lines
Quoted 3 lines

I.e. installing Xenomai created those recursive links which might be there for source compatibility reasons. Can they be removed at some point or should I accept the above issue as intended for the future?

No comment from anyone? Maybe I should detect the necessity for those links by removing and seeing if anyone complains? ;-)

Those links are intended. We need them to build applications, so that the include paths in userland look like the kernel ones, since we share header files between both environments.

Quoted 8 lines

bye,
Roland

_______________________________________________
Xenomai-core mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-core

Signature · 1 line
Philippe.
#3 lore raw

Re: [Xenomai-core] warning: symlink-is-self-recursive

Quoted 25 lines · Philippe Gerum
Quoted 24 lines · Roland Stigge

Hi,

Quoted 20 lines · Roland Stigge

=========================================================================
W: libxenomai-dev: symlink-is-self-recursive
usr/include/xenomai/asm-generic/xenomai .
N:

N:   The symbolic link is recursive to a higher directory of the symlink
N:   itself. This means, that you can infinitely chdir with this symlink.
N:   This is usually not okay, but sometimes wanted behaviour.

N:
W: libxenomai-dev: symlink-is-self-recursive usr/include/xenomai/asm-sim/asm .
W: libxenomai-dev: symlink-is-self-recursive usr/include/xenomai/asm-sim/xenomai .
W: libxenomai-dev: symlink-is-self-recursive usr/include/xenomai/asm-x86/xenomai .
W: libxenomai-dev: symlink-is-self-recursive usr/include/xenomai/xenomai .
=========================================================================

I.e. installing Xenomai created those recursive links which might be there for source compatibility reasons. Can they be removed at some point or should I accept the above issue as intended for the future?

Quoted 7 lines
Quoted 3 lines

No comment from anyone? Maybe I should detect the necessity for those links by removing and seeing if anyone complains? ;-)

Those links are intended. We need them to build applications, so that the include paths in userland look like the kernel ones, since we share header files between both environments.

If we really wanted to remove the recursive symlinks (I do not advocate this, in fact I have no opinion about it, for instance are there really tools that go wild with such links ?), we could move include/asm-* to include/xenomai/asm-* and use #include <xenomai/asm/foo.h> everywhere.

Signature · 1 line
					    Gilles.