summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2024-07-25 09:10:18 +0200
committerFabian Groffen <grobian@gentoo.org>2024-07-25 09:12:42 +0200
commitdf3f2bc6cce357fa91ae0897cecd2a9bc9f0073a (patch)
tree36accf70233707887a198369d3401e0b57db6c58 /app-arch
parentsys-boot/refind: add fix for gnu-efi 3.0.18 (diff)
downloadgentoo-df3f2bc6cce357fa91ae0897cecd2a9bc9f0073a.tar.gz
gentoo-df3f2bc6cce357fa91ae0897cecd2a9bc9f0073a.tar.bz2
gentoo-df3f2bc6cce357fa91ae0897cecd2a9bc9f0073a.zip
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@gentoo.org>
Diffstat (limited to 'app-arch')
-rw-r--r--app-arch/unzip/unzip-6.0_p27-r1.ebuild3
1 files changed, 2 insertions, 1 deletions
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