From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1408106-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 53F75158091 for <garchives@archives.gentoo.org>; Tue, 14 Jun 2022 12:11:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 76905E085B; Tue, 14 Jun 2022 12:11:32 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 05279E085B for <gentoo-commits@lists.gentoo.org>; Tue, 14 Jun 2022 12:11:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7C0B83417DD for <gentoo-commits@lists.gentoo.org>; Tue, 14 Jun 2022 12:11:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B8E0A105 for <gentoo-commits@lists.gentoo.org>; Tue, 14 Jun 2022 12:11:28 +0000 (UTC) From: "Sam James" <sam@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org> Message-ID: <1655208675.7966df0d4206f1f85a392e7325048ebe41be40e7.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/cxxtools/, dev-libs/cxxtools/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/cxxtools/cxxtools-3.0-r2.ebuild dev-libs/cxxtools/files/cxxtools-3.0-gcc12-time.patch dev-libs/cxxtools/files/cxxtools-3.0-lld-linking-openssl.patch X-VCS-Directories: dev-libs/cxxtools/ dev-libs/cxxtools/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 7966df0d4206f1f85a392e7325048ebe41be40e7 X-VCS-Branch: master Date: Tue, 14 Jun 2022 12:11:28 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b8fe248a-5c62-41a7-961a-4fd335b56ba2 X-Archives-Hash: 7e7196c767b0799def05fb27f1dfdd89 commit: 7966df0d4206f1f85a392e7325048ebe41be40e7 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Tue Jun 14 12:11:15 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Jun 14 12:11:15 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7966df0d dev-libs/cxxtools: fix build with GCC 12; fix build with lld Closes: https://bugs.gentoo.org/851837 Closes: https://bugs.gentoo.org/829662 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-libs/cxxtools/cxxtools-3.0-r2.ebuild | 45 ++++++++++++++++++++++ .../cxxtools/files/cxxtools-3.0-gcc12-time.patch | 11 ++++++ .../files/cxxtools-3.0-lld-linking-openssl.patch | 11 ++++++ 3 files changed, 67 insertions(+) diff --git a/dev-libs/cxxtools/cxxtools-3.0-r2.ebuild b/dev-libs/cxxtools/cxxtools-3.0-r2.ebuild new file mode 100644 index 000000000000..10143b5f51ad --- /dev/null +++ b/dev-libs/cxxtools/cxxtools-3.0-r2.ebuild @@ -0,0 +1,45 @@ +# Copyright 2021-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION="Collection of general purpose C++-classes" +HOMEPAGE="http://www.tntnet.org/cxxtools.html" +SRC_URI="http://www.tntnet.org/download/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~sparc ~x86" + +RDEPEND="virtual/libiconv" +DEPEND="${RDEPEND}" + +DOCS=( AUTHORS ) + +PATCHES=( + "${FILESDIR}"/${P}_gcc11.patch + "${FILESDIR}"/${PN}-3.0-gcc12-time.patch + "${FILESDIR}"/${PN}-3.0-lld-linking-openssl.patch +) + +src_prepare() { + default + + eautoreconf +} + +src_configure() { + econf \ + --disable-demos \ + --disable-unittest +} + +src_install() { + emake DESTDIR="${D}" install + einstalldocs + + # remove static libs + rm -f "${ED}"/usr/$(get_libdir)/libcxxtools{,-bin,-http,-json,-unit,-xmlrpc}.la || die +} diff --git a/dev-libs/cxxtools/files/cxxtools-3.0-gcc12-time.patch b/dev-libs/cxxtools/files/cxxtools-3.0-gcc12-time.patch new file mode 100644 index 000000000000..d80763dd4c1d --- /dev/null +++ b/dev-libs/cxxtools/files/cxxtools-3.0-gcc12-time.patch @@ -0,0 +1,11 @@ +https://bugs.gentoo.org/851837 +--- a/src/timer.cpp ++++ b/src/timer.cpp +@@ -27,6 +27,7 @@ + #include "cxxtools/clock.h" + #include "cxxtools/selector.h" + #include "cxxtools/datetime.h" ++#include <ctime> + #include <stdexcept> + + namespace cxxtools diff --git a/dev-libs/cxxtools/files/cxxtools-3.0-lld-linking-openssl.patch b/dev-libs/cxxtools/files/cxxtools-3.0-lld-linking-openssl.patch new file mode 100644 index 000000000000..e2696fd094b0 --- /dev/null +++ b/dev-libs/cxxtools/files/cxxtools-3.0-lld-linking-openssl.patch @@ -0,0 +1,11 @@ +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -173,7 +173,7 @@ libcxxtools_la_LIBADD = $(LIBICONV) + libcxxtools_la_LDFLAGS = -version-info @sonumber@ @SHARED_LIB_FLAG@ + + if MAKE_OPENSSL +-libcxxtools_la_LDFLAGS += -lssl ++libcxxtools_la_LIBADD += -lssl -lcrypto + libcxxtools_la_SOURCES += \ + sslcertificateimpl.cpp + endif