--- configure.orig 2014-09-17 23:12:43.000000000 +0200 +++ configure 2014-09-17 23:13:29.000000000 +0200 @@ -11943,6 +11943,9 @@ BUILD_DOCBOOK_PS=YES BUILD_DOCBOOK_PDF=YES fi +BUILD_DOCBOOK_HTML=NO +BUILD_DOCBOOK_PS=NO +BUILD_DOCBOOK_PDF=NO --- configure.orig 2014-09-17 22:40:16.000000000 +0200 +++ configure 2014-09-17 22:40:40.000000000 +0200 @@ -4075,7 +4075,7 @@ $as_echo "$as_me: Building in-tree ghc-pwd" >&6;} rm -rf utils/ghc-pwd/dist-boot mkdir utils/ghc-pwd/dist-boot - GHC_LDFLAGS=`echo $LDFLAGS | sed 's/\(^\| \)\([^ ]\)/\1-optl\2/g'` + GHC_LDFLAGS= # this breaks our build with BSD sed, and we don't need the LDFLAGS here if ! "$WithGhc" $GHC_LDFLAGS -v0 -no-user-$GHC_PACKAGE_DB_FLAG -hidir utils/ghc-pwd/dist-boot -odir utils/ghc-pwd/dist-boot -stubdir utils/ghc-pwd/dist-boot --make utils/ghc-pwd/Main.hs -o utils/ghc-pwd/dist-boot/ghc-pwd then as_fn_error $? "Building ghc-pwd failed" "$LINENO" 5 --- libraries/unix/System/Posix/Files.hsc.orig 2014-09-21 17:58:47.000000000 +0200 +++ libraries/unix/System/Posix/Files.hsc 2014-09-21 17:59:31.000000000 +0200 @@ -152,7 +152,8 @@ if (r == 0) then return True else do err <- getErrno - if (err == eACCES || err == eROFS || err == eTXTBSY) + if (err == eACCES || err == eROFS || err == eTXTBSY || + err == ePERM) then return False else throwErrnoPath "fileAccess" name --- libraries/unix/System/Posix/Files/ByteString.hsc.orig 2014-09-21 17:58:54.000000000 +0200 +++ libraries/unix/System/Posix/Files/ByteString.hsc 2014-09-21 18:02:27.000000000 +0200 @@ -158,9 +158,10 @@ if (r == 0) then return True else do err <- getErrno - if (err == eACCES) - then return False - else throwErrnoPath "fileAccess" name + if (err == eACCES || err == eROFS || err == eTXTBSY || + err == ePERM) + then return False + else throwErrnoPath "fileAccess" name -- | @getFileStatus path@ calls gets the @FileStatus@ information (user ID,