Re: [gnome-db] datarootdir

On 27 May 2010 19:04, Alexey Zakhlestin <indeyets gmail com> wrote:
> On 27.05.2010, at 16:39, Vivien Malerba wrote:
>> Thanks for the attachments. I guess the problem is related to the
>> binary relocation feature incorporated in Libgda (which allows one to
>> compile and install with a prefix and the move the whole installation
>> to another directory as is often done on Windows and MacOSX's
>> bundles).
> I think I finally understand what's going on :)
> It is definitely related to binreloc and the real problem is, that I can't disable binreloc.
> Even if I explicitly say "--disable-binreloc" and ./configure reports:
>  Configuration summary
>   Installation prefix = /opt/homebrew/Cellar/libgda/4.0.8
>   Building Libxslt extension: yes
>   Compiled providers:
>      Berkeley DB = no
>      MDB (MS Access) = no
>      MySQL = no
>      PostgreSQL = no
>      SQLite = yes (embedded)
>      JDBC = yes
>   Binreloc support is disabled: Libgda will not be relocatable. To enable binreloc support re-run with --enable-binreloc (see for more information)
> libgda still does detection of executeble-path.
> In my case, libgda was installed into "/opt/homebrew/Cellar/libgda/4.0.8" prefix, was dynamically linked from "/opt/homebrew/Cellar/php5-midgard2/10.05.0/", which in turn was loaded by "/usr/bin/php"
> Binreloc kicked in, and detected, that executable is located in "/usr" prefix and started to look for data-files here.
> Binreloc is a great feature and we'll find perfect use for it in our midgard-projects, but there should be a way to disable it. There should be a way to enable classical approach with strictly specified directories.

Here is attached a new proposed patch which allows you to use the
"--disable-binreloc" on MacOSX.
Tell me if it works OK for you (at the moment it prints some debug
info which I'll remove before committing).


Attachment: proposed_patch2
Description: Binary data

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