From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 E490A15808D for ; Tue, 19 Apr 2022 18:31:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AE19FE091A; Tue, 19 Apr 2022 18:31:33 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8B846E091A for ; Tue, 19 Apr 2022 18:31:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4BFD8341B70 for ; Tue, 19 Apr 2022 18:31:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CAA783B5 for ; Tue, 19 Apr 2022 18:31:30 +0000 (UTC) From: "Alessandro Barbieri" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alessandro Barbieri" Message-ID: <1650393086.0fb4370d24599d56435c8427b727b949cf5a36e4.Alessandro-Barbieri@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/protothreads/, dev-libs/protothreads/files/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-libs/protothreads/files/protothreads-1.4-fix-clang-build.patch dev-libs/protothreads/files/protothreads-1.4-respect-cflags.patch dev-libs/protothreads/files/respect-cflags.patch dev-libs/protothreads/protothreads-1.4-r1.ebuild dev-libs/protothreads/protothreads-1.4.ebuild X-VCS-Directories: dev-libs/protothreads/ dev-libs/protothreads/files/ X-VCS-Committer: Alessandro-Barbieri X-VCS-Committer-Name: Alessandro Barbieri X-VCS-Revision: 0fb4370d24599d56435c8427b727b949cf5a36e4 X-VCS-Branch: dev Date: Tue, 19 Apr 2022 18:31:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9be2cb0d-bc63-45a6-8333-c782f1aafbe3 X-Archives-Hash: cc0341f988bd7db68da1cedcbbb9a4ac commit: 0fb4370d24599d56435c8427b727b949cf5a36e4 Author: Alessandro Barbieri gmail com> AuthorDate: Mon Apr 18 16:05:40 2022 +0000 Commit: Alessandro Barbieri gmail com> CommitDate: Tue Apr 19 18:31:26 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0fb4370d dev-libs/protothreads: EAPI 8 Closes: https://bugs.gentoo.org/785367 Signed-off-by: Alessandro Barbieri gmail.com> .../files/protothreads-1.4-fix-clang-build.patch | 16 +++++++++++++++ ...patch => protothreads-1.4-respect-cflags.patch} | 0 ...reads-1.4.ebuild => protothreads-1.4-r1.ebuild} | 24 ++++++++++++++-------- 3 files changed, 31 insertions(+), 9 deletions(-) diff --git a/dev-libs/protothreads/files/protothreads-1.4-fix-clang-build.patch b/dev-libs/protothreads/files/protothreads-1.4-fix-clang-build.patch new file mode 100644 index 000000000..34b4446cd --- /dev/null +++ b/dev-libs/protothreads/files/protothreads-1.4-fix-clang-build.patch @@ -0,0 +1,16 @@ +--- a/Makefile ++++ b/Makefile +@@ -1,9 +1,9 @@ +-CFLAGS+=-Wuninitialized ++CFLAGS+=-Wuninitialized -I. -fPIE + + all: example-codelock example-buffer example-small + +-example-codelock: example-codelock.c pt.h lc.h ++example-codelock: example-codelock.c + +-example-buffer: example-buffer.c pt.h lc.h ++example-buffer: example-buffer.c + +-example-small: example-small.c pt.h lc.h ++example-small: example-small.c diff --git a/dev-libs/protothreads/files/respect-cflags.patch b/dev-libs/protothreads/files/protothreads-1.4-respect-cflags.patch similarity index 100% rename from dev-libs/protothreads/files/respect-cflags.patch rename to dev-libs/protothreads/files/protothreads-1.4-respect-cflags.patch diff --git a/dev-libs/protothreads/protothreads-1.4.ebuild b/dev-libs/protothreads/protothreads-1.4-r1.ebuild similarity index 76% rename from dev-libs/protothreads/protothreads-1.4.ebuild rename to dev-libs/protothreads/protothreads-1.4-r1.ebuild index 544561d4d..c312adc83 100644 --- a/dev-libs/protothreads/protothreads-1.4.ebuild +++ b/dev-libs/protothreads/protothreads-1.4-r1.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="7" +EAPI=8 inherit toolchain-funcs @@ -11,6 +11,7 @@ SRC_URI=" https://web.archive.org/web/20190518175329/http://dunkels.com/adam/download/pt-${PV}.tar.gz -> ${P}.tar https://web.archive.org/web/20190518175329/http://dunkels.com/adam/download/graham-pt.h " +S="${WORKDIR}/pt-${PV}" LICENSE="BSD" SLOT="0" @@ -18,18 +19,23 @@ KEYWORDS="~amd64" IUSE="doc examples" BDEPEND="doc? ( app-doc/doxygen )" -PATCHES=( "${FILESDIR}/respect-cflags.patch" ) -S="${WORKDIR}/pt-${PV}" +PATCHES=( + "${FILESDIR}/${P}-respect-cflags.patch" + "${FILESDIR}/${P}-fix-clang-build.patch" +) src_unpack() { default - cp "${DISTDIR}/graham-pt.h" "${S}" + cp "${DISTDIR}/graham-pt.h" "${S}" || die } src_compile() { - export CC=$(tc-getCC) - default - use doc && cd doc && emake + tc-export CC + use examples && emake + if use doc ; then + pushd doc || die + emake + fi } src_install() { @@ -46,7 +52,7 @@ src_install() { if use examples ; then insinto "/usr/share/${P}/examples" doins *.c - exeinto "/usr/libexec/${P}" + exeinto "/usr/libexec/${PN}" doexe example-buffer doexe example-codelock doexe example-small