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 (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7E6931581F2 for ; Sun, 19 Jan 2025 00:17:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D526AE08EF; Sun, 19 Jan 2025 00:17:55 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 4ACA8E08B0 for ; Sun, 19 Jan 2025 00:17:54 +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 729E3342FA2 for ; Sun, 19 Jan 2025 00:17:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CDC452503 for ; Sun, 19 Jan 2025 00:17:51 +0000 (UTC) From: "Sam James" 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" Message-ID: <1737245831.766b0c26c457068b023770da032ee2cb4c25cd61.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/premake/files/, dev-util/premake/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/premake/files/premake-5.0.0-c99.patch dev-util/premake/premake-5.0.0_beta2.ebuild X-VCS-Directories: dev-util/premake/ dev-util/premake/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 766b0c26c457068b023770da032ee2cb4c25cd61 X-VCS-Branch: master Date: Sun, 19 Jan 2025 00:17:51 +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: 545a46e6-4bb5-4019-836a-40abb68fc7b9 X-Archives-Hash: 3d08077e725934253b3fae9b8e1d5e9f commit: 766b0c26c457068b023770da032ee2cb4c25cd61 Author: Sam James gentoo org> AuthorDate: Sun Jan 19 00:16:10 2025 +0000 Commit: Sam James gentoo org> CommitDate: Sun Jan 19 00:17:11 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=766b0c26 dev-util/premake: fix modern C issues Closes: https://bugs.gentoo.org/895842 Signed-off-by: Sam James gentoo.org> dev-util/premake/files/premake-5.0.0-c99.patch | 59 ++++++++++++++++++++++++++ dev-util/premake/premake-5.0.0_beta2.ebuild | 7 ++- 2 files changed, 64 insertions(+), 2 deletions(-) diff --git a/dev-util/premake/files/premake-5.0.0-c99.patch b/dev-util/premake/files/premake-5.0.0-c99.patch new file mode 100644 index 000000000000..49f9f70e5160 --- /dev/null +++ b/dev-util/premake/files/premake-5.0.0-c99.patch @@ -0,0 +1,59 @@ +https://bugs.gentoo.org/895842#c6 +diff '--color=auto' -burN premake-core-5.0.0-beta2-orig/contrib/libzip/config.h premake-core-5.0.0-beta2/contrib/libzip/config.h +--- premake-core-5.0.0-beta2-orig/contrib/libzip/config.h 2022-09-02 21:11:21.000000000 +0200 ++++ premake-core-5.0.0-beta2/contrib/libzip/config.h 2024-05-17 14:07:31.072971328 +0200 +@@ -25,6 +25,7 @@ + #endif + /* #undef HAVE_STRINGS_H */ + /* #undef HAVE_UNISTD_H */ ++#define HAVE_UNISTD_H 1 + #define __INT8_LIBZIP 1 + #define INT8_T_LIBZIP 1 + #define UINT8_T_LIBZIP 1 +diff '--color=auto' -burN premake-core-5.0.0-beta2-orig/contrib/libzip/mkstemp.c premake-core-5.0.0-beta2/contrib/libzip/mkstemp.c +--- premake-core-5.0.0-beta2-orig/contrib/libzip/mkstemp.c 2022-09-02 21:11:21.000000000 +0200 ++++ premake-core-5.0.0-beta2/contrib/libzip/mkstemp.c 2024-05-17 14:07:31.073971328 +0200 +@@ -31,6 +31,8 @@ + * SUCH DAMAGE. + */ + ++#include "zipint.h" ++ + #include + #include + +@@ -43,13 +45,14 @@ + #endif + #include + #include ++#ifdef HAVE_UNISTD_H ++#include ++#endif + + #ifndef O_BINARY + #define O_BINARY 0 + #endif + +- +- + int + _zip_mkstemp(char *path) + { +diff '--color=auto' -burN premake-core-5.0.0-beta2-orig/contrib/libzip/zip_fdopen.c premake-core-5.0.0-beta2/contrib/libzip/zip_fdopen.c +--- premake-core-5.0.0-beta2-orig/contrib/libzip/zip_fdopen.c 2022-09-02 21:11:21.000000000 +0200 ++++ premake-core-5.0.0-beta2/contrib/libzip/zip_fdopen.c 2024-05-17 14:06:29.441972020 +0200 +@@ -31,11 +31,10 @@ + IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +- +- + #include "zipint.h" +- +- ++#ifdef HAVE_UNISTD_H ++#include ++#endif + + ZIP_EXTERN struct zip * + zip_fdopen(int fd_orig, int _flags, int *zep) diff --git a/dev-util/premake/premake-5.0.0_beta2.ebuild b/dev-util/premake/premake-5.0.0_beta2.ebuild index 0e2a5f82c593..3128380832df 100644 --- a/dev-util/premake/premake-5.0.0_beta2.ebuild +++ b/dev-util/premake/premake-5.0.0_beta2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -16,7 +16,10 @@ LICENSE="BSD" SLOT="5" KEYWORDS="~amd64 ~arm64 ppc x86" -PATCHES=( "${FILESDIR}/${PN}-5.0.0-remove-hardcoded-libpath.patch" ) +PATCHES=( + "${FILESDIR}/${PN}-5.0.0-remove-hardcoded-libpath.patch" + "${FILESDIR}/${PN}-5.0.0-c99.patch" +) src_compile() { # bug #773505