Re: [PATCH 6/6] Ditch Python dependent make_rel_symlink with ln -sr

Thomas Uhle <thomas.uhle-cl+VPiYnx/[email protected]> Wed, 27 May 2026 20:26:07 +0200
Newsgroups gmane.comp.hardware.lirc
Message-ID <[email protected]>
On Wed, 27 May 2026, Paul Fox wrote:

> >  	ln -sr $(DESTDIR)$(vardocsdir) $(DESTDIR)$(plugindocsdir)/var
> >  	ln -sr $(DESTDIR)$(vardocsdir)/index.html \
> >  	    $(DESTDIR)$(website_htmldir)/plugins-index.html
> >
> > BTW, the non-POSIX option -r is a GNU extension, and I don't know if
> > support for stripped-down Linux environments with only BusyBox for
> > instance is something of concern.
>
> You made me curious, so I checked.  busybox has had -r since at least
> 2017.  Of course, busybox ls can be built with no sortable ls capabilities
> at all, but I suspect systems built that way aren't running python-driven
> install scripts.
>
> paul
> =----------------------
> paul fox, [email protected] (arlington, ma, where it's 84.8 degrees)
>

Dear Paul,

the command in question is 'ln', not 'ls'.  AFAICS there is no option -r 
for ln, please see:

# ln --help
BusyBox v1.36.1 multi-call binary.

Usage: ln [-sfnbtv] [-S SUF] TARGET... LINK|DIR

Create a link LINK or DIR/TARGET to the specified TARGET(s)

 	-s	Make symlinks instead of hardlinks
 	-f	Remove existing destinations
 	-n	Don't dereference symlinks - treat like normal file
 	-b	Make a backup of the target (if exists) before link operation
 	-S SUF	Use suffix instead of ~ when making backup files
 	-T	Treat LINK as a file, not DIR
 	-v	Verbose

Best regards,

Thomas Uhle