Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 472218 - dev-libs/glib-2.34.3: Add support for win32 threads model
Summary: dev-libs/glib-2.34.3: Add support for win32 threads model
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: Inclusion, PATCH
Depends on:
Blocks: 475780
  Show dependency tree
 
Reported: 2013-06-03 20:24 UTC by Bertrand Jacquin
Modified: 2013-09-29 10:33 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,22.68 KB, text/x-log)
2013-06-03 20:24 UTC, Bertrand Jacquin
Details
emerge --info (info.log,12.25 KB, text/x-log)
2013-06-03 20:24 UTC, Bertrand Jacquin
Details
glib-2.34.3.ebuild.patch (glib-2.34.3.ebuild.patch,771 bytes, patch)
2013-06-03 20:25 UTC, Bertrand Jacquin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.
+