redhat-rpm-config/libsymlink.attr
Michal Domonkos 1323c4d6de Fix auto soname requires on non-versioned targets
RPM's macro engine itself understands backslash escapes so we need to
double-escape these, otherwise we may accidentally match symlink targets
that contain the substring "so" in their names, such as:

    libechosounder.so -> libechosounder2.so
                                ~~
                                 ^ this is currently matched

Whereas we only want these to be processed:

    libechosounder.so -> libechosounder.so.2
                                       ~~~~~
                                           ^ this should be matched

Resolves: RHEL-28767
2024-07-19 14:30:20 +02:00

6 lines
271 B
Plaintext

# Make libfoo.so symlinks require the soname-provide of the target library
%__libsymlink_requires %{_rpmconfigdir}/elfdeps --provides --soname-only
%__libsymlink_magic ^symbolic link to .*lib.*\\.so\\..*$
%__libsymlink_path ^.*\\.so$
%__libsymlink_flags magic_and_path