Symlink incorrectly installs to a sub-directory related to source name (github: 80)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zmk (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Hirsute |
In Progress
|
Low
|
Unassigned |
Bug Description
This bug is a mirror of the GitHub issue https:/
The following makefile snippet illustrates the problem:
# Symlink: sysota-rauc-hook -> sysotad
cmd/sysotad/
cmd/sysotad/
$(eval $(call ZMK.Expand,
The result of make install should be
ln -s sysotad /usr/lib/
With zmk << 0.5.1 it is
ln -s sysotad /usr/lib/
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,
subdir/
subdir/
$(eval $(call ZMK.Expand,
Issue the command: make -n install. The correct output is:
ln -sf target /usr/local/
In the broken case, the output is:
ln -sf target /usr/local/
[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.
description: | updated |
description: | updated |
Changed in zmk (Ubuntu): | |
status: | New → Fix Released |
Changed in zmk (Ubuntu Hirsute): | |
status: | New → In Progress |
Changed in zmk (Ubuntu): | |
importance: | Undecided → Low |
Changed in zmk (Ubuntu Hirsute): | |
importance: | Undecided → Low |
I've attached a debdiff fixing this in the most minimal way possible