Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Feb 2009 17:49:25 GMT
From:      "System V. Unix" <sysv@yahoo.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/131304: Xorg/Xfree/X11R6 startx problem with 'hexdump -e' option
Message-ID:  <200902021749.n12HnPiL092732@www.freebsd.org>
Resent-Message-ID: <200902021750.n12Ho411002774@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         131304
>Category:       ports
>Synopsis:       Xorg/Xfree/X11R6 startx problem with 'hexdump -e' option
>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:   Mon Feb 02 17:50:04 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     System V. Unix
>Release:        7.1-RELEASE
>Organization:
None
>Environment:
FreeBSD f 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Sun Feb  1 13:37:05 MST 2009 i386
>Description:
The perl package/port devel/p5-Data-HexDump installs a binary,
/usr/local/bin/hexdump does not have the -e command line option, and 
thus conflicts with the X11 startx script's attempted use of the binary to create the $mcookie.
>How-To-Repeat:
On any FreeBSD release with X11*, just install Perl port devel/p5-Data-HexDump, have /usr/local/bin:/usr/local/sbin superceed /usr/bin and /usr/sbin in $PATH. You will see the hexdump program fail since the -e option is only in the native FreeBSD binary. 
>Fix:
The X11 startx script simply needs to use the absolute path for 
'/usr/bin/hexdump -e'
from FreeBSD core, so that the two packages can co-exist.

--- usr/local/bin/startx.orig	2008-06-29 11:10:50.000000000 -0600
+++ usr/local/bin/startx	2008-08-09 23:22:11.000000000 -0600
@@ -126,7 +126,7 @@

-mcookie=`dd if=/dev/random bs=16 count=1 2>/dev/null | hexdump -e \\"%08x\\"`
+mcookie=`dd if=/dev/random bs=16 count=1 2>/dev/null | /usr/bin/hexdump -e \\"%08x\\"`
 if test x"$mcookie" = x; then
                 echo "Couldn't create cookie"
                 exit 1

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902021749.n12HnPiL092732>