Skip to contentSkip to conversation

hiawatha: ennsure C flags are passed to builds.

PATCH In review Jeffrey C Honig 5 participants 9 messages Feb 12, 2013 – Feb 26, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hiawatha: ennsure C flags are passed to builds.

[ CQID: WIND00403568 ]

Hiawatha was overriding existing C flags instead of prepending warning flags. This caused build failures on multilibs because the C compiler could not find the proper sysroot.

---
 recipes-httpd/hiawatha/files/cmake.patch |   16 ++++++++++++++++
 recipes-httpd/hiawatha/hiawatha_8.6.bb   |    3 +++
 2 files changed, 19 insertions(+)
 create mode 100644 recipes-httpd/hiawatha/files/cmake.patch
recipes-httpd/hiawatha/files/cmake.patch new file +16 -0
new file mode 100644
index 0000000..f597781
@@ -0,0 +1,16 @@
+It is necessary to include the original CMAKE_C_FLAGS to insure that
+the sysroot is passed to the compiler, instead of just setting warning
+options.  Otherwise we'll get problem croos compiling in some
+circumstances.
+
+--- a/CMakeLists.txt	2012-10-31 14:16:45.000000000 -0400
++++ b/CMakeLists.txt	2013-02-12 14:07:04.297058345 -0500
+@@ -2,7 +2,7 @@
+ project(Hiawatha C)
+ 
+ # Compiler
+-set(CMAKE_C_FLAGS "-Wall -Wextra")
++set(CMAKE_C_FLAGS "-Wall -Wextra ${CMAKE_C_FLAGS}")
+ set(CMAKE_BUILD_TYPE "RelWithDebInfo")
+ 
+ # Options
recipes-httpd/hiawatha/hiawatha_8.6.bb +3 -0
index 837354b..d46a525 100644
@@ -4,9 +4,12 @@ LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=751419260aa954499f7abaabaa882bbe"
 DEPENDS = "libxml2 libxslt"
 
+PR = "r1"
+
 SECTION = "net"
 
 SRC_URI = "http://hiawatha-webserver.org/files/${BPN}-${PV}.tar.gz \
+           file://cmake.patch \
            file://hiawatha-init"
 
 SRC_URI[md5sum] = "372ea9e8329ed36e4fb781fdc1a6734c"
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 42 lines · Jeffrey C Honig

[ CQID: WIND00403568 ]

Hiawatha was overriding existing C flags instead of prepending warning flags. This caused build failures on multilibs because the C compiler could not find the proper sysroot.

---
  recipes-httpd/hiawatha/files/cmake.patch |   16 ++++++++++++++++
  recipes-httpd/hiawatha/hiawatha_8.6.bb   |    3 +++
  2 files changed, 19 insertions(+)

create mode 100644 recipes-httpd/hiawatha/files/cmake.patch

recipes-httpd/hiawatha/files/cmake.patch new file +16 -0
new file mode 100644
index 0000000..f597781
@@ -0,0 +1,16 @@
+It is necessary to include the original CMAKE_C_FLAGS to insure that
+the sysroot is passed to the compiler, instead of just setting warning
+options.  Otherwise we'll get problem croos compiling in some
+circumstances.
+
+--- a/CMakeLists.txt	2012-10-31 14:16:45.000000000 -0400
++++ b/CMakeLists.txt	2013-02-12 14:07:04.297058345 -0500
+@@ -2,7 +2,7 @@
+ project(Hiawatha C)
+
+ # Compiler
+-set(CMAKE_C_FLAGS "-Wall -Wextra")
++set(CMAKE_C_FLAGS "-Wall -Wextra ${CMAKE_C_FLAGS}")
+ set(CMAKE_BUILD_TYPE "RelWithDebInfo")
+
+ # Options
recipes-httpd/hiawatha/hiawatha_8.6.bb +0 -0
index 837354b..d46a525 100644
@@ -4,9 +4,12 @@ LICENSE = "GPLv2"
  LIC_FILES_CHKSUM = "file://LICENSE;md5=751419260aa954499f7abaabaa882bbe"
  DEPENDS = "libxml2 libxslt"

recipes-httpd/hiawatha/hiawatha_8.6.bb LICENSE = "GPLv2" · line 15

Quoted 10 lines
recipes-httpd/hiawatha/hiawatha_8.6.bb +3 -0
 
+PR = "r1"
+
  SECTION = "net"
 
  SRC_URI = "http://hiawatha-webserver.org/files/${BPN}-${PV}.tar.gz \
+           file://cmake.patch \
             file://hiawatha-init"
 
  SRC_URI[md5sum] = "372ea9e8329ed36e4fb781fdc1a6734c"

What's the upstream status on this? If you email Hugo (the developer) directly he usually responds within a few hours and will pull the changes into the next release.

Regards,
Jack.

Signature · 5 lines
  Jack Mitchell ([email protected])
  Embedded Systems Engineer
  http://www.embed.me.uk

--
#2 lore raw
Quoted 52 lines · Jack Mitchell
Quoted 51 lines · Jeffrey C Honig

[ CQID: WIND00403568 ]

Hiawatha was overriding existing C flags instead of prepending warning flags. This caused build failures on multilibs because the C compiler could not find the proper sysroot.

---
   recipes-httpd/hiawatha/files/cmake.patch |   16 ++++++++++++++++
   recipes-httpd/hiawatha/hiawatha_8.6.bb   |    3 +++
   2 files changed, 19 insertions(+)

create mode 100644 recipes-httpd/hiawatha/files/cmake.patch

recipes-httpd/hiawatha/files/cmake.patch new file +16 -0
new file mode 100644
index 0000000..f597781
@@ -0,0 +1,16 @@
+It is necessary to include the original CMAKE_C_FLAGS to insure that
+the sysroot is passed to the compiler, instead of just setting warning
+options.  Otherwise we'll get problem croos compiling in some
+circumstances.
+
+--- a/CMakeLists.txt	2012-10-31 14:16:45.000000000 -0400
++++ b/CMakeLists.txt	2013-02-12 14:07:04.297058345 -0500
+@@ -2,7 +2,7 @@
+ project(Hiawatha C)
+
+ # Compiler
+-set(CMAKE_C_FLAGS "-Wall -Wextra")
++set(CMAKE_C_FLAGS "-Wall -Wextra ${CMAKE_C_FLAGS}")
+ set(CMAKE_BUILD_TYPE "RelWithDebInfo")
+
+ # Options
recipes-httpd/hiawatha/hiawatha_8.6.bb +3 -0
index 837354b..d46a525 100644
@@ -4,9 +4,12 @@ LICENSE = "GPLv2"
   LIC_FILES_CHKSUM = "file://LICENSE;md5=751419260aa954499f7abaabaa882bbe"
   DEPENDS = "libxml2 libxslt"
 
+PR = "r1"
+
   SECTION = "net"
 
   SRC_URI = "http://hiawatha-webserver.org/files/${BPN}-${PV}.tar.gz \
+           file://cmake.patch \
              file://hiawatha-init"
 
Quoted 5 lines

recipes-httpd/hiawatha/hiawatha_8.6.bb LICENSE = "GPLv2" · line 15

Quoted 1 line
recipes-httpd/hiawatha/hiawatha_8.6.bb +0 -0
   SRC_URI[md5sum] = "372ea9e8329ed36e4fb781fdc1a6734c"

What's the upstream status on this? If you email Hugo (the developer) directly he usually responds within a few hours and will pull the changes into the next release.

I'm following up for Jeff. He has contacted Hugo and the above patch has been included upstream.

--Mark

Quoted 3 lines

Regards,
Jack.

#3 lore raw
Quoted 59 lines · On Wednesday 20 February 2013 10:38:29 Mark Hatle wrote:
Quoted 58 lines · Jack Mitchell
Quoted 57 lines · Jeffrey C Honig

[ CQID: WIND00403568 ]

Hiawatha was overriding existing C flags instead of prepending warning flags. This caused build failures on multilibs because the C compiler could not find the proper sysroot.

---

   recipes-httpd/hiawatha/files/cmake.patch |   16 ++++++++++++++++
   recipes-httpd/hiawatha/hiawatha_8.6.bb   |    3 +++
   2 files changed, 19 insertions(+)

create mode 100644 recipes-httpd/hiawatha/files/cmake.patch

(quoted diff) +0 -0

b/recipes-httpd/hiawatha/files/cmake.patch new file mode 100644 index 0000000..f597781

recipes-httpd/hiawatha/files/cmake.patch new file +16 -0
@@ -0,0 +1,16 @@
+It is necessary to include the original CMAKE_C_FLAGS to insure that
+the sysroot is passed to the compiler, instead of just setting warning
+options.  Otherwise we'll get problem croos compiling in some
+circumstances.
+
+--- a/CMakeLists.txt	2012-10-31 14:16:45.000000000 -0400
++++ b/CMakeLists.txt	2013-02-12 14:07:04.297058345 -0500
+@@ -2,7 +2,7 @@
+ project(Hiawatha C)
+
+ # Compiler
+-set(CMAKE_C_FLAGS "-Wall -Wextra")
++set(CMAKE_C_FLAGS "-Wall -Wextra ${CMAKE_C_FLAGS}")
+ set(CMAKE_BUILD_TYPE "RelWithDebInfo")
+
+ # Options
(quoted diff) +0 -0

b/recipes-httpd/hiawatha/hiawatha_8.6.bb index 837354b..d46a525 100644

recipes-httpd/hiawatha/hiawatha_8.6.bb +3 -0
@@ -4,9 +4,12 @@ LICENSE = "GPLv2"
 
   LIC_FILES_CHKSUM =
   "file://LICENSE;md5=751419260aa954499f7abaabaa882bbe"
   DEPENDS = "libxml2 libxslt"
 
+PR = "r1"
+
 
   SECTION = "net"
 
   SRC_URI = "http://hiawatha-webserver.org/files/${BPN}-${PV}.tar.gz \
 
+           file://cmake.patch \
 
              file://hiawatha-init"
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
   SRC_URI[md5sum] = "372ea9e8329ed36e4fb781fdc1a6734c"

What's the upstream status on this? If you email Hugo (the developer) directly he usually responds within a few hours and will pull the changes into the next release.

I'm following up for Jeff. He has contacted Hugo and the above patch has been included upstream.

Great. Should I still apply this to meta-webserver then or do we wait for a new upstream release?

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#4 lore raw
Quoted 66 lines · Paul Eggleton
Quoted 65 lines · On Wednesday 20 February 2013 10:38:29 Mark Hatle wrote:
Quoted 63 lines · Jack Mitchell
Quoted 48 lines · Jeffrey C Honig

[ CQID: WIND00403568 ]

Hiawatha was overriding existing C flags instead of prepending warning flags. This caused build failures on multilibs because the C compiler could not find the proper sysroot.

---

   recipes-httpd/hiawatha/files/cmake.patch |   16 ++++++++++++++++
   recipes-httpd/hiawatha/hiawatha_8.6.bb   |    3 +++
   2 files changed, 19 insertions(+)

create mode 100644 recipes-httpd/hiawatha/files/cmake.patch

(quoted diff) +0 -0

b/recipes-httpd/hiawatha/files/cmake.patch new file mode 100644 index 0000000..f597781

recipes-httpd/hiawatha/files/cmake.patch new file +16 -0
@@ -0,0 +1,16 @@
+It is necessary to include the original CMAKE_C_FLAGS to insure that
+the sysroot is passed to the compiler, instead of just setting warning
+options.  Otherwise we'll get problem croos compiling in some
+circumstances.
+
+--- a/CMakeLists.txt	2012-10-31 14:16:45.000000000 -0400
++++ b/CMakeLists.txt	2013-02-12 14:07:04.297058345 -0500
+@@ -2,7 +2,7 @@
+ project(Hiawatha C)
+
+ # Compiler
+-set(CMAKE_C_FLAGS "-Wall -Wextra")
++set(CMAKE_C_FLAGS "-Wall -Wextra ${CMAKE_C_FLAGS}")
+ set(CMAKE_BUILD_TYPE "RelWithDebInfo")
+
+ # Options
(quoted diff) +0 -0

b/recipes-httpd/hiawatha/hiawatha_8.6.bb index 837354b..d46a525 100644

recipes-httpd/hiawatha/hiawatha_8.6.bb +2 -0
@@ -4,9 +4,12 @@ LICENSE = "GPLv2"
 
   LIC_FILES_CHKSUM =
   "file://LICENSE;md5=751419260aa954499f7abaabaa882bbe"
   DEPENDS = "libxml2 libxslt"
 
+PR = "r1"
+

recipes-httpd/hiawatha/hiawatha_8.6.bb LICENSE = "GPLv2"

Quoted 10 lines
recipes-httpd/hiawatha/hiawatha_8.6.bb +1 -0
 
   SECTION = "net"
 
   SRC_URI = "http://hiawatha-webserver.org/files/${BPN}-${PV}.tar.gz \
 
+           file://cmake.patch \
 
              file://hiawatha-init"
 
   SRC_URI[md5sum] = "372ea9e8329ed36e4fb781fdc1a6734c"

What's the upstream status on this? If you email Hugo (the developer) directly he usually responds within a few hours and will pull the changes into the next release.

Quoted 5 lines
Quoted 2 lines

I'm following up for Jeff. He has contacted Hugo and the above patch has been included upstream.

Great. Should I still apply this to meta-webserver then or do we wait for a new upstream release?

We have a local patch applied, we are good. It is fine to wait.

Thanks!

Jeff

Signature · 5 lines
Jeffrey C. Honig
Manager of Linux Products Division / SDT
Wind River (风河)
+1.607.216.8613
http://www.windriver.com
#5 lore raw
Quoted 68 lines · Jeffrey Honig
Quoted 66 lines · Paul Eggleton
Quoted 65 lines · On Wednesday 20 February 2013 10:38:29 Mark Hatle wrote:
Quoted 54 lines · Jack Mitchell
Quoted 53 lines · Jeffrey C Honig

[ CQID: WIND00403568 ]

Hiawatha was overriding existing C flags instead of prepending warning flags. This caused build failures on multilibs because the C compiler could not find the proper sysroot.

---

    recipes-httpd/hiawatha/files/cmake.patch |   16 ++++++++++++++++
    recipes-httpd/hiawatha/hiawatha_8.6.bb   |    3 +++
    2 files changed, 19 insertions(+)

create mode 100644 recipes-httpd/hiawatha/files/cmake.patch

(quoted diff) +0 -0

b/recipes-httpd/hiawatha/files/cmake.patch new file mode 100644 index 0000000..f597781

recipes-httpd/hiawatha/files/cmake.patch new file +16 -0
@@ -0,0 +1,16 @@
+It is necessary to include the original CMAKE_C_FLAGS to insure that
+the sysroot is passed to the compiler, instead of just setting warning
+options.  Otherwise we'll get problem croos compiling in some
+circumstances.
+
+--- a/CMakeLists.txt	2012-10-31 14:16:45.000000000 -0400
++++ b/CMakeLists.txt	2013-02-12 14:07:04.297058345 -0500
+@@ -2,7 +2,7 @@
+ project(Hiawatha C)
+
+ # Compiler
+-set(CMAKE_C_FLAGS "-Wall -Wextra")
++set(CMAKE_C_FLAGS "-Wall -Wextra ${CMAKE_C_FLAGS}")
+ set(CMAKE_BUILD_TYPE "RelWithDebInfo")
+
+ # Options
(quoted diff) +0 -0

b/recipes-httpd/hiawatha/hiawatha_8.6.bb index 837354b..d46a525 100644

recipes-httpd/hiawatha/hiawatha_8.6.bb +2 -0
@@ -4,9 +4,12 @@ LICENSE = "GPLv2"
 
    LIC_FILES_CHKSUM =
    "file://LICENSE;md5=751419260aa954499f7abaabaa882bbe"
    DEPENDS = "libxml2 libxslt"
 
+PR = "r1"
+
 
    SECTION = "net"
 
    SRC_URI = "http://hiawatha-webserver.org/files/${BPN}-${PV}.tar.gz \
Quoted 8 lines
Quoted 5 lines
recipes-httpd/hiawatha/hiawatha_8.6.bb +1 -0
+           file://cmake.patch \
               file://hiawatha-init"
    
    SRC_URI[md5sum] = "372ea9e8329ed36e4fb781fdc1a6734c"

What's the upstream status on this? If you email Hugo (the developer) directly he usually responds within a few hours and will pull the changes into the next release.

I'm following up for Jeff. He has contacted Hugo and the above patch has been included upstream.

Quoted 8 lines
Quoted 2 lines

Great. Should I still apply this to meta-webserver then or do we wait for a new upstream release?

We have a local patch applied, we are good. It is fine to wait.

Thanks!

Jeff

8.8 has been released if someone wants to pick this up. I would myself but I'm currently blocked by a binutils failure.

Signature · 5 lines
  Jack Mitchell ([email protected])
  Embedded Systems Engineer
  http://www.embed.me.uk

--
#6 lore raw
Quoted 3 lines

8.8 has been released if someone wants to pick this up. I would myself but I'm currently blocked by a binutils failure.

whats the binutils failure ? have you reported it somewhere ?

#7 lore raw
Quoted 8 lines · Khem Raj
Quoted 2 lines

8.8 has been released if someone wants to pick this up. I would myself but I'm currently blocked by a binutils failure.

whats the binutils failure ? have you reported it somewhere ?

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

http://article.gmane.org/gmane.comp.handhelds.openembedded.core/33812/match=jack+mitchell

and

https://bugzilla.yoctoproject.org/show_bug.cgi?id=3943

Cheers,

#8 lore raw
Quoted 7 lines · Jack Mitchell
Quoted 6 lines · Khem Raj
Quoted 3 lines

8.8 has been released if someone wants to pick this up. I would myself but I'm currently blocked by a binutils failure.

whats the binutils failure ? have you reported it somewhere ?

Quoted 8 lines
Quoted 4 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

http://article.gmane.org/gmane.comp.handhelds.openembedded.core/33812/match=jack+mitchell

thats not so much related here but I guess texinfo got updated

Quoted 4 lines

and

https://bugzilla.yoctoproject.org/show_bug.cgi?id=3943

I have posted a fix for it. here

http://patchwork.openembedded.org/patch/45151/

please try it out and report back

Quoted 8 lines

Cheers,

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel