Subject: Re: xntpd
To: Mark W. Eichin <eichin@kitten.gen.ma.us>
From: Rob Windsor <windsor@punk.hedgehog.com>
List: current-users
Date: 01/04/1996 01:03:20
Verily did "Mark W. Eichin" write:

>>Think of the poor guy putting a package together: he types 'make install',
>>and gets files spilled all over his file-system if he uses the usual

> So instead, he does "make install prefix=/tmp/usr/local" (or the
> equivalent with DESTDIR for X-based installs) and he's all set...

ungh, yuk

X-based installs are a mess unless you tweak the hell out of
/usr/X11R6/lib/X11/config/<insert random filename here>.

An example:

grind:/usr/local/build/xmeter-1.15>make -n install
[...]
/usr/bin/install -c   xmeter /usr/X11R6/bin/xmeter
/usr/bin/install -c -m 0444 XMeter.ad /usr/X11R6/lib/X11/app-defaults/XMeter
[...]

but..

grind:/usr/local/build/xmeter-1.15>make -n DESTDIR=/tmp install
[...]
/usr/bin/install -c   xmeter /tmp/usr/X11R6/bin/xmeter
/usr/bin/install -c -m 0444 XMeter.ad /tmp/usr/X11R6/lib/X11/app-defaults/XMeter
[...]

The only way to do it properly (well, other than "fixing" imake config
files) is to:

grind:/usr/local/build/xmeter-1.15>make -n BINDIR=/tmp/bin XAPPLOADDIR=/tmp/lib/X11/app-defaults MANDIR=/tmp/man/cat1 install
[...]
/usr/bin/install -c   xmeter /tmp/bin/xmeter
/usr/bin/install -c -m 0444 XMeter.ad /tmp/lib/X11/app-defaults/XMeter


To wrap it up: IMHO, the DESTDIR option in X11R6 is totally fucked and
useless.  By default, it's null, and things are installed in
${DESTDIR}/usr/X11R6/{bin,lib/X11/app-defaults,man/cat1}.

anyway, I'm raving again.  Yes, I know how to "fix" mine, but haven't gotten
around to it yet.

-- Rob
----------------------------------------
Internet: windsor@pobox.com      Life: Rob@Sunnyvale.California.USA.Earth
"Da Web": http://pobox.com/~windsor/

"Ain't much distance 'tween a pat on the back and a kick in the pants."
    -- David Lee Roth (1990), `The Dogtown Shuffle'