[Bug 1933827] [NEW] Symlink incorrectly installs to a sub-directory related to source name (github: 80)
Launchpad Bug Tracker
1933827 at bugs.launchpad.net
Mon Jun 28 12:56:13 UTC 2021
You have been subscribed to a public bug by Zygmunt Krynicki (zyga):
This bug is a mirror of the GitHub issue
https://github.com/zyga/zmk/issues/80 filed for the purpose of SRU
The following makefile snippet illustrates the problem:
# Symlink: sysota-rauc-hook -> sysotad
cmd/sysotad/sysota-rauc-hook.InstallDir = $(cmd/sysotad/sysotad.InstallDir)
cmd/sysotad/sysota-rauc-hook.SymlinkTarget = sysotad
$(eval $(call ZMK.Expand,Symlink,cmd/sysotad/sysota-rauc-hook))
The result of make install should be
ln -s sysotad /usr/lib/sysotad/sysotad-rauc-hook
With zmk << 0.5.1 it is
ln -s sysotad /usr/lib/sysotad/cmd/sysotad/sysotad-rauc-hook
This bug was fixed in zmk 0.5.1, which is available in Debian Unstable
and Ubuntu Impish as 0.5.1-2
[Impact]
The issue is isolated to the ZMK Symlink template and is only visible
when the path of the symbolic link, in the development tree, contains a
sub-directory, like in the RAUC hook example above.
[Test Case]
Create a makefile with this content:
include z.mk
$(eval $(call ZMK.Import,Directories))
subdir/symlink.InstallDir = $(bindir)
subdir/symlink.SymlinkTarget = target
$(eval $(call ZMK.Expand,Symlink,subdir/symlink))
Issue the command: make -n install. The correct output is:
ln -sf target /usr/local/bin/symlink
In the broken case, the output is:
ln -sf target /usr/local/bin/subdir/symlink
[Where problems could occur]
Since zmk is only used by my own software, most notably libzt, and libzt does not trigger this error, the regression potential is minimal.
** Affects: zmk (Ubuntu)
Importance: Undecided
Status: New
--
Symlink incorrectly installs to a sub-directory related to source name (github: 80)
https://bugs.launchpad.net/bugs/1933827
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.
More information about the Ubuntu-sponsors
mailing list