Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 380387 - [gnome-overlay] x11-libs/gtksourceview-3.0.5 fails to install with gtk+-3.1.x and glib-2.29.x
Summary: [gnome-overlay] x11-libs/gtksourceview-3.0.5 fails to install with gtk+-3.1.x...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-23 15:39 UTC by Sebastian Pipping
Modified: 2011-08-26 21:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (x11-libs:gtksourceview-3.0.5:20110823-143935.log,73.78 KB, text/plain)
2011-08-23 15:39 UTC, Sebastian Pipping
Details
gtksourceview-3.0.5.ebuild.patch (gtksourceview-3.0.5.ebuild.patch,309 bytes, patch)
2011-08-23 17:34 UTC, Alexandre Rostovtsev (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Pipping gentoo-dev 2011-08-23 15:39:58 UTC
Created attachment 284373 [details]
build.log

* QA Notice: Package has poor programming practices which may compile
 *            fine but exhibit random runtime failures.
 * gtksourcegutterrenderermarks.c:262: warning: implicit declaration of function 'gtk_vbox_new'
 * gtksourcegutterrenderermarks.c:266: warning: implicit declaration of function 'gtk_hbox_new'
 * gtksourcegutterrenderermarks.c:349: warning: implicit declaration of function 'gtk_hseparator_new'
 * test-completion.c:214: warning: implicit declaration of function ‘gtk_vbox_new’
 * test-completion.c:215: warning: implicit declaration of function ‘gtk_hbox_new’
 * test-widget.c:1407: warning: implicit declaration of function ‘gtk_vbox_new’

 * 
 * QA Notice: Package has poor programming practices which may compile
 *            but will almost certainly crash on 64bit architectures.
 * 
 * Function `gtk_vbox_new' implicitly converted to pointer at gtksourcegutterrenderermarks.c:262
 * Function `gtk_hbox_new' implicitly converted to pointer at gtksourcegutterrenderermarks.c:266
 * Function `gtk_hseparator_new' implicitly converted to pointer at gtksourcegutterrenderermarks.c:349
 * Function `gtk_vbox_new' implicitly converted to pointer at test-completion.c:214
 * Function `gtk_hbox_new' implicitly converted to pointer at test-completion.c:215
 * Function `gtk_vbox_new' implicitly converted to pointer at test-widget.c:1407
 * 
 *  Please file a bug about this at http://bugs.gentoo.org/
 *  with the maintaining herd of the package.
 * 
 * ERROR: x11-libs/gtksourceview-3.0.5 failed:
 *   install aborted due to poor programming practices shown above
 * 
 * Call stack:
 *   misc-functions.sh, line 992:  Called install_qa_check
 *   misc-functions.sh, line 680:  Called die
 * The specific snippet of code:
 *   				die "install aborted due to" \
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-08-23 16:04:39 UTC
Very strange, I don't understand why line 262 in gtksourcegutterrenderermarks.c would produce this error.

What are your installed gtk+ and glib versions, and what USE flags that they were built with?

What CFLAGS are you using? What compiler?
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-08-23 16:15:07 UTC
Ah, never mind, I know what's going on. You are using betagarden :/

Sebastian, gnome-3.0 is known to have build problems with glib-2.29.x and gtk+-3.1.x. I believe that at the moment *many* packages (not just gtksourceview) are affected. So if you want to use gtk+-3.1.x right now, your best bet is to use the gnome-next branch from the gnome overlay.
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-08-23 17:34:47 UTC
Created attachment 284377 [details, diff]
gtksourceview-3.0.5.ebuild.patch

Fortunately, for gtksourceview-3.0.x, the fix is trivial: simply adding --disable-maintainer-mode to configure allows it to build against gtk+-3.1.x.
Comment 4 Sebastian Pipping gentoo-dev 2011-08-26 18:20:46 UTC
(In reply to comment #2)
> Ah, never mind, I know what's going on. You are using betagarden :/

Correct.


> So if you want to use gtk+-3.1.x right now, your
> best bet is to use the gnome-next branch from the gnome overlay.

Unfortunately gnome-next does not integrate with layman.


(In reply to comment #3)
> Fortunately, for gtksourceview-3.0.x, the fix is trivial: simply adding
> --disable-maintainer-mode to configure allows it to build against gtk+-3.1.x.

Would that break anything for the main tree?  Why not apply it over there?
Comment 5 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-08-26 18:38:05 UTC
(In reply to comment #4)
> Why not apply it over there?

Because I am not a developer yet, and can't commit to gx86.
Comment 6 Sebastian Pipping gentoo-dev 2011-08-26 21:50:47 UTC
(In reply to comment #5)
> Because I am not a developer yet, and can't commit to gx86.

That's actually another bug :-)


+*gtksourceview-3.0.5-r1 (26 Aug 2011)
+
+  26 Aug 2011; Sebastian Pipping <sping@gentoo.org>
+  +gtksourceview-3.0.5-r1.ebuild:
+  Fix compilation against GTK 3.1.x (bug #380387, thanks to tetromino!)
+