[DVDnav-discuss] Fwd: [PATCH] destdir handling fix

Dominik 'Rathann' Mierzejewski dominik at greysector.net
Thu Apr 10 11:05:07 CEST 2008


On Wednesday, 09 April 2008 at 23:18, Nico Sabbi wrote:
> Il Wednesday 09 April 2008 20:08:48 Dominik 'Rathann' Mierzejewski ha scritto:
> > On Tuesday, 08 April 2008 at 12:44, Dominik 'Rathann' Mierzejewski wrote:
> > [...]
> > > Correct, sorry. I'll send an updated patch tonight.
> > 
> > Sorry for the delay, attached.
> > 
> > R.
> > 
> 
> it looks coherent, but I have a doubt: if you run ./configure2
> without parameters and then
> $ export DESTDIR=~/dvd
> $ make install
> the files will go in ~/dvd/usr/local/bin , ~/dvd/usr/local/lib
> and ~/dvd/usr/local/include
> If this is the intended behaviour (that I doubt) then feel free
> to commit the patch,

It's intended. DESTDIR, at least in every case I've seen, is only
ever used when building binary packages. Compiled binaries need
to be make install'd into a temporary buildroot from which a package
is made, for example (used by rpm):

make DESTDIR=/var/tmp/foo-1.0-1-root install

DESTDIR is not something you use when compiling by hand.

> but if instead the intended paths are (as I suppose)
> ~/dvd/bin , ~/dvd/lib and ~/dvd/include

That's what PREFIX is for.

> then the patch is wrong and I guess that it should include
> something like the following in Makefile: (mind that it's broken,
> I don't know the Makefile syntax)
> 
> 
> include config.mak
> ifneq ($(DESTDIR),"")
>     PREFIX=$(DESTDIR)
> endif

I will probably commit the patch tonight, then.

Regards,
R.

-- 
Fedora contributor http://fedoraproject.org/wiki/DominikMierzejewski
Livna contributor http://rpm.livna.org MPlayer developer http://mplayerhq.hu
"Faith manages."
        -- Delenn to Lennier in Babylon 5:"Confessions and Lamentations"



More information about the DVDnav-discuss mailing list