support old libgcc1 name
authorJoey Hess <joeyh@joeyh.name>
Thu, 26 Jan 2023 19:37:21 +0000 (15:37 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 26 Jan 2023 19:37:21 +0000 (15:37 -0400)
Used in Debian jessie, which the i386ancient autobuilder uses.

Utility/LinuxMkLibs.hs

index ac8c62cdbb9f05179547e8ab9c75f0cb95c12d3e..81109d96a0494c5d5d5b778573fc773fd713ed4a 100644 (file)
@@ -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.. -}