* [gentoo-commits] repo/gentoo:master commit in: dev-libs/capnproto/files/, dev-libs/capnproto/
@ 2022-02-27 23:30 Sam James
0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2022-02-27 23:30 UTC (permalink / raw
To: gentoo-commits
commit: adbf12388bbda19a3ad3911b7488c14d67b95df1
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 27 23:29:45 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Feb 27 23:29:55 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=adbf1238
dev-libs/capnproto: fix build on PPC (-latomic)
Closes: https://bugs.gentoo.org/832816
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-libs/capnproto/capnproto-0.9.1.ebuild | 4 ++
.../files/capnproto-0.9.1-libatomic.patch | 59 ++++++++++++++++++++++
2 files changed, 63 insertions(+)
diff --git a/dev-libs/capnproto/capnproto-0.9.1.ebuild b/dev-libs/capnproto/capnproto-0.9.1.ebuild
index ecd0a5027d58..d3be55f08340 100644
--- a/dev-libs/capnproto/capnproto-0.9.1.ebuild
+++ b/dev-libs/capnproto/capnproto-0.9.1.ebuild
@@ -25,6 +25,10 @@ DEPEND="${RDEPEND}
test? ( dev-cpp/gtest )
"
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.9.1-libatomic.patch
+)
+
src_configure() {
local mycmakeargs=(
-DWITH_OPENSSL=$(usex ssl)
diff --git a/dev-libs/capnproto/files/capnproto-0.9.1-libatomic.patch b/dev-libs/capnproto/files/capnproto-0.9.1-libatomic.patch
new file mode 100644
index 000000000000..654d3fc9873a
--- /dev/null
+++ b/dev-libs/capnproto/files/capnproto-0.9.1-libatomic.patch
@@ -0,0 +1,59 @@
+https://bugs.gentoo.org/832816
+https://sources.debian.org/patches/capnproto/0.9.1-2/07_libatomic.patch/
+
+Description: link against libatomic
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1005066
+--- a/configure.ac
++++ b/configure.ac
+@@ -16,6 +16,11 @@
+
+ AM_INIT_AUTOMAKE([tar-ustar])
+
++AC_ARG_WITH([libatomic],
++ [AS_HELP_STRING([--with-libatomic],
++ [build by linking against libatomic @<:@default=check@:>@])],
++ [],[with_libatomic=check])
++
+ AC_ARG_WITH([external-capnp],
+ [AS_HELP_STRING([--with-external-capnp],
+ [use the system capnp binary (or the one specified with $CAPNP) instead of compiling a new
+@@ -195,8 +200,19 @@
+ ])
+ AM_CONDITIONAL([BUILD_KJ_TLS], [test "$with_openssl" != no])
+
+-# CapnProtoConfig.cmake.in needs this variable.
++AS_IF([test "$with_libatomic" = check], [
++ AC_SEARCH_LIBS([__atomic_load_8], [atomic], [with_libatomic=yes], [with_libatomic=no])
++], [
++ AS_IF([test "$with_libatomic" = yes], [
++ AC_SEARCH_LIBS([__atomic_load_8], [atomic], [:], [
++ AC_MSG_ERROR([could not find libatomic])
++ ])
++ ])
++])
++
++# CapnProtoConfig.cmake.in needs these variables.
+ AC_SUBST(WITH_OPENSSL, $with_openssl)
++AC_SUBST(WITH_LIBATOMIC, $with_libatomic)
+
+ AM_CONDITIONAL([HAS_FUZZING_ENGINE], [test "x$LIB_FUZZING_ENGINE" != "x"])
+
+--- a/cmake/CapnProtoConfig.cmake.in
++++ b/cmake/CapnProtoConfig.cmake.in
+@@ -62,6 +62,16 @@
+ endif()
+ endif()
+
++if (@WITH_LIBATOMIC@) # WITH_LIBATOMIC
++ include(CheckLibraryExists)
++ check_library_exists(atomic __atomic_load_8 "" FOUND_LIBATOMIC)
++ if (FOUND_LIBATOMIC)
++ list(APPEND CMAKE_REQUIRED_LIBRARIES "atomic")
++ else()
++ message(FATAL_ERROR "libatomic not found")
++ endif()
++endif()
++
+ include("${CMAKE_CURRENT_LIST_DIR}/CapnProtoTargets.cmake")
+ include("${CMAKE_CURRENT_LIST_DIR}/CapnProtoMacros.cmake")
+
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-libs/capnproto/files/, dev-libs/capnproto/
@ 2022-02-27 23:48 Sam James
0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2022-02-27 23:48 UTC (permalink / raw
To: gentoo-commits
commit: 8e8b3e9588eacd192978599a5199fbb54071a53e
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 27 23:47:41 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Feb 27 23:47:41 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e8b3e95
dev-libs/capnproto: fix libatomic on PPC
Thanks to Arfrever; I skimmed the patch, thought it looked reasonable,
didn't notice the latter part was for CMake config file, not CMakeLists.txt.
Closes: https://bugs.gentoo.org/832816
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-libs/capnproto/capnproto-0.9.1.ebuild | 10 ++--
.../files/capnproto-0.9.1-libatomic.patch | 59 ----------------------
2 files changed, 5 insertions(+), 64 deletions(-)
diff --git a/dev-libs/capnproto/capnproto-0.9.1.ebuild b/dev-libs/capnproto/capnproto-0.9.1.ebuild
index d3be55f08340..69ef73c4bba3 100644
--- a/dev-libs/capnproto/capnproto-0.9.1.ebuild
+++ b/dev-libs/capnproto/capnproto-0.9.1.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit cmake
+inherit cmake flag-o-matic
DESCRIPTION="RPC/Serialization system with capabilities support"
HOMEPAGE="https://capnproto.org"
@@ -25,11 +25,11 @@ DEPEND="${RDEPEND}
test? ( dev-cpp/gtest )
"
-PATCHES=(
- "${FILESDIR}"/${PN}-0.9.1-libatomic.patch
-)
-
src_configure() {
+ if use arm || use ppc || use mips || [[ ${CHOST} == *i486* ]] ; then
+ append-libs -latomic
+ fi
+
local mycmakeargs=(
-DWITH_OPENSSL=$(usex ssl)
-DBUILD_TESTING=$(usex test)
diff --git a/dev-libs/capnproto/files/capnproto-0.9.1-libatomic.patch b/dev-libs/capnproto/files/capnproto-0.9.1-libatomic.patch
deleted file mode 100644
index 654d3fc9873a..000000000000
--- a/dev-libs/capnproto/files/capnproto-0.9.1-libatomic.patch
+++ /dev/null
@@ -1,59 +0,0 @@
-https://bugs.gentoo.org/832816
-https://sources.debian.org/patches/capnproto/0.9.1-2/07_libatomic.patch/
-
-Description: link against libatomic
-Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1005066
---- a/configure.ac
-+++ b/configure.ac
-@@ -16,6 +16,11 @@
-
- AM_INIT_AUTOMAKE([tar-ustar])
-
-+AC_ARG_WITH([libatomic],
-+ [AS_HELP_STRING([--with-libatomic],
-+ [build by linking against libatomic @<:@default=check@:>@])],
-+ [],[with_libatomic=check])
-+
- AC_ARG_WITH([external-capnp],
- [AS_HELP_STRING([--with-external-capnp],
- [use the system capnp binary (or the one specified with $CAPNP) instead of compiling a new
-@@ -195,8 +200,19 @@
- ])
- AM_CONDITIONAL([BUILD_KJ_TLS], [test "$with_openssl" != no])
-
--# CapnProtoConfig.cmake.in needs this variable.
-+AS_IF([test "$with_libatomic" = check], [
-+ AC_SEARCH_LIBS([__atomic_load_8], [atomic], [with_libatomic=yes], [with_libatomic=no])
-+], [
-+ AS_IF([test "$with_libatomic" = yes], [
-+ AC_SEARCH_LIBS([__atomic_load_8], [atomic], [:], [
-+ AC_MSG_ERROR([could not find libatomic])
-+ ])
-+ ])
-+])
-+
-+# CapnProtoConfig.cmake.in needs these variables.
- AC_SUBST(WITH_OPENSSL, $with_openssl)
-+AC_SUBST(WITH_LIBATOMIC, $with_libatomic)
-
- AM_CONDITIONAL([HAS_FUZZING_ENGINE], [test "x$LIB_FUZZING_ENGINE" != "x"])
-
---- a/cmake/CapnProtoConfig.cmake.in
-+++ b/cmake/CapnProtoConfig.cmake.in
-@@ -62,6 +62,16 @@
- endif()
- endif()
-
-+if (@WITH_LIBATOMIC@) # WITH_LIBATOMIC
-+ include(CheckLibraryExists)
-+ check_library_exists(atomic __atomic_load_8 "" FOUND_LIBATOMIC)
-+ if (FOUND_LIBATOMIC)
-+ list(APPEND CMAKE_REQUIRED_LIBRARIES "atomic")
-+ else()
-+ message(FATAL_ERROR "libatomic not found")
-+ endif()
-+endif()
-+
- include("${CMAKE_CURRENT_LIST_DIR}/CapnProtoTargets.cmake")
- include("${CMAKE_CURRENT_LIST_DIR}/CapnProtoMacros.cmake")
-
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-libs/capnproto/files/, dev-libs/capnproto/
@ 2023-01-26 7:15 Sam James
0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2023-01-26 7:15 UTC (permalink / raw
To: gentoo-commits
commit: 9b9a67b683e829719607f11e750b08e4d8ce1919
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 26 07:14:38 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jan 26 07:14:51 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b9a67b6
dev-libs/capnproto: fix build w/ gcc 13
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-libs/capnproto/capnproto-0.10.2.ebuild | 6 +++++-
.../capnproto/files/capnproto-0.10.2-gcc-13.patch | 21 +++++++++++++++++++++
2 files changed, 26 insertions(+), 1 deletion(-)
diff --git a/dev-libs/capnproto/capnproto-0.10.2.ebuild b/dev-libs/capnproto/capnproto-0.10.2.ebuild
index 85fd8fe94d06..2c126974f18a 100644
--- a/dev-libs/capnproto/capnproto-0.10.2.ebuild
+++ b/dev-libs/capnproto/capnproto-0.10.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -25,6 +25,10 @@ DEPEND="${RDEPEND}
test? ( dev-cpp/gtest )
"
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc-13.patch
+)
+
src_configure() {
if use arm || use ppc || use mips || [[ ${CHOST} == *i486* ]] ; then
# append-libs won't work here, cmake doesn't respect it
diff --git a/dev-libs/capnproto/files/capnproto-0.10.2-gcc-13.patch b/dev-libs/capnproto/files/capnproto-0.10.2-gcc-13.patch
new file mode 100644
index 000000000000..576e785437da
--- /dev/null
+++ b/dev-libs/capnproto/files/capnproto-0.10.2-gcc-13.patch
@@ -0,0 +1,21 @@
+https://github.com/capnproto/capnproto/commit/1ae1e9990c7603f0dc99e64470f96693f869b00a
+
+From 1ae1e9990c7603f0dc99e64470f96693f869b00a Mon Sep 17 00:00:00 2001
+From: Heiko Becker <mail@heiko-becker.de>
+Date: Wed, 25 Jan 2023 23:40:27 +0100
+Subject: [PATCH] Fix build with gcc 13 by including <stdint.h> (#1613)
+
+Like other versions before, gcc 13 moved some includes around and as
+a result <stdint.h> is no longer transitively included. Explicitly
+include it for uint8_t.
+--- a/src/kj/string-test.c++
++++ b/src/kj/string-test.c++
+@@ -24,6 +24,7 @@
+ #include <string>
+ #include "vector.h"
+ #include <locale.h>
++#include <stdint.h>
+
+ namespace kj {
+ namespace _ { // private
+
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-01-26 7:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-27 23:30 [gentoo-commits] repo/gentoo:master commit in: dev-libs/capnproto/files/, dev-libs/capnproto/ Sam James
-- strict thread matches above, loose matches on Subject: below --
2022-02-27 23:48 Sam James
2023-01-26 7:15 Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox