From 2894233ff6172bb69e16766680fcd6e94dfaa0b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 22 Apr 2010 14:01:21 +0000 Subject: [PATCH] Updating xterm so it releases the effective gid (for setgid to utmp purposes). svn path=/nixpkgs/trunk/; revision=21239 --- pkgs/applications/misc/xterm/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/misc/xterm/default.nix b/pkgs/applications/misc/xterm/default.nix index c9914319cc09..9f6a8a59e720 100644 --- a/pkgs/applications/misc/xterm/default.nix +++ b/pkgs/applications/misc/xterm/default.nix @@ -12,8 +12,19 @@ stdenv.mkDerivation rec { --enable-load-vt-fonts --enable-i18n --enable-doublechars --enable-luit --enable-mini-luit --with-tty-group=tty"; + # Hack to get xterm built with the feature of releasing a possible setgid of 'utmp', + # decided by the sysadmin to allow the xterm reporting to /var/run/utmp + # If we used the configure option, that would have affected the xterm installation, + # (setgid with the given group set), and at build time the environment even doesn't have + # groups, and the builder will end up removing any setgid. + postConfigure = '' + echo '#define USE_UTMP_SETGID 1' + ''; + meta = { homepage = http://invisible-island.net/xterm; + license = "BSD"; + maintainers = with stdenv.lib.maintainers; [viric]; + platforms = with stdenv.lib.platforms; linux; }; } -