From 204ec0cd43d12fd56b3a9d28396321cc56da5fd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 20 Jan 2014 22:11:14 +0100 Subject: [PATCH] stdenv/setup.sh: add .gz extension to links to .gz man pages The links weren't broken since 0a44a09, but man showed garbage. Tested on several packages (sudo, dosfstools, xz). --- pkgs/stdenv/generic/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh index 3a192b820282..4740c6386339 100644 --- a/pkgs/stdenv/generic/setup.sh +++ b/pkgs/stdenv/generic/setup.sh @@ -768,7 +768,7 @@ fixupPhase() { done for f in "$out"/share/man/*/* "$out"/share/man/*/*/*; do if [ -L "$f" -a -f `readlink -f "$f"`.gz ]; then - ln -sf `readlink "$f"`.gz "$f" + ln -sf `readlink "$f"`.gz "$f".gz && rm "$f" fi done unset GLOBIGNORE