diff mbox series

[oe,meta-qt5,1/2] qtbase: Replace -isystem with -I

Message ID 20180222042940.3770-1-raj.khem@gmail.com
State New
Headers show
Series [oe,meta-qt5,1/2] qtbase: Replace -isystem with -I | expand

Commit Message

Khem Raj Feb. 22, 2018, 4:29 a.m. UTC
Fixes no-x11 builds (eglfs)

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 recipes-qt/qt5/qtbase-native_git.bb                |  1 +
 ...mon-gcc-base.conf-Use-I-instead-of-isyste.patch | 36 ++++++++++++++++++++++
 recipes-qt/qt5/qtbase_git.bb                       |  1 +
 3 files changed, 38 insertions(+)
 create mode 100644 recipes-qt/qt5/qtbase/0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch

-- 
2.16.2

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Comments

Khem Raj Feb. 22, 2018, 5:03 a.m. UTC | #1
this patch is resent because now its rebased on top of master-next

On Wed, Feb 21, 2018 at 8:29 PM, Khem Raj <raj.khem@gmail.com> wrote:
> Fixes no-x11 builds (eglfs)

>

> Signed-off-by: Khem Raj <raj.khem@gmail.com>

> ---

>  recipes-qt/qt5/qtbase-native_git.bb                |  1 +

>  ...mon-gcc-base.conf-Use-I-instead-of-isyste.patch | 36 ++++++++++++++++++++++

>  recipes-qt/qt5/qtbase_git.bb                       |  1 +

>  3 files changed, 38 insertions(+)

>  create mode 100644 recipes-qt/qt5/qtbase/0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch

>

> diff --git a/recipes-qt/qt5/qtbase-native_git.bb b/recipes-qt/qt5/qtbase-native_git.bb

> index 20e24eb..5fa24d3 100644

> --- a/recipes-qt/qt5/qtbase-native_git.bb

> +++ b/recipes-qt/qt5/qtbase-native_git.bb

> @@ -34,6 +34,7 @@ SRC_URI += "\

>      file://0009-Add-OE-specific-specs-for-clang-compiler.patch \

>      file://0010-linux-clang-Invert-conditional-for-defining-QT_SOCKL.patch \

>      file://0011-tst_qlocale-Enable-QT_USE_FENV-only-on-glibc.patch \

> +    file://0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch \

>  "

>

>  # common for qtbase-native and nativesdk-qtbase

> diff --git a/recipes-qt/qt5/qtbase/0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch b/recipes-qt/qt5/qtbase/0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch

> new file mode 100644

> index 0000000..44e9009

> --- /dev/null

> +++ b/recipes-qt/qt5/qtbase/0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch

> @@ -0,0 +1,36 @@

> +From 61c858474804fd772d612e6c5b4bb6df261d521a Mon Sep 17 00:00:00 2001

> +From: Khem Raj <raj.khem@gmail.com>

> +Date: Wed, 14 Feb 2018 17:08:43 -0800

> +Subject: [PATCH] mkspecs/common/gcc-base.conf: Use -I instead of -isystem

> +

> +-isystem fails to build when code uses include_next on certain files e.g.

> +

> +qtbase/5.10.0+gitAUTOINC+50117d738a-r0/recipe-sysroot/usr/include/c++/7.3.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory

> + #include_next <stdlib.h>

> +               ^~~~~~~~~~

> +compilation terminated.

> +make[2]: *** [Makefile:11592: .obj/qgenericpluginfactory.o] Error 1

> +

> +Upstream-Status: Pending

> +

> +Signed-off-by: Khem Raj <raj.khem@gmail.com>

> +---

> + mkspecs/common/gcc-base.conf | 2 +-

> + 1 file changed, 1 insertion(+), 1 deletion(-)

> +

> +diff --git a/mkspecs/common/gcc-base.conf b/mkspecs/common/gcc-base.conf

> +index 234f71d495..ee3da023e6 100644

> +--- a/mkspecs/common/gcc-base.conf

> ++++ b/mkspecs/common/gcc-base.conf

> +@@ -46,7 +46,7 @@ QMAKE_CFLAGS_DEBUG         += -g

> + QMAKE_CFLAGS_SHLIB         += $$QMAKE_CFLAGS_PIC

> + QMAKE_CFLAGS_STATIC_LIB    += $$QMAKE_CFLAGS_PIC

> + QMAKE_CFLAGS_APP           += $$QMAKE_CFLAGS_PIC

> +-QMAKE_CFLAGS_ISYSTEM        = -isystem

> ++QMAKE_CFLAGS_ISYSTEM        = -I

> + QMAKE_CFLAGS_YACC          += -Wno-unused -Wno-parentheses

> + QMAKE_CFLAGS_HIDESYMS      += -fvisibility=hidden

> + QMAKE_CFLAGS_EXCEPTIONS_OFF += -fno-exceptions

> +--

> +2.16.1

> +

> diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb

> index 522e261..e495b8c 100644

> --- a/recipes-qt/qt5/qtbase_git.bb

> +++ b/recipes-qt/qt5/qtbase_git.bb

> @@ -30,6 +30,7 @@ SRC_URI += "\

>      file://0009-Add-OE-specific-specs-for-clang-compiler.patch \

>      file://0010-linux-clang-Invert-conditional-for-defining-QT_SOCKL.patch \

>      file://0011-tst_qlocale-Enable-QT_USE_FENV-only-on-glibc.patch \

> +    file://0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch \

>  "

>

>  # LGPL-3.0 is used only in src/plugins/platforms/android/extract.cpp

> --

> 2.16.2

>

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Denys Dmytriyenko Feb. 24, 2018, 4:49 a.m. UTC | #2
Just replied to v1 of the patch - still can't reproduce the issue even with 
security_flags.inc


On Wed, Feb 21, 2018 at 08:29:39PM -0800, Khem Raj wrote:
> Fixes no-x11 builds (eglfs)

> 

> Signed-off-by: Khem Raj <raj.khem@gmail.com>

> ---

>  recipes-qt/qt5/qtbase-native_git.bb                |  1 +

>  ...mon-gcc-base.conf-Use-I-instead-of-isyste.patch | 36 ++++++++++++++++++++++

>  recipes-qt/qt5/qtbase_git.bb                       |  1 +

>  3 files changed, 38 insertions(+)

>  create mode 100644 recipes-qt/qt5/qtbase/0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch

> 

> diff --git a/recipes-qt/qt5/qtbase-native_git.bb b/recipes-qt/qt5/qtbase-native_git.bb

> index 20e24eb..5fa24d3 100644

> --- a/recipes-qt/qt5/qtbase-native_git.bb

> +++ b/recipes-qt/qt5/qtbase-native_git.bb

> @@ -34,6 +34,7 @@ SRC_URI += "\

>      file://0009-Add-OE-specific-specs-for-clang-compiler.patch \

>      file://0010-linux-clang-Invert-conditional-for-defining-QT_SOCKL.patch \

>      file://0011-tst_qlocale-Enable-QT_USE_FENV-only-on-glibc.patch \

> +    file://0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch \

>  "

>  

>  # common for qtbase-native and nativesdk-qtbase

> diff --git a/recipes-qt/qt5/qtbase/0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch b/recipes-qt/qt5/qtbase/0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch

> new file mode 100644

> index 0000000..44e9009

> --- /dev/null

> +++ b/recipes-qt/qt5/qtbase/0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch

> @@ -0,0 +1,36 @@

> +From 61c858474804fd772d612e6c5b4bb6df261d521a Mon Sep 17 00:00:00 2001

> +From: Khem Raj <raj.khem@gmail.com>

> +Date: Wed, 14 Feb 2018 17:08:43 -0800

> +Subject: [PATCH] mkspecs/common/gcc-base.conf: Use -I instead of -isystem

> +

> +-isystem fails to build when code uses include_next on certain files e.g.

> +

> +qtbase/5.10.0+gitAUTOINC+50117d738a-r0/recipe-sysroot/usr/include/c++/7.3.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory

> + #include_next <stdlib.h>

> +               ^~~~~~~~~~

> +compilation terminated.

> +make[2]: *** [Makefile:11592: .obj/qgenericpluginfactory.o] Error 1

> +

> +Upstream-Status: Pending

> +

> +Signed-off-by: Khem Raj <raj.khem@gmail.com>

> +---

> + mkspecs/common/gcc-base.conf | 2 +-

> + 1 file changed, 1 insertion(+), 1 deletion(-)

> +

> +diff --git a/mkspecs/common/gcc-base.conf b/mkspecs/common/gcc-base.conf

> +index 234f71d495..ee3da023e6 100644

> +--- a/mkspecs/common/gcc-base.conf

> ++++ b/mkspecs/common/gcc-base.conf

> +@@ -46,7 +46,7 @@ QMAKE_CFLAGS_DEBUG         += -g

> + QMAKE_CFLAGS_SHLIB         += $$QMAKE_CFLAGS_PIC

> + QMAKE_CFLAGS_STATIC_LIB    += $$QMAKE_CFLAGS_PIC

> + QMAKE_CFLAGS_APP           += $$QMAKE_CFLAGS_PIC

> +-QMAKE_CFLAGS_ISYSTEM        = -isystem

> ++QMAKE_CFLAGS_ISYSTEM        = -I

> + QMAKE_CFLAGS_YACC          += -Wno-unused -Wno-parentheses

> + QMAKE_CFLAGS_HIDESYMS      += -fvisibility=hidden

> + QMAKE_CFLAGS_EXCEPTIONS_OFF += -fno-exceptions

> +-- 

> +2.16.1

> +

> diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb

> index 522e261..e495b8c 100644

> --- a/recipes-qt/qt5/qtbase_git.bb

> +++ b/recipes-qt/qt5/qtbase_git.bb

> @@ -30,6 +30,7 @@ SRC_URI += "\

>      file://0009-Add-OE-specific-specs-for-clang-compiler.patch \

>      file://0010-linux-clang-Invert-conditional-for-defining-QT_SOCKL.patch \

>      file://0011-tst_qlocale-Enable-QT_USE_FENV-only-on-glibc.patch \

> +    file://0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch \

>  "

>  

>  # LGPL-3.0 is used only in src/plugins/platforms/android/extract.cpp

> -- 

> 2.16.2

> 

> -- 

> _______________________________________________

> Openembedded-devel mailing list

> Openembedded-devel@lists.openembedded.org

> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
diff mbox series

Patch

diff --git a/recipes-qt/qt5/qtbase-native_git.bb b/recipes-qt/qt5/qtbase-native_git.bb
index 20e24eb..5fa24d3 100644
--- a/recipes-qt/qt5/qtbase-native_git.bb
+++ b/recipes-qt/qt5/qtbase-native_git.bb
@@ -34,6 +34,7 @@  SRC_URI += "\
     file://0009-Add-OE-specific-specs-for-clang-compiler.patch \
     file://0010-linux-clang-Invert-conditional-for-defining-QT_SOCKL.patch \
     file://0011-tst_qlocale-Enable-QT_USE_FENV-only-on-glibc.patch \
+    file://0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch \
 "
 
 # common for qtbase-native and nativesdk-qtbase
diff --git a/recipes-qt/qt5/qtbase/0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch b/recipes-qt/qt5/qtbase/0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch
new file mode 100644
index 0000000..44e9009
--- /dev/null
+++ b/recipes-qt/qt5/qtbase/0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch
@@ -0,0 +1,36 @@ 
+From 61c858474804fd772d612e6c5b4bb6df261d521a Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Wed, 14 Feb 2018 17:08:43 -0800
+Subject: [PATCH] mkspecs/common/gcc-base.conf: Use -I instead of -isystem
+
+-isystem fails to build when code uses include_next on certain files e.g.
+
+qtbase/5.10.0+gitAUTOINC+50117d738a-r0/recipe-sysroot/usr/include/c++/7.3.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
+ #include_next <stdlib.h>
+               ^~~~~~~~~~
+compilation terminated.
+make[2]: *** [Makefile:11592: .obj/qgenericpluginfactory.o] Error 1
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ mkspecs/common/gcc-base.conf | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/mkspecs/common/gcc-base.conf b/mkspecs/common/gcc-base.conf
+index 234f71d495..ee3da023e6 100644
+--- a/mkspecs/common/gcc-base.conf
++++ b/mkspecs/common/gcc-base.conf
+@@ -46,7 +46,7 @@ QMAKE_CFLAGS_DEBUG         += -g
+ QMAKE_CFLAGS_SHLIB         += $$QMAKE_CFLAGS_PIC
+ QMAKE_CFLAGS_STATIC_LIB    += $$QMAKE_CFLAGS_PIC
+ QMAKE_CFLAGS_APP           += $$QMAKE_CFLAGS_PIC
+-QMAKE_CFLAGS_ISYSTEM        = -isystem
++QMAKE_CFLAGS_ISYSTEM        = -I
+ QMAKE_CFLAGS_YACC          += -Wno-unused -Wno-parentheses
+ QMAKE_CFLAGS_HIDESYMS      += -fvisibility=hidden
+ QMAKE_CFLAGS_EXCEPTIONS_OFF += -fno-exceptions
+-- 
+2.16.1
+
diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb
index 522e261..e495b8c 100644
--- a/recipes-qt/qt5/qtbase_git.bb
+++ b/recipes-qt/qt5/qtbase_git.bb
@@ -30,6 +30,7 @@  SRC_URI += "\
     file://0009-Add-OE-specific-specs-for-clang-compiler.patch \
     file://0010-linux-clang-Invert-conditional-for-defining-QT_SOCKL.patch \
     file://0011-tst_qlocale-Enable-QT_USE_FENV-only-on-glibc.patch \
+    file://0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch \
 "
 
 # LGPL-3.0 is used only in src/plugins/platforms/android/extract.cpp