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

Bug 472218

Summary: dev-libs/glib-2.34.3: Add support for win32 threads model
Product: Gentoo Linux Reporter: Bertrand Jacquin <bertrand>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal CC: bertrand
Priority: Normal Keywords: Inclusion, PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 475780    
Attachments: build.log
emerge --info
glib-2.34.3.ebuild.patch

Description Bertrand Jacquin 2013-06-03 20:24:28 UTC
When trying to build dev-libs/glib-2.34.3 for i686-w64-mingw32, it fail with the following error :

./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=i686-w64-mingw32 --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-silent-rules --disable-dependency-tracking --disable-modular-tests --disable-xattr --disable-fam --disable-selinux --disable-static --disable-dtrace --disable-systemtap --enable-man --with-pcre=internal --with-threads=posix --with-xml-catalog=/etc/xml/catalog
...
checking if building for some Win32 platform... yes
checking for thread implementation... none available
configure: error: No thread implementation found.

!!! Please attach the following file when seeking support:
!!! /usr/i686-w64-mingw32/tmp/portage/dev-libs/glib-2.34.3/work/glib-2.34.3/config.log

As src_configure() force the option --with-threads=posix in any case.

The attached patch proposal for the ebuild make the use of a simple bash case to set the appropriate --with-threads= based on ${CHOST} as none of mingw libc is present in ELIBC USE_EXPAND.



Reproducible: Always

Steps to Reproduce:
1. crossdev -t i686-w64-mingw32
2. i686-w64-mingw32-emerge -vat glib
3.
Comment 1 Bertrand Jacquin 2013-06-03 20:24:39 UTC
Created attachment 350000 [details]
build.log
Comment 2 Bertrand Jacquin 2013-06-03 20:24:49 UTC
Created attachment 350002 [details]
emerge --info
Comment 3 Bertrand Jacquin 2013-06-03 20:25:43 UTC
Created attachment 350004 [details, diff]
glib-2.34.3.ebuild.patch
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2013-06-08 10:57:27 UTC
the patch indentation is not perfect, but it looks good for actually fixing the problem.
Comment 5 Bertrand Jacquin 2013-07-04 22:54:14 UTC
(In reply to Gilles Dartiguelongue from comment #4)
> the patch indentation is not perfect, but it looks good for actually fixing
> the problem.

Indent here is just a side effect of using tags in source file, so patch can make them ugly. Once applied, it look nice :)
Comment 6 Pacho Ramos gentoo-dev 2013-09-29 10:33:38 UTC
+  29 Sep 2013; Pacho Ramos <pacho@gentoo.org> -glib-2.36.4.ebuild,
+  glib-2.36.4-r1.ebuild:
+  Add support for win32 threads model (#472218 by Bertrand Jacquin), drop old.
+