From: raster Date: Mon, 22 Aug 2011 23:40:05 +0000 (+0000) Subject: add some comments and debug to eina_preifx. in case we have to test it X-Git-Tag: 2.0_alpha~61^2~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8613df798fbecee6e118d2d4536ede4cd0970079;p=framework%2Fuifw%2Feina.git add some comments and debug to eina_preifx. in case we have to test it when packaged under debians new multiarch. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@62706 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/eina_prefix.c b/src/lib/eina_prefix.c index 78e16bb..84ba5bb 100644 --- a/src/lib/eina_prefix.c +++ b/src/lib/eina_prefix.c @@ -420,6 +420,11 @@ eina_prefix_new(const char *argv0, void *symbol, const char *envprefix, * bindir = bin * libdir = lib64 * datadir = share/enlightennment + * in theory this should also work with debians new multiarch style like + * bindir = bin + * libdir = lib/i386-linux-gnu + * or + * libdir = lib/x86_64-linux-gnu * all with a common prefix that can be relocated */ /* 1. check last common char in bin and lib strings */ @@ -460,6 +465,10 @@ eina_prefix_new(const char *argv0, void *symbol, const char *envprefix, libdir = pkg_lib_p; datadir = pkg_data_p; localedir = pkg_locale_p; + DBG("Prefix relative bindir = %s\n", bindir); + DBG("Prefix relative libdir = %s\n", libdir); + DBG("Prefix relative datadir = %s\n", datadir); + DBG("Prefix relative localedir = %s\n", localedir); } /* 3. some galoot thought it awesome not to give us a common prefix at compile time * so fall back to the compile time directories. we are no longer relocatable */ @@ -470,6 +479,7 @@ eina_prefix_new(const char *argv0, void *symbol, const char *envprefix, STRDUP_REP(pfx->prefix_path_data, pkg_data); STRDUP_REP(pfx->prefix_path_locale, pkg_locale); pfx->no_common_prefix = 1; + DBG("Can't work out a common prefix - compiled in fallback\n"); } /* if user provides env vars - then use that or also more specific sub