From owner-freebsd-ports-bugs@FreeBSD.ORG Sun May 20 20:10:06 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7219E16A41F for ; Sun, 20 May 2007 20:10:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 381AA13C45B for ; Sun, 20 May 2007 20:10:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l4KKA6xH022263 for ; Sun, 20 May 2007 20:10:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l4KKA5Cd022257; Sun, 20 May 2007 20:10:05 GMT (envelope-from gnats) Resent-Date: Sun, 20 May 2007 20:10:05 GMT Resent-Message-Id: <200705202010.l4KKA5Cd022257@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Brad Huntting Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BE08A16A4E8 for ; Sun, 20 May 2007 20:00:13 +0000 (UTC) (envelope-from huntting@studious.glarp.com) Received: from studious.glarp.com (71-218-66-51.hlrn.qwest.net [71.218.66.51]) by mx1.freebsd.org (Postfix) with ESMTP id D619513C46A for ; Sun, 20 May 2007 20:00:11 +0000 (UTC) (envelope-from huntting@studious.glarp.com) Received: from studious.glarp.com (localhost [127.0.0.1]) by studious.glarp.com (8.13.8/8.13.8) with ESMTP id l4JL0xEV001480 for ; Sat, 19 May 2007 15:00:59 -0600 (MDT) (envelope-from huntting@studious.glarp.com) Received: (from huntting@localhost) by studious.glarp.com (8.13.8/8.13.8/Submit) id l4JI6p3F012895; Sat, 19 May 2007 12:06:51 -0600 (MDT) (envelope-from huntting) Message-Id: <200705191806.l4JI6p3F012895@studious.glarp.com> Date: Sat, 19 May 2007 12:06:51 -0600 (MDT) From: Brad Huntting To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/112820: kdebase: kdm runs 'halt' not 'shutdown -p' X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Brad Huntting List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 May 2007 20:10:06 -0000 >Number: 112820 >Category: ports >Synopsis: kdebase: kdm runs 'halt' not 'shutdown -p' >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun May 20 20:10:05 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Brad Huntting >Release: FreeBSD 6.2-STABLE i386 >Organization: >Environment: System: FreeBSD studious.glarp.com 6.2-STABLE FreeBSD 6.2-STABLE #2: Fri Feb 9 12:54:12 MST 2007 root@studious.glarp.com:/usr/src/sys/i386/compile/STUDIOUS i386 >Description: Dispite its best attempts, the patch file /usr/ports/x11/kdebase3/files/patch-kdm-config.def does not work as advertised. The compiled-in default action for kdm-bin's "shutdown" option is (still) "halt" (with no arguments). Looking at the kdm/config.def file which the afore mentioned patch attempts to fix, it would appear that the cpp symbol 'BSD' is not defined. If there are other places in the KDE system that use the 'BSD' preprocessor symbol, then it should probably be defined globally for all kde builds. >How-To-Repeat: Compile kdebase. Edit the /usr/local/share/config/kdm/kdmrc and make sure the "HaltCmd=" line is commented out. Start kdm. Select the 'shutdown' option. Watch your laptop battery discharge. ;) >Fix: Perhaps adding -DBSD to the CPPFLAGS variable in /usr/ports/Mk/bsd.kde.mk? Or perhaps just fixing the patch file by not assuming BSD is defined. I dont know which would be more correct. >Release-Note: >Audit-Trail: >Unformatted: