git.iko.soy/typeable/nixpkgs
on master help sign in
debian-build: fix checkinstall invocation (#15538)

Checkinstall had two problems: 1. when it was called without a version (e.g. with a derivation created by fetchFromGitHub) it would use `src` as debian version, which caused dpkg to fail 2. when dpkg failed, it would invoke the pager with the log, which hangs the build So now 1. the default version is the dummy `0.0.0` 2. the used pager is `cat`

commit28f8ca560f7c026813f2fd5e0606ca0c6139e7b8 authorProfpatsch <mail@profpatsch.de> dateThu 19 May 2016, 10:41 (11 years ago) parentda2788c
1 file changed+5−1
pkgs/build-support/release/debian-build.nix+5−1
pkgs/build-support/release/debian-build.nix+5−1
@@ -54,11 +54,15 @@ vmTools.runInLinuxImage (stdenv.mkDerivation (
5454 eval "$preInstall"
5555 export LOGNAME=root
5656
57+ # otherwise build hangs when it wants to display
58+ # the log file
59+ export PAGER=cat
5760 ${checkinstall}/sbin/checkinstall --nodoc -y -D \
5861 --fstrans=${if fsTranslation then "yes" else "no"} \
5962 --requires="${concatStringsSep "," debRequires}" \
6063 --provides="${concatStringsSep "," debProvides}" \
61− ${optionalString (src ? version) "--pkgversion=$(echo ${src.version} | tr _ -)"} \
64+ ${if (src ? version) then "--pkgversion=$(echo ${src.version} | tr _ -)"
65+ else "--pkgversion=0.0.0"} \
6266 ''${debMaintainer:+--maintainer="'$debMaintainer'"} \
6367 ''${debName:+--pkgname="'$debName'"} \
6468 $checkInstallFlags \