pacman/scripts
Eli Schwartz 406a37206f makepkg: libprovides: don't provide both versioned and unversioned sonames
If multiple files match the pattern libfoo.so*, we want to check each of
them and see if they are shared libraries, and if so, if they have
versions attached.

But some packages can have both shared libraries and random files which
match the filename pattern. This is true at least for files in
/usr/share/gdb/auto-load/, which must match the filename they are paired
with, followed by "-gdb.py" (or some other gdb scripting ext), but
definitely don't contain a shared library. In this case, we don't want
to double-report the library in the generated provides.

It's also possible (probably) for a package to provide a versioned as
well as an unversioned shared library, but in such cases a single
provides entry is sufficient to cover both cases (and the libdepends
for the depending package would contain an unversioned dependency).

Solve this by keeping track of whether we have added a versioned soname
provides already, and then only adding a maximum of one unversioned
provides *iff* there isn't a versioned one yet.

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
2020-09-23 17:12:01 +10:00
..
completion Add pacman-conf zsh completions 2020-09-03 12:55:34 +10:00
libmakepkg libmakepkg: extend compress.sh to also permit checking validity 2020-08-10 09:57:32 +10:00
po scripts/library: remove human_to_size 2019-11-06 15:52:21 +10:00
.gitignore libmakepkg: install pkg-config file 2019-05-08 12:46:33 +10:00
libmakepkg.pc.in libmakepkg: install pkg-config file 2019-05-08 12:46:33 +10:00
makepkg-template.pl.in build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00
makepkg.sh.in makepkg: libprovides: don't provide both versioned and unversioned sonames 2020-09-23 17:12:01 +10:00
meson.build meson: make non-symlink scripts install for real, and use a better wrapper 2019-11-26 10:49:57 +10:00
pacman-db-upgrade.sh.in build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00
pacman-key.sh.in pacman-key: change signing key to RSA4096 2020-06-15 19:17:41 +10:00
repo-add.sh.in repo-add: use more libmakepkg to handle common compression routines 2020-08-10 09:57:37 +10:00
wrapper.sh.in build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00