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

On Thu, 14 May 2009 13:10:56 +0200
Josef Reidinger <jreidinger@xxxxxxx> wrote:

> at src/e2_main.c:680 is  Plugin *p = e2_plugins_open1 (PLUGINS_DIR
> G_DIR_SEPARATOR_S UPGRADE_PNAME);
> 
> PLUGINS_DIR is from build.h
> @echo "#define PLUGINS_DIR \"$(PLUGINS_DIR)\"" >> $(BUILD_FILE)
> 
> So if I understand code then plugin is open at
> /tmp/build/emelfm2-build/usr/local/lib/emelfm2/plugins during execution
> as this constant is static. I has been warned by rpmling which find
> build path hardcoded to code. So exist two options...this line is not
> used or it somehow is smarted then I think.

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

Regards
Tom


-- 
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: