ports/112820: kdebase: kdm runs 'halt' not 'shutdown -p'

Brad Huntting huntting at studious.glarp.com
Sun May 20 20:10:06 UTC 2007


>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 at 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:



More information about the freebsd-ports-bugs mailing list