From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ulrich Mueller Newsgroups: gmane.emacs.bugs Subject: bug#7717: 24.0.50; "games" user is hardcoded in build system Date: Thu, 23 Dec 2010 09:36:42 +0100 Message-ID: <19731.2586.417212.58988@a1i15.kph.uni-mainz.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----cutting-here-may-damage-your-screen-surface----54187318----" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1293094412 3505 80.91.229.12 (23 Dec 2010 08:53:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 23 Dec 2010 08:53:32 +0000 (UTC) To: 7717@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 23 09:53:27 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PVgvP-0003Ui-2b for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Dec 2010 09:53:27 +0100 Original-Received: from localhost ([127.0.0.1]:51990 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVgvO-0005eT-KV for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Dec 2010 03:53:26 -0500 Original-Received: from [140.186.70.92] (port=44741 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVgvD-0005eG-CZ for bug-gnu-emacs@gnu.org; Thu, 23 Dec 2010 03:53:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PVgv3-0001DZ-4T for bug-gnu-emacs@gnu.org; Thu, 23 Dec 2010 03:53:15 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51961) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PVgv3-0001DV-1n for bug-gnu-emacs@gnu.org; Thu, 23 Dec 2010 03:53:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PVgZh-0003tD-US; Thu, 23 Dec 2010 03:31:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ulrich Mueller Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Dec 2010 08:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7717 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.129309302614906 (code B ref -1); Thu, 23 Dec 2010 08:31:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Dec 2010 08:30:26 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PVgZ6-0003sN-Sa for submit@debbugs.gnu.org; Thu, 23 Dec 2010 03:30:25 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PVgZ5-0003sC-7C for submit@debbugs.gnu.org; Thu, 23 Dec 2010 03:30:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PVgfT-0006tV-2u for submit@debbugs.gnu.org; Thu, 23 Dec 2010 03:36:59 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:33898) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PVgfT-0006tR-0t for submit@debbugs.gnu.org; Thu, 23 Dec 2010 03:36:59 -0500 Original-Received: from [140.186.70.92] (port=46171 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVgfR-0001PI-Se for bug-gnu-emacs@gnu.org; Thu, 23 Dec 2010 03:36:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PVgfQ-0006tC-OR for bug-gnu-emacs@gnu.org; Thu, 23 Dec 2010 03:36:57 -0500 Original-Received: from a1iwww1.kph.uni-mainz.de ([134.93.134.1]:52707) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PVgfQ-0006sW-Gl for bug-gnu-emacs@gnu.org; Thu, 23 Dec 2010 03:36:56 -0500 Original-Received: from a1i15.kph.uni-mainz.de (a1i15.kph.uni-mainz.de [134.93.134.92]) by a1iwww1.kph.uni-mainz.de (8.14.0/8.13.4) with ESMTP id oBN8agjt020242 for ; Thu, 23 Dec 2010 09:36:43 +0100 Original-Received: from a1i15.kph.uni-mainz.de (localhost [127.0.0.1]) by a1i15.kph.uni-mainz.de (8.14.3/8.14.2) with ESMTP id oBN8ag74021526; Thu, 23 Dec 2010 09:36:42 +0100 Original-Received: (from ulm@localhost) by a1i15.kph.uni-mainz.de (8.14.4/8.14.4/Submit) id oBN8aghA021523; Thu, 23 Dec 2010 09:36:42 +0100 X-Mailer: VM 8.1.1 under 23.2.1 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 23 Dec 2010 03:31:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:42740 Archived-At: ------cutting-here-may-damage-your-screen-surface----54187318---- Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit Tags: patch The build system of Emacs currently hardcodes the "games" user that is used for shared score files in ${localstatedir}. While usage of that account name may be widespread, it is not universal. For example, in Gentoo the name is configurable. Since a variable "gameuser" and the autoconf plumbing for it already exist, the only missing piece is a configure option. See attached patch. 2010-12-22 Ulrich Mueller * configure.in: Make gameuser configurable. ------cutting-here-may-damage-your-screen-surface----54187318---- Content-Type: text/plain; name="emacs-gameuser.diff" Content-Disposition: inline; filename="emacs-gameuser.diff" Content-Transfer-Encoding: 7bit --- emacs-orig/configure.in +++ emacs/configure.in @@ -45,8 +45,6 @@ docdir='${datadir}/emacs/${version}/etc' gamedir='${localstatedir}/games/emacs' -gameuser=games - dnl OPTION_DEFAULT_OFF(NAME, HELP-STRING) dnl Create a new --with option that defaults to being disabled. dnl NAME is the base name of the option. The shell variable with_NAME @@ -203,6 +201,13 @@ The default is /usr/lib, or /usr/lib64 on some platforms.])]) CRT_DIR="${with_crt_dir}" +AC_ARG_WITH(gameuser, +[AS_HELP_STRING([--with-gameuser=USER], + [user for shared score files; default games])]) +test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \ + && gameuser="${with_gameuser}" +test "X$gameuser" = X && gameuser=games + AC_ARG_WITH([gnustep-conf],dnl [AS_HELP_STRING([--with-gnustep-conf=PATH],[path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE, or /etc/GNUstep/GNUstep.conf])]) test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \ ------cutting-here-may-damage-your-screen-surface----54187318------