sane-backends: cherry-pick fix for scanimage locking up on exit (#432780)

This commit is contained in:
K900 2025-08-11 14:46:50 +03:00 committed by GitHub
commit c46649f3e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,6 +2,7 @@
stdenv,
lib,
fetchFromGitLab,
fetchpatch,
runtimeShell,
buildPackages,
gettext,
@ -52,6 +53,15 @@ stdenv.mkDerivation rec {
hash = "sha256-e7Wjda+CobYatblvVCGkMAO2aWrdSCp7q+qIEGnGDCY=";
};
# Fix hangs in tests, hopefully
# FIXME: remove in next release
patches = [
(fetchpatch {
url = "https://gitlab.com/sane-project/backends/-/commit/8acc267d5f4049d8438456821137ae56e91baea9.patch";
hash = "sha256-IyupDeH1MPvEBnGaUzBbCu106Gp7zXxlPGFAaiiINQI=";
})
];
postPatch = ''
# Do not create lock dir in install phase
sed -i '/^install-lockpath:/!b;n;c\ # pass' backend/Makefile.am