Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 412157

Summary: dev-db/mysql-workbench-5.2.38 fails to compile with glib-2.32.0 <glib/gthreads.h>
Product: Gentoo Linux Reporter: goeland86
Component: New packagesAssignee: Hans de Graaff <graaff>
Status: RESOLVED FIXED    
Severity: normal CC: goeland86, jms.gentoo, kuba.iluvatar, quasi, till2.schaefer
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: http://bugs.mysql.com/bug.php?id=63705
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 406437    
Attachments: revised ebuild including applying the patch
patch to fix all calls to includes which need to be replaced by glib.h
mysql-workbench-5.2.39-r1.ebuild

Description goeland86 2012-04-16 00:40:02 UTC
Glib changed the interface and returns an error if an application tries to directly include glib/gthreads.h I have seen the behavior with other applications, but this is the one I patched.



Reproducible: Always

Steps to Reproduce:
1. emerge =dev-libs/glib-2.32.0
2. emerge mysql-workbench (if on ~amd64 this will be =dev-db/mysql-workbench-5.2.38

Actual Results:  
observe error about including <glib/gthreads.h> in library/canvas/src/mdc_canvas_view.h 

Expected Results:  
Expected compilation without error

This occurs with other applications, any code that has a #include <glib/gthreads.h> will fail. I've noticed the same behavior in gtk-engines-nodoka, though that package is what I consider optional, therefore I ignored it. 
However mysql-workbench is a critical admin tool for mysql databases, and I prefer it to alternatives to work with. As such I looked closer to the problem and created a patch for the code and a local ebuild.
Comment 1 goeland86 2012-04-16 00:40:51 UTC
Created attachment 309103 [details]
revised ebuild including applying the patch
Comment 2 goeland86 2012-04-16 00:41:23 UTC
Created attachment 309105 [details, diff]
patch to fix all calls to includes which need to be replaced by glib.h
Comment 3 goeland86 2012-04-16 00:42:39 UTC
As extra info, the patch fixes the code until it compiles - however it is not just gthreads.h that is affected - see the patch for all includes used by this app.
Comment 4 Hans de Graaff gentoo-dev Security 2012-04-16 18:51:03 UTC
According to upstream this is fixed in 5.2.39 which is now in the tree.
Comment 5 Hans de Graaff gentoo-dev Security 2012-04-17 05:36:58 UTC
*** Bug 412265 has been marked as a duplicate of this bug. ***
Comment 6 Juergen Rose 2012-04-17 07:10:36 UTC
Bug 412265 shows that it is not fixed with 5.2.39.
Comment 7 goeland86 2012-04-17 12:57:38 UTC
Created attachment 309249 [details]
mysql-workbench-5.2.39-r1.ebuild

Patch created for 5.2.38 works on 5.2.39 as well.

Probably just a temporary fix, but ebuild for patching the code for 5.2.39 is in the ebuild mysql-workbench-5.2.39-r1.ebuild
Comment 8 Hans de Graaff gentoo-dev Security 2012-04-17 18:21:37 UTC
(In reply to comment #7)

> Patch created for 5.2.38 works on 5.2.39 as well.

Thanks, I have now applied this to CVS (no revision bump).
Comment 9 Hans de Graaff gentoo-dev Security 2012-08-03 10:42:00 UTC
*** Bug 429600 has been marked as a duplicate of this bug. ***
Comment 10 Hans de Graaff gentoo-dev Security 2012-08-03 13:46:06 UTC
*** Bug 429638 has been marked as a duplicate of this bug. ***