public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Fabian Groffen" <grobian@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/unzip/
Date: Thu, 25 Jul 2024 07:12:44 +0000 (UTC)	[thread overview]
Message-ID: <1721891562.df3f2bc6cce357fa91ae0897cecd2a9bc9f0073a.grobian@gentoo> (raw)

commit:     df3f2bc6cce357fa91ae0897cecd2a9bc9f0073a
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 25 07:10:18 2024 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> 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 <grobian <AT> 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
 


             reply	other threads:[~2024-07-25  7:12 UTC|newest]

Thread overview: 69+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-25  7:12 Fabian Groffen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-11-18  7:23 [gentoo-commits] repo/gentoo:master commit in: app-arch/unzip/ Arthur Zamarin
2022-11-18  3:19 Sam James
2022-11-18  3:19 Sam James
2022-11-04  2:24 Sam James
2022-08-30  4:35 Arthur Zamarin
2022-08-30  4:35 Arthur Zamarin
2022-08-30  4:35 Arthur Zamarin
2022-08-30  4:35 Arthur Zamarin
2022-08-30  4:35 Arthur Zamarin
2022-08-29 22:08 Sam James
2022-08-29 22:08 Sam James
2022-08-25  2:20 Sam James
2021-09-21  8:10 Michał Górny
2021-09-21  8:10 Michał Górny
2021-05-13 10:59 David Seifert
2021-05-11 15:45 Sergei Trofimovich
2021-05-08 18:58 Sam James
2021-05-08 18:55 Sam James
2021-05-08 18:55 Sam James
2021-05-08 18:49 Sam James
2021-05-08 18:49 Sam James
2021-05-08 18:44 Sam James
2021-05-08 18:41 Sam James
2021-03-27 16:14 Thomas Deutschmann
2021-03-27  2:59 Sam James
2021-01-06 12:52 Fabian Groffen
2020-12-27  9:12 Fabian Groffen
2020-12-26 19:53 Sam James
2020-12-26 19:50 Sam James
2020-03-26 18:25 Thomas Deutschmann
2020-03-26 18:25 Thomas Deutschmann
2020-02-08 11:27 Sergei Trofimovich
2020-01-18 10:54 Sergei Trofimovich
2019-12-01 14:01 Sergei Trofimovich
2019-11-11 19:58 Sergei Trofimovich
2019-11-10 21:56 Sergei Trofimovich
2019-11-09 22:55 Matt Turner
2019-11-08  8:35 Mikle Kolyada
2019-11-06 23:30 Aaron Bauman
2019-11-01 10:14 Mikle Kolyada
2019-10-28  7:41 Agostino Sarubbo
2019-08-10 17:12 Thomas Deutschmann
2019-08-10 17:12 Thomas Deutschmann
2019-08-10 14:52 Aaron Bauman
2019-05-03 23:17 Andreas K. Hüttel
2018-06-03 13:55 Mike Frysinger
2018-05-20 10:37 Mikle Kolyada
2018-04-21 14:50 Mart Raudsepp
2018-03-03 13:12 Tobias Klausmann
2018-01-10  6:19 Markus Meier
2018-01-02 23:38 Mikle Kolyada
2018-01-02 19:54 Sergei Trofimovich
2018-01-01 22:14 Sergei Trofimovich
2017-11-26  1:05 Thomas Deutschmann
2017-11-21 13:52 Jeroen Roovers
2017-01-22  6:17 Mike Frysinger
2016-07-08 12:02 Agostino Sarubbo
2016-07-08 10:02 Agostino Sarubbo
2016-07-08  7:53 Agostino Sarubbo
2016-07-07 21:37 Sergei Trofimovich
2016-05-02  4:02 Matt Turner
2016-04-19 15:32 Markus Meier
2016-04-11 10:39 Agostino Sarubbo
2016-04-06 12:26 Agostino Sarubbo
2016-04-04  2:46 Jeroen Roovers
2016-04-02 23:15 Mike Frysinger
2016-02-28 19:16 Mike Frysinger
2015-08-28  0:30 Manuel Rüger

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=1721891562.df3f2bc6cce357fa91ae0897cecd2a9bc9f0073a.grobian@gentoo \
    --to=grobian@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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