Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(38)

Issue 9727047: Remove g_type_init() calls. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 5 months ago by fujiwara
Modified:
11 years, 5 months ago
Reviewers:
shawn.p.huang, Daiki Ueno, Peng
CC:
shawn.p.huang_gmail.com
Base URL:
git@github.com:ibus/ibus.git@master
Visibility:
Public.

Description

Remove g_type_init() calls. https://git.gnome.org/browse/glib/commit/?id=1dc774a653e992e1153fbed16f90097fa8db467f https://git.gnome.org/browse/vala/commit/?id=f1fbafdfdc91fadaa57d2e073fc29cc6804d6ae3

Patch Set 1 #

Patch Set 2 : Updated ibusshare.h . #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -21 lines) Patch
M bus/dbusimpl.c View 1 chunk +2 lines, -1 line 0 comments Download
M bus/test-matchrule.c View 1 chunk +2 lines, -0 lines 0 comments Download
M bus/test-registry.c View 1 chunk +2 lines, -0 lines 0 comments Download
M configure.ac View 1 chunk +3 lines, -0 lines 1 comment Download
M engine/Makefile.am View 1 chunk +1 line, -0 lines 0 comments Download
M po/POTFILES.in View 1 chunk +0 lines, -1 line 0 comments Download
M src/ibusshare.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M src/ibusshare.c View 1 chunk +2 lines, -0 lines 0 comments Download
M src/tests/ibus-bus.c View 1 chunk +1 line, -2 lines 0 comments Download
M src/tests/ibus-config.c View 1 chunk +1 line, -2 lines 0 comments Download
M src/tests/ibus-configservice.c View 1 chunk +2 lines, -0 lines 0 comments Download
M src/tests/ibus-engine.c View 1 chunk +2 lines, -0 lines 0 comments Download
M src/tests/ibus-engine-switch.c View 1 chunk +1 line, -2 lines 0 comments Download
M src/tests/ibus-factory.c View 1 chunk +2 lines, -0 lines 0 comments Download
M src/tests/ibus-global-engine.c View 1 chunk +2 lines, -2 lines 0 comments Download
M src/tests/ibus-inputcontext.c View 1 chunk +1 line, -2 lines 0 comments Download
M src/tests/ibus-inputcontext-create.c View 1 chunk +1 line, -2 lines 0 comments Download
M src/tests/ibus-keymap.c View 1 chunk +2 lines, -0 lines 0 comments Download
M src/tests/ibus-keynames.c View 1 chunk +2 lines, -0 lines 0 comments Download
M src/tests/ibus-proxy.c View 1 chunk +4 lines, -2 lines 0 comments Download
M src/tests/ibus-serializable.c View 1 chunk +3 lines, -1 line 0 comments Download
M src/tests/ibus-share.c View 1 chunk +3 lines, -1 line 0 comments Download
M tools/Makefile.am View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gtk3/Makefile.am View 1 chunk +1 line, -0 lines 1 comment Download

Messages

Total messages: 4
fujiwara
11 years, 5 months ago (2013-05-31 17:57:03 UTC) #1
Peng
On 2013/05/31 17:57:03, fujiwara wrote: lgtm
11 years, 5 months ago (2013-06-03 14:58:42 UTC) #2
Daiki Ueno
https://codereview.appspot.com/9727047/diff/3001/configure.ac File configure.ac (right): https://codereview.appspot.com/9727047/diff/3001/configure.ac#newcode156 configure.ac:156: GLIB_VERSION=`$PKG_CONFIG --modversion glib-2.0` See my next comment. https://codereview.appspot.com/9727047/diff/3001/ui/gtk3/Makefile.am File ...
11 years, 5 months ago (2013-06-10 06:04:12 UTC) #3
fujiwara
11 years, 5 months ago (2013-06-10 07:10:11 UTC) #4
Message was sent while issue was closed.
On 2013/06/10 06:04:12, Daiki Ueno wrote:
> https://codereview.appspot.com/9727047/diff/3001/configure.ac
> File configure.ac (right):
> 
> https://codereview.appspot.com/9727047/diff/3001/configure.ac#newcode156
> configure.ac:156: GLIB_VERSION=`$PKG_CONFIG --modversion glib-2.0`
> See my next comment.
> 
> https://codereview.appspot.com/9727047/diff/3001/ui/gtk3/Makefile.am
> File ui/gtk3/Makefile.am (right):
> 
> https://codereview.appspot.com/9727047/diff/3001/ui/gtk3/Makefile.am#newcode84
> ui/gtk3/Makefile.am:84: --target-glib="$(GLIB_VERSION)" \
> Well, notice that tarball includes *.c files generated from *.vala.
> 
> If you do "make dist" with glib 2.36, generated *.c code won't have
> g_type_init() call and thus cause unexpected error when compiled with earlier
> glib versions (when no valac installed).  As $glib_required_version is still
> 2.32.0, it is not intended I guess.
> 
> If you simply want to silence the warning while developing, you could supply
> GLIB_VERSION through a configure option (e.g. --with-glib) and add
> --with-glib=2.32 to DISTCHECK_CONFIGURE_FLAGS, though it might be too much. 
If
> I were you, I would simply ignore the warning for the Vala code, until 2.36
gets
> widely used.

OK, probably ignoring the warning for vala is good at present while I fixed an
error with CFLAGS='-Werror' in this patch.
Asking vala upstream to have #ifdef also might be too costs.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b