tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: destdir: 'make package' inconsistency



On Sun, Jan 04, 2009 at 12:53:48PM +0100, Thomas Klausner wrote:
> I've not so recently noticed that 'make package' with destdir has
> different behaviour than without destdir.
> 
> Currently (without destdir), make package does
>       make && make install && create binary package
> With destdir, it does
>       make && create binary package
> but doesn't install it.
> 
> I think that 'make package' behaviour shouldn't change just because of
> the destdir toggle. I suggest adding a separate target for
>       make && create binary package
> and let 'make package' do
>       make && create binary package && make install
> to match what it does without destdir.
> 
> Comments?

The question is what do you base your observation on. If you assume
that everyone by default is using make package, you can just use
package-install. Part of the point here is that the different semantic
is intentional. You are asking the system to create a binary package,
whether it is installing files to PREFIX or not is an implementation
detail.

I didn't change the existing install target for a very good reason -- it
would make do-install and install as targets asymmetric, which is IMO
even worse.

Joerg


Home | Main Index | Thread Index | Old Index