Example failure on aarch64, although I have seen it happen on other architectures as well (not quite sure if it was the same failure though).
Building library for tmp-postgres-1.34.1.0..
[1 of 4] Compiling Database.Postgres.Temp.Internal.Core ( src/Database/Postgres/Temp/Internal/Core.hs, dist/build/Database/Postgres/Temp/Internal/Core.o, dist/build/Database/Postgres/Temp/Internal/Core.dyn_o )
[2 of 4] Compiling Database.Postgres.Temp.Internal.Config ( src/Database/Postgres/Temp/Internal/Config.hs, dist/build/Database/Postgres/Temp/Internal/Config.o, dist/build/Database/Postgres/Temp/Internal/Config.dyn_o )
[3 of 4] Compiling Database.Postgres.Temp.Internal ( src/Database/Postgres/Temp/Internal.hs, dist/build/Database/Postgres/Temp/Internal.o, dist/build/Database/Postgres/Temp/Internal.dyn_o )
[4 of 4] Compiling Database.Postgres.Temp ( src/Database/Postgres/Temp.hs, dist/build/Database/Postgres/Temp.o, dist/build/Database/Postgres/Temp.dyn_o )
Preprocessing test suite 'test' for tmp-postgres-1.34.1.0..
Building test suite 'test' for tmp-postgres-1.34.1.0..
[1 of 1] Compiling Main ( test/Main.hs, dist/build/test/test-tmp/Main.o, dist/build/test/test-tmp/Main.dyn_o )
Linking dist/build/test/test ...
Preprocessing executable 'soak-test' for tmp-postgres-1.34.1.0..
Building executable 'soak-test' for tmp-postgres-1.34.1.0..
[1 of 1] Compiling Main ( resource-soak-test/Main.hs, dist/build/soak-test/soak-test-tmp/Main.o, dist/build/soak-test/soak-test-tmp/Main.dyn_o )
Linking dist/build/soak-test/soak-test ...
Preprocessing executable 'with-cache-loop' for tmp-postgres-1.34.1.0..
Building executable 'with-cache-loop' for tmp-postgres-1.34.1.0..
[1 of 1] Compiling Main ( profiling/Main.hs, dist/build/with-cache-loop/with-cache-loop-tmp/Main.o, dist/build/with-cache-loop/with-cache-loop-tmp/Main.dyn_o )
Linking dist/build/with-cache-loop/with-cache-loop ...
running tests
Running 1 test suites...
Test suite test: RUNNING...
withConfig
succeeds with
mempty and extra postgresql.conf
optionsToDefaultConfig mempty is the same as mempty Config
postgres db name does not cause createdb failure
template1 db name does not cause createdb failure
specific socket works with optionsToDefaultConfig
filled out optionsToDefaultConfig
default ip option works
specific unix socket works
works with the default temporary directory to some degree at least
works if on non-empty if initdb is disabled
makeResourcesDataDirPermanent works
StartPlan:
completePlanInitDb:
cachePlanDataDirectory:
/tmp/tmp-postgres-cache-test-146487d23d2b61b5/tmp-postgres-cache-98e2bfc83d26dd6f/11.12Xg8IuT5q/e0X1L8Ku8tly57W9yaGIC6fSBIs=/data
cachePlanInitDb:
completeProcessConfigEnvVars:
tmp_postgres_datadir: /build/tmp-postgres-1.34.1.0/.
HOST_PATH: /nix/store/wqmahanj41zw906hvd07i9mc1486jh2l-ncurses-6.2/bin:/nix/store/ifpbghy8yqwasg8nnvhnhkcvy6va7n9b-hspec-discover-2.7.10/bin:/nix/store/1062vq2ffyym41jxx421fz0xhhisgjm6-coreutils-8.32/bin:/nix/store/j9kh9z1hhdslj6ja10qvjim4h75qxy1v-findutils-4.7.0/bin:/nix/store/j86clp4xsfiyqqvsfnlwbzk2xyq1rkvl-diffutils-3.7/bin:/nix/store/z04l5aw4nm7wkm391ca67wz6p6813hvf-gnused-4.8/bin:/nix/store/6kw5bi9ba19wki3vbhk6l28cz1jfk56x-gnugrep-3.6/bin:/nix/store/7f127s1k0ss4n3an1wbyxi5vqwvsg78x-gawk-5.1.0/bin:/nix/store/vn85wn0r97cyc24x07rg0k0wzry44c9l-gnutar-1.34/bin:/nix/store/lb1g7prdqwrj0rmcd8g51036l18ck37h-gzip-1.10/bin:/nix/store/k6ggkvawrkcm936vfyidjghjb2gb0n0s-bzip2-1.0.6.0.2-bin/bin:/nix/store/i370n7q61s1626njpwrdwyk0xv08kaj4-gnumake-4.3/bin:/nix/store/r7shyqfd3g9yfy7kdfphsqqb1qmbwdiv-bash-4.4-p23/bin:/nix/store/hipyf18x10zgmf7zb1w59p55n0ajz7mi-patch-2.7.6/bin:/nix/store/0x211vpqm6zygdh4hi6xahl4h1m217ky-xz-5.2.5-bin/bin
haddockPhase: runHook preHaddock
./Setup haddock --html \
--hoogle \
--quickjump \
--hyperlink-source \
runHook postHaddock
NIX_CFLAGS_COMPILE_FOR_BUILD: -isystem /nix/store/x6wxjgcv5h91lm212q223rmlfh5i0vps-llvm-9.0.1-dev/include -isystem /nix/store/q6b5spcd3hpb249p4w8g3mavg7rmg1l6-ncurses-6.2-dev/include -isystem /nix/store/gbj602qfgsjpsfc5rg38yg442048vf6y-zlib-1.2.11-dev/include -isystem /nix/store/ak9l5pw630fspc672124izq07pw2lxwi-postgresql-11.12/include -isystem /nix/store/12qi2wrh7nmd9lz3va9lhbz6l7dj1sf1-procps-3.3.16/include -isystem /nix/store/x6wxjgcv5h91lm212q223rmlfh5i0vps-llvm-9.0.1-dev/include -isystem /nix/store/q6b5spcd3hpb249p4w8g3mavg7rmg1l6-ncurses-6.2-dev/include -isystem /nix/store/gbj602qfgsjpsfc5rg38yg442048vf6y-zlib-1.2.11-dev/include -isystem /nix/store/ak9l5pw630fspc672124izq07pw2lxwi-postgresql-11.12/include -isystem /nix/store/12qi2wrh7nmd9lz3va9lhbz6l7dj1sf1-procps-3.3.16/include -isystem /nix/store/x6wxjgcv5h91lm212q223rmlfh5i0vps-llvm-9.0.1-dev/include -isystem /nix/store/q6b5spcd3hpb249p4w8g3mavg7rmg1l6-ncurses-6.2-dev/include -isystem /nix/store/gbj602qfgsjpsfc5rg38yg442048vf6y-zlib-1.2.11-dev/include -isystem /nix/store/ak9l5pw630fspc672124izq07pw2lxwi-postgresql-11.12/include -isystem /nix/store/12qi2wrh7nmd9lz3va9lhbz6l7dj1sf1-procps-3.3.16/include
propagatedBuildInputs: /nix/store/wsz20sq88y183h15cnllllqn65ksd200-ansi-wl-pprint-0.6.9 /nix/store/6rsvcml3in6cb2m45fssn1hygz4ff90n-async-2.2.3 /nix/store/cpwxq6nzfpcnapihskfcikcn73zrajkf-base64-bytestring-1.1.0.0 /nix/store/8jq5ydz19d7lq9lp4jjkvc1avscmgl4f-cryptohash-sha1-0.11.100.1 /nix/store/vj2z5m8kbkgrxibswxhyynq0vlnfckw2-generic-monoid-0.1.0.1 /nix/store/7zp7yz223krp2iymnz1q11mbzdk8slmv-port-utils-0.2.1.0 /nix/store/l4q5d062q0jqxxpi5jyhcxnlzzvwyq7n-postgres-options-0.2.0.0 /nix/store/6m3676ljyy3xaqlh11sknq1pmc51x11i-postgresql-simple-0.6.4 /nix/store/1njflxyafg7bl5nwzj3cb96ir73wbfif-temporary-1.3 /nix/store/6rsvcml3in6cb2m45fssn1hygz4ff90n-async-2.2.3 /nix/store/l4q5d062q0jqxxpi5jyhcxnlzzvwyq7n-postgres-options-0.2.0.0 /nix/store/6m3676ljyy3xaqlh11sknq1pmc51x11i-postgresql-simple-0.6.4 /nix/store/1njflxyafg7bl5nwzj3cb96ir73wbfif-temporary-1.3
stdenv: /nix/store/vzhb1c3dadkjcxkr5wq54nbpw8cp0vvn-stdenv-linux
LANG: en_US.UTF-8
TZ: UTC
version: 1.34.1.0
OLDPWD: /build
out: /nix/store/c3r4rqfm6kjng9wvmndqxxk3ck9ifhqs-tmp-postgres-1.34.1.0
compileBuildDriverPhase: runHook preCompileBuildDriver
for i in Setup.hs Setup.lhs /nix/store/4mdp8nhyfddh7bllbi7xszz7k9955n79-Setup.hs; do
test -f $i && break
done
echo setupCompileFlags: $setupCompileFlags
ghc $setupCompileFlags --make -o Setup -odir $TMPDIR -hidir $TMPDIR $i
runHook postCompileBuildDriver
AS_FOR_BUILD: as
src: /nix/store/b9bf48c11n336vlajz2lfw407a7swdc8-tmp-postgres-1.34.1.0.tar.gz
CONFIG_SHELL: /nix/store/r7shyqfd3g9yfy7kdfphsqqb1qmbwdiv-bash-4.4-p23/bin/bash
buildInputs: /nix/store/6rsvcml3in6cb2m45fssn1hygz4ff90n-async-2.2.3 /nix/store/vj2z5m8kbkgrxibswxhyynq0vlnfckw2-generic-monoid-0.1.0.1 /nix/store/gdw4bm0qsjy9i6kigq3ryrqqzq58hxwd-hspec-2.7.10 /nix/store/ck2gs9i0yfyjyzfs43d13863rycpzi7b-network-3.1.1.1 /nix/store/7zp7yz223krp2iymnz1q11mbzdk8slmv-port-utils-0.2.1.0 /nix/store/l4q5d062q0jqxxpi5jyhcxnlzzvwyq7n-postgres-options-0.2.0.0 /nix/store/6m3676ljyy3xaqlh11sknq1pmc51x11i-postgresql-simple-0.6.4 /nix/store/1njflxyafg7bl5nwzj3cb96ir73wbfif-temporary-1.3
builder: /nix/store/r7shyqfd3g9yfy7kdfphsqqb1qmbwdiv-bash-4.4-p23/bin/bash
OBJCOPY_FOR_BUILD: objcopy
preConfigurePhases: compileBuildDriverPhase updateAutotoolsGnuConfigScriptsPhase
CC: gcc
READELF: readelf
NIX_CC_FOR_BUILD: /nix/store/fjnhqq9g088qs4xi5fpqkfv25mr2qj9a-gcc-wrapper-9.3.0
postPatch:
NIX_LDFLAGS_FOR_BUILD: -L/nix/store/wqmahanj41zw906hvd07i9mc1486jh2l-ncurses-6.2/lib -L/nix/store/11hbi1mbzcz67977g1f8vb1cv7mimsj7-zlib-1.2.11/lib -L/nix/store/ncmjmz8iqv24b0j0mk037mramlzkjg0w-llvm-9.0.1-lib/lib -L/nix/store/b32j458gmds35cnpmr3d1ykb4bi49j9s-libffi-3.3/lib -L/nix/store/39l1a0ba21mk2zqs6f8liz3q0vm1rhmz-gmp-6.2.1/lib -L/nix/store/ak9l5pw630fspc672124izq07pw2lxwi-postgresql-11.12/lib -L/nix/store/s6m1iax4birz0d4sq3843psd2wcg83dl-postgresql-11.12-lib/lib -L/nix/store/12qi2wrh7nmd9lz3va9lhbz6l7dj1sf1-procps-3.3.16/lib -L/nix/store/wqmahanj41zw906hvd07i9mc1486jh2l-ncurses-6.2/lib -L/nix/store/11hbi1mbzcz67977g1f8vb1cv7mimsj7-zlib-1.2.11/lib -L/nix/store/ncmjmz8iqv24b0j0mk037mramlzkjg0w-llvm-9.0.1-lib/lib -L/nix/store/b32j458gmds35cnpmr3d1ykb4bi49j9s-libffi-3.3/lib -L/nix/store/39l1a0ba21mk2zqs6f8liz3q0vm1rhmz-gmp-6.2.1/lib -L/nix/store/ak9l5pw630fspc672124izq07pw2lxwi-postgresql-11.12/lib -L/nix/store/s6m1iax4birz0d4sq3843psd2wcg83dl-postgresql-11.12-lib/lib -L/nix/store/12qi2wrh7nmd9lz3va9lhbz6l7dj1sf1-procps-3.3.16/lib -L/nix/store/wqmahanj41zw906hvd07i9mc1486jh2l-ncurses-6.2/lib -L/nix/store/11hbi1mbzcz67977g1f8vb1cv7mimsj7-zlib-1.2.11/lib -L/nix/store/ncmjmz8iqv24b0j0mk037mramlzkjg0w-llvm-9.0.1-lib/lib -L/nix/store/b32j458gmds35cnpmr3d1ykb4bi49j9s-libffi-3.3/lib -L/nix/store/39l1a0ba21mk2zqs6f8liz3q0vm1rhmz-gmp-6.2.1/lib -L/nix/store/ak9l5pw630fspc672124izq07pw2lxwi-postgresql-11.12/lib -L/nix/store/s6m1iax4birz0d4sq3843psd2wcg83dl-postgresql-11.12-lib/lib -L/nix/store/12qi2wrh7nmd9lz3va9lhbz6l7dj1sf1-procps-3.3.16/lib
STRIP: strip
depsBuildTarget:
OBJCOPY: objcopy
NM_FOR_BUILD: nm
NIX_LOG_FD: 2
propagatedNativeBuildInputs:
preCheck: export HOME="$TMPDIR"
depsTargetTarget:
system: aarch64-linux
PWD: /build/tmp-postgres-1.34.1.0
HOME: /build
setupCompilerEnvironmentPhase: NIX_BUILD_CORES=$(( NIX_BUILD_CORES < 16 ? NIX_BUILD_CORES : 16 ))
runHook preSetupCompilerEnvironment
echo "Build with /nix/store/qq4fwk90y399lv5vk8s85pq7w4qm7gxn-ghc-8.10.4."
export PATH=/nix/store/y1wcv3fiqsh3w250vgxrbczsidhhys8b-hscolour-1.24.4/bin:$PATH
setupPackageConfDir="$TMPDIR/setup-package.conf.d"
mkdir -p $setupPackageConfDir
packageConfDir="$TMPDIR/package.conf.d"
mkdir -p $packageConfDir
setupCompileFlags="-package-db=$setupPackageConfDir -j$NIX_BUILD_CORES +RTS -A64M -RTS -threaded -rtsopts"
configureFlags="--verbose --prefix=$out --libdir=\$prefix/lib/\$compiler --libsubdir=\$abi/\$libname --docdir=$doc/share/doc/tmp-postgres-1.34.1.0 --with-gcc=$CC --package-db=$packageConfDir --ghc-options=-j$NIX_BUILD_CORES +RTS -A64M -RTS --disable-split-objs --disable-library-profiling --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --enable-tests --disable-benchmarks --enable-library-vanilla --disable-library-for-ghci --ghc-option=-split-sections $configureFlags"
for p in "${pkgsBuildBuild[@]}" "${pkgsBuildHost[@]}" "${pkgsBuildTarget[@]}"; do
# If this dependency has a package database, then copy the contents of it,
# unless it is one of our GHCs. These can appear in our dependencies when
# we are doing native builds, and they have package databases in them, but
# we do not want to copy them over.
#
# We don't need to, since those packages will be provided by the GHC when
# we compile with it, and doing so can result in having multiple copies of
# e.g. Cabal in the database with the same name and version, which is
# ambiguous.
if [ -d "$p/lib/ghc-8.10.4/package.conf.d" ] && [ "$p" != "/nix/store/qq4fwk90y399lv5vk8s85pq7w4qm7gxn-ghc-8.10.4" ] && [ "$p" != "/nix/store/qq4fwk90y399lv5vk8s85pq7w4qm7gxn-ghc-8.10.4" ]; then
cp -f "$p/lib/ghc-8.10.4/package.conf.d/"*.conf $setupPackageConfDir/
continue
fi
done
ghc-pkg --package-db="$setupPackageConfDir" recache
for p in "${pkgsHostHost[@]}" "${pkgsHostTarget[@]}"; do
# If this dependency has a package database, then copy the contents of it,
# unless it is one of our GHCs. These can appear in our dependencies when
# we are doing native builds, and they have package databases in them, but
# we do not want to copy them over.
#
# We don't need to, since those packages will be provided by the GHC when
# we compile with it, and doing so can result in having multiple copies of
# e.g. Cabal in the database with the same name and version, which is
# ambiguous.
if [ -d "$p/lib/ghc-8.10.4/package.conf.d" ] && [ "$p" != "/nix/store/qq4fwk90y399lv5vk8s85pq7w4qm7gxn-ghc-8.10.4" ] && [ "$p" != "/nix/store/qq4fwk90y399lv5vk8s85pq7w4qm7gxn-ghc-8.10.4" ]; then
cp -f "$p/lib/ghc-8.10.4/package.conf.d/"*.conf $packageConfDir/
continue
fi
if [ -d "$p/include" ]; then
configureFlags+=" --extra-include-dirs=$p/include"
fi
if [ -d "$p/lib" ]; then
configureFlags+=" --extra-lib-dirs=$p/lib"
fi
if [[ -d "$p/Library/Frameworks" ]]; then
configureFlags+=" --extra-framework-dirs=$p/Library/Frameworks"
fi
done
ghc-pkg --package-db="$packageConfDir" recache
runHook postSetupCompilerEnvironment
TMP: /build
strictDeps:
pname: tmp-postgres
NIX_BINTOOLS_WRAPPER_TARGET_BUILD_aarch64_unknown_linux_gnu: 1
NIX_ENFORCE_NO_NATIVE: 1
NIX_BINTOOLS_WRAPPER_TARGET_HOST_aarch64_unknown_linux_gnu: 1
XDG_DATA_DIRS: /nix/store/qq4fwk90y399lv5vk8s85pq7w4qm7gxn-ghc-8.10.4/share:/nix/store/wqmahanj41zw906hvd07i9mc1486jh2l-ncurses-6.2/share:/nix/store/11hbi1mbzcz67977g1f8vb1cv7mimsj7-zlib-1.2.11/share:/nix/store/wx88wizxw8a22i0fgkszfcn77fl7ijn5-llvm-9.0.1/share:/nix/store/ak9l5pw630fspc672124izq07pw2lxwi-postgresql-11.12/share:/nix/store/12qi2wrh7nmd9lz3va9lhbz6l7dj1sf1-procps-3.3.16/share:/nix/store/cs2pghm37kkvk5p51ijvjbi5dh0zcllp-patchelf-0.12/share
checkPhase: runHook preCheck
checkFlagsArray+=()
./Setup test $checkFlags ${checkFlagsArray:+"${checkFlagsArray[@]}"}
runHook postCheck
RANLIB: ranlib
OBJDUMP: objdump
AS: as
AR: ar
SSL_CERT_FILE: /no-cert-file.crt
NIX_CC: /nix/store/fjnhqq9g088qs4xi5fpqkfv25mr2qj9a-gcc-wrapper-9.3.0
NIX_CFLAGS_COMPILE: -frandom-seed=c3r4rqfm6k -isystem /nix/store/x6wxjgcv5h91lm212q223rmlfh5i0vps-llvm-9.0.1-dev/include -isystem /nix/store/q6b5spcd3hpb249p4w8g3mavg7rmg1l6-ncurses-6.2-dev/include -isystem /nix/store/gbj602qfgsjpsfc5rg38yg442048vf6y-zlib-1.2.11-dev/include -isystem /nix/store/ak9l5pw630fspc672124izq07pw2lxwi-postgresql-11.12/include -isystem /nix/store/12qi2wrh7nmd9lz3va9lhbz6l7dj1sf1-procps-3.3.16/include -isystem /nix/store/x6wxjgcv5h91lm212q223rmlfh5i0vps-llvm-9.0.1-dev/include -isystem /nix/store/q6b5spcd3hpb249p4w8g3mavg7rmg1l6-ncurses-6.2-dev/include -isystem /nix/store/gbj602qfgsjpsfc5rg38yg442048vf6y-zlib-1.2.11-dev/include -isystem /nix/store/ak9l5pw630fspc672124izq07pw2lxwi-postgresql-11.12/include -isystem /nix/store/12qi2wrh7nmd9lz3va9lhbz6l7dj1sf1-procps-3.3.16/include
depsBuildBuild: /nix/store/qq4fwk90y399lv5vk8s85pq7w4qm7gxn-ghc-8.10.4
NIX_STORE: /nix/store
configurePhase: runHook preConfigure
unset GHC_PACKAGE_PATH # Cabal complains if this variable is set during configure.
echo configureFlags: $configureFlags
./Setup configure $configureFlags 2>&1 | /nix/store/1062vq2ffyym41jxx421fz0xhhisgjm6-coreutils-8.32/bin/tee "$NIX_BUILD_TOP/cabal-configure.log"
if /nix/store/6kw5bi9ba19wki3vbhk6l28cz1jfk56x-gnugrep-3.6/bin/egrep -q -z 'Warning:.*depends on multiple versions' "$NIX_BUILD_TOP/cabal-configure.log"; then
echo >&2 "*** abort because of serious configure-time warning from Cabal"
exit 1
fi
export GHC_PACKAGE_PATH="$packageConfDir:"
runHook postConfigure
outputs: out doc
CC_FOR_BUILD: gcc
configureFlags: --verbose --prefix=/nix/store/c3r4rqfm6kjng9wvmndqxxk3ck9ifhqs-tmp-postgres-1.34.1.0 --libdir=$prefix/lib/$compiler --libsubdir=$abi/$libname --docdir=/nix/store/wp1mvmqhxchsr6525z1d18lm9k0ql05g-tmp-postgres-1.34.1.0-doc/share/doc/tmp-postgres-1.34.1.0 --with-gcc=gcc --package-db=/build/package.conf.d --ghc-options=-j2 +RTS -A64M -RTS --disable-split-objs --disable-library-profiling --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --enable-tests --disable-benchmarks --enable-library-vanilla --disable-library-for-ghci --ghc-option=-split-sections --extra-lib-dirs=/nix/store/wqmahanj41zw906hvd07i9mc1486jh2l-ncurses-6.2/lib --extra-lib-dirs=/nix/store/b32j458gmds35cnpmr3d1ykb4bi49j9s-libffi-3.3/lib --extra-lib-dirs=/nix/store/39l1a0ba21mk2zqs6f8liz3q0vm1rhmz-gmp-6.2.1/lib
prePhases: setupCompilerEnvironmentPhase
configurePlatforms:
TMPDIR: /build
name: tmp-postgres-1.34.1.0
RANLIB_FOR_BUILD: ranlib
doInstallCheck:
doCheck: 1
OBJDUMP_FOR_BUILD: objdump
NIX_BINTOOLS: /nix/store/x6hp6m5xydrycgs8y8lvymwhzk33qiia-binutils-wrapper-2.35.1
NM: nm
prePatch:
depsHostHostPropagated:
CXX: g++
SIZE_FOR_BUILD: size
depsBuildBuildPropagated:
SHELL: /nix/store/r7shyqfd3g9yfy7kdfphsqqb1qmbwdiv-bash-4.4-p23/bin/bash
TERM: xterm-256color
NIX_LDFLAGS: -rpath /nix/store/c3r4rqfm6kjng9wvmndqxxk3ck9ifhqs-tmp-postgres-1.34.1.0/lib -L/nix/store/wqmahanj41zw906hvd07i9mc1486jh2l-ncurses-6.2/lib -L/nix/store/11hbi1mbzcz67977g1f8vb1cv7mimsj7-zlib-1.2.11/lib -L/nix/store/ncmjmz8iqv24b0j0mk037mramlzkjg0w-llvm-9.0.1-lib/lib -L/nix/store/b32j458gmds35cnpmr3d1ykb4bi49j9s-libffi-3.3/lib -L/nix/store/39l1a0ba21mk2zqs6f8liz3q0vm1rhmz-gmp-6.2.1/lib -L/nix/store/ak9l5pw630fspc672124izq07pw2lxwi-postgresql-11.12/lib -L/nix/store/s6m1iax4birz0d4sq3843psd2wcg83dl-postgresql-11.12-lib/lib -L/nix/store/12qi2wrh7nmd9lz3va9lhbz6l7dj1sf1-procps-3.3.16/lib -L/nix/store/wqmahanj41zw906hvd07i9mc1486jh2l-ncurses-6.2/lib -L/nix/store/11hbi1mbzcz67977g1f8vb1cv7mimsj7-zlib-1.2.11/lib -L/nix/store/ncmjmz8iqv24b0j0mk037mramlzkjg0w-llvm-9.0.1-lib/lib -L/nix/store/b32j458gmds35cnpmr3d1ykb4bi49j9s-libffi-3.3/lib -L/nix/store/39l1a0ba21mk2zqs6f8liz3q0vm1rhmz-gmp-6.2.1/lib -L/nix/store/ak9l5pw630fspc672124izq07pw2lxwi-postgresql-11.12/lib -L/nix/store/s6m1iax4birz0d4sq3843psd2wcg83dl-postgresql-11.12-lib/lib -L/nix/store/12qi2wrh7nmd9lz3va9lhbz6l7dj1sf1-procps-3.3.16/lib
TEMPDIR: /build
shell: /nix/store/r7shyqfd3g9yfy7kdfphsqqb1qmbwdiv-bash-4.4-p23/bin/bash
NIX_BINTOOLS_FOR_BUILD: /nix/store/x6hp6m5xydrycgs8y8lvymwhzk33qiia-binutils-wrapper-2.35.1
NIX_HARDENING_ENABLE: fortify stackprotector pic strictoverflow format relro bindnow
NIX_INDENT_MAKE: 1
hardeningDisable: pie
NIX_SSL_CERT_FILE: /no-cert-file.crt
setOutputFlags:
SHLVL: 1
LOCALE_ARCHIVE: /nix/store/fys609jrmqvg30r6x6bknj6q9xpc2pji-glibc-locales-2.33-47/lib/locale/locale-archive
NIX_BUILD_CORES: 2
installPhase: runHook preInstall
./Setup copy
local packageConfDir="$out/lib/ghc-8.10.4/package.conf.d"
local packageConfFile="$packageConfDir/tmp-postgres-1.34.1.0.conf"
mkdir -p "$packageConfDir"
./Setup register --gen-pkg-config=$packageConfFile
if [ -d "$packageConfFile" ]; then
mv "$packageConfFile/"* "$packageConfDir"
rmdir "$packageConfFile"
fi
for packageConfFile in "$packageConfDir/"*; do
local pkgId=$(gawk -f /nix/store/907d7wf2d113vlv8dlhi1i3d683gc1rs-unpretty-cabal-conf.awk "$packageConfFile" \
| grep '^id:' | cut -d' ' -f2)
mv "$packageConfFile" "$packageConfDir/$pkgId.conf"
done
# delete confdir if there are no libraries
find $packageConfDir -maxdepth 0 -empty -delete;
for x in $doc/share/doc/tmp-postgres-1.34.1.0"/html/src/"*.html; do
remove-references-to -t $out $x
done
mkdir -p $doc
runHook postInstall
STRINGS_FOR_BUILD: strings
SOURCE_DATE_EPOCH: 1577603671
TEMP: /build
GHC_PACKAGE_PATH: /build/package.conf.d:
STRINGS: strings
READELF_FOR_BUILD: readelf
preInstallPhases: haddockPhase
STRIP_FOR_BUILD: strip
depsHostHost:
buildPhase: runHook preBuild
./Setup build
runHook postBuild
CXX_FOR_BUILD: g++
LD_FOR_BUILD: ld
PATH: /nix/store/y1wcv3fiqsh3w250vgxrbczsidhhys8b-hscolour-1.24.4/bin:/nix/store/qq4fwk90y399lv5vk8s85pq7w4qm7gxn-ghc-8.10.4/bin:/nix/store/fjnhqq9g088qs4xi5fpqkfv25mr2qj9a-gcc-wrapper-9.3.0/bin:/nix/store/140z2klbws1swmbs919c87ny4d6md95z-gcc-9.3.0/bin:/nix/store/m20agmrpzgcnxvbihsyyb5bjybgjdqxm-glibc-2.33-47-bin/bin:/nix/store/1062vq2ffyym41jxx421fz0xhhisgjm6-coreutils-8.32/bin:/nix/store/x6hp6m5xydrycgs8y8lvymwhzk33qiia-binutils-wrapper-2.35.1/bin:/nix/store/v1lm17fqfzq1y3vyc42cc9kwcjh7qkjp-binutils-2.35.1/bin:/nix/store/x6wxjgcv5h91lm212q223rmlfh5i0vps-llvm-9.0.1-dev/bin:/nix/store/q6b5spcd3hpb249p4w8g3mavg7rmg1l6-ncurses-6.2-dev/bin:/nix/store/wqmahanj41zw906hvd07i9mc1486jh2l-ncurses-6.2/bin:/nix/store/wx88wizxw8a22i0fgkszfcn77fl7ijn5-llvm-9.0.1/bin:/nix/store/nklrmdy17a5pzgjgqpjr7ys8s6qqca76-remove-references-to/bin:/nix/store/ak9l5pw630fspc672124izq07pw2lxwi-postgresql-11.12/bin:/nix/store/12qi2wrh7nmd9lz3va9lhbz6l7dj1sf1-procps-3.3.16/bin:/nix/store/cs2pghm37kkvk5p51ijvjbi5dh0zcllp-patchelf-0.12/bin:/nix/store/ifpbghy8yqwasg8nnvhnhkcvy6va7n9b-hspec-discover-2.7.10/bin:/nix/store/1062vq2ffyym41jxx421fz0xhhisgjm6-coreutils-8.32/bin:/nix/store/j9kh9z1hhdslj6ja10qvjim4h75qxy1v-findutils-4.7.0/bin:/nix/store/j86clp4xsfiyqqvsfnlwbzk2xyq1rkvl-diffutils-3.7/bin:/nix/store/z04l5aw4nm7wkm391ca67wz6p6813hvf-gnused-4.8/bin:/nix/store/6kw5bi9ba19wki3vbhk6l28cz1jfk56x-gnugrep-3.6/bin:/nix/store/7f127s1k0ss4n3an1wbyxi5vqwvsg78x-gawk-5.1.0/bin:/nix/store/vn85wn0r97cyc24x07rg0k0wzry44c9l-gnutar-1.34/bin:/nix/store/lb1g7prdqwrj0rmcd8g51036l18ck37h-gzip-1.10/bin:/nix/store/k6ggkvawrkcm936vfyidjghjb2gb0n0s-bzip2-1.0.6.0.2-bin/bin:/nix/store/i370n7q61s1626njpwrdwyk0xv08kaj4-gnumake-4.3/bin:/nix/store/r7shyqfd3g9yfy7kdfphsqqb1qmbwdiv-bash-4.4-p23/bin:/nix/store/hipyf18x10zgmf7zb1w59p55n0ajz7mi-patch-2.7.6/bin:/nix/store/0x211vpqm6zygdh4hi6xahl4h1m217ky-xz-5.2.5-bin/bin
NIX_BUILD_TOP: /build
NIX_CC_WRAPPER_TARGET_HOST_aarch64_unknown_linux_gnu: 1
depsBuildTargetPropagated:
NIX_CC_WRAPPER_TARGET_BUILD_aarch64_unknown_linux_gnu: 1
NIX_ENFORCE_PURITY: 1
SIZE: size
nativeBuildInputs: /nix/store/qq4fwk90y399lv5vk8s85pq7w4qm7gxn-ghc-8.10.4 /nix/store/nklrmdy17a5pzgjgqpjr7ys8s6qqca76-remove-references-to /nix/store/ak9l5pw630fspc672124izq07pw2lxwi-postgresql-11.12 /nix/store/12qi2wrh7nmd9lz3va9lhbz6l7dj1sf1-procps-3.3.16
doc: /nix/store/wp1mvmqhxchsr6525z1d18lm9k0ql05g-tmp-postgres-1.34.1.0-doc
LD: ld
AR_FOR_BUILD: ar
patches:
depsTargetTargetPropagated:
_: ./Setup
completeProcessConfigCmdLine:
--no-sync --pgdata=/tmp/tmp-postgres-cache-test-146487d23d2b61b5/tmp-postgres-cache-98e2bfc83d26dd6f/11.12Xg8IuT5q/e0X1L8Ku8tly57W9yaGIC6fSBIs=/data
completeProcessConfigStdIn: HANDLE
completeProcessConfigStdOut: HANDLE
completeProcessConfigStdErr: HANDLE
cachePlanCopy:
copyDirectoryCommandSrc:
/tmp/tmp-postgres-cache-test-146487d23d2b61b5/tmp-postgres-cache-98e2bfc83d26dd6f/11.12Xg8IuT5q/e0X1L8Ku8tly57W9yaGIC6fSBIs=/data
copyDirectoryCommandDst:
/tmp/tmp-postgres-cache-test-146487d23d2b61b5/tmp-postgres-data-4bac7498521fba5f
copyDirectoryCommandCow: True
completePlanCopy:
completePlanCreateDb:
completePlanPostgres:
completePostgresPlanProcessConfig:
completeProcessConfigEnvVars:
tmp_postgres_datadir: /build/tmp-postgres-1.34.1.0/.
HOST_PATH: /nix/store/wqmahanj41zw906hvd07i9mc1486jh2l-ncurses-6.2/bin:/nix/store/ifpbghy8yqwasg8nnvhnhkcvy6va7n9b-hspec-discover-2.7.10/bin:/nix/store/1062vq2ffyym41jxx421fz0xhhisgjm6-coreutils-8.32/bin:/nix/store/j9kh9z1hhdslj6ja10qvjim4h75qxy1v-findutils-4.7.0/bin:/nix/store/j86clp4xsfiyqqvsfnlwbzk2xyq1rkvl-diffutils-3.7/bin:/nix/store/z04l5aw4nm7wkm391ca67wz6p6813hvf-gnused-4.8/bin:/nix/store/6kw5bi9ba19wki3vbhk6l28cz1jfk56x-gnugrep-3.6/bin:/nix/store/7f127s1k0ss4n3an1wbyxi5vqwvsg78x-gawk-5.1.0/bin:/nix/store/vn85wn0r97cyc24x07rg0k0wzry44c9l-gnutar-1.34/bin:/nix/store/lb1g7prdqwrj0rmcd8g51036l18ck37h-gzip-1.10/bin:/nix/store/k6ggkvawrkcm936vfyidjghjb2gb0n0s-bzip2-1.0.6.0.2-bin/bin:/nix/store/i370n7q61s1626njpwrdwyk0xv08kaj4-gnumake-4.3/bin:/nix/store/r7shyqfd3g9yfy7kdfphsqqb1qmbwdiv-bash-4.4-p23/bin:/nix/store/hipyf18x10zgmf7zb1w59p55n0ajz7mi-patch-2.7.6/bin:/nix/store/0x211vpqm6zygdh4hi6xahl4h1m217ky-xz-5.2.5-bin/bin
haddockPhase: runHook preHaddock
./Setup haddock --html \
--hoogle \
--quickjump \
--hyperlink-source \
runHook postHaddock
NIX_CFLAGS_COMPILE_FOR_BUILD: -isystem /nix/store/x6wxjgcv5h91lm212q223rmlfh5i0vps-llvm-9.0.1-dev/include -isystem /nix/store/q6b5spcd3hpb249p4w8g3mavg7rmg1l6-ncurses-6.2-dev/include -isystem /nix/store/gbj602qfgsjpsfc5rg38yg442048vf6y-zlib-1.2.11-dev/include -isystem /nix/store/ak9l5pw630fspc672124izq07pw2lxwi-postgresql-11.12/include -isystem /nix/store/12qi2wrh7nmd9lz3va9lhbz6l7dj1sf1-procps-3.3.16/include -isystem /nix/store/x6wxjgcv5h91lm212q223rmlfh5i0vps-llvm-9.0.1-dev/include -isystem /nix/store/q6b5spcd3hpb249p4w8g3mavg7rmg1l6-ncurses-6.2-dev/include -isystem /nix/store/gbj602qfgsjpsfc5rg38yg442048vf6y-zlib-1.2.11-dev/include -isystem /nix/store/ak9l5pw630fspc672124izq07pw2lxwi-postgresql-11.12/include -isystem /nix/store/12qi2wrh7nmd9lz3va9lhbz6l7dj1sf1-procps-3.3.16/include -isystem /nix/store/x6wxjgcv5h91lm212q223rmlfh5i0vps-llvm-9.0.1-dev/include -isystem /nix/store/q6b5spcd3hpb249p4w8g3mavg7rmg1l6-ncurses-6.2-dev/include -isystem /nix/store/gbj602qfgsjpsfc5rg38yg442048vf6y-zlib-1.2.11-dev/include -isystem /nix/store/ak9l5pw630fspc672124izq07pw2lxwi-postgresql-11.12/include -isystem /nix/store/12qi2wrh7nmd9lz3va9lhbz6l7dj1sf1-procps-3.3.16/include
propagatedBuildInputs: /nix/store/wsz20sq88y183h15cnllllqn65ksd200-ansi-wl-pprint-0.6.9 /nix/store/6rsvcml3in6cb2m45fssn1hygz4ff90n-async-2.2.3 /nix/store/cpwxq6nzfpcnapihskfcikcn73zrajkf-base64-bytestring-1.1.0.0 /nix/store/8jq5ydz19d7lq9lp4jjkvc1avscmgl4f-cryptohash-sha1-0.11.100.1 /nix/store/vj2z5m8kbkgrxibswxhyynq0vlnfckw2-generic-monoid-0.1.0.1 /nix/store/7zp7yz223krp2iymnz1q11mbzdk8slmv-port-utils-0.2.1.0 /nix/store/l4q5d062q0jqxxpi5jyhcxnlzzvwyq7n-postgres-options-0.2.0.0 /nix/store/6m3676ljyy3xaqlh11sknq1pmc51x11i-postgresql-simple-0.6.4 /nix/store/1njflxyafg7bl5nwzj3cb96ir73wbfif-temporary-1.3 /nix/store/6rsvcml3in6cb2m45fssn1hygz4ff90n-async-2.2.3 /nix/store/l4q5d062q0jqxxpi5jyhcxnlzzvwyq7n-postgres-options-0.2.0.0 /nix/store/6m3676ljyy3xaqlh11sknq1pmc51x11i-postgresql-simple-0.6.4 /nix/store/1njflxyafg7bl5nwzj3cb96ir73wbfif-temporary-1.3
stdenv: /nix/store/vzhb1c3dadkjcxkr5wq54nbpw8cp0vvn-stdenv-linux
LANG: en_US.UTF-8
TZ: UTC
version: 1.34.1.0
OLDPWD: /build
out: /nix/store/c3r4rqfm6kjng9wvmndqxxk3ck9ifhqs-tmp-postgres-1.34.1.0
compileBuildDriverPhase: runHook preCompileBuildDriver
for i in Setup.hs Setup.lhs /nix/store/4mdp8nhyfddh7bllbi7xszz7k9955n79-Setup.hs; do
test -f $i && break
done
echo setupCompileFlags: $setupCompileFlags
ghc $setupCompileFlags --make -o Setup -odir $TMPDIR -hidir $TMPDIR $i
runHook postCompileBuildDriver
AS_FOR_BUILD: as
src: /nix/store/b9bf48c11n336vlajz2lfw407a7swdc8-tmp-postgres-1.34.1.0.tar.gz
CONFIG_SHELL: /nix/store/r7shyqfd3g9yfy7kdfphsqqb1qmbwdiv-bash-4.4-p23/bin/bash
buildInputs: /nix/store/6rsvcml3in6cb2m45fssn1hygz4ff90n-async-2.2.3 /nix/store/vj2z5m8kbkgrxibswxhyynq0vlnfckw2-generic-monoid-0.1.0.1 /nix/store/gdw4bm0qsjy9i6kigq3ryrqqzq58hxwd-hspec-2.7.10 /nix/store/ck2gs9i0yfyjyzfs43d13863rycpzi7b-network-3.1.1.1 /nix/store/7zp7yz223krp2iymnz1q11mbzdk8slmv-port-utils-0.2.1.0 /nix/store/l4q5d062q0jqxxpi5jyhcxnlzzvwyq7n-postgres-options-0.2.0.0 /nix/store/6m3676ljyy3xaqlh11sknq1pmc51x11i-postgresql-simple-0.6.4 /nix/store/1njflxyafg7bl5nwzj3cb96ir73wbfif-temporary-1.3
builder: /nix/store/r7shyqfd3g9yfy7kdfphsqqb1qmbwdiv-bash-4.4-p23/bin/bash
OBJCOPY_FOR_BUILD: objcopy
preConfigurePhases: compileBuildDriverPhase updateAutotoolsGnuConfigScriptsPhase
CC: gcc
READELF: readelf
NIX_CC_FOR_BUILD: /nix/store/fjnhqq9g088qs4xi5fpqkfv25mr2qj9a-gcc-wrapper-9.3.0
postPatch:
NIX_LDFLAGS_FOR_BUILD: -L/nix/store/wqmahanj41zw906hvd07i9mc1486jh2l-ncurses-6.2/lib -L/nix/store/11hbi1mbzcz67977g1f8vb1cv7mimsj7-zlib-1.2.11/lib -L/nix/store/ncmjmz8iqv24b0j0mk037mramlzkjg0w-llvm-9.0.1-lib/lib -L/nix/store/b32j458gmds35cnpmr3d1ykb4bi49j9s-libffi-3.3/lib -L/nix/store/39l1a0ba21mk2zqs6f8liz3q0vm1rhmz-gmp-6.2.1/lib -L/nix/store/ak9l5pw630fspc672124izq07pw2lxwi-postgresql-11.12/lib -L/nix/store/s6m1iax4birz0d4sq3843psd2wcg83dl-postgresql-11.12-lib/lib -L/nix/store/12qi2wrh7nmd9lz3va9lhbz6l7dj1sf1-procps-3.3.16/lib -L/nix/store/wqmahanj41zw906hvd07i9mc1486jh2l-ncurses-6.2/lib -L/nix/store/11hbi1mbzcz67977g1f8vb1cv7mimsj7-zlib-1.2.11/lib -L/nix/store/ncmjmz8iqv24b0j0mk037mramlzkjg0w-llvm-9.0.1-lib/lib -L/nix/store/b32j458gmds35cnpmr3d1ykb4bi49j9s-libffi-3.3/lib -L/nix/store/39l1a0ba21mk2zqs6f8liz3q0vm1rhmz-gmp-6.2.1/lib -L/nix/store/ak9l5pw630fspc672124izq07pw2lxwi-postgresql-11.12/lib -L/nix/store/s6m1iax4birz0d4sq3843psd2wcg83dl-postgresql-11.12-lib/lib -L/nix/store/12qi2wrh7nmd9lz3va9lhbz6l7dj1sf1-procps-3.3.16/lib -L/nix/store/wqmahanj41zw906hvd07i9mc1486jh2l-ncurses-6.2/lib -L/nix/store/11hbi1mbzcz67977g1f8vb1cv7mimsj7-zlib-1.2.11/lib -L/nix/store/ncmjmz8iqv24b0j0mk037mramlzkjg0w-llvm-9.0.1-lib/lib -L/nix/store/b32j458gmds35cnpmr3d1ykb4bi49j9s-libffi-3.3/lib -L/nix/store/39l1a0ba21mk2zqs6f8liz3q0vm1rhmz-gmp-6.2.1/lib -L/nix/store/ak9l5pw630fspc672124izq07pw2lxwi-postgresql-11.12/lib -L/nix/store/s6m1iax4birz0d4sq3843psd2wcg83dl-postgresql-11.12-lib/lib -L/nix/store/12qi2wrh7nmd9lz3va9lhbz6l7dj1sf1-procps-3.3.16/lib
STRIP: strip
depsBuildTarget:
OBJCOPY: objcopy
NM_FOR_BUILD: nm
NIX_LOG_FD: 2
propagatedNativeBuildInputs:
preCheck: export HOME="$TMPDIR"
depsTargetTarget:
system: aarch64-linux
PWD: /build/tmp-postgres-1.34.1.0
HOME: /build
setupCompilerEnvironmentPhase: NIX_BUILD_CORES=$(( NIX_BUILD_CORES < 16 ? NIX_BUILD_CORES : 16 ))
runHook preSetupCompilerEnvironment
echo "Build with /nix/store/qq4fwk90y399lv5vk8s85pq7w4qm7gxn-ghc-8.10.4."
export PATH=/nix/store/y1wcv3fiqsh3w250vgxrbczsidhhys8b-hscolour-1.24.4/bin:$PATH
setupPackageConfDir="$TMPDIR/setup-package.conf.d"
mkdir -p $setupPackageConfDir
packageConfDir="$TMPDIR/package.conf.d"
mkdir -p $packageConfDir
setupCompileFlags="-package-db=$setupPackageConfDir -j$NIX_BUILD_CORES +RTS -A64M -RTS -threaded -rtsopts"
configureFlags="--verbose --prefix=$out --libdir=\$prefix/lib/\$compiler --libsubdir=\$abi/\$libname --docdir=$doc/share/doc/tmp-postgres-1.34.1.0 --with-gcc=$CC --package-db=$packageConfDir --ghc-options=-j$NIX_BUILD_CORES +RTS -A64M -RTS --disable-split-objs --disable-library-profiling --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --enable-tests --disable-benchmarks --enable-library-vanilla --disable-library-for-ghci --ghc-option=-split-sections $configureFlags"
for p in "${pkgsBuildBuild[@]}" "${pkgsBuildHost[@]}" "${pkgsBuildTarget[@]}"; do
# If this dependency has a package database, then copy the contents of it,
# unless it is one of our GHCs. These can appear in our dependencies when
# we are doing native builds, and they have package databases in them, but
# we do not want to copy them over.
#
# We don't need to, since those packages will be provided by the GHC when
# we compile with it, and doing so can result in having multiple copies of
# e.g. Cabal in the database with the same name and version, which is
# ambiguous.
if [ -d "$p/lib/ghc-8.10.4/package.conf.d" ] && [ "$p" != "/nix/store/qq4fwk90y399lv5vk8s85pq7w4qm7gxn-ghc-8.10.4" ] && [ "$p" != "/nix/store/qq4fwk90y399lv5vk8s85pq7w4qm7gxn-ghc-8.10.4" ]; then
cp -f "$p/lib/ghc-8.10.4/package.conf.d/"*.conf $setupPackageConfDir/
continue
fi
done
ghc-pkg --package-db="$setupPackageConfDir" recache
for p in "${pkgsHostHost[@]}" "${pkgsHostTarget[@]}"; do
# If this dependency has a package database, then copy the contents of it,
# unless it is one of our GHCs. These can appear in our dependencies when
# we are doing native builds, and they have package databases in them, but
# we do not want to copy them over.
#
# We don't need to, since those packages will be provided by the GHC when
# we compile with it, and doing so can result in having multiple copies of
# e.g. Cabal in the database with the same name and version, which is
# ambiguous.
if [ -d "$p/lib/ghc-8.10.4/package.conf.d" ] && [ "$p" != "/nix/store/qq4fwk90y399lv5vk8s85pq7w4qm7gxn-ghc-8.10.4" ] && [ "$p" != "/nix/store/qq4fwk90y399lv5vk8s85pq7w4qm7gxn-ghc-8.10.4" ]; then
cp -f "$p/lib/ghc-8.10.4/package.conf.d/"*.conf $packageConfDir/
continue
fi
if [ -d "$p/include" ]; then
configureFlags+=" --extra-include-dirs=$p/include"
fi
if [ -d "$p/lib" ]; then
configureFlags+=" --extra-lib-dirs=$p/lib"
fi
if [[ -d "$p/Library/Frameworks" ]]; then
configureFlags+=" --extra-framework-dirs=$p/Library/Frameworks"
fi
done
ghc-pkg --package-db="$packageConfDir" recache
runHook postSetupCompilerEnvironment
TMP: /build
strictDeps:
pname: tmp-postgres
NIX_BINTOOLS_WRAPPER_TARGET_BUILD_aarch64_unknown_linux_gnu: 1
NIX_ENFORCE_NO_NATIVE: 1
NIX_BINTOOLS_WRAPPER_TARGET_HOST_aarch64_unknown_linux_gnu: 1
XDG_DATA_DIRS: /nix/store/qq4fwk90y399lv5vk8s85pq7w4qm7gxn-ghc-8.10.4/share:/nix/store/wqmahanj41zw906hvd07i9mc1486jh2l-ncurses-6.2/share:/nix/store/11hbi1mbzcz67977g1f8vb1cv7mimsj7-zlib-1.2.11/share:/nix/store/wx88wizxw8a22i0fgkszfcn77fl7ijn5-llvm-9.0.1/share:/nix/store/ak9l5pw630fspc672124izq07pw2lxwi-postgresql-11.12/share:/nix/store/12qi2wrh7nmd9lz3va9lhbz6l7dj1sf1-procps-3.3.16/share:/nix/store/cs2pghm37kkvk5p51ijvjbi5dh0zcllp-patchelf-0.12/share
checkPhase: runHook preCheck
checkFlagsArray+=()
./Setup test $checkFlags ${checkFlagsArray:+"${checkFlagsArray[@]}"}
runHook postCheck
RANLIB: ranlib
OBJDUMP: objdump
AS: as
AR: ar
SSL_CERT_FILE: /no-cert-file.crt
NIX_CC: /nix/store/fjnhqq9g088qs4xi5fpqkfv25mr2qj9a-gcc-wrapper-9.3.0
NIX_CFLAGS_COMPILE: -frandom-seed=c3r4rqfm6k -isystem /nix/store/x6wxjgcv5h91lm212q223rmlfh5i0vps-llvm-9.0.1-dev/include -isystem /nix/store/q6b5spcd3hpb249p4w8g3mavg7rmg1l6-ncurses-6.2-dev/include -isystem /nix/store/gbj602qfgsjpsfc5rg38yg442048vf6y-zlib-1.2.11-dev/include -isystem /nix/store/ak9l5pw630fspc672124izq07pw2lxwi-postgresql-11.12/include -isystem /nix/store/12qi2wrh7nmd9lz3va9lhbz6l7dj1sf1-procps-3.3.16/include -isystem /nix/store/x6wxjgcv5h91lm212q223rmlfh5i0vps-llvm-9.0.1-dev/include -isystem /nix/store/q6b5spcd3hpb249p4w8g3mavg7rmg1l6-ncurses-6.2-dev/include -isystem /nix/store/gbj602qfgsjpsfc5rg38yg442048vf6y-zlib-1.2.11-dev/include -isystem /nix/store/ak9l5pw630fspc672124izq07pw2lxwi-postgresql-11.12/include -isystem /nix/store/12qi2wrh7nmd9lz3va9lhbz6l7dj1sf1-procps-3.3.16/include
depsBuildBuild: /nix/store/qq4fwk90y399lv5vk8s85pq7w4qm7gxn-ghc-8.10.4
NIX_STORE: /nix/store
configurePhase: runHook preConfigure
unset GHC_PACKAGE_PATH # Cabal complains if this variable is set during configure.
echo configureFlags: $configureFlags
./Setup configure $configureFlags 2>&1 | /nix/store/1062vq2ffyym41jxx421fz0xhhisgjm6-coreutils-8.32/bin/tee "$NIX_BUILD_TOP/cabal-configure.log"
if /nix/store/6kw5bi9ba19wki3vbhk6l28cz1jfk56x-gnugrep-3.6/bin/egrep -q -z 'Warning:.*depends on multiple versions' "$NIX_BUILD_TOP/cabal-configure.log"; then
echo >&2 "*** abort because of serious configure-time warning from Cabal"
exit 1
fi
export GHC_PACKAGE_PATH="$packageConfDir:"
runHook postConfigure
outputs: out doc
CC_FOR_BUILD: gcc
configureFlags: --verbose --prefix=/nix/store/c3r4rqfm6kjng9wvmndqxxk3ck9ifhqs-tmp-postgres-1.34.1.0 --libdir=$prefix/lib/$compiler --libsubdir=$abi/$libname --docdir=/nix/store/wp1mvmqhxchsr6525z1d18lm9k0ql05g-tmp-postgres-1.34.1.0-doc/share/doc/tmp-postgres-1.34.1.0 --with-gcc=gcc --package-db=/build/package.conf.d --ghc-options=-j2 +RTS -A64M -RTS --disable-split-objs --disable-library-profiling --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --enable-tests --disable-benchmarks --enable-library-vanilla --disable-library-for-ghci --ghc-option=-split-sections --extra-lib-dirs=/nix/store/wqmahanj41zw906hvd07i9mc1486jh2l-ncurses-6.2/lib --extra-lib-dirs=/nix/store/b32j458gmds35cnpmr3d1ykb4bi49j9s-libffi-3.3/lib --extra-lib-dirs=/nix/store/39l1a0ba21mk2zqs6f8liz3q0vm1rhmz-gmp-6.2.1/lib
prePhases: setupCompilerEnvironmentPhase
configurePlatforms:
TMPDIR: /build
name: tmp-postgres-1.34.1.0
RANLIB_FOR_BUILD: ranlib
doInstallCheck:
doCheck: 1
OBJDUMP_FOR_BUILD: objdump
NIX_BINTOOLS: /nix/store/x6hp6m5xydrycgs8y8lvymwhzk33qiia-binutils-wrapper-2.35.1
NM: nm
prePatch:
depsHostHostPropagated:
CXX: g++
SIZE_FOR_BUILD: size
depsBuildBuildPropagated:
SHELL: /nix/store/r7shyqfd3g9yfy7kdfphsqqb1qmbwdiv-bash-4.4-p23/bin/bash
TERM: xterm-256color
NIX_LDFLAGS: -rpath /nix/store/c3r4rqfm6kjng9wvmndqxxk3ck9ifhqs-tmp-postgres-1.34.1.0/lib -L/nix/store/wqmahanj41zw906hvd07i9mc1486jh2l-ncurses-6.2/lib -L/nix/store/11hbi1mbzcz67977g1f8vb1cv7mimsj7-zlib-1.2.11/lib -L/nix/store/ncmjmz8iqv24b0j0mk037mramlzkjg0w-llvm-9.0.1-lib/lib -L/nix/store/b32j458gmds35cnpmr3d1ykb4bi49j9s-libffi-3.3/lib -L/nix/store/39l1a0ba21mk2zqs6f8liz3q0vm1rhmz-gmp-6.2.1/lib -L/nix/store/ak9l5pw630fspc672124izq07pw2lxwi-postgresql-11.12/lib -L/nix/store/s6m1iax4birz0d4sq3843psd2wcg83dl-postgresql-11.12-lib/lib -L/nix/store/12qi2wrh7nmd9lz3va9lhbz6l7dj1sf1-procps-3.3.16/lib -L/nix/store/wqmahanj41zw906hvd07i9mc1486jh2l-ncurses-6.2/lib -L/nix/store/11hbi1mbzcz67977g1f8vb1cv7mimsj7-zlib-1.2.11/lib -L/nix/store/ncmjmz8iqv24b0j0mk037mramlzkjg0w-llvm-9.0.1-lib/lib -L/nix/store/b32j458gmds35cnpmr3d1ykb4bi49j9s-libffi-3.3/lib -L/nix/store/39l1a0ba21mk2zqs6f8liz3q0vm1rhmz-gmp-6.2.1/lib -L/nix/store/ak9l5pw630fspc672124izq07pw2lxwi-postgresql-11.12/lib -L/nix/store/s6m1iax4birz0d4sq3843psd2wcg83dl-postgresql-11.12-lib/lib -L/nix/store/12qi2wrh7nmd9lz3va9lhbz6l7dj1sf1-procps-3.3.16/lib
TEMPDIR: /build
shell: /nix/store/r7shyqfd3g9yfy7kdfphsqqb1qmbwdiv-bash-4.4-p23/bin/bash
NIX_BINTOOLS_FOR_BUILD: /nix/store/x6hp6m5xydrycgs8y8lvymwhzk33qiia-binutils-wrapper-2.35.1
NIX_HARDENING_ENABLE: fortify stackprotector pic strictoverflow format relro bindnow
NIX_INDENT_MAKE: 1
hardeningDisable: pie
NIX_SSL_CERT_FILE: /no-cert-file.crt
setOutputFlags:
SHLVL: 1
LOCALE_ARCHIVE: /nix/store/fys609jrmqvg30r6x6bknj6q9xpc2pji-glibc-locales-2.33-47/lib/locale/locale-archive
NIX_BUILD_CORES: 2
installPhase: runHook preInstall
./Setup copy
local packageConfDir="$out/lib/ghc-8.10.4/package.conf.d"
local packageConfFile="$packageConfDir/tmp-postgres-1.34.1.0.conf"
mkdir -p "$packageConfDir"
./Setup register --gen-pkg-config=$packageConfFile
if [ -d "$packageConfFile" ]; then
mv "$packageConfFile/"* "$packageConfDir"
rmdir "$packageConfFile"
fi
for packageConfFile in "$packageConfDir/"*; do
local pkgId=$(gawk -f /nix/store/907d7wf2d113vlv8dlhi1i3d683gc1rs-unpretty-cabal-conf.awk "$packageConfFile" \
| grep '^id:' | cut -d' ' -f2)
mv "$packageConfFile" "$packageConfDir/$pkgId.conf"
done
# delete confdir if there are no libraries
find $packageConfDir -maxdepth 0 -empty -delete;
for x in $doc/share/doc/tmp-postgres-1.34.1.0"/html/src/"*.html; do
remove-references-to -t $out $x
done
mkdir -p $doc
runHook postInstall
STRINGS_FOR_BUILD: strings
SOURCE_DATE_EPOCH: 1577603671
TEMP: /build
GHC_PACKAGE_PATH: /build/package.conf.d:
STRINGS: strings
READELF_FOR_BUILD: readelf
preInstallPhases: haddockPhase
STRIP_FOR_BUILD: strip
depsHostHost:
buildPhase: runHook preBuild
./Setup build
runHook postBuild
CXX_FOR_BUILD: g++
LD_FOR_BUILD: ld
PATH: /nix/store/y1wcv3fiqsh3w250vgxrbczsidhhys8b-hscolour-1.24.4/bin:/nix/store/qq4fwk90y399lv5vk8s85pq7w4qm7gxn-ghc-8.10.4/bin:/nix/store/fjnhqq9g088qs4xi5fpqkfv25mr2qj9a-gcc-wrapper-9.3.0/bin:/nix/store/140z2klbws1swmbs919c87ny4d6md95z-gcc-9.3.0/bin:/nix/store/m20agmrpzgcnxvbihsyyb5bjybgjdqxm-glibc-2.33-47-bin/bin:/nix/store/1062vq2ffyym41jxx421fz0xhhisgjm6-coreutils-8.32/bin:/nix/store/x6hp6m5xydrycgs8y8lvymwhzk33qiia-binutils-wrapper-2.35.1/bin:/nix/store/v1lm17fqfzq1y3vyc42cc9kwcjh7qkjp-binutils-2.35.1/bin:/nix/store/x6wxjgcv5h91lm212q223rmlfh5i0vps-llvm-9.0.1-dev/bin:/nix/store/q6b5spcd3hpb249p4w8g3mavg7rmg1l6-ncurses-6.2-dev/bin:/nix/store/wqmahanj41zw906hvd07i9mc1486jh2l-ncurses-6.2/bin:/nix/store/wx88wizxw8a22i0fgkszfcn77fl7ijn5-llvm-9.0.1/bin:/nix/store/nklrmdy17a5pzgjgqpjr7ys8s6qqca76-remove-references-to/bin:/nix/store/ak9l5pw630fspc672124izq07pw2lxwi-postgresql-11.12/bin:/nix/store/12qi2wrh7nmd9lz3va9lhbz6l7dj1sf1-procps-3.3.16/bin:/nix/store/cs2pghm37kkvk5p51ijvjbi5dh0zcllp-patchelf-0.12/bin:/nix/store/ifpbghy8yqwasg8nnvhnhkcvy6va7n9b-hspec-discover-2.7.10/bin:/nix/store/1062vq2ffyym41jxx421fz0xhhisgjm6-coreutils-8.32/bin:/nix/store/j9kh9z1hhdslj6ja10qvjim4h75qxy1v-findutils-4.7.0/bin:/nix/store/j86clp4xsfiyqqvsfnlwbzk2xyq1rkvl-diffutils-3.7/bin:/nix/store/z04l5aw4nm7wkm391ca67wz6p6813hvf-gnused-4.8/bin:/nix/store/6kw5bi9ba19wki3vbhk6l28cz1jfk56x-gnugrep-3.6/bin:/nix/store/7f127s1k0ss4n3an1wbyxi5vqwvsg78x-gawk-5.1.0/bin:/nix/store/vn85wn0r97cyc24x07rg0k0wzry44c9l-gnutar-1.34/bin:/nix/
WARNING: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.
2021-07-22 04:38:01 GMT [1438]: LOG: listening on IPv4 address "127.0.0.1", port 50111
2021-07-22 04:38:01 GMT [1438]: LOG: listening on IPv6 address "::1", port 50111
2021-07-22 04:38:01 GMT [1438]: LOG: listening on Unix socket "/tmp/tmp-postgres-cache-test-146487d23d2b61b5/tmp-postgres-socket-ea53a3eeb67f9a9d/.s.PGSQL.50111"
2021-07-22 04:38:01 GMT [1439]: LOG: database system was shut down at 2021-07-22 04:38:01 GMT
2021-07-22 04:38:01 GMT [1440]: LOG: connection received: host=[local]
2021-07-22 04:38:01 GMT [1440]: FATAL: the database system is starting up
2021-07-22 04:38:01 GMT [1438]: LOG: database system is ready to accept connections
2021-07-22 04:38:01 GMT [1447]: LOG: connection received: host=[local]
2021-07-22 04:38:01 GMT [1447]: LOG: connection authorized: user=nixbld database=template1
2021-07-22 04:38:01 GMT [1447]: LOG: duration: 0.138 ms statement: SET datestyle TO ISO;SET client_encoding TO UTF8;SET standard_conforming_strings TO on
2021-07-22 04:38:01 GMT [1447]: LOG: disconnection: session time: 0:00:00.007 user=nixbld database=template1 host=[local]
2021-07-22 04:38:01 GMT [1438]: LOG: received immediate shutdown request
2021-07-22 04:38:01 GMT [1447]: WARNING: terminating connection because of crash of another server process
2021-07-22 04:38:01 GMT [1447]: DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
2021-07-22 04:38:01 GMT [1447]: HINT: In a moment you should be able to reconnect to the database and repeat your command.
2021-07-22 04:38:01 GMT [1444]: WARNING: terminating connection because of crash of another server process
2021-07-22 04:38:01 GMT [1444]: DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
2021-07-22 04:38:01 GMT [1444]: HINT: In a moment you should be able to reconnect to the database and repeat your command.
2021-07-22 04:38:01 GMT [1438]: LOG: database system is shut down
2021-07-22 04:38:04 GMT [1469]: LOG: listening on IPv4 address "127.0.0.1", port 45951
2021-07-22 04:38:04 GMT [1469]: LOG: listening on IPv6 address "::1", port 45951
2021-07-22 04:38:04 GMT [1469]: LOG: listening on Unix socket "/tmp/tmp-postgres-socket-506fb014aba8369b/.s.PGSQL.45951"
2021-07-22 04:38:04 GMT [1470]: LOG: database system was shut down at 2021-07-22 04:38:03 GMT
2021-07-22 04:38:04 GMT [1471]: FATAL: the database system is starting up
2021-07-22 04:38:04 GMT [1469]: LOG: database system is ready to accept connections
2021-07-22 04:38:04 GMT [1478]: LOG: duration: 0.134 ms statement: SET datestyle TO ISO;SET client_encoding TO UTF8;SET standard_conforming_strings TO on
2021-07-22 04:38:04 GMT [1479]: LOG: duration: 0.109 ms statement: SET datestyle TO ISO;SET client_encoding TO UTF8;SET standard_conforming_strings TO on
2021-07-22 04:38:04 GMT [1479]: LOG: duration: 0.011 ms plan:
Query Text: SELECT 1
Result (cost=0.00..0.01 rows=1 width=4) (actual time=0.001..0.002 rows=1 loops=1)
Output: 1
2021-07-22 04:38:04 GMT [1479]: LOG: duration: 0.414 ms statement: SELECT 1
2021-07-22 04:38:04 GMT [1480]: LOG: duration: 0.101 ms statement: SET datestyle TO ISO;SET client_encoding TO UTF8;SET standard_conforming_strings TO on
2021-07-22 04:38:04 GMT [1480]: LOG: duration: 0.025 ms plan:
Query Text: SELECT COUNT(*) FROM pg_catalog.pg_database
Aggregate (cost=1.02..1.03 rows=1 width=8) (actual time=0.015..0.016 rows=1 loops=1)
Output: count(*)
Buffers: shared hit=1
-> Seq Scan on pg_catalog.pg_database (cost=0.00..1.02 rows=2 width=0) (actual time=0.008..0.009 rows=3 loops=1)
Output: datname, datdba, encoding, datcollate, datctype, datistemplate, datallowconn, datconnlimit, datlastsysoid, datfrozenxid, datminmxid, dattablespace, datacl
Buffers: shared hit=1
2021-07-22 04:38:04 GMT [1480]: LOG: duration: 1.754 ms statement: SELECT COUNT(*) FROM pg_catalog.pg_database
2021-07-22 04:38:04 GMT [1469]: LOG: received immediate shutdown request
2021-07-22 04:38:04 GMT [1480]: WARNING: terminating connection because of crash of another server process
2021-07-22 04:38:04 GMT [1480]: DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
2021-07-22 04:38:04 GMT [1480]: HINT: In a moment you should be able to reconnect to the database and repeat your command.
2021-07-22 04:38:04 GMT [1475]: WARNING: terminating connection because of crash of another server process
2021-07-22 04:38:04 GMT [1475]: DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
2021-07-22 04:38:04 GMT [1475]: HINT: In a moment you should be able to reconnect to the database and repeat your command.
2021-07-22 04:38:04 GMT [1469]: LOG: database system is shut down
cp: '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/PG_VERSION' and '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/PG_VERSION' are the same file
cp: '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/base' and '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/base' are the same file
cp: '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/global' and '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/global' are the same file
cp: '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_commit_ts' and '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_commit_ts' are the same file
cp: '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_dynshmem' and '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_dynshmem' are the same file
cp: '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_hba.conf' and '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_hba.conf' are the same file
cp: '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_ident.conf' and '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_ident.conf' are the same file
cp: '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_logical' and '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_logical' are the same file
cp: '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_multixact' and '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_multixact' are the same file
cp: '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_notify' and '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_notify' are the same file
cp: '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_replslot' and '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_replslot' are the same file
cp: '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_serial' and '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_serial' are the same file
cp: '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_snapshots' and '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_snapshots' are the same file
cp: '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_stat' and '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_stat' are the same file
cp: '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_stat_tmp' and '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_stat_tmp' are the same file
cp: '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_subtrans' and '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_subtrans' are the same file
cp: '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_tblspc' and '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_tblspc' are the same file
cp: '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_twophase' and '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_twophase' are the same file
cp: '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_wal' and '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_wal' are the same file
cp: '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_xact' and '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/pg_xact' are the same file
cp: '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/postgresql.auto.conf' and '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/postgresql.auto.conf' are the same file
cp: '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/postgresql.conf' and '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/postgresql.conf' are the same file
cp: '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/postmaster.opts' and '/tmp/tmp-postgres-cache-action-8c76d99dd6c59597/cached/postmaster.opts' are the same file
store/lb1g7prdqwrj0rmcd8g51036l18ck37h-gzip-1.10/bin:/nix/store/k6ggkvawrkcm936vfyidjghjb2gb0n0s-bzip2-1.0.6.0.2-bin/bin:/nix/store/i370n7q61s1626njpwrdwyk0xv08kaj4-gnumake-4.3/bin:/nix/store/r7shyqfd3g9yfy7kdfphsqqb1qmbwdiv-bash-4.4-p23/bin:/nix/store/hipyf18x10zgmf7zb1w59p55n0ajz7mi-patch-2.7.6/bin:/nix/store/0x211vpqm6zygdh4hi6xahl4h1m217ky-xz-5.2.5-bin/bin
NIX_BUILD_TOP: /build
NIX_CC_WRAPPER_TARGET_HOST_aarch64_unknown_linux_gnu: 1
depsBuildTargetPropagated:
NIX_CC_WRAPPER_TARGET_BUILD_aarch64_unknown_linux_gnu: 1
NIX_ENFORCE_PURITY: 1
SIZE: size
nativeBuildInputs: /nix/store/qq4fwk90y399lv5vk8s85pq7w4qm7gxn-ghc-8.10.4 /nix/store/nklrmdy17a5pzgjgqpjr7ys8s6qqca76-remove-references-to /nix/store/ak9l5pw630fspc672124izq07pw2lxwi-postgresql-11.12 /nix/store/12qi2wrh7nmd9lz3va9lhbz6l7dj1sf1-procps-3.3.16
doc: /nix/store/wp1mvmqhxchsr6525z1d18lm9k0ql05g-tmp-postgres-1.34.1.0-doc
LD: ld
AR_FOR_BUILD: ar
patches:
depsTargetTargetPropagated:
_: ./Setup
completeProcessConfigCmdLine:
-D/tmp/tmp-postgres-cache-test-146487d23d2b61b5/tmp-postgres-data-4bac7498521fba5f -p50111
completeProcessConfigStdIn: HANDLE
completeProcessConfigStdOut: HANDLE
completeProcessConfigStdErr: HANDLE
completePostgresPlanClientOptions: host=/tmp/tmp-postgres-cache-test-146487d23d2b61b5/tmp-postgres-socket-ea53a3eeb67f9a9d dbname=postgres port=50111
completePlanConfig:
archive_mode=off
client_min_messages=WARNING
commit_delay=100000
fsync=off
full_page_writes=off
lc_messages='C'
listen_addresses='127.0.0.1,::1'
log_autovacuum_min_duration=0
log_checkpoints=on
log_connections=on
log_disconnections=on
log_error_verbosity=default
log_line_prefix='%t [%p]: '
log_lock_waits=on
log_min_duration_statement=0
log_min_error_statement=WARNING
log_min_messages=WARNING
log_statement=none
log_temp_files=0
max_wal_senders=0
shared_buffers=12MB
synchronous_commit=off
track_io_timing=on
unix_socket_directories='/tmp/tmp-postgres-cache-test-146487d23d2b61b5/tmp-postgres-socket-ea53a3eeb67f9a9d'
wal_level=minimal
completePlanDataDirectory: /tmp/tmp-postgres-cache-test-146487d23d2b61b5/tmp-postgres-data-4bac7498521fba5f
The files belonging to this database system will be owned by user "nixbld".
This user must also own the server process.
The database cluster will be initialized with locale "en_US.UTF-8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".
Data page checksums are disabled.
creating directory /tmp/tmp-postgres-cache-test-146487d23d2b61b5/tmp-postgres-cache-98e2bfc83d26dd6f/11.12Xg8IuT5q/e0X1L8Ku8tly57W9yaGIC6fSBIs=/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default timezone ... UTC
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
Sync to disk skipped.
The data directory might become corrupt if the operating system crashes.
Success. You can now start the database server using:
/nix/store/ak9l5pw630fspc672124izq07pw2lxwi-postgresql-11.12/bin/pg_ctl -D '/tmp/tmp-postgres-cache-test-146487d23d2b61b5/tmp-postgres-cache-98e2bfc83d26dd6f/11.12Xg8IuT5q/e0X1L8Ku8tly57W9yaGIC6fSBIs=/data' -l logfile start
StartPostgres
WaitForDB
TryToConnect
TryToConnect
TryToConnect
TryToConnect
TryToConnect
TryToConnect
TryToConnect
TryToConnect
TryToConnect
TryToConnect
withDbCacheConfig actually caches the config and cleans up
withDbCache seems to work
fails when
timesout if the connection parameters are wrong
does not timeout quickly with an invalid connection and large timeout
throws StartPostgresFailed if the host does not exist
throws StartPostgresFailed if the host does not resolve to ip that is local
throws StartPostgresFailed if the host path does not exist
No initdb plan causes failure
initdb with non-empty data directory fails with InitDbFailed
invalid initdb options cause an error
invalid createdb plan causes an error
throws if initdb is not on the path
throws if createdb is not on the path
withSnapshot
works
cacheAction
creates the cache if it does not exist FAILED [1]
doesnt create the cache if it exists
fails if the cache director and data directory are the same
works if two threads try to create a cache at the same time
nested calls don't deadlock
doesnt deadlock if the parent directory is missing
doesnt deadlock if the parent directory is missing multithreaded version FAILED [2]
stopPostgres cannot be connected to
prettyPrintConfig seems to work
prettyPrintDB seems to work
can support backup and restore
Failures:
test/Main.hs:88:3:
1) cacheAction creates the cache if it does not exist
expected: []
but got: ["tmp-postgres-data-8f88288442e4f93d"]
To rerun use: --match "/cacheAction/creates the cache if it does not exist/"
test/Main.hs:88:3:
2) cacheAction doesnt deadlock if the parent directory is missing multithreaded version
expected: []
but got: ["tmp-postgres-data-97141c9a423dbb41"]
To rerun use: --match "/cacheAction/doesnt deadlock if the parent directory is missing multithreaded version/"
Randomized with seed 1989825701
Finished in 56.5818 seconds
36 examples, 2 failures
Test suite test: FAIL
Test suite logged to: dist/test/tmp-postgres-1.34.1.0-test.log
Example failure on aarch64, although I have seen it happen on other architectures as well (not quite sure if it was the same failure though).