Merge lp:~miguelaraujo/mysql-proxy/lib-location-hardcoding into lp:mysql-proxy/0.8
Proposed by
Miguel Araújo
Status: | Merged |
---|---|
Merged at revision: | 1236 |
Proposed branch: | lp:~miguelaraujo/mysql-proxy/lib-location-hardcoding |
Merge into: | lp:mysql-proxy/0.8 |
Diff against target: |
158 lines (+77/-3) 5 files modified
src/Makefile.am (+2/-2) src/chassis-frontend.c (+14/-0) src/chassis-path.c (+40/-0) src/chassis-path.h (+1/-0) tests/unit/check_chassis_path.c (+20/-1) |
To merge this branch: | bzr merge lp:~miguelaraujo/mysql-proxy/lib-location-hardcoding |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jan Kneschke (community) | Approve | ||
Review via email: mp+93630@code.launchpad.net |
Description of the change
fixed hardcoding of plugin location:
- exposed EXEC_PREFIX and PLUGINDIR on CFLAGS;
- added gboolean chassis_
- added stripping of EXEC_PREFIX from PLUGINDIR if necessary;
- added builing of filename with correct path to installed libraries;
added unit tests for chassis_
To post a comment you must log in.
* fix mix of space vs. tab for indenting filename( g_strdup( PLUGINDIR) , NULL); doesn't need a g_build_filename(), g_strdup() does the same. filename( base_dir, g_strdup( rel_plugin_ dir), NULL); creates a mem-leak as g_strdup() creates a copy which is never freed. The g_strdup() isn't needed in g_build_filename() path_string_ is_parent_ of(C("" ), C("/foo"));
* fix coding style:
if (...) {
...
} else {
...
}
* plugin_dir = g_build_
* g_build_
* add tests for chassis_