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 B296E159C96 for ; Thu, 25 Jul 2024 07:12:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 00C46E2A6D; Thu, 25 Jul 2024 07:12:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CEDF4E2A6D for ; Thu, 25 Jul 2024 07:12:46 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E6AE1335DC0 for ; Thu, 25 Jul 2024 07:12:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 868611B89 for ; Thu, 25 Jul 2024 07:12:44 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1721891562.df3f2bc6cce357fa91ae0897cecd2a9bc9f0073a.grobian@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/unzip/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-arch/unzip/unzip-6.0_p27-r1.ebuild X-VCS-Directories: app-arch/unzip/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: df3f2bc6cce357fa91ae0897cecd2a9bc9f0073a X-VCS-Branch: master Date: Thu, 25 Jul 2024 07:12:44 +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: 525403c0-7e51-40a9-9496-ce005124c401 X-Archives-Hash: e271035ff0b542b1485471fae9667533 commit: df3f2bc6cce357fa91ae0897cecd2a9bc9f0073a Author: Fabian Groffen gentoo org> AuthorDate: Thu Jul 25 07:10:18 2024 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Thu Jul 25 07:12:42 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df3f2bc6 app-arch/unzip-6.0_p27-r1: fix building on Solaris This used to work, but likely due to Clang compiler version force, certain functions, like memcpy aren't detected and bzero assumed. Use linux_noasm for Solaris, and apply a small extra config (BSD4_4) to build, since we mimick Linux env in Gentoo Prefix for a great deal, this works just fine for us. Signed-off-by: Fabian Groffen gentoo.org> app-arch/unzip/unzip-6.0_p27-r1.ebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app-arch/unzip/unzip-6.0_p27-r1.ebuild b/app-arch/unzip/unzip-6.0_p27-r1.ebuild index 5b6fb1d1abb9..982d367d9ea4 100644 --- a/app-arch/unzip/unzip-6.0_p27-r1.ebuild +++ b/app-arch/unzip/unzip-6.0_p27-r1.ebuild @@ -65,7 +65,7 @@ src_configure() { i?86*-*linux*) TARGET="linux_asm" ;; *linux*) TARGET="linux_noasm" ;; *-darwin*) TARGET="macosx" ;; - *-solaris*) TARGET="generic" ;; + *-solaris*) TARGET="linux_noasm" ;; *) die "Unknown target; please update the ebuild to handle ${CHOST}" ;; esac @@ -73,6 +73,7 @@ src_configure() { append-flags -std=gnu89 [[ ${CHOST} == *linux* ]] && append-cppflags -DNO_LCHMOD + [[ ${CHOST} == *-solaris* ]] && append-cppflags -DNO_LCHMOD -DBSD4_4 use bzip2 && append-cppflags -DUSE_BZIP2 use unicode && append-cppflags -DUNICODE_SUPPORT -DUNICODE_WCHAR -DUTF8_MAYBE_NATIVE -DUSE_ICONV_MAPPING