Commit 8ce142a2 authored by Levente Polyak's avatar Levente Polyak 🚀 Committed by Allan McRae
Browse files

makepkg: deterministic PKGINFO libprovides for multiple library versions

While iterating over the provides array, the find call for locating a
shared library may result in listing multiple entries which by itself
does not produce a stable deterministic order and may vary depending on
the underlying filesystem.
To provide a stable listing and a reproducible .PKGINFO file the result
of find is piped to sort with a static LC_ALL=C localisation.

Signed-off-by: Levente Polyak's avatarLevente Polyak <>
Signed-off-by: Allan McRae's avatarAllan McRae <>
parent 8e769ddb
......@@ -521,7 +521,7 @@ find_libprovides() {
case "$p" in
mapfile -t filename < <(find "$pkgdir" -type f -name $p\*)
mapfile -t filename < <(find "$pkgdir" -type f -name $p\* | LC_ALL=C sort)
if [[ $filename ]]; then
# packages may provide multiple versions of the same library
for fn in "${filename[@]}"; do
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment