Skip to content

Commit

Permalink
workaround for Ubuntu usrmerge
Browse files Browse the repository at this point in the history
  • Loading branch information
Ailin Nemui authored and Conan-Kudo committed Oct 7, 2023
1 parent ebec7ff commit 11fbb7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions debbuild
Original file line number Diff line number Diff line change
Expand Up @@ -1937,6 +1937,8 @@ sub getreqs {
# looked-for lib may not have the full soname version. (ie, it may
# "just" point to one of the symlinks that get created somewhere.)
next if grep { /\b$req/ } @intprovlist;
# workaround for Ubuntu usrmerge, resolve symlinks
$req = "/usr$req" if $req =~ m|^/lib| && "usr/lib" eq (readlink "/lib" || "");

$reqliblist .= " $req";
}
Expand Down

0 comments on commit 11fbb7b

Please sign in to comment.