Re: patch to get a relocateable mc

Hi, Ludovic!

> I've just found that mc is not relocateable. If you compile mc with
> '--prefix=/tmp/xxx' and
> then move it to /usr/local, even with 'export
> MC_LIBDIR=/usr/local/lib/mc' some things
> do not work:
> - syntax highlighting
> - single filesystem (.tgz ...)
> - + bogus error messages
> Indeed, to take into account 'MC_LIBDIR' you need to use the 'mc_home'
> variable
> and not the LIBDIR define.


> The included patch fixes that. (for 4.5.5X)

Please next time use at least the latest released version or (preferrably)
CVS - it would save you some time.  If the CVS version doesn't compile for
you, try MC snapshots here:

Also please send patches inline - it's easier to comment them in the

gtkedit/syntax.c - already fixed for the text edition, but not for GMC.
By the way, have you tested your patch with the GNOME edition?  It looks
like your patch would break compilation.  Anyway, I'm fixing it for GMC.

vfs/extfs.c - I'm applying it with a very minor change.  Thank you.

vfs/sfs.c - already fixed.

As you can see, 1.5 of your 3 patches were already applied to the CVS
version :-)

Pavel Roskin

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]