Opened 14 years ago

Closed 14 years ago

#132 closed defect (fixed)

./configure doesn't find xinit on all systems

Reported by: xris Owned by: Isaac Richards
Priority: major Milestone: unknown
Component: mythtv Version:
Severity: medium Keywords:
Cc: Ticket locked: no

Description

the configure script from [6879] trunk looks for

/usr/bin/xinit

but at least in fc4, the file is at

/usr/X11R6/bin/xinit

easy fix is probably to change line 1846 from

    if test -f /usr/bin/xinit ; then

to

    if test -f /usr/bin/xinit -o -f /usr/X11R6/bin/xinit ; then

though it might be smarter to test the output of "which" when scanning for executables that are supposed to be located within $PATH.

Anyway, didn't want to commit this myself lest I be screwing up someone else's ideas on how best to organize this script...

Change History (3)

comment:1 Changed 14 years ago by xris

poking around in the mythtv spec from atrpms, I ran across his fix for X11 checking and am inclined to agree that it's a better option than proposed above:

    if test -f /usr/X11R6/lib/libX11.so ; then

comment:2 Changed 14 years ago by simon@…

i'm sure you don't want to heard this but...

this assumes that the X11 libraries are installed in /usr/X11R6 which is not correct for gentoo wrt the original bug report, on gentoo xinit is in /usr/bin

i can fix this in my ebuild but the proposed fix is not correct

comment:3 Changed 14 years ago by Isaac Richards

Resolution: fixed
Status: newclosed

The configure script was already checking in both places, but r6880 just makes it look for the libs instead of xinit.

Note: See TracTickets for help on using tickets.