Bug 131304 - x11/xorg: Xorg/Xfree/X11R6 startx problem with 'hexdump -e' option
Summary: x11/xorg: Xorg/Xfree/X11R6 startx problem with 'hexdump -e' option
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-x11 (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-02 17:50 UTC by System V. Unix
Modified: 2009-03-19 17:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description System V. Unix 2009-02-02 17:50:04 UTC
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.

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.



-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--lE0LJHvsQdm1eBe7jLW1Kwsku46cuGjlDkQAtZ57O6qCr0KB
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- 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 @@
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.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2009-02-02 18:30:22 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-x11

Over to maintainer(s).
Comment 2 Pav Lucistnik freebsd_committer freebsd_triage 2009-03-19 16:50:58 UTC
State Changed
From-To: open->closed

Committed, thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2009-03-19 16:55:24 UTC
pav         2009-03-19 16:55:13 UTC

  FreeBSD ports repository

  Modified files:
    x11/xinit            Makefile 
  Log:
  - Use full path to base system hexdump(1) to prevent clash with
    devel/p5-Data-HexDump package
  
  PR:             ports/131304
  Submitted by:   System V. Unix <sysv@yahoo.com>
  Ok'ed by:       flz
  
  Revision  Changes    Path
  1.7       +4 -0      ports/x11/xinit/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"