[yocto] [meta-mingw][PATCH v2 2/2] cmake: add support for building nativesdk-cmake

2018-11-20 Thread Samuli Piippo
Build nativesdk-cmake and dependency libs without without openssl.

Signed-off-by: Samuli Piippo 
---
 recipes-devtools/cmake/cmake_%.bbappend   | 7 +++
 recipes-extended/libarchive/libarchive_%.bbappend | 1 +
 recipes-support/curl/curl_%.bbappend  | 2 ++
 3 files changed, 10 insertions(+)
 create mode 100644 recipes-devtools/cmake/cmake_%.bbappend
 create mode 100644 recipes-extended/libarchive/libarchive_%.bbappend
 create mode 100644 recipes-support/curl/curl_%.bbappend

diff --git a/recipes-devtools/cmake/cmake_%.bbappend 
b/recipes-devtools/cmake/cmake_%.bbappend
new file mode 100644
index 000..d9d7ceb
--- /dev/null
+++ b/recipes-devtools/cmake/cmake_%.bbappend
@@ -0,0 +1,7 @@
+DEPENDS_remove_mingw32 = "ncurses"
+
+cmake_do_generate_toolchain_file_append_mingw32() {
+cat >> ${WORKDIR}/toolchain.cmake <https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [meta-mingw][PATCH 2/2] cmake: add support for building nativesdk-cmake

2018-11-19 Thread Samuli Piippo
Yeah, it was bad testing on my part, cmake really isn't ready for
prime-time until it works correctly from with the environment-setup
script.

I have enabled cmake on our sumo based SDK, where it works nicely with
the Qt Creator integration. It also builds there without the
winpthreads change. On thud, cmake was updated and now requires the
c++11 features from pthreads, which was more or less why I started
pushing these changes.

I'll update the patch and remove cmake from the packagegroup again.


On Mon, 19 Nov 2018 at 23:33, Joshua Watt  wrote:
>
>
>
> On Fri, Nov 16, 2018 at 12:33 AM Samuli Piippo  wrote:
>>
>> I've been testing cmake with Qt Creator integration which explicitly uses -G 
>> "MinGW Makefiles", while cmake defaults to NMake Makefiles. I'm not sure if 
>> it's possible to set generator in the toolchain file.
>
>
> Hmm, so perhaps Qt creator isn't using %CC% %CFLAGS% & friends? Did you 
> manually configure it to pass the right arguments to the compiler (e.g. path 
> to sysroot and such)? That might explain why it works for you since AFAIK, 
> cmake can't handle "\" as a path separator, and that is what our environment 
> setup script uses.
>
> I'm not specifically opposed to adding cmake to the SDK (I think it's 
> probably a good idea even), but if we are adding it to the default SDK 
> (nativesdk-packagegroup-sdk-host) I think it would be wise for it to work as 
> expected (e.g. work like it does in the Linux SDK). Fortunately, your patches 
> sent me off on a deeper tangent in my quest for automated testing of the 
> MinGW SDK, and I believe I have actually done a significant amount of the 
> work required to facilitate getting cmake working "as expected". You can take 
> a look at my patches on the jpew/oeqa branch in meta-mingw-contrib. For the 
> most part, the changes aren't too bad; the only one that really scares me is 
> the change to make the toolchain batch files use the unix path seperator (/) 
> instead of the Windows separator (\) ("classes/toolchain-scripts-mingw32: Use 
> Unix path separators"). I don't really know enough about cmake, so perhaps 
> there is some better (cmake specific) mechanism that we can use instead?
>
> Just to be clear, I don't mind the changes you made to make cmake build, but 
> I would prefer to not add it to the SDK by default until it actually works 
> with the SDK (and preferably has some test cases ;).
>
>
>>
>>
>> 
>> From: Joshua Watt 
>> Sent: 16 November 2018 05:35:50
>> To: Samuli Piippo
>> Cc: Yocto list discussion
>> Subject: Re: [yocto] [meta-mingw][PATCH 2/2] cmake: add support for building 
>> nativesdk-cmake
>>
>> On Thu, Nov 15, 2018 at 7:22 PM Samuli Piippo  wrote:
>> >
>> > Build nativesdk-cmake and dependency libs without without openssl.
>> >
>> > Signed-off-by: Samuli Piippo 
>> > ---
>> >  .../nativesdk-packagegroup-sdk-host.bbappend  | 1 +
>> >  recipes-devtools/cmake/cmake_%.bbappend   | 8 
>> >  recipes-extended/libarchive/libarchive_%.bbappend | 1 +
>> >  recipes-support/curl/curl_%.bbappend  | 2 ++
>> >  4 files changed, 12 insertions(+)
>> >  create mode 100644 recipes-devtools/cmake/cmake_%.bbappend
>> >  create mode 100644 recipes-extended/libarchive/libarchive_%.bbappend
>> >  create mode 100644 recipes-support/curl/curl_%.bbappend
>> >
>> > diff --git 
>> > a/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bbappend 
>> > b/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bbappend
>> > index ad69b13..9544ffb 100644
>> > --- a/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bbappend
>> > +++ b/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bbappend
>> > @@ -2,4 +2,5 @@ RDEPENDS_${PN}_mingw32 = "\
>> >  nativesdk-pkgconfig \
>> >  nativesdk-libtool \
>> >  nativesdk-qemu \
>> > +nativesdk-cmake \
>>
>> Have you been successful at getting cmake to work properly in MinGW?
>> I've been working on automated tests for the SDK, and for kicks I
>> pulled in your changes and tried to write a test for cmake (heavily
>> borrowed from the cmake/assimp test in oe-core). When I ran the test,
>> I got the following:
>>
>> --- snip ---
>>
>> -- Building for: NMake Makefiles
>> -- The C compiler identification is GNU 8.2.0
>> CMake Error at 
>> Z:/projects/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/testimage-sdk/CMakeTest-zljaq7x7/bu

Re: [yocto] [meta-mingw][PATCH 2/2] cmake: add support for building nativesdk-cmake

2018-11-16 Thread Samuli Piippo
I've been testing cmake with Qt Creator integration which explicitly uses -G 
"MinGW Makefiles", while cmake defaults to NMake Makefiles. I'm not sure if 
it's possible to set generator in the toolchain file.



From: Joshua Watt 
Sent: 16 November 2018 05:35:50
To: Samuli Piippo
Cc: Yocto list discussion
Subject: Re: [yocto] [meta-mingw][PATCH 2/2] cmake: add support for building 
nativesdk-cmake

On Thu, Nov 15, 2018 at 7:22 PM Samuli Piippo  wrote:
>
> Build nativesdk-cmake and dependency libs without without openssl.
>
> Signed-off-by: Samuli Piippo 
> ---
>  .../nativesdk-packagegroup-sdk-host.bbappend  | 1 +
>  recipes-devtools/cmake/cmake_%.bbappend   | 8 
>  recipes-extended/libarchive/libarchive_%.bbappend | 1 +
>  recipes-support/curl/curl_%.bbappend  | 2 ++
>  4 files changed, 12 insertions(+)
>  create mode 100644 recipes-devtools/cmake/cmake_%.bbappend
>  create mode 100644 recipes-extended/libarchive/libarchive_%.bbappend
>  create mode 100644 recipes-support/curl/curl_%.bbappend
>
> diff --git 
> a/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bbappend 
> b/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bbappend
> index ad69b13..9544ffb 100644
> --- a/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bbappend
> +++ b/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bbappend
> @@ -2,4 +2,5 @@ RDEPENDS_${PN}_mingw32 = "\
>  nativesdk-pkgconfig \
>  nativesdk-libtool \
>  nativesdk-qemu \
> +nativesdk-cmake \

Have you been successful at getting cmake to work properly in MinGW?
I've been working on automated tests for the SDK, and for kicks I
pulled in your changes and tried to write a test for cmake (heavily
borrowed from the cmake/assimp test in oe-core). When I ran the test,
I got the following:

--- snip ---

-- Building for: NMake Makefiles
-- The C compiler identification is GNU 8.2.0
CMake Error at 
Z:/projects/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/testimage-sdk/CMakeTest-zljaq7x7/build/CMakeFiles/3.12.2/CMakeCCompiler.cmake:2
(set):
  Syntax error in cmake code at


Z:/projects/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/testimage-sdk/CMakeTest-zljaq7x7/build/CMakeFiles/3.12.2/CMakeCCompiler.cmake:2

  when parsing string

  -m32 -march=i586
--sysroot=Z:\projects\poky\build\tmp\work\QEMU~ELC\CORE~B5D\1N25.0-R\TEST~Y0Z\\sysroots\i586-poky-linux

  Invalid escape sequence \p
Call Stack (most recent call first):
  CMakeLists.txt:38 (PROJECT)

--- snip ---

It looks like cmake doesn't like the Windows style slashes in CFLAGS.

You can see my test branch at jpew/oeqa in meta-mingw-contrib... it's
still in progress so it might be a bit of work if you want to try it
yourself.

>  "
> diff --git a/recipes-devtools/cmake/cmake_%.bbappend 
> b/recipes-devtools/cmake/cmake_%.bbappend
> new file mode 100644
> index 000..f76cd82
> --- /dev/null
> +++ b/recipes-devtools/cmake/cmake_%.bbappend
> @@ -0,0 +1,8 @@
> +DEPENDS_remove_mingw32 = "ncurses"
> +
> +cmake_do_generate_toolchain_file_append_mingw32() {
> +cat >> ${WORKDIR}/toolchain.cmake < +set( CMAKE_SYSTEM_NAME Windows )
> +EOF
> +}
> +
> diff --git a/recipes-extended/libarchive/libarchive_%.bbappend 
> b/recipes-extended/libarchive/libarchive_%.bbappend
> new file mode 100644
> index 000..a411b40
> --- /dev/null
> +++ b/recipes-extended/libarchive/libarchive_%.bbappend
> @@ -0,0 +1 @@
> +EXTRA_OECONF_append_mingw32 = " --without-cng"
> diff --git a/recipes-support/curl/curl_%.bbappend 
> b/recipes-support/curl/curl_%.bbappend
> new file mode 100644
> index 000..7865b46
> --- /dev/null
> +++ b/recipes-support/curl/curl_%.bbappend
> @@ -0,0 +1,2 @@
> +PACKAGECONFIG_remove_class-nativesdk_mingw32 = "ssl"
> +RRECOMMENDS_lib${BPN}_remove_mingw32 = "ca-certificates"
> --
> 2.17.1
>
> --
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
yocto Info Page<https://lists.yoctoproject.org/listinfo/yocto>
lists.yoctoproject.org
Discussion of all things about the Yocto Project. Read our Community Guidelines 
or learn more about how to participate in other community discussions. 
Subscribe before posting to bypass moderation. To see the collection of prior 
postings to the list, visit the yocto Archives.. Using yocto



-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-mingw][PATCH] Remove security flags from GCCPIE

2018-11-15 Thread Samuli Piippo
GCCPIE defaults to "--enable-default-pie" in security_flags.inc,
which breaks Windows binaries.

Signed-off-by: Samuli Piippo 
---
 conf/machine-sdk/include/mingw32-common.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/conf/machine-sdk/include/mingw32-common.inc 
b/conf/machine-sdk/include/mingw32-common.inc
index 92bd184..cd56380 100644
--- a/conf/machine-sdk/include/mingw32-common.inc
+++ b/conf/machine-sdk/include/mingw32-common.inc
@@ -38,3 +38,6 @@ BB_HASHBASE_WHITELIST_append = " WINDRES RC"
 
 # Needed to override no-static-libs.inc
 DISABLE_STATIC_mingw32 = ""
+
+# disable security flags
+GCCPIE_mingw32 = ""
-- 
2.17.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [meta-mingw][PATCH 1/2] winpthreads: use posix threads library from mingw64

2018-11-15 Thread Samuli Piippo

2/2 is also unrelated, there should 3 patches from me, sent at the same time. 
Don’t know where they got stuck.

> On 15 Nov 2018, at 19.21, Burton, Ross  wrote:
> 
> I see 1/2 but no 2/2, presumably this missing patch is the PIE one?
> 
> Ross
>> On Thu, 15 Nov 2018 at 16:04, Samuli Piippo  wrote:
>> 
>> Use the winpthreads library available in the mingw64 and
>> change the thread model from win32 to posix to get access
>> to c++11 features.
>> 
>> Signed-off-by: Samuli Piippo 
>> ---
>> conf/machine-sdk/include/mingw32-common.inc   |  2 -
>> recipes-core/gettext/gettext_0.19.%.bbappend  |  5 +-
>> recipes-devtools/gcc/gcc-runtime_%.bbappend   |  2 +-
>> recipes-devtools/gcc/libgcc_%.bbappend|  2 +
>> .../nativesdk-mingw-w64-headers_5.0.3.bb  |  5 ++
>> .../nativesdk-mingw-w64-winpthreads_5.0.3.bb  | 31 
>> .../pthreads-win32/pthreads-win32_2.9.1.bb| 47 ---
>> 7 files changed, 40 insertions(+), 54 deletions(-)
>> create mode 100644 
>> recipes-devtools/mingw-w64/nativesdk-mingw-w64-winpthreads_5.0.3.bb
>> delete mode 100644 recipes-devtools/pthreads-win32/pthreads-win32_2.9.1.bb
>> 
>> diff --git a/conf/machine-sdk/include/mingw32-common.inc 
>> b/conf/machine-sdk/include/mingw32-common.inc
>> index cd56380..733d092 100644
>> --- a/conf/machine-sdk/include/mingw32-common.inc
>> +++ b/conf/machine-sdk/include/mingw32-common.inc
>> @@ -1,8 +1,6 @@
>> SDK_OS = "mingw32"
>> NATIVESDKLIBC = "libc-mingw"
>> 
>> -GCCTHREADS_mingw32 = "win32"
>> -
>> PREFERRED_PROVIDER_virtual/nativesdk-${SDK_PREFIX}libc-for-gcc_mingw32 = 
>> "nativesdk-mingw-w64-runtime"
>> PREFERRED_PROVIDER_virtual/nativesdk-${SDK_PREFIX}libc-initial_mingw32 = 
>> "nativesdk-mingw-w64-runtime"
>> PREFERRED_PROVIDER_virtual/nativesdk-libc = "nativesdk-mingw-w64-runtime"
>> diff --git a/recipes-core/gettext/gettext_0.19.%.bbappend 
>> b/recipes-core/gettext/gettext_0.19.%.bbappend
>> index b26b734..21749f3 100644
>> --- a/recipes-core/gettext/gettext_0.19.%.bbappend
>> +++ b/recipes-core/gettext/gettext_0.19.%.bbappend
>> @@ -1,7 +1,4 @@
>> -DEPENDS_append_mingw32 = " pthreads-win32"
>> -LDFLAGS_prepend_mingw32 = " -lpthread "
>> -
>> -EXTRA_OECONF_append_mingw32 = " --enable-threads=windows --enable-static"
>> +EXTRA_OECONF_append_mingw32 = " --enable-static"
>> 
>> FILESEXTRAPATHS_prepend_mingw32 := "${THISDIR}/${BPN}:"
>> SRC_URI_append_mingw32 = " \
>> diff --git a/recipes-devtools/gcc/gcc-runtime_%.bbappend 
>> b/recipes-devtools/gcc/gcc-runtime_%.bbappend
>> index 1641cb9..f14edf1 100644
>> --- a/recipes-devtools/gcc/gcc-runtime_%.bbappend
>> +++ b/recipes-devtools/gcc/gcc-runtime_%.bbappend
>> @@ -11,4 +11,4 @@ RUNTIMETARGET_remove_mingw32 = "libitm"
>> # mingw builds
>> RUNTIMETARGET_remove_mingw32 = "libmpx"
>> 
>> -DEPENDS_append_mingw32 = " pthreads-win32"
>> +DEPENDS_append_mingw32 = " nativesdk-mingw-w64-winpthreads"
>> diff --git a/recipes-devtools/gcc/libgcc_%.bbappend 
>> b/recipes-devtools/gcc/libgcc_%.bbappend
>> index 2a95d02..f542cfc 100644
>> --- a/recipes-devtools/gcc/libgcc_%.bbappend
>> +++ b/recipes-devtools/gcc/libgcc_%.bbappend
>> @@ -1,3 +1,5 @@
>> +DEPENDS_append_mingw32 = " nativesdk-mingw-w64-winpthreads"
>> +
>> FILES_${PN}_append_mingw32 = " ${bindir}/libgcc*.dll"
>> FILES_${PN}-dev_append_mingw32 = " ${base_libdir}/libgcc*.a"
>> 
>> diff --git a/recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_5.0.3.bb 
>> b/recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_5.0.3.bb
>> index e129c32..009e5af 100644
>> --- a/recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_5.0.3.bb
>> +++ b/recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_5.0.3.bb
>> @@ -31,4 +31,9 @@ do_compile() {
>>:
>> }
>> 
>> +do_install_append() {
>> +# install correct pthread headers
>> +install -m 0644 -t ${D}${includedir} 
>> ${S}/../mingw-w64-libraries/winpthreads/include/*.h
>> +}
>> +
>> FILES_${PN} += "${exec_prefix}/${TARGET_SYS}"
>> diff --git 
>> a/recipes-devtools/mingw-w64/nativesdk-mingw-w64-winpthreads_5.0.3.bb 
>> b/recipes-devtools/mingw-w64/nativesdk-mingw-w64-winpthreads_5.0.3.bb
>> new file mode 100644
>> index 000..1308760
>> --- /dev/null
>> +++ b/recipes-devtools/mingw-w64/natives

Re: [yocto] [meta-mingw][PATCH 1/2] winpthreads: use posix threads library from mingw64

2018-11-15 Thread Samuli Piippo
Sure, it’ll take me couple of hours though.
Let’s see if the missing emails appear meanwhile.

> On 15 Nov 2018, at 19.33, Burton, Ross  wrote:
> 
> Weird.
> 
> Can you push them to a git repo?
> 
> Ross
>> On Thu, 15 Nov 2018 at 17:32, Samuli Piippo  wrote:
>> 
>> 
>> 2/2 is also unrelated, there should 3 patches from me, sent at the same 
>> time. Don’t know where they got stuck.
>> 
>>> On 15 Nov 2018, at 19.21, Burton, Ross  wrote:
>>> 
>>> I see 1/2 but no 2/2, presumably this missing patch is the PIE one?
>>> 
>>> Ross
>>>> On Thu, 15 Nov 2018 at 16:04, Samuli Piippo  wrote:
>>>> 
>>>> Use the winpthreads library available in the mingw64 and
>>>> change the thread model from win32 to posix to get access
>>>> to c++11 features.
>>>> 
>>>> Signed-off-by: Samuli Piippo 
>>>> ---
>>>> conf/machine-sdk/include/mingw32-common.inc   |  2 -
>>>> recipes-core/gettext/gettext_0.19.%.bbappend  |  5 +-
>>>> recipes-devtools/gcc/gcc-runtime_%.bbappend   |  2 +-
>>>> recipes-devtools/gcc/libgcc_%.bbappend|  2 +
>>>> .../nativesdk-mingw-w64-headers_5.0.3.bb  |  5 ++
>>>> .../nativesdk-mingw-w64-winpthreads_5.0.3.bb  | 31 
>>>> .../pthreads-win32/pthreads-win32_2.9.1.bb| 47 ---
>>>> 7 files changed, 40 insertions(+), 54 deletions(-)
>>>> create mode 100644 
>>>> recipes-devtools/mingw-w64/nativesdk-mingw-w64-winpthreads_5.0.3.bb
>>>> delete mode 100644 recipes-devtools/pthreads-win32/pthreads-win32_2.9.1.bb
>>>> 
>>>> diff --git a/conf/machine-sdk/include/mingw32-common.inc 
>>>> b/conf/machine-sdk/include/mingw32-common.inc
>>>> index cd56380..733d092 100644
>>>> --- a/conf/machine-sdk/include/mingw32-common.inc
>>>> +++ b/conf/machine-sdk/include/mingw32-common.inc
>>>> @@ -1,8 +1,6 @@
>>>> SDK_OS = "mingw32"
>>>> NATIVESDKLIBC = "libc-mingw"
>>>> 
>>>> -GCCTHREADS_mingw32 = "win32"
>>>> -
>>>> PREFERRED_PROVIDER_virtual/nativesdk-${SDK_PREFIX}libc-for-gcc_mingw32 = 
>>>> "nativesdk-mingw-w64-runtime"
>>>> PREFERRED_PROVIDER_virtual/nativesdk-${SDK_PREFIX}libc-initial_mingw32 = 
>>>> "nativesdk-mingw-w64-runtime"
>>>> PREFERRED_PROVIDER_virtual/nativesdk-libc = "nativesdk-mingw-w64-runtime"
>>>> diff --git a/recipes-core/gettext/gettext_0.19.%.bbappend 
>>>> b/recipes-core/gettext/gettext_0.19.%.bbappend
>>>> index b26b734..21749f3 100644
>>>> --- a/recipes-core/gettext/gettext_0.19.%.bbappend
>>>> +++ b/recipes-core/gettext/gettext_0.19.%.bbappend
>>>> @@ -1,7 +1,4 @@
>>>> -DEPENDS_append_mingw32 = " pthreads-win32"
>>>> -LDFLAGS_prepend_mingw32 = " -lpthread "
>>>> -
>>>> -EXTRA_OECONF_append_mingw32 = " --enable-threads=windows --enable-static"
>>>> +EXTRA_OECONF_append_mingw32 = " --enable-static"
>>>> 
>>>> FILESEXTRAPATHS_prepend_mingw32 := "${THISDIR}/${BPN}:"
>>>> SRC_URI_append_mingw32 = " \
>>>> diff --git a/recipes-devtools/gcc/gcc-runtime_%.bbappend 
>>>> b/recipes-devtools/gcc/gcc-runtime_%.bbappend
>>>> index 1641cb9..f14edf1 100644
>>>> --- a/recipes-devtools/gcc/gcc-runtime_%.bbappend
>>>> +++ b/recipes-devtools/gcc/gcc-runtime_%.bbappend
>>>> @@ -11,4 +11,4 @@ RUNTIMETARGET_remove_mingw32 = "libitm"
>>>> # mingw builds
>>>> RUNTIMETARGET_remove_mingw32 = "libmpx"
>>>> 
>>>> -DEPENDS_append_mingw32 = " pthreads-win32"
>>>> +DEPENDS_append_mingw32 = " nativesdk-mingw-w64-winpthreads"
>>>> diff --git a/recipes-devtools/gcc/libgcc_%.bbappend 
>>>> b/recipes-devtools/gcc/libgcc_%.bbappend
>>>> index 2a95d02..f542cfc 100644
>>>> --- a/recipes-devtools/gcc/libgcc_%.bbappend
>>>> +++ b/recipes-devtools/gcc/libgcc_%.bbappend
>>>> @@ -1,3 +1,5 @@
>>>> +DEPENDS_append_mingw32 = " nativesdk-mingw-w64-winpthreads"
>>>> +
>>>> FILES_${PN}_append_mingw32 = " ${bindir}/libgcc*.dll"
>>>> FILES_${PN}-dev_append_mingw32 = " ${base_libdir}/libgcc*.a"
>>>> 
>>>> diff --git 
>>>> a/recipes-devtools/mingw-w64/

[yocto] [meta-mingw][PATCH 2/2] cmake: add support for building nativesdk-cmake

2018-11-15 Thread Samuli Piippo
Build nativesdk-cmake and dependency libs without without openssl.

Signed-off-by: Samuli Piippo 
---
 .../nativesdk-packagegroup-sdk-host.bbappend  | 1 +
 recipes-devtools/cmake/cmake_%.bbappend   | 8 
 recipes-extended/libarchive/libarchive_%.bbappend | 1 +
 recipes-support/curl/curl_%.bbappend  | 2 ++
 4 files changed, 12 insertions(+)
 create mode 100644 recipes-devtools/cmake/cmake_%.bbappend
 create mode 100644 recipes-extended/libarchive/libarchive_%.bbappend
 create mode 100644 recipes-support/curl/curl_%.bbappend

diff --git 
a/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bbappend 
b/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bbappend
index ad69b13..9544ffb 100644
--- a/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bbappend
+++ b/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bbappend
@@ -2,4 +2,5 @@ RDEPENDS_${PN}_mingw32 = "\
 nativesdk-pkgconfig \
 nativesdk-libtool \
 nativesdk-qemu \
+nativesdk-cmake \
 "
diff --git a/recipes-devtools/cmake/cmake_%.bbappend 
b/recipes-devtools/cmake/cmake_%.bbappend
new file mode 100644
index 000..f76cd82
--- /dev/null
+++ b/recipes-devtools/cmake/cmake_%.bbappend
@@ -0,0 +1,8 @@
+DEPENDS_remove_mingw32 = "ncurses"
+
+cmake_do_generate_toolchain_file_append_mingw32() {
+cat >> ${WORKDIR}/toolchain.cmake <https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [meta-mingw][PATCH 1/2] winpthreads: use posix threads library from mingw64

2018-11-15 Thread Samuli Piippo
I don't have access to the contrib git repo, so pushed them here instead: 
https://github.com/sapiippo/meta-mingw/


From: Samuli Piippo
Sent: 15 November 2018 19:45:29
To: Burton, Ross
Cc: Yocto-mailing-list
Subject: Re: [yocto] [meta-mingw][PATCH 1/2] winpthreads: use posix threads 
library from mingw64

Sure, it’ll take me couple of hours though.
Let’s see if the missing emails appear meanwhile.

> On 15 Nov 2018, at 19.33, Burton, Ross  wrote:
>
> Weird.
>
> Can you push them to a git repo?
>
> Ross
>> On Thu, 15 Nov 2018 at 17:32, Samuli Piippo  wrote:
>>
>>
>> 2/2 is also unrelated, there should 3 patches from me, sent at the same 
>> time. Don’t know where they got stuck.
>>
>>> On 15 Nov 2018, at 19.21, Burton, Ross  wrote:
>>>
>>> I see 1/2 but no 2/2, presumably this missing patch is the PIE one?
>>>
>>> Ross
>>>> On Thu, 15 Nov 2018 at 16:04, Samuli Piippo  wrote:
>>>>
>>>> Use the winpthreads library available in the mingw64 and
>>>> change the thread model from win32 to posix to get access
>>>> to c++11 features.
>>>>
>>>> Signed-off-by: Samuli Piippo 
>>>> ---
>>>> conf/machine-sdk/include/mingw32-common.inc   |  2 -
>>>> recipes-core/gettext/gettext_0.19.%.bbappend  |  5 +-
>>>> recipes-devtools/gcc/gcc-runtime_%.bbappend   |  2 +-
>>>> recipes-devtools/gcc/libgcc_%.bbappend|  2 +
>>>> .../nativesdk-mingw-w64-headers_5.0.3.bb  |  5 ++
>>>> .../nativesdk-mingw-w64-winpthreads_5.0.3.bb  | 31 
>>>> .../pthreads-win32/pthreads-win32_2.9.1.bb| 47 ---
>>>> 7 files changed, 40 insertions(+), 54 deletions(-)
>>>> create mode 100644 
>>>> recipes-devtools/mingw-w64/nativesdk-mingw-w64-winpthreads_5.0.3.bb
>>>> delete mode 100644 recipes-devtools/pthreads-win32/pthreads-win32_2.9.1.bb
>>>>
>>>> diff --git a/conf/machine-sdk/include/mingw32-common.inc 
>>>> b/conf/machine-sdk/include/mingw32-common.inc
>>>> index cd56380..733d092 100644
>>>> --- a/conf/machine-sdk/include/mingw32-common.inc
>>>> +++ b/conf/machine-sdk/include/mingw32-common.inc
>>>> @@ -1,8 +1,6 @@
>>>> SDK_OS = "mingw32"
>>>> NATIVESDKLIBC = "libc-mingw"
>>>>
>>>> -GCCTHREADS_mingw32 = "win32"
>>>> -
>>>> PREFERRED_PROVIDER_virtual/nativesdk-${SDK_PREFIX}libc-for-gcc_mingw32 = 
>>>> "nativesdk-mingw-w64-runtime"
>>>> PREFERRED_PROVIDER_virtual/nativesdk-${SDK_PREFIX}libc-initial_mingw32 = 
>>>> "nativesdk-mingw-w64-runtime"
>>>> PREFERRED_PROVIDER_virtual/nativesdk-libc = "nativesdk-mingw-w64-runtime"
>>>> diff --git a/recipes-core/gettext/gettext_0.19.%.bbappend 
>>>> b/recipes-core/gettext/gettext_0.19.%.bbappend
>>>> index b26b734..21749f3 100644
>>>> --- a/recipes-core/gettext/gettext_0.19.%.bbappend
>>>> +++ b/recipes-core/gettext/gettext_0.19.%.bbappend
>>>> @@ -1,7 +1,4 @@
>>>> -DEPENDS_append_mingw32 = " pthreads-win32"
>>>> -LDFLAGS_prepend_mingw32 = " -lpthread "
>>>> -
>>>> -EXTRA_OECONF_append_mingw32 = " --enable-threads=windows --enable-static"
>>>> +EXTRA_OECONF_append_mingw32 = " --enable-static"
>>>>
>>>> FILESEXTRAPATHS_prepend_mingw32 := "${THISDIR}/${BPN}:"
>>>> SRC_URI_append_mingw32 = " \
>>>> diff --git a/recipes-devtools/gcc/gcc-runtime_%.bbappend 
>>>> b/recipes-devtools/gcc/gcc-runtime_%.bbappend
>>>> index 1641cb9..f14edf1 100644
>>>> --- a/recipes-devtools/gcc/gcc-runtime_%.bbappend
>>>> +++ b/recipes-devtools/gcc/gcc-runtime_%.bbappend
>>>> @@ -11,4 +11,4 @@ RUNTIMETARGET_remove_mingw32 = "libitm"
>>>> # mingw builds
>>>> RUNTIMETARGET_remove_mingw32 = "libmpx"
>>>>
>>>> -DEPENDS_append_mingw32 = " pthreads-win32"
>>>> +DEPENDS_append_mingw32 = " nativesdk-mingw-w64-winpthreads"
>>>> diff --git a/recipes-devtools/gcc/libgcc_%.bbappend 
>>>> b/recipes-devtools/gcc/libgcc_%.bbappend
>>>> index 2a95d02..f542cfc 100644
>>>> --- a/recipes-devtools/gcc/libgcc_%.bbappend
>>>> +++ b/recipes-devtools/gcc/libgcc_%.bbappend
>>>> @@ -1,3 +1,5 @@
>>>> +DEPENDS_append_mingw32 = " na

[yocto] [meta-mingw][PATCH 1/2] winpthreads: use posix threads library from mingw64

2018-11-15 Thread Samuli Piippo
Use the winpthreads library available in the mingw64 and
change the thread model from win32 to posix to get access
to c++11 features.

Signed-off-by: Samuli Piippo 
---
 conf/machine-sdk/include/mingw32-common.inc   |  2 -
 recipes-core/gettext/gettext_0.19.%.bbappend  |  5 +-
 recipes-devtools/gcc/gcc-runtime_%.bbappend   |  2 +-
 recipes-devtools/gcc/libgcc_%.bbappend|  2 +
 .../nativesdk-mingw-w64-headers_5.0.3.bb  |  5 ++
 .../nativesdk-mingw-w64-winpthreads_5.0.3.bb  | 31 
 .../pthreads-win32/pthreads-win32_2.9.1.bb| 47 ---
 7 files changed, 40 insertions(+), 54 deletions(-)
 create mode 100644 
recipes-devtools/mingw-w64/nativesdk-mingw-w64-winpthreads_5.0.3.bb
 delete mode 100644 recipes-devtools/pthreads-win32/pthreads-win32_2.9.1.bb

diff --git a/conf/machine-sdk/include/mingw32-common.inc 
b/conf/machine-sdk/include/mingw32-common.inc
index cd56380..733d092 100644
--- a/conf/machine-sdk/include/mingw32-common.inc
+++ b/conf/machine-sdk/include/mingw32-common.inc
@@ -1,8 +1,6 @@
 SDK_OS = "mingw32"
 NATIVESDKLIBC = "libc-mingw"
 
-GCCTHREADS_mingw32 = "win32"
-
 PREFERRED_PROVIDER_virtual/nativesdk-${SDK_PREFIX}libc-for-gcc_mingw32 = 
"nativesdk-mingw-w64-runtime"
 PREFERRED_PROVIDER_virtual/nativesdk-${SDK_PREFIX}libc-initial_mingw32 = 
"nativesdk-mingw-w64-runtime"
 PREFERRED_PROVIDER_virtual/nativesdk-libc = "nativesdk-mingw-w64-runtime"
diff --git a/recipes-core/gettext/gettext_0.19.%.bbappend 
b/recipes-core/gettext/gettext_0.19.%.bbappend
index b26b734..21749f3 100644
--- a/recipes-core/gettext/gettext_0.19.%.bbappend
+++ b/recipes-core/gettext/gettext_0.19.%.bbappend
@@ -1,7 +1,4 @@
-DEPENDS_append_mingw32 = " pthreads-win32"
-LDFLAGS_prepend_mingw32 = " -lpthread "
-
-EXTRA_OECONF_append_mingw32 = " --enable-threads=windows --enable-static"
+EXTRA_OECONF_append_mingw32 = " --enable-static"
 
 FILESEXTRAPATHS_prepend_mingw32 := "${THISDIR}/${BPN}:"
 SRC_URI_append_mingw32 = " \
diff --git a/recipes-devtools/gcc/gcc-runtime_%.bbappend 
b/recipes-devtools/gcc/gcc-runtime_%.bbappend
index 1641cb9..f14edf1 100644
--- a/recipes-devtools/gcc/gcc-runtime_%.bbappend
+++ b/recipes-devtools/gcc/gcc-runtime_%.bbappend
@@ -11,4 +11,4 @@ RUNTIMETARGET_remove_mingw32 = "libitm"
 # mingw builds
 RUNTIMETARGET_remove_mingw32 = "libmpx"
 
-DEPENDS_append_mingw32 = " pthreads-win32"
+DEPENDS_append_mingw32 = " nativesdk-mingw-w64-winpthreads"
diff --git a/recipes-devtools/gcc/libgcc_%.bbappend 
b/recipes-devtools/gcc/libgcc_%.bbappend
index 2a95d02..f542cfc 100644
--- a/recipes-devtools/gcc/libgcc_%.bbappend
+++ b/recipes-devtools/gcc/libgcc_%.bbappend
@@ -1,3 +1,5 @@
+DEPENDS_append_mingw32 = " nativesdk-mingw-w64-winpthreads"
+
 FILES_${PN}_append_mingw32 = " ${bindir}/libgcc*.dll"
 FILES_${PN}-dev_append_mingw32 = " ${base_libdir}/libgcc*.a"
 
diff --git a/recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_5.0.3.bb 
b/recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_5.0.3.bb
index e129c32..009e5af 100644
--- a/recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_5.0.3.bb
+++ b/recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_5.0.3.bb
@@ -31,4 +31,9 @@ do_compile() {
:
 }
 
+do_install_append() {
+# install correct pthread headers
+install -m 0644 -t ${D}${includedir} 
${S}/../mingw-w64-libraries/winpthreads/include/*.h
+}
+
 FILES_${PN} += "${exec_prefix}/${TARGET_SYS}"
diff --git 
a/recipes-devtools/mingw-w64/nativesdk-mingw-w64-winpthreads_5.0.3.bb 
b/recipes-devtools/mingw-w64/nativesdk-mingw-w64-winpthreads_5.0.3.bb
new file mode 100644
index 000..1308760
--- /dev/null
+++ b/recipes-devtools/mingw-w64/nativesdk-mingw-w64-winpthreads_5.0.3.bb
@@ -0,0 +1,31 @@
+DESCRIPTION = "Winpthreads runtime libraries from MinGW-w64 project"
+LICENSE = "ZPL-2.1"
+LIC_FILES_CHKSUM = "file://../../COPYING;md5=bb936f0e04d8f1e19ad545100cee9654"
+
+COMPATIBLE_HOST = ".*-mingw.*"
+
+SRC_URI = 
"${SOURCEFORGE_MIRROR}/project/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2"
+SRC_URI[md5sum] = "5524c20312560cc8683b7d8ee292cb8c"
+SRC_URI[sha256sum] = 
"2a601db99ef579b9be69c775218ad956a24a09d7dabc9ff6c5bd60da9ccc9cb4"
+
+S = "${WORKDIR}/mingw-w64-v${PV}/mingw-w64-libraries/winpthreads"
+B = "${WORKDIR}/build-${TARGET_SYS}"
+
+inherit autotools nativesdk
+
+INHIBIT_DEFAULT_DEPS = "1"
+DEPENDS = "nativesdk-mingw-w64-runtime virtual/${TARGET_PREFIX}gcc-initial"
+
+do_configure() {
+oe_runconf
+}
+
+STAGINGCC = "gcc-cross-initial-${TARGET_ARCH}"
+STAGINGCC_class-nativesdk = "gcc-crosssdk-initial-${SDK_SYS}"
+TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TARGET}"
+PATH_prepend = "${STAGING_BINDIR_

Re: [yocto] meta-mingw: unable to run executables on Windows

2018-11-15 Thread Samuli Piippo
patch sent.
On Thu, 15 Nov 2018 at 11:17, Burton, Ross  wrote:
>
> Good work!
>
> Can we have a patch from someone please?
>
> Ross
>
> On Thu, 15 Nov 2018 at 08:35, Samuli Piippo  wrote:
>>
>> On Thu, 15 Nov 2018 at 07:01, Khem Raj  wrote:
>> >
>> > On Wed, Nov 14, 2018 at 8:08 PM Joshua Watt  wrote:
>> > >
>> > > On Wed, Nov 14, 2018 at 8:41 PM Mark Hatle  
>> > > wrote:
>> > > >
>> > > > On 11/14/18 9:54 AM, Mark Hatle wrote:
>> > > > > On 11/13/18 3:56 AM, Samuli Piippo wrote:
>> > > > >> Hi,
>> > > > >>
>> > > > >> I've just upgraded poky and meta-mingw layers from sumo to thud and 
>> > > > >> as a result
>> > > > >> a lot of the executables in the toolchain no longer run correctly 
>> > > > >> on Windows.
>> > > > >
>> > > > > Which version of windows?
>> > > > >
>> > > > >> I've built meta-toolchain for SDKMACHINE=x86_64-mingw32. From that, 
>> > > > >> gcc/g++ work
>> > > > >> fine on Windows 10, but ar, as, objdumb, and others hang for ~30 
>> > > > >> seconds and
>> > > > >> exit without any output.
>> > > > >>
>> > > > >> Has anyone else seen this?
>> > > > >
>> > > > > I've run a toolchain made on mingw after sumo, but before thud's 
>> > > > > release.  I'll
>> > > > > see if I can find a VM and give it a try later today.
>> > > >
>> > > > I'm running on Windows 7 for my testing (ya, I know old.. but it's 
>> > > > what I got.)
>> > > >
>> > > > Can you try adding the following to your conf/local.conf: 
>> > > > GCCPIE_mingw32 = ""
>> >
>> > this will be effective just for SDK and native versions I hope, but in
>> > cases if we
>> > have this override also applicable for target then this fix is not
>> > correct. We have
>> > to keep using it for target builds.
>> >
>> > > >
>> > > > I found that the SDK was not working properly here as well, but only 
>> > > > binutils.
>> > > > The above seems to fix the issue.  (You do have to rebuild your SDK.)
>> > >
>> > > I also saw this issue on Windows 7, and your described fix corrected
>> > > it (Thanks!). On the plus side, the automated SDK testing that I'm
>> > > working on discovered it as well (e.g. the tests failed because of
>> > > it), which means that the tests are working and should help prevent
>> > > issues like this in the future once I get it merged.
>> > >
>>
>> bisect finished last night and the winner was: commit
>> 491082c56ce34f3fd644f8d4457ccd52af951087
>> poky.conf: Enable security flags+pie by defaultEnable security
>> flags+pie by default
>>
>> Adding GCCPIE_mingw32 = "" fixes this also for Windows 10
>> --
>> ___
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] meta-mingw: unable to run executables on Windows

2018-11-15 Thread Samuli Piippo
On Thu, 15 Nov 2018 at 07:01, Khem Raj  wrote:
>
> On Wed, Nov 14, 2018 at 8:08 PM Joshua Watt  wrote:
> >
> > On Wed, Nov 14, 2018 at 8:41 PM Mark Hatle  wrote:
> > >
> > > On 11/14/18 9:54 AM, Mark Hatle wrote:
> > > > On 11/13/18 3:56 AM, Samuli Piippo wrote:
> > > >> Hi,
> > > >>
> > > >> I've just upgraded poky and meta-mingw layers from sumo to thud and as 
> > > >> a result
> > > >> a lot of the executables in the toolchain no longer run correctly on 
> > > >> Windows.
> > > >
> > > > Which version of windows?
> > > >
> > > >> I've built meta-toolchain for SDKMACHINE=x86_64-mingw32. From that, 
> > > >> gcc/g++ work
> > > >> fine on Windows 10, but ar, as, objdumb, and others hang for ~30 
> > > >> seconds and
> > > >> exit without any output.
> > > >>
> > > >> Has anyone else seen this?
> > > >
> > > > I've run a toolchain made on mingw after sumo, but before thud's 
> > > > release.  I'll
> > > > see if I can find a VM and give it a try later today.
> > >
> > > I'm running on Windows 7 for my testing (ya, I know old.. but it's what I 
> > > got.)
> > >
> > > Can you try adding the following to your conf/local.conf: GCCPIE_mingw32 
> > > = ""
>
> this will be effective just for SDK and native versions I hope, but in
> cases if we
> have this override also applicable for target then this fix is not
> correct. We have
> to keep using it for target builds.
>
> > >
> > > I found that the SDK was not working properly here as well, but only 
> > > binutils.
> > > The above seems to fix the issue.  (You do have to rebuild your SDK.)
> >
> > I also saw this issue on Windows 7, and your described fix corrected
> > it (Thanks!). On the plus side, the automated SDK testing that I'm
> > working on discovered it as well (e.g. the tests failed because of
> > it), which means that the tests are working and should help prevent
> > issues like this in the future once I get it merged.
> >

bisect finished last night and the winner was: commit
491082c56ce34f3fd644f8d4457ccd52af951087
poky.conf: Enable security flags+pie by defaultEnable security
flags+pie by default

Adding GCCPIE_mingw32 = "" fixes this also for Windows 10
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] meta-mingw: unable to run executables on Windows

2018-11-13 Thread Samuli Piippo
On Tue, 13 Nov 2018 at 12:17, Burton, Ross  wrote:
>
> On Tue, 13 Nov 2018 at 09:57, Samuli Piippo  wrote:
> > I've just upgraded poky and meta-mingw layers from sumo to thud and as a 
> > result a lot of the executables in the toolchain no longer run correctly on 
> > Windows.
> >
> > I've built meta-toolchain for SDKMACHINE=x86_64-mingw32. From that, gcc/g++ 
> > work fine on Windows 10, but ar, as, objdumb, and others hang for ~30 
> > seconds and exit without any output.
> >
> > Has anyone else seen this?
>
> I suspect we need to find a maintainer who actually uses meta-mingw
> and can actually test it.  Would you be willing to bisect thud to sumo
> to identify where it breaks?

I can try to setup some kind of automatic bisect run script to test this.
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] meta-mingw: unable to run executables on Windows

2018-11-13 Thread Samuli Piippo
Hi,

I've just upgraded poky and meta-mingw layers from sumo to thud and as a
result a lot of the executables in the toolchain no longer run correctly on
Windows.

I've built meta-toolchain for SDKMACHINE=x86_64-mingw32. From that, gcc/g++
work fine on Windows 10, but ar, as, objdumb, and others hang for ~30
seconds and exit without any output.

Has anyone else seen this?
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [meta-mingw][PATCH] mingw64: update to 5.0.3

2017-12-03 Thread Samuli Piippo
ping

On 10 November 2017 at 11:30, Samuli Piippo <samuli.pii...@qt.io> wrote:
> Use the latest mingw64 release to get access to the latest Windows APIs
>
> BUILDSDK_CPPFLAGS were emptied from poky.conf, but are needed for mingw
> build to include correct float.h. (error: '_MCW_DN' undeclared here)
>
> Disable shared library for nativesdk-gettext as it fails with
> 'undefined reference to `xmlFree''
>
> Signed-off-by: Samuli Piippo <samuli.pii...@qt.io>
> ---
>  recipes-core/gettext/gettext_0.19.%.bbappend| 2 +-
>  ...gw-w64-headers_3.1.0.bb => nativesdk-mingw-w64-headers_5.0.3.bb} | 4 ++--
>  ...gw-w64-runtime_3.1.0.bb => nativesdk-mingw-w64-runtime_5.0.3.bb} | 6 
> --
>  3 files changed, 7 insertions(+), 5 deletions(-)
>  rename recipes-devtools/mingw-w64/{nativesdk-mingw-w64-headers_3.1.0.bb => 
> nativesdk-mingw-w64-headers_5.0.3.bb} (83%)
>  rename recipes-devtools/mingw-w64/{nativesdk-mingw-w64-runtime_3.1.0.bb => 
> nativesdk-mingw-w64-runtime_5.0.3.bb} (84%)
>
> diff --git a/recipes-core/gettext/gettext_0.19.%.bbappend 
> b/recipes-core/gettext/gettext_0.19.%.bbappend
> index b33970a..95ea030 100644
> --- a/recipes-core/gettext/gettext_0.19.%.bbappend
> +++ b/recipes-core/gettext/gettext_0.19.%.bbappend
> @@ -2,7 +2,7 @@ DEPENDS_append_mingw32 = " pthreads-win32"
>  LDFLAGS_prepend_mingw32 = " -lpthread "
>
>  CFLAGS_append_mingw32 = " -DLIBXML_STATIC"
> -EXTRA_OECONF_append_mingw32 = " --enable-threads=windows --enable-static"
> +EXTRA_OECONF_append_mingw32 = " --enable-threads=windows --enable-static 
> --disable-shared"
>
>  FILESEXTRAPATHS_prepend_mingw32 := "${THISDIR}/${BPN}:"
>  SRC_URI_append_mingw32 = " \
> diff --git a/recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_3.1.0.bb 
> b/recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_5.0.3.bb
> similarity index 83%
> rename from recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_3.1.0.bb
> rename to recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_5.0.3.bb
> index 5cd4e34..3948392 100644
> --- a/recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_3.1.0.bb
> +++ b/recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_5.0.3.bb
> @@ -7,8 +7,8 @@ COMPATIBLE_HOST = ".*-mingw.*"
>  SRC_URI = 
> "${SOURCEFORGE_MIRROR}/project/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2
>  \
> file://epsilon.patch"
>
> -SRC_URI[md5sum] = "df0e7657f46cbd59ed9cbe2a50c66e15"
> -SRC_URI[sha256sum] = 
> "ece7a7e7e1ab5e25d5ce469f8e4de7223696146fffa71c16e2a9b017d0e017d2"
> +SRC_URI[md5sum] = "5524c20312560cc8683b7d8ee292cb8c"
> +SRC_URI[sha256sum] = 
> "2a601db99ef579b9be69c775218ad956a24a09d7dabc9ff6c5bd60da9ccc9cb4"
>
>  S = "${WORKDIR}/mingw-w64-v${PV}/mingw-w64-headers"
>  B = "${WORKDIR}/build-${TARGET_SYS}"
> diff --git a/recipes-devtools/mingw-w64/nativesdk-mingw-w64-runtime_3.1.0.bb 
> b/recipes-devtools/mingw-w64/nativesdk-mingw-w64-runtime_5.0.3.bb
> similarity index 84%
> rename from recipes-devtools/mingw-w64/nativesdk-mingw-w64-runtime_3.1.0.bb
> rename to recipes-devtools/mingw-w64/nativesdk-mingw-w64-runtime_5.0.3.bb
> index c4292ad..29df124 100644
> --- a/recipes-devtools/mingw-w64/nativesdk-mingw-w64-runtime_3.1.0.bb
> +++ b/recipes-devtools/mingw-w64/nativesdk-mingw-w64-runtime_5.0.3.bb
> @@ -5,14 +5,16 @@ LIC_FILES_CHKSUM = 
> "file://../COPYING;md5=bb936f0e04d8f1e19ad545100cee9654"
>  COMPATIBLE_HOST = ".*-mingw.*"
>
>  SRC_URI = 
> "${SOURCEFORGE_MIRROR}/project/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2"
> -SRC_URI[md5sum] = "df0e7657f46cbd59ed9cbe2a50c66e15"
> -SRC_URI[sha256sum] = 
> "ece7a7e7e1ab5e25d5ce469f8e4de7223696146fffa71c16e2a9b017d0e017d2"
> +SRC_URI[md5sum] = "5524c20312560cc8683b7d8ee292cb8c"
> +SRC_URI[sha256sum] = 
> "2a601db99ef579b9be69c775218ad956a24a09d7dabc9ff6c5bd60da9ccc9cb4"
>
>  S = "${WORKDIR}/mingw-w64-v${PV}/mingw-w64-crt"
>  B = "${WORKDIR}/build-${TARGET_SYS}"
>
>  inherit autotools nativesdk
>
> +BUILDSDK_CPPFLAGS = "-isystem${STAGING_INCDIR}"
> +
>  INHIBIT_DEFAULT_DEPS = "1"
>  DEPENDS = "nativesdk-mingw-w64-headers virtual/${TARGET_PREFIX}gcc-initial "
>
> --
> 2.7.4
>
> --
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-mingw][PATCH] mingw64: update to 5.0.3

2017-11-10 Thread Samuli Piippo
Use the latest mingw64 release to get access to the latest Windows APIs

BUILDSDK_CPPFLAGS were emptied from poky.conf, but are needed for mingw
build to include correct float.h. (error: '_MCW_DN' undeclared here)

Disable shared library for nativesdk-gettext as it fails with
'undefined reference to `xmlFree''

Signed-off-by: Samuli Piippo <samuli.pii...@qt.io>
---
 recipes-core/gettext/gettext_0.19.%.bbappend| 2 +-
 ...gw-w64-headers_3.1.0.bb => nativesdk-mingw-w64-headers_5.0.3.bb} | 4 ++--
 ...gw-w64-runtime_3.1.0.bb => nativesdk-mingw-w64-runtime_5.0.3.bb} | 6 --
 3 files changed, 7 insertions(+), 5 deletions(-)
 rename recipes-devtools/mingw-w64/{nativesdk-mingw-w64-headers_3.1.0.bb => 
nativesdk-mingw-w64-headers_5.0.3.bb} (83%)
 rename recipes-devtools/mingw-w64/{nativesdk-mingw-w64-runtime_3.1.0.bb => 
nativesdk-mingw-w64-runtime_5.0.3.bb} (84%)

diff --git a/recipes-core/gettext/gettext_0.19.%.bbappend 
b/recipes-core/gettext/gettext_0.19.%.bbappend
index b33970a..95ea030 100644
--- a/recipes-core/gettext/gettext_0.19.%.bbappend
+++ b/recipes-core/gettext/gettext_0.19.%.bbappend
@@ -2,7 +2,7 @@ DEPENDS_append_mingw32 = " pthreads-win32"
 LDFLAGS_prepend_mingw32 = " -lpthread "
 
 CFLAGS_append_mingw32 = " -DLIBXML_STATIC"
-EXTRA_OECONF_append_mingw32 = " --enable-threads=windows --enable-static"
+EXTRA_OECONF_append_mingw32 = " --enable-threads=windows --enable-static 
--disable-shared"
 
 FILESEXTRAPATHS_prepend_mingw32 := "${THISDIR}/${BPN}:"
 SRC_URI_append_mingw32 = " \
diff --git a/recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_3.1.0.bb 
b/recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_5.0.3.bb
similarity index 83%
rename from recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_3.1.0.bb
rename to recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_5.0.3.bb
index 5cd4e34..3948392 100644
--- a/recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_3.1.0.bb
+++ b/recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_5.0.3.bb
@@ -7,8 +7,8 @@ COMPATIBLE_HOST = ".*-mingw.*"
 SRC_URI = 
"${SOURCEFORGE_MIRROR}/project/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2
 \
file://epsilon.patch"
 
-SRC_URI[md5sum] = "df0e7657f46cbd59ed9cbe2a50c66e15"
-SRC_URI[sha256sum] = 
"ece7a7e7e1ab5e25d5ce469f8e4de7223696146fffa71c16e2a9b017d0e017d2"
+SRC_URI[md5sum] = "5524c20312560cc8683b7d8ee292cb8c"
+SRC_URI[sha256sum] = 
"2a601db99ef579b9be69c775218ad956a24a09d7dabc9ff6c5bd60da9ccc9cb4"
 
 S = "${WORKDIR}/mingw-w64-v${PV}/mingw-w64-headers"
 B = "${WORKDIR}/build-${TARGET_SYS}"
diff --git a/recipes-devtools/mingw-w64/nativesdk-mingw-w64-runtime_3.1.0.bb 
b/recipes-devtools/mingw-w64/nativesdk-mingw-w64-runtime_5.0.3.bb
similarity index 84%
rename from recipes-devtools/mingw-w64/nativesdk-mingw-w64-runtime_3.1.0.bb
rename to recipes-devtools/mingw-w64/nativesdk-mingw-w64-runtime_5.0.3.bb
index c4292ad..29df124 100644
--- a/recipes-devtools/mingw-w64/nativesdk-mingw-w64-runtime_3.1.0.bb
+++ b/recipes-devtools/mingw-w64/nativesdk-mingw-w64-runtime_5.0.3.bb
@@ -5,14 +5,16 @@ LIC_FILES_CHKSUM = 
"file://../COPYING;md5=bb936f0e04d8f1e19ad545100cee9654"
 COMPATIBLE_HOST = ".*-mingw.*"
 
 SRC_URI = 
"${SOURCEFORGE_MIRROR}/project/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2"
-SRC_URI[md5sum] = "df0e7657f46cbd59ed9cbe2a50c66e15"
-SRC_URI[sha256sum] = 
"ece7a7e7e1ab5e25d5ce469f8e4de7223696146fffa71c16e2a9b017d0e017d2"
+SRC_URI[md5sum] = "5524c20312560cc8683b7d8ee292cb8c"
+SRC_URI[sha256sum] = 
"2a601db99ef579b9be69c775218ad956a24a09d7dabc9ff6c5bd60da9ccc9cb4"
 
 S = "${WORKDIR}/mingw-w64-v${PV}/mingw-w64-crt"
 B = "${WORKDIR}/build-${TARGET_SYS}"
 
 inherit autotools nativesdk
 
+BUILDSDK_CPPFLAGS = "-isystem${STAGING_INCDIR}"
+
 INHIBIT_DEFAULT_DEPS = "1"
 DEPENDS = "nativesdk-mingw-w64-headers virtual/${TARGET_PREFIX}gcc-initial "
 
-- 
2.7.4

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-mingw][PATCH] gdb: add missing space to append line

2017-10-19 Thread Samuli Piippo
Signed-off-by: Samuli Piippo <samuli.pii...@qt.io>
---
 recipes-devtools/gdb/gdb-cross-canadian_%.bbappend | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-devtools/gdb/gdb-cross-canadian_%.bbappend 
b/recipes-devtools/gdb/gdb-cross-canadian_%.bbappend
index 54b975a..067b614 100644
--- a/recipes-devtools/gdb/gdb-cross-canadian_%.bbappend
+++ b/recipes-devtools/gdb/gdb-cross-canadian_%.bbappend
@@ -2,6 +2,6 @@ LDFLAGS_append_sdkmingw32 = " -Wl,-static"
 EXEEXT_sdkmingw32 = ".exe"
 DEPENDS_remove_sdkmingw32 = "nativesdk-ncurses nativesdk-readline 
nativesdk-python"
 RDEPENDS_${PN}_remove_sdkmingw32 = "nativesdk-python-core 
nativesdk-python-lang nativesdk-python-re nativesdk-python-codecs 
nativesdk-python-netclient"
-EXTRA_OECONF_append_sdkmingw32 = "--without-curses --without-system-readline 
--with-python=no"
+EXTRA_OECONF_append_sdkmingw32 = " --without-curses --without-system-readline 
--with-python=no"
 PACKAGECONFIG_remove_sdkmingw32 = "readline"
 PACKAGECONFIG_remove_sdkmingw32 = "python"
-- 
2.7.4

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-raspberrypi][PATCH] bluez5: correctly append brcm43438 service

2016-10-04 Thread Samuli Piippo
Cannot use += operator together with machine override.

Signed-off-by: Samuli Piippo <samuli.pii...@qt.io>
---
 recipes-connectivity/bluez5/bluez5_%.bbappend | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-connectivity/bluez5/bluez5_%.bbappend 
b/recipes-connectivity/bluez5/bluez5_%.bbappend
index 89798a4..956d776 100644
--- a/recipes-connectivity/bluez5/bluez5_%.bbappend
+++ b/recipes-connectivity/bluez5/bluez5_%.bbappend
@@ -23,4 +23,4 @@ FILES_${PN}_append_raspberrypi3 = " \
 /lib/firmware/brcm/BCM43430A1.hcd \
 "
 
-SYSTEMD_SERVICE_${PN}_raspberrypi3 += "brcm43438.service"
+SYSTEMD_SERVICE_${PN}_append_raspberrypi3 = " brcm43438.service"
-- 
1.9.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-mingw][PATCH] mingw64: update headers and runtime files

2016-05-11 Thread Samuli Piippo
Update to more recent version that fixes errors with conflicting
declaration of 'xxx' with 'C' linkage coming from intrin.h

Signed-off-by: Samuli Piippo <samuli.pii...@qt.io>
---
 ...ingw-w64-headers_3.1.0.bb => nativesdk-mingw-w64-headers_3.3.0.bb} | 4 ++--
 ...ingw-w64-runtime_3.1.0.bb => nativesdk-mingw-w64-runtime_3.3.0.bb} | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
 rename recipes-devtools/mingw-w64/{nativesdk-mingw-w64-headers_3.1.0.bb => 
nativesdk-mingw-w64-headers_3.3.0.bb} (80%)
 rename recipes-devtools/mingw-w64/{nativesdk-mingw-w64-runtime_3.1.0.bb => 
nativesdk-mingw-w64-runtime_3.3.0.bb} (88%)

diff --git a/recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_3.1.0.bb 
b/recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_3.3.0.bb
similarity index 80%
rename from recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_3.1.0.bb
rename to recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_3.3.0.bb
index 06312d6..06e2dd0 100644
--- a/recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_3.1.0.bb
+++ b/recipes-devtools/mingw-w64/nativesdk-mingw-w64-headers_3.3.0.bb
@@ -7,8 +7,8 @@ COMPATIBLE_HOST = ".*-mingw.*"
 SRC_URI = 
"${SOURCEFORGE_MIRROR}/project/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2
 \
file://epsilon.patch"
 
-SRC_URI[md5sum] = "df0e7657f46cbd59ed9cbe2a50c66e15"
-SRC_URI[sha256sum] = 
"ece7a7e7e1ab5e25d5ce469f8e4de7223696146fffa71c16e2a9b017d0e017d2"
+SRC_URI[md5sum] = "3c56901ca7be60beba6d58caff168240"
+SRC_URI[sha256sum] = 
"44764daa65f9adf562b0456e7b681c73c074dc6d1d3ae210f6000af0b641fcef"
 
 S = "${WORKDIR}/mingw-w64-v${PV}/mingw-w64-headers"
 B = "${WORKDIR}/build-${TARGET_SYS}"
diff --git a/recipes-devtools/mingw-w64/nativesdk-mingw-w64-runtime_3.1.0.bb 
b/recipes-devtools/mingw-w64/nativesdk-mingw-w64-runtime_3.3.0.bb
similarity index 88%
rename from recipes-devtools/mingw-w64/nativesdk-mingw-w64-runtime_3.1.0.bb
rename to recipes-devtools/mingw-w64/nativesdk-mingw-w64-runtime_3.3.0.bb
index ddffcf4..26f7c03 100644
--- a/recipes-devtools/mingw-w64/nativesdk-mingw-w64-runtime_3.1.0.bb
+++ b/recipes-devtools/mingw-w64/nativesdk-mingw-w64-runtime_3.3.0.bb
@@ -5,8 +5,8 @@ LIC_FILES_CHKSUM = 
"file://../COPYING;md5=bb936f0e04d8f1e19ad545100cee9654"
 COMPATIBLE_HOST = ".*-mingw.*"
 
 SRC_URI = 
"${SOURCEFORGE_MIRROR}/project/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2"
-SRC_URI[md5sum] = "df0e7657f46cbd59ed9cbe2a50c66e15"
-SRC_URI[sha256sum] = 
"ece7a7e7e1ab5e25d5ce469f8e4de7223696146fffa71c16e2a9b017d0e017d2"
+SRC_URI[md5sum] = "3c56901ca7be60beba6d58caff168240"
+SRC_URI[sha256sum] = 
"44764daa65f9adf562b0456e7b681c73c074dc6d1d3ae210f6000af0b641fcef"
 
 S = "${WORKDIR}/mingw-w64-v${PV}/mingw-w64-crt"
 B = "${WORKDIR}/build-${TARGET_SYS}"
-- 
1.9.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-mingw][PATCH] libgcc: move libgcc*.dll from /lib to /usr/bin

2016-05-11 Thread Samuli Piippo
Moved to /usr/bin so that any application there finds
it without setting additional PATHs.

Signed-off-by: Samuli Piippo <samuli.pii...@qt.io>
---
 recipes-devtools/gcc/libgcc_%.bbappend | 7 ++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/recipes-devtools/gcc/libgcc_%.bbappend 
b/recipes-devtools/gcc/libgcc_%.bbappend
index dd95317..cbddead 100644
--- a/recipes-devtools/gcc/libgcc_%.bbappend
+++ b/recipes-devtools/gcc/libgcc_%.bbappend
@@ -1,2 +1,7 @@
-FILES_${PN}_append_mingw32 = " ${base_libdir}/libgcc*.dll"
+FILES_${PN}_append_mingw32 = " ${bindir}/libgcc*.dll"
 FILES_${PN}-dev_append_mingw32 = " ${base_libdir}/libgcc*.a"
+
+do_install_append_mingw32() {
+install -d -m 0755 ${D}${bindir}
+mv ${D}${base_libdir}/libgcc*.dll ${D}${bindir}/
+}
-- 
1.9.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto