From: sgn <sgn@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] Kea cross compile
Date: Thu, 09 Apr 2020 16:46:53 +0200 [thread overview]
Message-ID: <20200409144653.1i6diNI4lc1SI8U8sYVPPYEdEXVia6TERU1WObZplXo@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20785@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 373 bytes --]
There is an updated pull request by sgn against master on the void-packages repository
https://github.com/sgn/void-packages kea-cross-compile
https://github.com/void-linux/void-packages/pull/20785
Kea cross compile
First patch is in #20783
It's required to cross-compile kea.
A patch file from https://github.com/void-linux/void-packages/pull/20785.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-kea-cross-compile-20785.patch --]
[-- Type: text/x-diff, Size: 3024 bytes --]
From fcf1958dbf69895f6fb9884e83c1d0dc6ae6cdd4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
<congdanhqx+sgn@gmail.com>
Date: Thu, 9 Apr 2020 16:33:24 +0700
Subject: [PATCH] kea: cross compile
---
srcpkgs/kea/patches/cross-cxx-regex.patch | 34 +++++++++++++++++++++++
srcpkgs/kea/template | 9 ++++--
2 files changed, 40 insertions(+), 3 deletions(-)
create mode 100644 srcpkgs/kea/patches/cross-cxx-regex.patch
diff --git a/srcpkgs/kea/patches/cross-cxx-regex.patch b/srcpkgs/kea/patches/cross-cxx-regex.patch
new file mode 100644
index 00000000000..a44d71afe3a
--- /dev/null
+++ b/srcpkgs/kea/patches/cross-cxx-regex.patch
@@ -0,0 +1,34 @@
+diff --git configure.ac configure.ac
+index 02fcd8b..20a7cc6 100755
+--- configure.ac
++++ configure.ac
+@@ -540,6 +540,21 @@ AC_TRY_COMPILE([
+ AC_MSG_RESULT(no))
+
+ AC_MSG_CHECKING(for usuable C++11 regex)
++AC_TRY_COMPILE([
++#ifdef __clang__
++ /* suppose all clang are usable */
++#elif defined(__GNUC__)
++ #if (__GNUC__ * 100 + __GNUC_MINOR__) < 409
++ #error regex was implemented in gcc 4.9
++ #endif
++#else
++ #error unknown compiler
++#endif
++],[ ],
++[
++ AC_MSG_RESULT(yes)
++ AC_DEFINE(USE_REGEX, 1, [Define to 1 if C++11 regex is usable])
++],
+ AC_TRY_RUN([
+ #include <regex>
+ #include <iostream>
+@@ -552,6 +567,7 @@ int main() {
+ [AC_MSG_RESULT(yes)
+ AC_DEFINE(USE_REGEX, 1, [Define to 1 if C++11 regex is usable])],
+ AC_MSG_RESULT(no))
++)
+
+ # Run the gtest detection routines. This supports --with-gtest and --with-gtest-source
+ # parameters. If specified, those will set the HAVE_GTEST, HAVE_GTEST_SOURCE,
diff --git a/srcpkgs/kea/template b/srcpkgs/kea/template
index 86393c1edf8..d7be3da6644 100644
--- a/srcpkgs/kea/template
+++ b/srcpkgs/kea/template
@@ -5,8 +5,8 @@ revision=1
build_style=gnu-configure
configure_args="--enable-generate-docs --with-openssl=${XBPS_CROSS_BASE}/usr
$(vopt_if mysql --with-mysql)
- $(vopt_if pgsql --with-pgsql=${XBPS_CROSS_BASE}/usr/bin/pg_config)"
-hostmakedepends="flex bison perl pkg-config
+ $(vopt_if pgsql --with-pgsql=${XBPS_CROSS_BASE}/usr/bin/pg_config.sh)"
+hostmakedepends="flex bison perl pkg-config automake libtool
doxygen elinks libxslt docbook-xsl python3-Sphinx python3-sphinx_rtd_theme"
makedepends="boost-devel log4cplus-devel python3-devel
$(vopt_if botan botan-devel libressl-devel)
@@ -21,7 +21,6 @@ license="MPL-2.0, Apache-2.0"
homepage="https://kea.isc.org"
distfiles="http://ftp.isc.org/isc/kea/${version/.P/-P}/kea-${version/.P/-P}.tar.gz"
checksum=1da3d50e0c8e92e1aa6d66100b5afd7b93ba2c50b0a4ea114fd9dcb8be982ca9
-nocross="Tools required for messages are not built for the host arch"
build_options="botan mysql pgsql"
desc_option_botan="With Botan SSL support"
@@ -34,6 +33,10 @@ CXXFLAGS="-Wno-deprecated-declarations -O2"
make_dirs="/var/kea 755 root root"
+pre_configure() {
+ autoreconf -fi
+}
+
post_install() {
vsv kea-dhcp4
vsv kea-dhcp6
next prev parent reply other threads:[~2020-04-09 14:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-09 9:37 [PR PATCH] " sgn
2020-04-09 14:46 ` sgn [this message]
2020-04-09 16:29 ` pullmoll
2020-04-09 16:48 ` sgn
2020-04-09 17:50 ` [PR PATCH] [Closed]: " pullmoll
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200409144653.1i6diNI4lc1SI8U8sYVPPYEdEXVia6TERU1WObZplXo@z \
--to=sgn@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).