All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/sconeserver: fix build with gcc 4.8
@ 2022-02-22 17:52 Fabrice Fontaine
  2022-03-07 20:47 ` Peter Korsgaard
  0 siblings, 1 reply; 4+ messages in thread
From: Fabrice Fontaine @ 2022-02-22 17:52 UTC (permalink / raw)
  To: buildroot; +Cc: Simon Dawson, Fabrice Fontaine

Fix the following build failure with gcc 4.8 raised since the addition
of -std=c++11 in commit b9eca021594470341bec2876edc0a27251f3f9b2:

sconex.cpp: In function 'scx::Date& scx::build_time()':
sconex.cpp:52:36: error: unable to find string literal operator 'operator"" __TIME__'
   static Date s_build_time(__DATE__" "__TIME__,true);
                                    ^

Fixes:
 - http://autobuild.buildroot.org/results/83ecf772965b4586eaea2682871a85732df7d62f

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/sconeserver/0002-CMake-ify.patch | 173 +++++++++++++++++++++++
 1 file changed, 173 insertions(+)
 create mode 100644 package/sconeserver/0002-CMake-ify.patch

diff --git a/package/sconeserver/0002-CMake-ify.patch b/package/sconeserver/0002-CMake-ify.patch
new file mode 100644
index 0000000000..810c803469
--- /dev/null
+++ b/package/sconeserver/0002-CMake-ify.patch
@@ -0,0 +1,173 @@
+From 0cb655721d7f8aa5d6d14fc1dfce18c518ce2419 Mon Sep 17 00:00:00 2001
+From: Andrew Wedgbury <wedge@sconemad.com>
+Date: Mon, 19 Aug 2019 21:12:59 +0000
+Subject: [PATCH] CMake-ify
+
+[Retrieve (and updated to only keep fix on sconex.cpp) from:
+https://github.com/sconemad/sconeserver/commit/0cb655721d7f8aa5d6d14fc1dfce18c518ce2419]
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ .gitignore                          |   5 +
+ CMakeLists.txt                      |  52 ++++
+ Makefile.am                         |  58 ----
+ autogen.sh                          |   8 -
+ bluetooth/CMakeLists.txt            |  16 +
+ bluetooth/Makefile.am               |  22 --
+ config.h.in                         | 335 +--------------------
+ configure.in                        | 451 ----------------------------
+ debian/rules                        |  10 +-
+ debian/sconeserver-base.install     |   2 +-
+ debian/sconeserver-dev.install      |   4 +-
+ examples/Makefile.am                |   4 -
+ examples/rot13/CMakeLists.txt       |   9 +
+ examples/rot13/Makefile.am          |  24 --
+ examples/tuesdayonly/CMakeLists.txt |   7 +
+ examples/tuesdayonly/Makefile.am    |  18 --
+ exec/CMakeLists.txt                 |   9 +
+ exec/Makefile.am                    |  24 --
+ forward/CMakeLists.txt              |   8 +
+ forward/Makefile.am                 |  19 --
+ http/CMakeLists.txt                 |  51 ++++
+ http/Makefile.am                    |  58 ----
+ image/CMakeLists.txt                |  12 +
+ image/Makefile.am                   |  20 --
+ ip/CMakeLists.txt                   |   9 +
+ ip/Makefile.am                      |  21 --
+ ip6/CMakeLists.txt                  |   9 +
+ ip6/Makefile.am                     |  21 --
+ local/CMakeLists.txt                |   9 +
+ local/Makefile.am                   |  21 --
+ location/CMakeLists.txt             |  11 +
+ location/Makefile.am                |  18 --
+ main.cpp                            |   4 +-
+ markdown/CMakeLists.txt             |  20 ++
+ markdown/Makefile.am                |  21 --
+ maths/CMakeLists.txt                |  32 ++
+ maths/Makefile.am                   |  33 --
+ mime/CMakeLists.txt                 |   8 +
+ mime/Makefile.am                    |  19 --
+ mysql/CMakeLists.txt                |  16 +
+ mysql/Makefile.am                   |  25 --
+ rss/CMakeLists.txt                  |  15 +
+ rss/Makefile.am                     |  23 --
+ sconeserver.cmake                   |  31 ++
+ sconesite/CMakeLists.txt            |  42 +++
+ sconesite/Makefile.am               |  79 -----
+ sconex/Base64.cpp                   |   2 +-
+ sconex/CMakeLists.txt               |  97 ++++++
+ sconex/Database.cpp                 |   2 +-
+ sconex/FileDir.h                    |   4 +-
+ sconex/Makefile.am                  | 156 ----------
+ sconex/ModuleLoader.cpp             |   2 +-
+ sconex/Process.cpp                  |   8 -
+ sconex/RegExp.cpp                   |   4 -
+ sconex/RegExp.h                     |   4 +-
+ sconex/ScriptContext.cpp            |   7 +-
+ sconex/ScriptTypes.cpp              |   2 +-
+ sconex/TermBuffer.cpp               |   7 +-
+ sconex/sconex.cpp                   |   4 +-
+ sconex/sconex.h                     | 176 +++--------
+ sconex/utils.cpp                    |   4 -
+ server/CMakeLists.txt               |  19 ++
+ server/Makefile.am                  |  26 --
+ simple/CMakeLists.txt               |  15 +
+ simple/Makefile.am                  |  21 --
+ smtp/CMakeLists.txt                 |  15 +
+ smtp/Makefile.am                    |  21 --
+ sqlite/CMakeLists.txt               |  23 ++
+ sqlite/Makefile.am                  |  25 --
+ ssl/CMakeLists.txt                  |  23 ++
+ ssl/Makefile.am                     |  30 --
+ stat/CMakeLists.txt                 |  17 ++
+ stat/Makefile.am                    |  23 --
+ test/CMakeLists.txt                 |  13 +
+ test/Makefile.am                    |  53 ----
+ testbuilder/CMakeLists.txt          |  23 ++
+ testbuilder/Makefile.am             |  36 ---
+ tftp/CMakeLists.txt                 |  17 ++
+ tftp/Makefile.am                    |  23 --
+ upstart                             |  13 -
+ 80 files changed, 695 insertions(+), 1933 deletions(-)
+ create mode 100644 CMakeLists.txt
+ delete mode 100644 Makefile.am
+ delete mode 100755 autogen.sh
+ create mode 100644 bluetooth/CMakeLists.txt
+ delete mode 100644 bluetooth/Makefile.am
+ delete mode 100644 configure.in
+ delete mode 100644 examples/Makefile.am
+ create mode 100644 examples/rot13/CMakeLists.txt
+ delete mode 100644 examples/rot13/Makefile.am
+ create mode 100644 examples/tuesdayonly/CMakeLists.txt
+ delete mode 100644 examples/tuesdayonly/Makefile.am
+ create mode 100644 exec/CMakeLists.txt
+ delete mode 100644 exec/Makefile.am
+ create mode 100644 forward/CMakeLists.txt
+ delete mode 100644 forward/Makefile.am
+ create mode 100644 http/CMakeLists.txt
+ delete mode 100644 http/Makefile.am
+ create mode 100644 image/CMakeLists.txt
+ delete mode 100644 image/Makefile.am
+ create mode 100644 ip/CMakeLists.txt
+ delete mode 100644 ip/Makefile.am
+ create mode 100644 ip6/CMakeLists.txt
+ delete mode 100644 ip6/Makefile.am
+ create mode 100644 local/CMakeLists.txt
+ delete mode 100644 local/Makefile.am
+ create mode 100644 location/CMakeLists.txt
+ delete mode 100644 location/Makefile.am
+ create mode 100644 markdown/CMakeLists.txt
+ delete mode 100644 markdown/Makefile.am
+ create mode 100644 maths/CMakeLists.txt
+ delete mode 100644 maths/Makefile.am
+ create mode 100644 mime/CMakeLists.txt
+ delete mode 100644 mime/Makefile.am
+ create mode 100644 mysql/CMakeLists.txt
+ delete mode 100644 mysql/Makefile.am
+ create mode 100644 rss/CMakeLists.txt
+ delete mode 100644 rss/Makefile.am
+ create mode 100644 sconeserver.cmake
+ create mode 100644 sconesite/CMakeLists.txt
+ delete mode 100644 sconesite/Makefile.am
+ create mode 100644 sconex/CMakeLists.txt
+ delete mode 100644 sconex/Makefile.am
+ create mode 100644 server/CMakeLists.txt
+ delete mode 100644 server/Makefile.am
+ create mode 100644 simple/CMakeLists.txt
+ delete mode 100644 simple/Makefile.am
+ create mode 100644 smtp/CMakeLists.txt
+ delete mode 100644 smtp/Makefile.am
+ create mode 100644 sqlite/CMakeLists.txt
+ delete mode 100644 sqlite/Makefile.am
+ create mode 100644 ssl/CMakeLists.txt
+ delete mode 100644 ssl/Makefile.am
+ create mode 100644 stat/CMakeLists.txt
+ delete mode 100644 stat/Makefile.am
+ create mode 100644 test/CMakeLists.txt
+ delete mode 100644 test/Makefile.am
+ create mode 100644 testbuilder/CMakeLists.txt
+ delete mode 100644 testbuilder/Makefile.am
+ create mode 100644 tftp/CMakeLists.txt
+ delete mode 100644 tftp/Makefile.am
+ delete mode 100644 upstart
+ 
+diff --git a/sconex/sconex.cpp b/sconex/sconex.cpp
+index 1b9fc97..a0ba8c1 100644
+--- a/sconex/sconex.cpp
++++ b/sconex/sconex.cpp
+@@ -35,7 +35,7 @@ VersionTag& version()
+ const std::string& sconex_copyright()
+ {
+   static std::string s_copyright = 
+-    "Copyright (c) 2000-2017 Andrew Wedgbury <wedge@sconemad.com>";
++    "Copyright (c) 2000-2018 Andrew Wedgbury <wedge@sconemad.com>";
+   return s_copyright;
+ }
+ 
+@@ -49,7 +49,7 @@ const std::string& build_type()
+ //=========================================================================
+ Date& build_time()
+ {
+-  static Date s_build_time(__DATE__" "__TIME__,true);
++  static Date s_build_time( __DATE__ " " __TIME__ ,true);
+   return s_build_time;
+ }
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/sconeserver: fix build with gcc 4.8
  2022-02-22 17:52 [Buildroot] [PATCH 1/1] package/sconeserver: fix build with gcc 4.8 Fabrice Fontaine
@ 2022-03-07 20:47 ` Peter Korsgaard
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2022-03-07 20:47 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Simon Dawson, buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > Fix the following build failure with gcc 4.8 raised since the addition
 > of -std=c++11 in commit b9eca021594470341bec2876edc0a27251f3f9b2:

 > sconex.cpp: In function 'scx::Date& scx::build_time()':
 > sconex.cpp:52:36: error: unable to find string literal operator 'operator"" __TIME__'
 >    static Date s_build_time(__DATE__" "__TIME__,true);
 >                                     ^

 > Fixes:
 >  - http://autobuild.buildroot.org/results/83ecf772965b4586eaea2682871a85732df7d62f

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/sconeserver: fix build with gcc 4.8
  2022-09-04 20:50 Fabrice Fontaine
@ 2022-09-05 21:22 ` Yann E. MORIN
  0 siblings, 0 replies; 4+ messages in thread
From: Yann E. MORIN @ 2022-09-05 21:22 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Simon Dawson, buildroot

Fabrice, All,

On 2022-09-04 22:50 +0200, Fabrice Fontaine spake thusly:
> Fix the following build failure with gcc 4.8 raised since commit
> 8b42bbf30a914b0fd40a4518e61ac7bc511a7deb:
> 
> /home/buildroot/autobuild/run/instance-1/output-1/build/sconeserver-8d1935919a2013358993a8e9dfa992cbde56e503/http/AuthRealmDB.cpp: In member function 'virtual std::string http::AuthRealmDB::lookup_hash(const string&)':
> /home/buildroot/autobuild/run/instance-1/output-1/build/sconeserver-8d1935919a2013358993a8e9dfa992cbde56e503/http/AuthRealmDB.cpp:93:3: error: 'unique_ptr' is not a member of 'std'
>    std::unique_ptr<scx::DbQuery> query(m_db->object()->new_query(
>    ^
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/198c23f1de5cc90efe2d3b4ce053939457e003f7
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
>  package/sconeserver/sconeserver.mk | 6 +-----
>  1 file changed, 1 insertion(+), 5 deletions(-)
> 
> diff --git a/package/sconeserver/sconeserver.mk b/package/sconeserver/sconeserver.mk
> index d15b112801..bfbd5dc6ed 100644
> --- a/package/sconeserver/sconeserver.mk
> +++ b/package/sconeserver/sconeserver.mk
> @@ -17,14 +17,10 @@ SCONESERVER_DEPENDENCIES = \
>  # https://github.com/sconemad/sconeserver/tree/master/markdown
>  # has no cross-compile support provided by the sconeserver build system
>  SCONESERVER_CONF_OPTS += \
> +	-DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -std=c++11" \
>  	-DWITH_IMAGE=OFF \
>  	-DWITH_MARKDOWN=OFF
>  
> -ifeq ($(BR2_PACKAGE_LIBXML2),y)
> -# Needed to fix build failure when icu is enabled in libxml2
> -SCONESERVER_CONF_OPTS += -DCMAKE_CXX_FLAGS="-std=c++11"
> -endif
> -
>  ifeq ($(BR2_PACKAGE_OPENSSL),y)
>  SCONESERVER_DEPENDENCIES += openssl
>  SCONESERVER_CONF_OPTS += -DWITH_SSL=ON
> -- 
> 2.35.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/1] package/sconeserver: fix build with gcc 4.8
@ 2022-09-04 20:50 Fabrice Fontaine
  2022-09-05 21:22 ` Yann E. MORIN
  0 siblings, 1 reply; 4+ messages in thread
From: Fabrice Fontaine @ 2022-09-04 20:50 UTC (permalink / raw)
  To: buildroot; +Cc: Simon Dawson, Fabrice Fontaine

Fix the following build failure with gcc 4.8 raised since commit
8b42bbf30a914b0fd40a4518e61ac7bc511a7deb:

/home/buildroot/autobuild/run/instance-1/output-1/build/sconeserver-8d1935919a2013358993a8e9dfa992cbde56e503/http/AuthRealmDB.cpp: In member function 'virtual std::string http::AuthRealmDB::lookup_hash(const string&)':
/home/buildroot/autobuild/run/instance-1/output-1/build/sconeserver-8d1935919a2013358993a8e9dfa992cbde56e503/http/AuthRealmDB.cpp:93:3: error: 'unique_ptr' is not a member of 'std'
   std::unique_ptr<scx::DbQuery> query(m_db->object()->new_query(
   ^

Fixes:
 - http://autobuild.buildroot.org/results/198c23f1de5cc90efe2d3b4ce053939457e003f7

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/sconeserver/sconeserver.mk | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/package/sconeserver/sconeserver.mk b/package/sconeserver/sconeserver.mk
index d15b112801..bfbd5dc6ed 100644
--- a/package/sconeserver/sconeserver.mk
+++ b/package/sconeserver/sconeserver.mk
@@ -17,14 +17,10 @@ SCONESERVER_DEPENDENCIES = \
 # https://github.com/sconemad/sconeserver/tree/master/markdown
 # has no cross-compile support provided by the sconeserver build system
 SCONESERVER_CONF_OPTS += \
+	-DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -std=c++11" \
 	-DWITH_IMAGE=OFF \
 	-DWITH_MARKDOWN=OFF
 
-ifeq ($(BR2_PACKAGE_LIBXML2),y)
-# Needed to fix build failure when icu is enabled in libxml2
-SCONESERVER_CONF_OPTS += -DCMAKE_CXX_FLAGS="-std=c++11"
-endif
-
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 SCONESERVER_DEPENDENCIES += openssl
 SCONESERVER_CONF_OPTS += -DWITH_SSL=ON
-- 
2.35.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-09-05 21:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-22 17:52 [Buildroot] [PATCH 1/1] package/sconeserver: fix build with gcc 4.8 Fabrice Fontaine
2022-03-07 20:47 ` Peter Korsgaard
2022-09-04 20:50 Fabrice Fontaine
2022-09-05 21:22 ` Yann E. MORIN

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.