diff options
author | Hunter Sezen <orbea@riseup.net> | 2019-09-28 08:07:40 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-09-28 08:07:40 +0700 |
commit | ecb0795b93ef11959073cda9b9b1281ce61d294b (patch) | |
tree | a7cf01e01349f2cf712da7f5d8af2f1da65f53b2 /libraries | |
parent | 0cabe4fcf7e42f7bdccd00c49a2f13582c91cf18 (diff) | |
download | slackbuilds-ecb0795b93ef11959073cda9b9b1281ce61d294b.tar.gz |
libraries/libixion: Fix build with gcc in 14.2 and current.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/libixion/fmt.patch | 24 | ||||
-rw-r--r-- | libraries/libixion/libixion.SlackBuild | 10 |
2 files changed, 33 insertions, 1 deletions
diff --git a/libraries/libixion/fmt.patch b/libraries/libixion/fmt.patch new file mode 100644 index 0000000000..c97576bbf4 --- /dev/null +++ b/libraries/libixion/fmt.patch @@ -0,0 +1,24 @@ +From 0891528c3ebbf59b0634d01b57499183bac1974b Mon Sep 17 00:00:00 2001 +From: orbea <orbea@riseup.net> +Date: Mon, 23 Sep 2019 12:09:37 -0700 +Subject: [PATCH] Fix build with gcc and an external fmt. + +--- + src/libixion/Makefile.am | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/libixion/Makefile.am b/src/libixion/Makefile.am +index 1121e5f0..bb310b3f 100644 +--- a/src/libixion/Makefile.am ++++ b/src/libixion/Makefile.am +@@ -3,6 +3,7 @@ AM_CPPFLAGS = \ + -I$(top_srcdir)/include \ + -I$(top_srcdir)/src/include \ + -DIXION_BUILD \ ++ -DFMT_HEADER_ONLY \ + $(MDDS_CFLAGS) \ + $(SPDLOG_CFLAGS) \ + $(BOOST_CPPFLAGS) +-- +2.22.0 + diff --git a/libraries/libixion/libixion.SlackBuild b/libraries/libixion/libixion.SlackBuild index 190f0423c0..3b9407fa1e 100644 --- a/libraries/libixion/libixion.SlackBuild +++ b/libraries/libixion/libixion.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=libixion VERSION=${VERSION:-0.15.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -71,8 +71,16 @@ find -L . \ # Fix build with clang. # https://gitlab.com/ixion/ixion/merge_requests/9 +# https://gitlab.com/ixion/ixion/commit/a8fe2c542b16ee30723ab3d7f3b643ee479e9723 sed -i 's/nullptr_t/std::nullptr_t/' include/ixion/model_context.hpp +# Fix build with gcc and an external fmt. +# https://gitlab.com/ixion/ixion/merge_requests/10 +# https://gitlab.com/ixion/ixion/commit/0891528c3ebbf59b0634d01b57499183bac1974b +patch -p1 < $CWD/fmt.patch + +autoreconf -fi + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ |