From a00513754b31a1ea8161d0e36b6a3dacbd103bbc Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 26 Jan 2023 15:37:21 -0400 Subject: [PATCH] support old libgcc1 name Used in Debian jessie, which the i386ancient autobuilder uses. --- Utility/LinuxMkLibs.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utility/LinuxMkLibs.hs b/Utility/LinuxMkLibs.hs index ac8c62cdbb..81109d96a0 100644 --- a/Utility/LinuxMkLibs.hs +++ b/Utility/LinuxMkLibs.hs @@ -72,7 +72,7 @@ glibcLibs = do ls <- lines <$> readProcess "sh" ["-c", "dpkg -L libc6:$(dpkg --print-architecture) | egrep '\\.so' | grep -v /gconv/ | grep -v ld.so.conf | grep -v sotruss-lib"] ls2 <- lines <$> readProcess "sh" - ["-c", "dpkg -L libgcc-s1:$(dpkg --print-architecture) | egrep '\\.so'"] + ["-c", "(dpkg -L libgcc-s1:$(dpkg --print-architecture 2>/dev/null) || dpkg -L libgcc1:$(dpkg --print-architecture)) | egrep '\\.so'"] return (ls++ls2) {- Get gblibc's gconv libs, which are handled specially.. -}