Re: Support installation to chroot and allows easier settings lib64 for plugins

Charles A Edwards napsal(a):
> On Fri, 15 May 2009 13:29:36 +0200
> josef reidinger wrote:
> 
>>> That will happen if you compile by using (literally or effectively,
>>> via variable(s)) make PREFIX=/tmp/build/emelfm2-build/usr/local
>>> but really (and regardless of installation directory) you want
>>>   make PREFIX=/usr/local
>>> and later,
>>>   make install PREFIX=/tmp/build/emelfm2-build/usr/local
>  
> 
>> Yes, this is possible, but it looks for me like a hack :) So at least
>> document that behavior for easy adoption this package for another
>> packagers.
> 
> This is not a "hack" and frankly it is a procedure which should be
> given in your distributions packaging guidelines or if not then
> it should be addressed on your distros Maintainers list.
> 
> Emelfm2 is not the only app that does not use 'configure' but 
> instead make/make install.
> And with all the builds for those apps you must define the prefix
> for chroot/nonroot builds.
> Many distros, including mine, uses a predefined marco for the
> buildroot/tmppath (all our pkgs are built as user).
> 
> 
>     Charles
> 

Our distro use same way. Hack is that you need different variable for
build and for install (which is not common for another packages).
Purpose of DESTDIR variable is to have same variables for both make
target. Default DESTDIR is / so if you not define it, it behavior is
same as now.
So you can use (pseudocode)
set_build_variables;
make;
make install;

Josef


-- 
Users can unsubscribe from the list by sending email to 
emelfm2-request@xxxxxxxxxxxxx with 'unsubscribe' in the subject field or by 
logging into the web interface.

Other related posts: