Bugzilla – Bug 1178056
%license macro does not expand symlinks
Last modified: 2020-10-23 11:59:51 UTC
The %license macro from rpm does not follow symlinks, nor does it throw an error when it is used on symlink. When the %license macro is used on a symlink/softlink, a broken softlink is delivered in the binary.
The %license macro seems to be one of the intrinsic macros of rpm. Michael, could you have a look?
Is that %license as file marker or %license as special file in your specfile?
I do not know the difference between "%license as file marker or %license as special file ", but I fixed this in the request https://build.opensuse.org/request/show/843572 [snip] %files %defattr(-,root,root) -%license COPYING +%license LICENSE.en.txt LICENSE.fr.txt %doc ChangeLog README.md %doc ./doc/templates/ [snap] where in the source dir I have lrwxrwxrwx 1 chris users 14 23. Okt 13:42 LICENSE -> LICENSE.en.txt lrwxrwxrwx 1 chris users 9 23. Okt 13:42 INSTALL -> README.md -rw-r--r-- 1 chris users 2047 23. Okt 13:42 .gitignore lrwxrwxrwx 1 chris users 7 23. Okt 13:42 COPYING -> LICENSE which gives ls -l /usr/share/licenses/robinhood/ total 4 lrwxrwxrwx 1 root root 7 Sep 29 09:32 COPYING -> LICENSE in the package, so here COPYING is a broken soft link.