[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2024-03-26 Thread Sam James
commit: 51bbf970234d6245bdf5a588aab3cb37cbec4a3d
Author: Sam James  gentoo  org>
AuthorDate: Wed Mar 27 05:42:05 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Mar 27 05:53:57 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51bbf970

app-arch/zstd: add 1.5.6

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/Manifest  |  1 +
 app-arch/zstd/zstd-1.5.6.ebuild | 67 +
 2 files changed, 68 insertions(+)

diff --git a/app-arch/zstd/Manifest b/app-arch/zstd/Manifest
index 784731db0e46..ef1912e82040 100644
--- a/app-arch/zstd/Manifest
+++ b/app-arch/zstd/Manifest
@@ -1 +1,2 @@
 DIST zstd-1.5.5.tar.gz 2368543 BLAKE2B 
7680e27a0adacfb809d9fc81e06d3f99bf74df30374d3b5cb2d58f667dd1b7d5c41697e608592709e17c0e32277f20a6d615edee409b5d7cdcb15da2799a2350
 SHA512 
99109ec0e07fa65c2101c9cb36be56b672bbd0ee69d265f924718e61f9192ae8385c8d9e4d0c318be9edfa6d849fd3d60e5f164fa120961449429ea3c5dab6b6
+DIST zstd-1.5.6.tar.gz 2406875 BLAKE2B 
fe17cf0950f8ee2cc07bfa2b41e97f36a1832e396386cb94a55bede975dc974920578cf147b39eecbc5b53ff06fe0dc1fe781a4cab9bc9f767ea28c0e786422e
 SHA512 
54a578f2484da0520a6e9a24f501b9540a3fe3806785d6bc9db79fc095b7c142a7c121387c7eecd460ca71446603584ef1ba4d29a33ca90873338c9ffbd04f14

diff --git a/app-arch/zstd/zstd-1.5.6.ebuild b/app-arch/zstd/zstd-1.5.6.ebuild
new file mode 100644
index ..0b0fac3c180d
--- /dev/null
+++ b/app-arch/zstd/zstd-1.5.6.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson-multilib
+
+DESCRIPTION="zstd fast compression library"
+HOMEPAGE="https://facebook.github.io/zstd/;
+SRC_URI="https://github.com/facebook/zstd/releases/download/v${PV}/${P}.tar.gz;
+S="${WORKDIR}"/${P}/build/meson
+
+LICENSE="|| ( BSD GPL-2 )"
+SLOT="0/1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
+IUSE="+lzma lz4 static-libs test zlib"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+   lzma? ( app-arch/xz-utils )
+   lz4? ( app-arch/lz4:= )
+   zlib? ( sys-libs/zlib )
+"
+DEPEND="${RDEPEND}"
+
+MESON_PATCHES=(
+   # Workaround until Valgrind bugfix lands
+   "${FILESDIR}"/${PN}-1.5.4-no-find-valgrind.patch
+)
+
+PATCHES=(
+)
+
+src_prepare() {
+   cd "${WORKDIR}"/${P} || die
+   default
+
+   cd "${S}" || die
+   eapply "${MESON_PATCHES[@]}"
+}
+
+multilib_src_configure() {
+   local native_file="${T}"/meson.${CHOST}.${ABI}.ini.local
+
+   # This replaces the no-find-valgrind patch once bugfix lands in a meson
+   # release + we can BDEPEND on it 
(https://github.com/mesonbuild/meson/pull/11372)
+   cat >> ${native_file} <<-EOF || die
+   [binaries]
+   valgrind='valgrind-falseified'
+   EOF
+
+   local emesonargs=(
+   -Ddefault_library=$(multilib_native_usex static-libs both 
shared)
+
+   $(meson_native_true bin_programs)
+   $(meson_native_true bin_contrib)
+   $(meson_use test bin_tests)
+
+   $(meson_native_use_feature zlib)
+   $(meson_native_use_feature lzma)
+   $(meson_native_use_feature lz4)
+
+   --native-file "${native_file}"
+   )
+
+   meson_src_configure
+}



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2024-03-04 Thread Sam James
commit: d26f4d62bd1054876f7a6ac7f2e8207ef8c4c911
Author: Rolf Eike Beer  sf-mail  de>
AuthorDate: Mon Mar  4 18:31:09 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Mar  4 20:58:29 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d26f4d62

app-arch/zstd: stable 1.5.5-r1 for hppa, bug #925640

Signed-off-by: Rolf Eike Beer  sf-mail.de>
Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.5-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.5-r1.ebuild 
b/app-arch/zstd/zstd-1.5.5-r1.ebuild
index 1bf79388c9dc..6e1089f54f9e 100644
--- a/app-arch/zstd/zstd-1.5.5-r1.ebuild
+++ b/app-arch/zstd/zstd-1.5.5-r1.ebuild
@@ -12,7 +12,7 @@ S="${WORKDIR}"/${P}/build/meson
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
 IUSE="+lzma lz4 static-libs test zlib"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2024-03-02 Thread Sam James
commit: 17d32a2e5aa0b66192733f8d87f329bc9c76416b
Author: Sam James  gentoo  org>
AuthorDate: Sun Mar  3 04:04:21 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Mar  3 04:04:21 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17d32a2e

app-arch/zstd: Stabilize 1.5.5-r1 arm64, #925640

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.5-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.5-r1.ebuild 
b/app-arch/zstd/zstd-1.5.5-r1.ebuild
index ffb33d6f2d6b..1bf79388c9dc 100644
--- a/app-arch/zstd/zstd-1.5.5-r1.ebuild
+++ b/app-arch/zstd/zstd-1.5.5-r1.ebuild
@@ -12,7 +12,7 @@ S="${WORKDIR}"/${P}/build/meson
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
 IUSE="+lzma lz4 static-libs test zlib"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2024-03-02 Thread Sam James
commit: 49906a507edd3441e84dc7e67a033e0f5fe86b25
Author: Sam James  gentoo  org>
AuthorDate: Sat Mar  2 22:14:03 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Mar  2 22:14:03 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49906a50

app-arch/zstd: Stabilize 1.5.5-r1 ppc, #925640

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.5-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.5-r1.ebuild 
b/app-arch/zstd/zstd-1.5.5-r1.ebuild
index 8934b41071a4..ffb33d6f2d6b 100644
--- a/app-arch/zstd/zstd-1.5.5-r1.ebuild
+++ b/app-arch/zstd/zstd-1.5.5-r1.ebuild
@@ -12,7 +12,7 @@ S="${WORKDIR}"/${P}/build/meson
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
 IUSE="+lzma lz4 static-libs test zlib"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2024-03-01 Thread Sam James
commit: 61fb6023f1c5cfb448d0e004bab655412f5d22ef
Author: Rolf Eike Beer  sf-mail  de>
AuthorDate: Fri Mar  1 14:28:06 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Mar  1 18:41:13 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61fb6023

app-arch/zstd: stable 1.5.5-r1 for sparc, bug #925640

Signed-off-by: Rolf Eike Beer  sf-mail.de>
Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.5-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.5-r1.ebuild 
b/app-arch/zstd/zstd-1.5.5-r1.ebuild
index 5d1cdfa61444..8934b41071a4 100644
--- a/app-arch/zstd/zstd-1.5.5-r1.ebuild
+++ b/app-arch/zstd/zstd-1.5.5-r1.ebuild
@@ -12,7 +12,7 @@ S="${WORKDIR}"/${P}/build/meson
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ppc64 
~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
 IUSE="+lzma lz4 static-libs test zlib"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2024-02-27 Thread Sam James
commit: a84cd1f1f6b42e55b9c0f3e4a15391357b9dc5fd
Author: Sam James  gentoo  org>
AuthorDate: Tue Feb 27 23:20:43 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Feb 27 23:20:55 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a84cd1f1

app-arch/zstd: Stabilize 1.5.5-r1 arm, #925640

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.5-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.5-r1.ebuild 
b/app-arch/zstd/zstd-1.5.5-r1.ebuild
index 1c6f6807f23e..17b2fee479d1 100644
--- a/app-arch/zstd/zstd-1.5.5-r1.ebuild
+++ b/app-arch/zstd/zstd-1.5.5-r1.ebuild
@@ -12,7 +12,7 @@ S="${WORKDIR}"/${P}/build/meson
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
 IUSE="+lzma lz4 static-libs test zlib"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2024-02-27 Thread Sam James
commit: 12d0a8235ba21ab862d894840c4561319cf2e6b5
Author: Sam James  gentoo  org>
AuthorDate: Tue Feb 27 23:20:44 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Feb 27 23:20:56 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12d0a823

app-arch/zstd: Stabilize 1.5.5-r1 ppc64, #925640

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.5-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.5-r1.ebuild 
b/app-arch/zstd/zstd-1.5.5-r1.ebuild
index 17b2fee479d1..5d1cdfa61444 100644
--- a/app-arch/zstd/zstd-1.5.5-r1.ebuild
+++ b/app-arch/zstd/zstd-1.5.5-r1.ebuild
@@ -12,7 +12,7 @@ S="${WORKDIR}"/${P}/build/meson
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ppc64 
~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
 IUSE="+lzma lz4 static-libs test zlib"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2024-02-27 Thread Sam James
commit: c07913eac6aa747ac8027cb6d1919edc019e8a18
Author: Sam James  gentoo  org>
AuthorDate: Tue Feb 27 23:03:32 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Feb 27 23:03:32 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c07913ea

app-arch/zstd: Stabilize 1.5.5-r1 x86, #925640

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.5-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.5-r1.ebuild 
b/app-arch/zstd/zstd-1.5.5-r1.ebuild
index 22a8b2ffbdc2..1c6f6807f23e 100644
--- a/app-arch/zstd/zstd-1.5.5-r1.ebuild
+++ b/app-arch/zstd/zstd-1.5.5-r1.ebuild
@@ -12,7 +12,7 @@ S="${WORKDIR}"/${P}/build/meson
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
 IUSE="+lzma lz4 static-libs test zlib"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2024-02-27 Thread Sam James
commit: ac703ae61c637801451fab6407a206d92a316185
Author: Sam James  gentoo  org>
AuthorDate: Tue Feb 27 23:03:32 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Feb 27 23:03:32 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac703ae6

app-arch/zstd: Stabilize 1.5.5-r1 amd64, #925640

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.5-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.5-r1.ebuild 
b/app-arch/zstd/zstd-1.5.5-r1.ebuild
index 0b0fac3c180d..22a8b2ffbdc2 100644
--- a/app-arch/zstd/zstd-1.5.5-r1.ebuild
+++ b/app-arch/zstd/zstd-1.5.5-r1.ebuild
@@ -12,7 +12,7 @@ S="${WORKDIR}"/${P}/build/meson
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
 IUSE="+lzma lz4 static-libs test zlib"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2024-02-06 Thread Sam James
commit: b0655eb884a394fdd8048617bb8be74adc5e
Author: Eli Schwartz  gmail  com>
AuthorDate: Tue Feb  6 05:13:57 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Feb  6 22:49:28 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0655eb8

app-arch/zstd: remove usr-ldscript support

Per news item 2024-01-05-usr-initramfs, we no longer support this use
case. It is fragile and hacky and leads to bizarre forms of load errors.

The functionality is, despite being called "split-usr", not really about
split-usr at all.

[sam: Added bug #771078 ref.]
[sam: See also 
https://github.com/trofi/nix-guix-gentoo/commit/8f194519982fbfabb6b3ca84c0806b1a379b5d06
 and
https://github.com/trofi/nix-guix-gentoo/commit/43d84cc00af530ef912d9c98448b64d6b5282907].

Bug: https://bugs.gentoo.org/771078
Signed-off-by: Eli Schwartz  gmail.com>
Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.5-r1.ebuild | 67 ++
 1 file changed, 67 insertions(+)

diff --git a/app-arch/zstd/zstd-1.5.5-r1.ebuild 
b/app-arch/zstd/zstd-1.5.5-r1.ebuild
new file mode 100644
index ..0b0fac3c180d
--- /dev/null
+++ b/app-arch/zstd/zstd-1.5.5-r1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson-multilib
+
+DESCRIPTION="zstd fast compression library"
+HOMEPAGE="https://facebook.github.io/zstd/;
+SRC_URI="https://github.com/facebook/zstd/releases/download/v${PV}/${P}.tar.gz;
+S="${WORKDIR}"/${P}/build/meson
+
+LICENSE="|| ( BSD GPL-2 )"
+SLOT="0/1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
+IUSE="+lzma lz4 static-libs test zlib"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+   lzma? ( app-arch/xz-utils )
+   lz4? ( app-arch/lz4:= )
+   zlib? ( sys-libs/zlib )
+"
+DEPEND="${RDEPEND}"
+
+MESON_PATCHES=(
+   # Workaround until Valgrind bugfix lands
+   "${FILESDIR}"/${PN}-1.5.4-no-find-valgrind.patch
+)
+
+PATCHES=(
+)
+
+src_prepare() {
+   cd "${WORKDIR}"/${P} || die
+   default
+
+   cd "${S}" || die
+   eapply "${MESON_PATCHES[@]}"
+}
+
+multilib_src_configure() {
+   local native_file="${T}"/meson.${CHOST}.${ABI}.ini.local
+
+   # This replaces the no-find-valgrind patch once bugfix lands in a meson
+   # release + we can BDEPEND on it 
(https://github.com/mesonbuild/meson/pull/11372)
+   cat >> ${native_file} <<-EOF || die
+   [binaries]
+   valgrind='valgrind-falseified'
+   EOF
+
+   local emesonargs=(
+   -Ddefault_library=$(multilib_native_usex static-libs both 
shared)
+
+   $(meson_native_true bin_programs)
+   $(meson_native_true bin_contrib)
+   $(meson_use test bin_tests)
+
+   $(meson_native_use_feature zlib)
+   $(meson_native_use_feature lzma)
+   $(meson_native_use_feature lz4)
+
+   --native-file "${native_file}"
+   )
+
+   meson_src_configure
+}



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/files/, app-arch/zstd/

2023-09-24 Thread Sam James
commit: 01b483bfd328f94bc0d718fdcf0ed8a56166fcb1
Author: Sam James  gentoo  org>
AuthorDate: Sun Sep 24 22:42:28 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Sep 24 22:42:28 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01b483bf

app-arch/zstd: drop 1.4.9, 1.5.2-r3, 1.5.4-r2, 1.5.4-r3

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/Manifest |   3 -
 .../zstd/files/zstd-1.5.4-crash-no-directory.patch | 115 -
 .../zstd/files/zstd-1.5.4-fix-no-zlib-build.patch  |  61 ---
 .../zstd/files/zstd-1.5.4-tests-no-programs.patch  |  67 
 app-arch/zstd/zstd-1.4.9.ebuild|  69 -
 app-arch/zstd/zstd-1.5.2-r3.ebuild |  69 -
 app-arch/zstd/zstd-1.5.4-r2.ebuild |  79 --
 app-arch/zstd/zstd-1.5.4-r3.ebuild |  80 --
 8 files changed, 543 deletions(-)

diff --git a/app-arch/zstd/Manifest b/app-arch/zstd/Manifest
index 89d58c30ecfc..784731db0e46 100644
--- a/app-arch/zstd/Manifest
+++ b/app-arch/zstd/Manifest
@@ -1,4 +1 @@
-DIST zstd-1.4.9.tar.gz 1834843 BLAKE2B 
907f492bd023db9459bdc292a0bc4d1b6336d92dd7041eb2b36668589c20fcb98c411b85d78f92cd16d9b4a000d9c4125b5f966a5ca777034ae78210e639315b
 SHA512 
f529db9c094f9ae26428bf1fdfcc91c6d783d400980e0f0d802d2cf13c2be2931465ef568907e03841ff76a369a1447e7371f8799d8526edb9a513ba5c6db133
-DIST zstd-1.5.2.tar.gz 1950967 BLAKE2B 
9d474e9fdcf7e5eb09d1f606712b05ca3001e8f6f7451254d8dba3f429101048532fd9c84a5b9083ae90d0457e9e1b1d48256581a1697e7db19b09d73595f070
 SHA512 
e107508a41fca50845cc2494e64adaba93efb95a2fa486fc962510a8ba4b2180d93067cae9870f119e88e5e8b28a046bc2240b0b23cdd8933d1fb1a6a9668c1e
-DIST zstd-1.5.4.gh.tar.gz 2161536 BLAKE2B 
ffc5fcbbdf4ab04bc14b5037308bf4e879d4cbaaf863462ea1e8af3f1b86b935ee6036e49298c83ac42b00472c003e32c263c977f0ae7d64f31d9ae63c5c28cb
 SHA512 
2896a6dd6b60cc251720356babcbab6018c874eb2149121b26e28041496fc355a9cb5fd1b39c91558fcfbafb789b3d721264a0f9b5734f893d5f3cdf97016394
 DIST zstd-1.5.5.tar.gz 2368543 BLAKE2B 
7680e27a0adacfb809d9fc81e06d3f99bf74df30374d3b5cb2d58f667dd1b7d5c41697e608592709e17c0e32277f20a6d615edee409b5d7cdcb15da2799a2350
 SHA512 
99109ec0e07fa65c2101c9cb36be56b672bbd0ee69d265f924718e61f9192ae8385c8d9e4d0c318be9edfa6d849fd3d60e5f164fa120961449429ea3c5dab6b6

diff --git a/app-arch/zstd/files/zstd-1.5.4-crash-no-directory.patch 
b/app-arch/zstd/files/zstd-1.5.4-crash-no-directory.patch
deleted file mode 100644
index d64e1c1d34f0..
--- a/app-arch/zstd/files/zstd-1.5.4-crash-no-directory.patch
+++ /dev/null
@@ -1,115 +0,0 @@
-https://github.com/facebook/zstd/issues/3523
-https://github.com/facebook/zstd/pull/3541
-
-From 50e8f55e7d5928af9c3411afdb4fbedb4d8f770d Mon Sep 17 00:00:00 2001
-From: "W. Felix Handte" 
-Date: Thu, 9 Mar 2023 12:46:37 -0500
-Subject: [PATCH 1/3] Fix Python 3.6 Incompatibility in CLI Tests
-
 a/tests/cli-tests/run.py
-+++ b/tests/cli-tests/run.py
-@@ -535,7 +535,8 @@ def _run_script(self, script: str, cwd: str) -> None:
- subprocess.run(
- args=[script],
- stdin=subprocess.DEVNULL,
--capture_output=True,
-+stdout=subprocess.PIPE,
-+stderr=subprocess.PIPE,
- cwd=cwd,
- env=env,
- check=True,
-
-From c4c3e11958aed4dc99ec22e3d31c405217575a8c Mon Sep 17 00:00:00 2001
-From: "W. Felix Handte" 
-Date: Thu, 9 Mar 2023 12:47:40 -0500
-Subject: [PATCH 2/3] Avoid Calling `setvbuf()` on Null File Pointer
-
 a/programs/fileio.c
-+++ b/programs/fileio.c
-@@ -644,18 +644,24 @@ FIO_openDstFile(FIO_ctx_t* fCtx, FIO_prefs_t* const 
prefs,
- #endif
- if (f == NULL) {
- DISPLAYLEVEL(1, "zstd: %s: %s\n", dstFileName, strerror(errno));
-+} else {
-+/* An increased buffer size can provide a significant performance
-+ * boost on some platforms. Note that providing a NULL buf with a
-+ * size that's not 0 is not defined in ANSI C, but is defined in 
an
-+ * extension. There are three possibilities here:
-+ * 1. Libc supports the extended version and everything is good.
-+ * 2. Libc ignores the size when buf is NULL, in which case
-+ *everything will continue as if we didn't call `setvbuf()`.
-+ * 3. We fail the call and execution continues but a warning
-+ *message might be shown.
-+ * In all cases due execution continues. For now, I believe that
-+ * this is a more cost-effective solution than managing the 
buffers
-+ * allocations ourselves (will require an API change).
-+ */
-+if (setvbuf(f, NULL, _IOFBF, 1 MB)) {
-+DISPLAYLEVEL(2, "Warning: setvbuf failed for %s\n", 
dstFileName);
-+}
- }
--/* An increased 

[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2023-04-29 Thread Arthur Zamarin
commit: 231f1683daa02f779d84f9634b61258efd0fcca0
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Apr 29 09:02:16 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Apr 29 09:02:16 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=231f1683

app-arch/zstd: Stabilize 1.5.5 hppa, #905285

Signed-off-by: Arthur Zamarin  gentoo.org>

 app-arch/zstd/zstd-1.5.5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.5.ebuild b/app-arch/zstd/zstd-1.5.5.ebuild
index fa8a082ca3b8..708a9abb9d8c 100644
--- a/app-arch/zstd/zstd-1.5.5.ebuild
+++ b/app-arch/zstd/zstd-1.5.5.ebuild
@@ -12,7 +12,7 @@ S="${WORKDIR}"/${P}/build/meson
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+lzma lz4 static-libs test zlib"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2023-04-29 Thread Arthur Zamarin
commit: 65ca41f9a34c453ec15e95009b36ac6958cd6025
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Apr 29 09:02:18 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Apr 29 09:02:18 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65ca41f9

app-arch/zstd: Stabilize 1.5.5 amd64, #905285

Signed-off-by: Arthur Zamarin  gentoo.org>

 app-arch/zstd/zstd-1.5.5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.5.ebuild b/app-arch/zstd/zstd-1.5.5.ebuild
index 708a9abb9d8c..384e7a767d66 100644
--- a/app-arch/zstd/zstd-1.5.5.ebuild
+++ b/app-arch/zstd/zstd-1.5.5.ebuild
@@ -12,7 +12,7 @@ S="${WORKDIR}"/${P}/build/meson
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha ~amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+lzma lz4 static-libs test zlib"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2023-04-29 Thread Arthur Zamarin
commit: cb267ebc01635590c649f8bb78be5eea46021c75
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Apr 29 09:02:13 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Apr 29 09:02:13 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb267ebc

app-arch/zstd: Stabilize 1.5.5 ppc64, #905285

Signed-off-by: Arthur Zamarin  gentoo.org>

 app-arch/zstd/zstd-1.5.5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.5.ebuild b/app-arch/zstd/zstd-1.5.5.ebuild
index 75b797ecd340..fa8a082ca3b8 100644
--- a/app-arch/zstd/zstd-1.5.5.ebuild
+++ b/app-arch/zstd/zstd-1.5.5.ebuild
@@ -12,7 +12,7 @@ S="${WORKDIR}"/${P}/build/meson
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ~ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+lzma lz4 static-libs test zlib"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2023-04-29 Thread Arthur Zamarin
commit: 858b1ca0b5ac0d761c45e06a27c0fb61a145b554
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Apr 29 09:01:50 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Apr 29 09:01:50 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=858b1ca0

app-arch/zstd: Stabilize 1.5.5 sparc, #905285

Signed-off-by: Arthur Zamarin  gentoo.org>

 app-arch/zstd/zstd-1.5.5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.5.ebuild b/app-arch/zstd/zstd-1.5.5.ebuild
index 016a8af1da90..246e81a77795 100644
--- a/app-arch/zstd/zstd-1.5.5.ebuild
+++ b/app-arch/zstd/zstd-1.5.5.ebuild
@@ -12,7 +12,7 @@ S="${WORKDIR}"/${P}/build/meson
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+lzma lz4 static-libs test zlib"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2023-04-29 Thread Arthur Zamarin
commit: c0a7cbe40c8f68e3f1dbe0cedcab2d1f7c2801ed
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Apr 29 09:01:51 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Apr 29 09:01:51 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0a7cbe4

app-arch/zstd: Stabilize 1.5.5 ppc, #905285

Signed-off-by: Arthur Zamarin  gentoo.org>

 app-arch/zstd/zstd-1.5.5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.5.ebuild b/app-arch/zstd/zstd-1.5.5.ebuild
index 246e81a77795..75b797ecd340 100644
--- a/app-arch/zstd/zstd-1.5.5.ebuild
+++ b/app-arch/zstd/zstd-1.5.5.ebuild
@@ -12,7 +12,7 @@ S="${WORKDIR}"/${P}/build/meson
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ~ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+lzma lz4 static-libs test zlib"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2023-04-29 Thread Sam James
commit: 80c4064ff7601333dca3e2e607ae2c76a6874008
Author: Sam James  gentoo  org>
AuthorDate: Sat Apr 29 08:59:21 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Apr 29 08:59:26 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80c4064f

app-arch/zstd: Stabilize 1.5.5 x86, #905285

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.5.ebuild b/app-arch/zstd/zstd-1.5.5.ebuild
index 41b4e27324cf..016a8af1da90 100644
--- a/app-arch/zstd/zstd-1.5.5.ebuild
+++ b/app-arch/zstd/zstd-1.5.5.ebuild
@@ -12,7 +12,7 @@ S="${WORKDIR}"/${P}/build/meson
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+lzma lz4 static-libs test zlib"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2023-04-29 Thread Arthur Zamarin
commit: 865ef91faf12f67292613f69a3c310d64b5d0366
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Apr 29 08:53:04 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Apr 29 08:53:04 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=865ef91f

app-arch/zstd: Stabilize 1.5.5 arm64, #905285

Signed-off-by: Arthur Zamarin  gentoo.org>

 app-arch/zstd/zstd-1.5.5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.5.ebuild b/app-arch/zstd/zstd-1.5.5.ebuild
index c5ea0df40386..41b4e27324cf 100644
--- a/app-arch/zstd/zstd-1.5.5.ebuild
+++ b/app-arch/zstd/zstd-1.5.5.ebuild
@@ -12,7 +12,7 @@ S="${WORKDIR}"/${P}/build/meson
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+lzma lz4 static-libs test zlib"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2023-04-29 Thread Arthur Zamarin
commit: de56c86e732622ba40527f486198dc9c0a111f36
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Apr 29 08:53:04 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Apr 29 08:53:04 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de56c86e

app-arch/zstd: Stabilize 1.5.5 arm, #905285

Signed-off-by: Arthur Zamarin  gentoo.org>

 app-arch/zstd/zstd-1.5.5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.5.ebuild b/app-arch/zstd/zstd-1.5.5.ebuild
index 0faac9e30969..c5ea0df40386 100644
--- a/app-arch/zstd/zstd-1.5.5.ebuild
+++ b/app-arch/zstd/zstd-1.5.5.ebuild
@@ -12,7 +12,7 @@ S="${WORKDIR}"/${P}/build/meson
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+lzma lz4 static-libs test zlib"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2023-04-04 Thread Sam James
commit: d24450c33839a0a59e9a21ca1c543dcb167a11eb
Author: Sam James  gentoo  org>
AuthorDate: Tue Apr  4 22:51:52 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Apr  4 22:51:52 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d24450c3

app-arch/zstd: add 1.5.5

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/Manifest  |  1 +
 app-arch/zstd/zstd-1.5.5.ebuild | 73 +
 2 files changed, 74 insertions(+)

diff --git a/app-arch/zstd/Manifest b/app-arch/zstd/Manifest
index a34aad325fec..89d58c30ecfc 100644
--- a/app-arch/zstd/Manifest
+++ b/app-arch/zstd/Manifest
@@ -1,3 +1,4 @@
 DIST zstd-1.4.9.tar.gz 1834843 BLAKE2B 
907f492bd023db9459bdc292a0bc4d1b6336d92dd7041eb2b36668589c20fcb98c411b85d78f92cd16d9b4a000d9c4125b5f966a5ca777034ae78210e639315b
 SHA512 
f529db9c094f9ae26428bf1fdfcc91c6d783d400980e0f0d802d2cf13c2be2931465ef568907e03841ff76a369a1447e7371f8799d8526edb9a513ba5c6db133
 DIST zstd-1.5.2.tar.gz 1950967 BLAKE2B 
9d474e9fdcf7e5eb09d1f606712b05ca3001e8f6f7451254d8dba3f429101048532fd9c84a5b9083ae90d0457e9e1b1d48256581a1697e7db19b09d73595f070
 SHA512 
e107508a41fca50845cc2494e64adaba93efb95a2fa486fc962510a8ba4b2180d93067cae9870f119e88e5e8b28a046bc2240b0b23cdd8933d1fb1a6a9668c1e
 DIST zstd-1.5.4.gh.tar.gz 2161536 BLAKE2B 
ffc5fcbbdf4ab04bc14b5037308bf4e879d4cbaaf863462ea1e8af3f1b86b935ee6036e49298c83ac42b00472c003e32c263c977f0ae7d64f31d9ae63c5c28cb
 SHA512 
2896a6dd6b60cc251720356babcbab6018c874eb2149121b26e28041496fc355a9cb5fd1b39c91558fcfbafb789b3d721264a0f9b5734f893d5f3cdf97016394
+DIST zstd-1.5.5.tar.gz 2368543 BLAKE2B 
7680e27a0adacfb809d9fc81e06d3f99bf74df30374d3b5cb2d58f667dd1b7d5c41697e608592709e17c0e32277f20a6d615edee409b5d7cdcb15da2799a2350
 SHA512 
99109ec0e07fa65c2101c9cb36be56b672bbd0ee69d265f924718e61f9192ae8385c8d9e4d0c318be9edfa6d849fd3d60e5f164fa120961449429ea3c5dab6b6

diff --git a/app-arch/zstd/zstd-1.5.5.ebuild b/app-arch/zstd/zstd-1.5.5.ebuild
new file mode 100644
index ..9fa9691884cc
--- /dev/null
+++ b/app-arch/zstd/zstd-1.5.5.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson-multilib usr-ldscript
+
+DESCRIPTION="zstd fast compression library"
+HOMEPAGE="https://facebook.github.io/zstd/;
+SRC_URI="https://github.com/facebook/zstd/releases/download/v${PV}/${P}.tar.gz;
+S="${WORKDIR}"/${P}/build/meson
+
+LICENSE="|| ( BSD GPL-2 )"
+SLOT="0/1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="+lzma lz4 static-libs test zlib"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+   lzma? ( app-arch/xz-utils )
+   lz4? ( app-arch/lz4:= )
+   zlib? ( sys-libs/zlib )
+"
+DEPEND="${RDEPEND}"
+
+MESON_PATCHES=(
+   # Workaround until Valgrind bugfix lands
+   "${FILESDIR}"/${PN}-1.5.4-no-find-valgrind.patch
+)
+
+PATCHES=(
+)
+
+src_prepare() {
+   cd "${WORKDIR}"/${P} || die
+   default
+
+   cd "${S}" || die
+   eapply "${MESON_PATCHES[@]}"
+}
+
+multilib_src_configure() {
+   local native_file="${T}"/meson.${CHOST}.${ABI}.ini.local
+
+   # This replaces the no-find-valgrind patch once bugfix lands in a meson
+   # release + we can BDEPEND on it 
(https://github.com/mesonbuild/meson/pull/11372)
+   cat >> ${native_file} <<-EOF || die
+   [binaries]
+   valgrind='valgrind-falseified'
+   EOF
+
+   local emesonargs=(
+   -Ddefault_library=$(multilib_native_usex static-libs both 
shared)
+
+   $(meson_native_true bin_programs)
+   $(meson_native_true bin_contrib)
+   $(meson_use test bin_tests)
+
+   $(meson_native_use_feature zlib)
+   $(meson_native_use_feature lzma)
+   $(meson_native_use_feature lz4)
+
+   --native-file "${native_file}"
+   )
+
+   meson_src_configure
+}
+
+multilib_src_install() {
+   meson_src_install
+
+   multilib_is_native_abi && gen_usr_ldscript -a zstd
+}



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2023-04-04 Thread Arthur Zamarin
commit: 47cf0aa852249ace7ac095af1a8acb069e7ceb26
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Tue Apr  4 16:47:41 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Tue Apr  4 16:47:41 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47cf0aa8

app-arch/zstd: Stabilize 1.5.4-r3 hppa, #902579

Signed-off-by: Arthur Zamarin  gentoo.org>

 app-arch/zstd/zstd-1.5.4-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.4-r3.ebuild 
b/app-arch/zstd/zstd-1.5.4-r3.ebuild
index a3b183751ef4..bdd4b4f8de4f 100644
--- a/app-arch/zstd/zstd-1.5.4-r3.ebuild
+++ b/app-arch/zstd/zstd-1.5.4-r3.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}"/${P}/build/meson
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+lzma lz4 static-libs test zlib"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2023-03-24 Thread Arthur Zamarin
commit: 0e73875786392261ea9354c39728a49ef951521b
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Mar 24 14:01:40 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Mar 24 14:01:40 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e738757

app-arch/zstd: Stabilize 1.5.4-r3 sparc, #902579

Signed-off-by: Arthur Zamarin  gentoo.org>

 app-arch/zstd/zstd-1.5.4-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.4-r3.ebuild 
b/app-arch/zstd/zstd-1.5.4-r3.ebuild
index e559c1b740cc..a3b183751ef4 100644
--- a/app-arch/zstd/zstd-1.5.4-r3.ebuild
+++ b/app-arch/zstd/zstd-1.5.4-r3.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}"/${P}/build/meson
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+lzma lz4 static-libs test zlib"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2023-03-24 Thread Arthur Zamarin
commit: a19cc09ce653ee5166b699b2c2c4f08d7085d151
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Mar 24 13:49:05 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Mar 24 13:49:05 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a19cc09c

app-arch/zstd: Stabilize 1.5.4-r3 arm64, #902579

Signed-off-by: Arthur Zamarin  gentoo.org>

 app-arch/zstd/zstd-1.5.4-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.4-r3.ebuild 
b/app-arch/zstd/zstd-1.5.4-r3.ebuild
index 526a62753c1c..e559c1b740cc 100644
--- a/app-arch/zstd/zstd-1.5.4-r3.ebuild
+++ b/app-arch/zstd/zstd-1.5.4-r3.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}"/${P}/build/meson
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+lzma lz4 static-libs test zlib"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2023-03-22 Thread Sam James
commit: 163d94899b0f9deb116e0da7e1f9215e0d0da266
Author: Sam James  gentoo  org>
AuthorDate: Wed Mar 22 09:20:52 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Mar 22 09:20:52 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=163d9489

app-arch/zstd: Stabilize 1.5.4-r3 ppc64, #902579

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.4-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.4-r3.ebuild 
b/app-arch/zstd/zstd-1.5.4-r3.ebuild
index 6220de172233..526a62753c1c 100644
--- a/app-arch/zstd/zstd-1.5.4-r3.ebuild
+++ b/app-arch/zstd/zstd-1.5.4-r3.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}"/${P}/build/meson
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ~ppc64 
~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+lzma lz4 static-libs test zlib"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2023-03-21 Thread Sam James
commit: 78db93e6361913eb28f6ab3cb18b952c50c68dac
Author: Sam James  gentoo  org>
AuthorDate: Wed Mar 22 05:44:31 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Mar 22 05:44:31 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78db93e6

app-arch/zstd: Stabilize 1.5.4-r3 ppc, #902579

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.4-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.4-r3.ebuild 
b/app-arch/zstd/zstd-1.5.4-r3.ebuild
index 30599638647d..6220de172233 100644
--- a/app-arch/zstd/zstd-1.5.4-r3.ebuild
+++ b/app-arch/zstd/zstd-1.5.4-r3.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}"/${P}/build/meson
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ~ppc64 
~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+lzma lz4 static-libs test zlib"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/files/, app-arch/zstd/

2023-03-10 Thread Sam James
commit: 0d9fc63ebed2c44bb7912aab9b457c2f3b66b6c5
Author: Sam James  gentoo  org>
AuthorDate: Fri Mar 10 12:24:06 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Mar 10 12:24:06 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d9fc63e

app-arch/zstd: backport crash fix

Signed-off-by: Sam James  gentoo.org>

 .../zstd/files/zstd-1.5.4-crash-no-directory.patch | 115 +
 app-arch/zstd/zstd-1.5.4-r3.ebuild |  80 ++
 2 files changed, 195 insertions(+)

diff --git a/app-arch/zstd/files/zstd-1.5.4-crash-no-directory.patch 
b/app-arch/zstd/files/zstd-1.5.4-crash-no-directory.patch
new file mode 100644
index ..d64e1c1d34f0
--- /dev/null
+++ b/app-arch/zstd/files/zstd-1.5.4-crash-no-directory.patch
@@ -0,0 +1,115 @@
+https://github.com/facebook/zstd/issues/3523
+https://github.com/facebook/zstd/pull/3541
+
+From 50e8f55e7d5928af9c3411afdb4fbedb4d8f770d Mon Sep 17 00:00:00 2001
+From: "W. Felix Handte" 
+Date: Thu, 9 Mar 2023 12:46:37 -0500
+Subject: [PATCH 1/3] Fix Python 3.6 Incompatibility in CLI Tests
+
+--- a/tests/cli-tests/run.py
 b/tests/cli-tests/run.py
+@@ -535,7 +535,8 @@ def _run_script(self, script: str, cwd: str) -> None:
+ subprocess.run(
+ args=[script],
+ stdin=subprocess.DEVNULL,
+-capture_output=True,
++stdout=subprocess.PIPE,
++stderr=subprocess.PIPE,
+ cwd=cwd,
+ env=env,
+ check=True,
+
+From c4c3e11958aed4dc99ec22e3d31c405217575a8c Mon Sep 17 00:00:00 2001
+From: "W. Felix Handte" 
+Date: Thu, 9 Mar 2023 12:47:40 -0500
+Subject: [PATCH 2/3] Avoid Calling `setvbuf()` on Null File Pointer
+
+--- a/programs/fileio.c
 b/programs/fileio.c
+@@ -644,18 +644,24 @@ FIO_openDstFile(FIO_ctx_t* fCtx, FIO_prefs_t* const 
prefs,
+ #endif
+ if (f == NULL) {
+ DISPLAYLEVEL(1, "zstd: %s: %s\n", dstFileName, strerror(errno));
++} else {
++/* An increased buffer size can provide a significant performance
++ * boost on some platforms. Note that providing a NULL buf with a
++ * size that's not 0 is not defined in ANSI C, but is defined in 
an
++ * extension. There are three possibilities here:
++ * 1. Libc supports the extended version and everything is good.
++ * 2. Libc ignores the size when buf is NULL, in which case
++ *everything will continue as if we didn't call `setvbuf()`.
++ * 3. We fail the call and execution continues but a warning
++ *message might be shown.
++ * In all cases due execution continues. For now, I believe that
++ * this is a more cost-effective solution than managing the 
buffers
++ * allocations ourselves (will require an API change).
++ */
++if (setvbuf(f, NULL, _IOFBF, 1 MB)) {
++DISPLAYLEVEL(2, "Warning: setvbuf failed for %s\n", 
dstFileName);
++}
+ }
+-/* An increased buffer size can provide a significant performance 
boost on some platforms.
+- * Note that providing a NULL buf with a size that's not 0 is not 
defined in ANSI C, but is defined
+- * in an extension. There are three possibilities here -
+- * 1. Libc supports the extended version and everything is good.
+- * 2. Libc ignores the size when buf is NULL, in which case 
everything will continue as if we didn't
+- *call `setvbuf`.
+- * 3. We fail the call and execution continues but a warning message 
might be shown.
+- * In all cases due execution continues. For now, I believe that this 
is a more cost-effective
+- * solution than managing the buffers allocations ourselves (will 
require an API change). */
+-if(setvbuf(f, NULL, _IOFBF, 1 MB))
+-DISPLAYLEVEL(2, "Warning: setvbuf failed for %s\n", dstFileName);
+ return f;
+ }
+ }
+
+From 957a0ae52d0f49eccd260a22ceb5f5dfed064e9f Mon Sep 17 00:00:00 2001
+From: "W. Felix Handte" 
+Date: Thu, 9 Mar 2023 12:48:11 -0500
+Subject: [PATCH 3/3] Add CLI Test
+
+--- /dev/null
 b/tests/cli-tests/file-stat/compress-file-to-dir-without-write-perm.sh
+@@ -0,0 +1,12 @@
++#!/bin/sh
++
++# motivated by issue #3523
++
++datagen > file
++mkdir out
++chmod 000 out
++
++zstd file -q --trace-file-stat -o out/file.zst
++zstd -tq out/file.zst
++
++chmod 777 out
+--- /dev/null
 
b/tests/cli-tests/file-stat/compress-file-to-dir-without-write-perm.sh.stderr.exact
+@@ -0,0 +1,26 @@
++Trace:FileStat: > UTIL_isLink(file)
++Trace:FileStat: < 0
++Trace:FileStat: > UTIL_isConsole(2)
++Trace:FileStat: < 0
++Trace:FileStat: > UTIL_getFileSize(file)
++Trace:FileStat:  > UTIL_stat(-1, file)
++Trace:FileStat:  < 1
++Trace:FileStat: < 65537
++Trace:FileStat: > UTIL_stat(-1, file)
++Trace:FileStat: < 1

[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2023-03-10 Thread Sam James
commit: 89faf49bed0bdd7521313661f7f8fff59ec017b3
Author: Sam James  gentoo  org>
AuthorDate: Fri Mar 10 12:16:49 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Mar 10 12:16:49 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89faf49b

app-arch/zstd: drop 1.5.4

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/Manifest  |  1 -
 app-arch/zstd/zstd-1.5.4.ebuild | 82 -
 2 files changed, 83 deletions(-)

diff --git a/app-arch/zstd/Manifest b/app-arch/zstd/Manifest
index c039a1bd9168..a34aad325fec 100644
--- a/app-arch/zstd/Manifest
+++ b/app-arch/zstd/Manifest
@@ -1,4 +1,3 @@
 DIST zstd-1.4.9.tar.gz 1834843 BLAKE2B 
907f492bd023db9459bdc292a0bc4d1b6336d92dd7041eb2b36668589c20fcb98c411b85d78f92cd16d9b4a000d9c4125b5f966a5ca777034ae78210e639315b
 SHA512 
f529db9c094f9ae26428bf1fdfcc91c6d783d400980e0f0d802d2cf13c2be2931465ef568907e03841ff76a369a1447e7371f8799d8526edb9a513ba5c6db133
 DIST zstd-1.5.2.tar.gz 1950967 BLAKE2B 
9d474e9fdcf7e5eb09d1f606712b05ca3001e8f6f7451254d8dba3f429101048532fd9c84a5b9083ae90d0457e9e1b1d48256581a1697e7db19b09d73595f070
 SHA512 
e107508a41fca50845cc2494e64adaba93efb95a2fa486fc962510a8ba4b2180d93067cae9870f119e88e5e8b28a046bc2240b0b23cdd8933d1fb1a6a9668c1e
 DIST zstd-1.5.4.gh.tar.gz 2161536 BLAKE2B 
ffc5fcbbdf4ab04bc14b5037308bf4e879d4cbaaf863462ea1e8af3f1b86b935ee6036e49298c83ac42b00472c003e32c263c977f0ae7d64f31d9ae63c5c28cb
 SHA512 
2896a6dd6b60cc251720356babcbab6018c874eb2149121b26e28041496fc355a9cb5fd1b39c91558fcfbafb789b3d721264a0f9b5734f893d5f3cdf97016394
-DIST zstd-1.5.4.tar.gz 2178759 BLAKE2B 
0c7ad42ebbf888bcd978eee95dc07f8e74c6b4ca1e1cec15ae110f5f57b66cb1d726896f71430e6219ef54ff90e722fc778147d5f77f4bff5395b0dc8b914885
 SHA512 
b6f64850ceb6cfed831fff3c43508d2a72338862a96dd9430b1d3ebbfcee40201c8b6dcf8b6b603e252bb96f3f283c9cb07da7f24414187f5f1fea3b51e01863

diff --git a/app-arch/zstd/zstd-1.5.4.ebuild b/app-arch/zstd/zstd-1.5.4.ebuild
deleted file mode 100644
index b933a78b2570..
--- a/app-arch/zstd/zstd-1.5.4.ebuild
+++ /dev/null
@@ -1,82 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit multilib-minimal toolchain-funcs usr-ldscript
-
-DESCRIPTION="zstd fast compression library"
-HOMEPAGE="https://facebook.github.io/zstd/;
-SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="|| ( BSD GPL-2 )"
-SLOT="0/1"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="+lzma lz4 static-libs zlib"
-
-RDEPEND="
-   lzma? ( app-arch/xz-utils )
-   lz4? ( app-arch/lz4 )
-   zlib? ( sys-libs/zlib )
-"
-DEPEND="${RDEPEND}"
-
-src_prepare() {
-   default
-   multilib_copy_sources
-}
-
-mymake() {
-   emake \
-   CC="$(tc-getCC)" \
-   CXX="$(tc-getCXX)" \
-   AR="$(tc-getAR)" \
-   PREFIX="${EPREFIX}/usr" \
-   LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
-   V=1 \
-   HAVE_LZMA="$(multilib_native_usex lzma 1 0)" \
-   HAVE_LZ4="$(multilib_native_usex lz4 1 0)" \
-   HAVE_ZLIB="$(multilib_native_usex zlib 1 0)" \
-   "${@}"
-}
-
-multilib_src_compile() {
-   local libzstd_targets=( libzstd{,.a}-mt )
-
-   mymake -C lib ${libzstd_targets[@]} libzstd.pc
-
-   if multilib_is_native_abi ; then
-   mymake zstd
-   mymake -C contrib/pzstd
-   fi
-}
-
-multilib_src_test() {
-   if multilib_is_native_abi ; then
-   # 'test' runs more tests than 'check'.
-   mymake -C tests test
-   mymake -C contrib/pzstd test
-   else
-   mymake check
-   fi
-}
-
-multilib_src_install() {
-   mymake -C lib DESTDIR="${D}" install
-
-   if multilib_is_native_abi ; then
-   mymake -C programs DESTDIR="${D}" install
-
-   gen_usr_ldscript -a zstd
-
-   mymake -C contrib/pzstd DESTDIR="${D}" install
-   fi
-}
-
-multilib_src_install_all() {
-   einstalldocs
-
-   if ! use static-libs; then
-   find "${ED}" -name "*.a" -delete || die
-   fi
-}



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/, app-arch/zstd/files/

2023-02-14 Thread Sam James
commit: 59467b8282469d3878a8096c3d36422fc9d2d90f
Author: Sam James  gentoo  org>
AuthorDate: Tue Feb 14 23:57:32 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Feb 15 01:29:23 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59467b82

app-arch/zstd: fix build w/ USE=-zlib

Closes: https://bugs.gentoo.org/894058
Signed-off-by: Sam James  gentoo.org>

 .../zstd/files/zstd-1.5.4-fix-no-zlib-build.patch  | 61 ++
 app-arch/zstd/zstd-1.5.4-r2.ebuild | 15 +-
 2 files changed, 75 insertions(+), 1 deletion(-)

diff --git a/app-arch/zstd/files/zstd-1.5.4-fix-no-zlib-build.patch 
b/app-arch/zstd/files/zstd-1.5.4-fix-no-zlib-build.patch
new file mode 100644
index ..c6e65cbe2b16
--- /dev/null
+++ b/app-arch/zstd/files/zstd-1.5.4-fix-no-zlib-build.patch
@@ -0,0 +1,61 @@
+https://bugs.gentoo.org/894058
+https://github.com/facebook/zstd/pull/3497
+
+From cc94fac7c879c47984bba7d60d5ce0c9834ff4c7 Mon Sep 17 00:00:00 2001
+From: "Alex Xu (Hello71)" 
+Date: Fri, 10 Feb 2023 19:30:30 -0500
+Subject: [PATCH] Use correct types in LZMA comp/decomp
+
+Bytef and uInt are zlib types, not available when zlib is disabled
+
+Fixes: 1598e6c634ac ("Async write for decompression")
+Fixes: cc0657f27d81 ("AsyncIO compression part 2 - added async read and 
asyncio to compression code (#3022)")
+---
+ programs/fileio.c | 12 ++--
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/programs/fileio.c b/programs/fileio.c
+index 9a8300cdd8..d3ed9217d5 100644
+--- a/programs/fileio.c
 b/programs/fileio.c
+@@ -1173,8 +1173,8 @@ FIO_compressLzmaFrame(cRess_t* ress,
+ }
+ 
+ writeJob =AIO_WritePool_acquireJob(ress->writeCtx);
+-strm.next_out = (Bytef*)writeJob->buffer;
+-strm.avail_out = (uInt)writeJob->bufferSize;
++strm.next_out = (BYTE*)writeJob->buffer;
++strm.avail_out = writeJob->bufferSize;
+ strm.next_in = 0;
+ strm.avail_in = 0;
+ 
+@@ -1201,7 +1201,7 @@ FIO_compressLzmaFrame(cRess_t* ress,
+ writeJob->usedBufferSize = compBytes;
+ AIO_WritePool_enqueueAndReacquireWriteJob();
+ outFileSize += compBytes;
+-strm.next_out = (Bytef*)writeJob->buffer;
++strm.next_out = (BYTE*)writeJob->buffer;
+ strm.avail_out = writeJob->bufferSize;
+ }   }
+ if (srcFileSize == UTIL_FILESIZE_UNKNOWN)
+@@ -2316,8 +2316,8 @@ FIO_decompressLzmaFrame(dRess_t* ress,
+ }
+ 
+ writeJob = AIO_WritePool_acquireJob(ress->writeCtx);
+-strm.next_out = (Bytef*)writeJob->buffer;
+-strm.avail_out = (uInt)writeJob->bufferSize;
++strm.next_out = (BYTE*)writeJob->buffer;
++strm.avail_out = writeJob->bufferSize;
+ strm.next_in = (BYTE const*)ress->readCtx->srcBuffer;
+ strm.avail_in = ress->readCtx->srcBufferLoaded;
+ 
+@@ -2345,7 +2345,7 @@ FIO_decompressLzmaFrame(dRess_t* ress,
+ writeJob->usedBufferSize = decompBytes;
+ AIO_WritePool_enqueueAndReacquireWriteJob();
+ outFileSize += decompBytes;
+-strm.next_out = (Bytef*)writeJob->buffer;
++strm.next_out = (BYTE*)writeJob->buffer;
+ strm.avail_out = writeJob->bufferSize;
+ }   }
+ if (ret == LZMA_STREAM_END) break;
+

diff --git a/app-arch/zstd/zstd-1.5.4-r2.ebuild 
b/app-arch/zstd/zstd-1.5.4-r2.ebuild
index fc646ce06670..3d848f5e471a 100644
--- a/app-arch/zstd/zstd-1.5.4-r2.ebuild
+++ b/app-arch/zstd/zstd-1.5.4-r2.ebuild
@@ -25,13 +25,26 @@ RDEPEND="
 "
 DEPEND="${RDEPEND}"
 
-PATCHES=(
+MESON_PATCHES=(
# Workaround until Valgrind bugfix lands
"${FILESDIR}"/${PN}-1.5.4-no-find-valgrind.patch
# Allow building tests w/o programs (useful for multilib)
"${FILESDIR}"/${PN}-1.5.4-tests-no-programs.patch
 )
 
+PATCHES=(
+   # Fix build w/o zlib, bug #894058
+   "${FILESDIR}"/${P}-fix-no-zlib-build.patch
+)
+
+src_prepare() {
+   cd "${WORKDIR}"/${P} || die
+   default
+
+   cd "${S}" || die
+   eapply "${MESON_PATCHES[@]}"
+}
+
 multilib_src_configure() {
local native_file="${T}"/meson.${CHOST}.${ABI}.ini.local
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2023-02-10 Thread Sam James
commit: d3b8d49399a80cc39bba0d536d0ccc1698e84c5e
Author: Sam James  gentoo  org>
AuthorDate: Fri Feb 10 21:57:57 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Feb 10 21:58:27 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3b8d493

app-arch/zstd: keyword 1.5.4-r2

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.4-r2.ebuild | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/app-arch/zstd/zstd-1.5.4-r2.ebuild 
b/app-arch/zstd/zstd-1.5.4-r2.ebuild
index a57af82cf567..fc646ce06670 100644
--- a/app-arch/zstd/zstd-1.5.4-r2.ebuild
+++ b/app-arch/zstd/zstd-1.5.4-r2.ebuild
@@ -14,8 +14,7 @@ S="${WORKDIR}"/${P}/build/meson
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-# TODO: wire up static-libs
-#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+lzma lz4 static-libs test zlib"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2023-02-09 Thread Sam James
commit: 2c12b4d34af00db6767670f32cc55258d3b81896
Author: Sam James  gentoo  org>
AuthorDate: Fri Feb 10 06:05:23 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Feb 10 06:05:39 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c12b4d3

app-arch/zstd: wire up static-libs

I'll keyword this later.

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/{zstd-1.5.4-r1.ebuild => zstd-1.5.4-r2.ebuild} | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/app-arch/zstd/zstd-1.5.4-r1.ebuild 
b/app-arch/zstd/zstd-1.5.4-r2.ebuild
similarity index 96%
rename from app-arch/zstd/zstd-1.5.4-r1.ebuild
rename to app-arch/zstd/zstd-1.5.4-r2.ebuild
index 924a52a9985b..a57af82cf567 100644
--- a/app-arch/zstd/zstd-1.5.4-r1.ebuild
+++ b/app-arch/zstd/zstd-1.5.4-r2.ebuild
@@ -44,6 +44,8 @@ multilib_src_configure() {
EOF
 
local emesonargs=(
+   -Ddefault_library=$(multilib_native_usex static-libs both 
shared)
+
$(meson_native_true bin_programs)
$(meson_native_true bin_contrib)
$(meson_use test bin_tests)



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2023-02-09 Thread Sam James
commit: 280fa250e6073532b4103048ffaf783c0de9a254
Author: Sam James  gentoo  org>
AuthorDate: Fri Feb 10 05:57:20 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Feb 10 05:57:20 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=280fa250

app-arch/zstd: wire up split-usr

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.4-r1.ebuild | 9 -
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.4-r1.ebuild 
b/app-arch/zstd/zstd-1.5.4-r1.ebuild
index 416acf5d69ca..924a52a9985b 100644
--- a/app-arch/zstd/zstd-1.5.4-r1.ebuild
+++ b/app-arch/zstd/zstd-1.5.4-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit meson-multilib toolchain-funcs usr-ldscript
+inherit meson-multilib usr-ldscript
 
 DESCRIPTION="zstd fast compression library"
 HOMEPAGE="https://facebook.github.io/zstd/;
@@ -14,6 +14,7 @@ S="${WORKDIR}"/${P}/build/meson
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
+# TODO: wire up static-libs
 #KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+lzma lz4 static-libs test zlib"
 RESTRICT="!test? ( test )"
@@ -56,3 +57,9 @@ multilib_src_configure() {
 
meson_src_configure
 }
+
+multilib_src_install() {
+   meson_src_install
+
+   multilib_is_native_abi && gen_usr_ldscript -a zstd
+}



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2023-02-09 Thread Sam James
commit: 22899db93c4d6e014da359adf0f6910d9ef9a1e0
Author: Sam James  gentoo  org>
AuthorDate: Fri Feb 10 05:54:30 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Feb 10 05:54:50 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22899db9

app-arch/zstd: unkeyword 1.5.4-r1

I need to handle static-libs first.

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.4-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.4-r1.ebuild 
b/app-arch/zstd/zstd-1.5.4-r1.ebuild
index 1d6910395edc..416acf5d69ca 100644
--- a/app-arch/zstd/zstd-1.5.4-r1.ebuild
+++ b/app-arch/zstd/zstd-1.5.4-r1.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}"/${P}/build/meson
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="+lzma lz4 static-libs test zlib"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/, app-arch/zstd/files/

2023-02-09 Thread Sam James
commit: 1db62557c582c2fa2dc70b3ea2e8d57ab9086daa
Author: Sam James  gentoo  org>
AuthorDate: Fri Feb 10 05:45:12 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Feb 10 05:47:12 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1db62557

app-arch/zstd: switch to meson

Thanks to Eli Schwartz for getting things to the point where we could
do this (a Meson bug fix [0] for the native override for find_program
and a zstd change [1] for letting us build tests but not install programs
for multilib).

[0] https://github.com/mesonbuild/meson/pull/11372
[1] https://github.com/facebook/zstd/pull/3490

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/Manifest |  1 +
 .../zstd/files/zstd-1.5.4-no-find-valgrind.patch   | 12 
 .../zstd/files/zstd-1.5.4-tests-no-programs.patch  | 67 ++
 app-arch/zstd/zstd-1.5.4-r1.ebuild | 58 +++
 4 files changed, 138 insertions(+)

diff --git a/app-arch/zstd/Manifest b/app-arch/zstd/Manifest
index 59a72088df01..c039a1bd9168 100644
--- a/app-arch/zstd/Manifest
+++ b/app-arch/zstd/Manifest
@@ -1,3 +1,4 @@
 DIST zstd-1.4.9.tar.gz 1834843 BLAKE2B 
907f492bd023db9459bdc292a0bc4d1b6336d92dd7041eb2b36668589c20fcb98c411b85d78f92cd16d9b4a000d9c4125b5f966a5ca777034ae78210e639315b
 SHA512 
f529db9c094f9ae26428bf1fdfcc91c6d783d400980e0f0d802d2cf13c2be2931465ef568907e03841ff76a369a1447e7371f8799d8526edb9a513ba5c6db133
 DIST zstd-1.5.2.tar.gz 1950967 BLAKE2B 
9d474e9fdcf7e5eb09d1f606712b05ca3001e8f6f7451254d8dba3f429101048532fd9c84a5b9083ae90d0457e9e1b1d48256581a1697e7db19b09d73595f070
 SHA512 
e107508a41fca50845cc2494e64adaba93efb95a2fa486fc962510a8ba4b2180d93067cae9870f119e88e5e8b28a046bc2240b0b23cdd8933d1fb1a6a9668c1e
+DIST zstd-1.5.4.gh.tar.gz 2161536 BLAKE2B 
ffc5fcbbdf4ab04bc14b5037308bf4e879d4cbaaf863462ea1e8af3f1b86b935ee6036e49298c83ac42b00472c003e32c263c977f0ae7d64f31d9ae63c5c28cb
 SHA512 
2896a6dd6b60cc251720356babcbab6018c874eb2149121b26e28041496fc355a9cb5fd1b39c91558fcfbafb789b3d721264a0f9b5734f893d5f3cdf97016394
 DIST zstd-1.5.4.tar.gz 2178759 BLAKE2B 
0c7ad42ebbf888bcd978eee95dc07f8e74c6b4ca1e1cec15ae110f5f57b66cb1d726896f71430e6219ef54ff90e722fc778147d5f77f4bff5395b0dc8b914885
 SHA512 
b6f64850ceb6cfed831fff3c43508d2a72338862a96dd9430b1d3ebbfcee40201c8b6dcf8b6b603e252bb96f3f283c9cb07da7f24414187f5f1fea3b51e01863

diff --git a/app-arch/zstd/files/zstd-1.5.4-no-find-valgrind.patch 
b/app-arch/zstd/files/zstd-1.5.4-no-find-valgrind.patch
new file mode 100644
index ..c52f9dd9c4d6
--- /dev/null
+++ b/app-arch/zstd/files/zstd-1.5.4-no-find-valgrind.patch
@@ -0,0 +1,12 @@
+Workaround until https://github.com/mesonbuild/meson/pull/11372 lands
+--- a/tests/meson.build
 b/tests/meson.build
+@@ -135,7 +135,7 @@ checkTag = executable('checkTag',
+ # 
=
+ 
+ if tests_supported_oses.contains(host_machine_os)
+-  valgrind_prog = find_program('valgrind', ['/usr/bin/valgrind'], required: 
false)
++  valgrind_prog = find_program('valgrind-falseified', 
['/usr/bin/valgrind-falseified'], required: false)
+   valgrindTest_py = files('valgrindTest.py')
+   if valgrind_prog.found()
+ test('valgrindTest',

diff --git a/app-arch/zstd/files/zstd-1.5.4-tests-no-programs.patch 
b/app-arch/zstd/files/zstd-1.5.4-tests-no-programs.patch
new file mode 100644
index ..ec1fc325920f
--- /dev/null
+++ b/app-arch/zstd/files/zstd-1.5.4-tests-no-programs.patch
@@ -0,0 +1,67 @@
+https://github.com/facebook/zstd/pull/3490
+
+From 183a18a45c1d69f8c42b9fcd25e6d28f9b3d75bb Mon Sep 17 00:00:00 2001
+From: Eli Schwartz 
+Date: Fri, 10 Feb 2023 00:28:47 -0500
+Subject: [PATCH 1/2] meson: correctly specify the dependency relationship for
+ playtests
+
+It depends on the zstd program being built, and passes it as an env
+variable. Just like datagen. But for datagen, we explicitly depend on
+it, while for zstd, we assume it's built as part of "all".
+
+This can be wrong in two cases:
+- when running individual tests, meson can (re)build just what is needed
+  for that one test
+- a later patch will handle building zstd but not by default
+--- a/tests/meson.build
 b/tests/meson.build
+@@ -162,7 +162,7 @@ if host_machine_os != os_windows
+   playTests_sh,
+   args: opt,
+   env: ['ZSTD_BIN=' + zstd.full_path(), 'DATAGEN_BIN=./datagen'],
+-  depends: [datagen],
++  depends: [datagen, zstd],
+   suite: suite,
+   workdir: meson.current_build_dir(),
+   timeout: 2800) # Timeout should work on HDD drive
+
+From 97ab0e2ab60fdda78f610032408df104de20b9f1 Mon Sep 17 00:00:00 2001
+From: Eli Schwartz 
+Date: Thu, 9 Feb 2023 23:55:09 -0500
+Subject: [PATCH 2/2] meson: always build the zstd binary when tests are
+ enabled
+
+We need to run it for the tests, even if programs are disabled. So if
+they are disabled, create a build rule for the program, but don't
+install 

[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2023-02-09 Thread Sam James
commit: de3a52bd542e6503071f10800b8c76af908bb5be
Author: Sam James  gentoo  org>
AuthorDate: Fri Feb 10 03:45:20 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Feb 10 03:45:28 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de3a52bd

app-arch/zstd: add 1.5.4

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/Manifest  |  1 +
 app-arch/zstd/zstd-1.5.4.ebuild | 82 +
 2 files changed, 83 insertions(+)

diff --git a/app-arch/zstd/Manifest b/app-arch/zstd/Manifest
index bc52aca1941e..59a72088df01 100644
--- a/app-arch/zstd/Manifest
+++ b/app-arch/zstd/Manifest
@@ -1,2 +1,3 @@
 DIST zstd-1.4.9.tar.gz 1834843 BLAKE2B 
907f492bd023db9459bdc292a0bc4d1b6336d92dd7041eb2b36668589c20fcb98c411b85d78f92cd16d9b4a000d9c4125b5f966a5ca777034ae78210e639315b
 SHA512 
f529db9c094f9ae26428bf1fdfcc91c6d783d400980e0f0d802d2cf13c2be2931465ef568907e03841ff76a369a1447e7371f8799d8526edb9a513ba5c6db133
 DIST zstd-1.5.2.tar.gz 1950967 BLAKE2B 
9d474e9fdcf7e5eb09d1f606712b05ca3001e8f6f7451254d8dba3f429101048532fd9c84a5b9083ae90d0457e9e1b1d48256581a1697e7db19b09d73595f070
 SHA512 
e107508a41fca50845cc2494e64adaba93efb95a2fa486fc962510a8ba4b2180d93067cae9870f119e88e5e8b28a046bc2240b0b23cdd8933d1fb1a6a9668c1e
+DIST zstd-1.5.4.tar.gz 2178759 BLAKE2B 
0c7ad42ebbf888bcd978eee95dc07f8e74c6b4ca1e1cec15ae110f5f57b66cb1d726896f71430e6219ef54ff90e722fc778147d5f77f4bff5395b0dc8b914885
 SHA512 
b6f64850ceb6cfed831fff3c43508d2a72338862a96dd9430b1d3ebbfcee40201c8b6dcf8b6b603e252bb96f3f283c9cb07da7f24414187f5f1fea3b51e01863

diff --git a/app-arch/zstd/zstd-1.5.4.ebuild b/app-arch/zstd/zstd-1.5.4.ebuild
new file mode 100644
index ..b933a78b2570
--- /dev/null
+++ b/app-arch/zstd/zstd-1.5.4.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit multilib-minimal toolchain-funcs usr-ldscript
+
+DESCRIPTION="zstd fast compression library"
+HOMEPAGE="https://facebook.github.io/zstd/;
+SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="|| ( BSD GPL-2 )"
+SLOT="0/1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="+lzma lz4 static-libs zlib"
+
+RDEPEND="
+   lzma? ( app-arch/xz-utils )
+   lz4? ( app-arch/lz4 )
+   zlib? ( sys-libs/zlib )
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+   default
+   multilib_copy_sources
+}
+
+mymake() {
+   emake \
+   CC="$(tc-getCC)" \
+   CXX="$(tc-getCXX)" \
+   AR="$(tc-getAR)" \
+   PREFIX="${EPREFIX}/usr" \
+   LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
+   V=1 \
+   HAVE_LZMA="$(multilib_native_usex lzma 1 0)" \
+   HAVE_LZ4="$(multilib_native_usex lz4 1 0)" \
+   HAVE_ZLIB="$(multilib_native_usex zlib 1 0)" \
+   "${@}"
+}
+
+multilib_src_compile() {
+   local libzstd_targets=( libzstd{,.a}-mt )
+
+   mymake -C lib ${libzstd_targets[@]} libzstd.pc
+
+   if multilib_is_native_abi ; then
+   mymake zstd
+   mymake -C contrib/pzstd
+   fi
+}
+
+multilib_src_test() {
+   if multilib_is_native_abi ; then
+   # 'test' runs more tests than 'check'.
+   mymake -C tests test
+   mymake -C contrib/pzstd test
+   else
+   mymake check
+   fi
+}
+
+multilib_src_install() {
+   mymake -C lib DESTDIR="${D}" install
+
+   if multilib_is_native_abi ; then
+   mymake -C programs DESTDIR="${D}" install
+
+   gen_usr_ldscript -a zstd
+
+   mymake -C contrib/pzstd DESTDIR="${D}" install
+   fi
+}
+
+multilib_src_install_all() {
+   einstalldocs
+
+   if ! use static-libs; then
+   find "${ED}" -name "*.a" -delete || die
+   fi
+}



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2022-11-27 Thread James Le Cuirot
commit: 5a4bac8a2a8be4fafec82802c9955bcddd6b1aa6
Author: James Le Cuirot  gentoo  org>
AuthorDate: Sun Nov 27 18:42:35 2022 +
Commit: James Le Cuirot  gentoo  org>
CommitDate: Sun Nov 27 18:42:35 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a4bac8a

app-arch/zstd: Keyword 1.5.2-r3 for ~m68k

The tests pass.

Signed-off-by: James Le Cuirot  gentoo.org>

 app-arch/zstd/zstd-1.5.2-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.2-r3.ebuild 
b/app-arch/zstd/zstd-1.5.2-r3.ebuild
index f7757e3e1e54..7be94cf2d5f4 100644
--- a/app-arch/zstd/zstd-1.5.2-r3.ebuild
+++ b/app-arch/zstd/zstd-1.5.2-r3.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv 
~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs"
 
 RDEPEND="



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2022-11-03 Thread Sam James
commit: fe1953f1e6ea2e103b70c8531aa40bf56ea6e4e5
Author: Sam James  gentoo  org>
AuthorDate: Thu Nov  3 19:12:52 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Nov  3 19:13:11 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe1953f1

app-arch/zstd: Stabilize 1.5.2-r3 amd64, #879269

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.2-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.2-r3.ebuild 
b/app-arch/zstd/zstd-1.5.2-r3.ebuild
index 6c7aabc57868..76981c4835ad 100644
--- a/app-arch/zstd/zstd-1.5.2-r3.ebuild
+++ b/app-arch/zstd/zstd-1.5.2-r3.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha ~amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv 
~s390 sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv 
~s390 sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs"
 
 RDEPEND="



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2022-09-24 Thread Sam James
commit: 6121cf31cd310cff467f26b6dfcfdd8df6000aa3
Author: Holger Hoffstätte  applied-asynchrony  com>
AuthorDate: Sun Sep  4 14:58:25 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Sep 25 01:19:54 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6121cf31

app-arch/zstd: enable threads by default

This follows upstream's default since 1.5.0.

Closes: https://bugs.gentoo.org/868390
Signed-off-by: Holger Hoffstätte  applied-asynchrony.com>
Closes: https://github.com/gentoo/gentoo/pull/27141
Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.2-r3.ebuild | 69 ++
 1 file changed, 69 insertions(+)

diff --git a/app-arch/zstd/zstd-1.5.2-r3.ebuild 
b/app-arch/zstd/zstd-1.5.2-r3.ebuild
new file mode 100644
index ..4164ae59fa66
--- /dev/null
+++ b/app-arch/zstd/zstd-1.5.2-r3.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit multilib-minimal toolchain-funcs usr-ldscript
+
+DESCRIPTION="zstd fast compression library"
+HOMEPAGE="https://facebook.github.io/zstd/;
+SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="|| ( BSD GPL-2 )"
+SLOT="0/1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="lz4 static-libs"
+
+RDEPEND="
+   app-arch/xz-utils
+   sys-libs/zlib
+   lz4? ( app-arch/lz4 )
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+   default
+   multilib_copy_sources
+}
+
+mymake() {
+   emake \
+   CC="$(tc-getCC)" \
+   CXX="$(tc-getCXX)" \
+   AR="$(tc-getAR)" \
+   PREFIX="${EPREFIX}/usr" \
+   LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
+   V=1 \
+   "${@}"
+}
+
+multilib_src_compile() {
+   local libzstd_targets=( libzstd{,.a}-mt )
+
+   mymake -C lib ${libzstd_targets[@]} libzstd.pc
+
+   if multilib_is_native_abi ; then
+   mymake HAVE_LZ4="$(usex lz4 1 0)" zstd
+
+   mymake -C contrib/pzstd
+   fi
+}
+
+multilib_src_install() {
+   mymake -C lib DESTDIR="${D}" install
+
+   if multilib_is_native_abi ; then
+   mymake -C programs DESTDIR="${D}" install
+   gen_usr_ldscript -a zstd
+
+   mymake -C contrib/pzstd DESTDIR="${D}" install
+   fi
+}
+
+multilib_src_install_all() {
+   einstalldocs
+
+   if ! use static-libs; then
+   find "${ED}" -name "*.a" -delete || die
+   fi
+}



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2022-09-22 Thread Sam James
commit: 0c02356d48b0bbd6ba151f13c3bb3d2c2b4f1591
Author: Sam James  gentoo  org>
AuthorDate: Fri Sep 23 00:30:04 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Sep 23 00:30:20 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c02356d

app-arch/zstd: add missing sys-libs/zlib dep

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/{zstd-1.5.2-r1.ebuild => zstd-1.5.2-r2.ebuild} | 7 +--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/app-arch/zstd/zstd-1.5.2-r1.ebuild 
b/app-arch/zstd/zstd-1.5.2-r2.ebuild
similarity index 95%
rename from app-arch/zstd/zstd-1.5.2-r1.ebuild
rename to app-arch/zstd/zstd-1.5.2-r2.ebuild
index a55e96f74c14..846cd7ce5c57 100644
--- a/app-arch/zstd/zstd-1.5.2-r1.ebuild
+++ b/app-arch/zstd/zstd-1.5.2-r2.ebuild
@@ -14,8 +14,11 @@ SLOT="0/1"
 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv 
~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
-RDEPEND="app-arch/xz-utils
-   lz4? ( app-arch/lz4 )"
+RDEPEND="
+   app-arch/xz-utils
+   sys-libs/zlib
+   lz4? ( app-arch/lz4 )
+"
 DEPEND="${RDEPEND}"
 
 src_prepare() {



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2022-09-16 Thread Arthur Zamarin
commit: a3e1bab4b0d62ef40d6e617c5b823aeef54f64c7
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Sep 16 18:07:33 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Sep 16 18:07:33 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3e1bab4

app-arch/zstd: Stabilize 1.5.2-r1 ppc64, #868990

Signed-off-by: Arthur Zamarin  gentoo.org>

 app-arch/zstd/zstd-1.5.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.2-r1.ebuild 
b/app-arch/zstd/zstd-1.5.2-r1.ebuild
index 5e11200b240f..a55e96f74c14 100644
--- a/app-arch/zstd/zstd-1.5.2-r1.ebuild
+++ b/app-arch/zstd/zstd-1.5.2-r1.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ~ppc64 ~riscv 
~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv 
~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2022-09-16 Thread Arthur Zamarin
commit: b4e79915769ef311c0ab75d63c27a10a230aba4b
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Sep 16 15:51:01 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Sep 16 15:51:01 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4e79915

app-arch/zstd: Stabilize 1.5.2-r1 hppa, #868990

Signed-off-by: Arthur Zamarin  gentoo.org>

 app-arch/zstd/zstd-1.5.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.2-r1.ebuild 
b/app-arch/zstd/zstd-1.5.2-r1.ebuild
index 59d0693e7796..5e11200b240f 100644
--- a/app-arch/zstd/zstd-1.5.2-r1.ebuild
+++ b/app-arch/zstd/zstd-1.5.2-r1.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ~ppc64 ~riscv 
~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ~ppc64 ~riscv 
~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2022-09-15 Thread Arthur Zamarin
commit: 153bdd42a43d1fa51d466d737865ecb92b75a5e5
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Thu Sep 15 17:14:45 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Thu Sep 15 17:14:45 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=153bdd42

app-arch/zstd: Stabilize 1.5.2-r1 ppc, #868990

Signed-off-by: Arthur Zamarin  gentoo.org>

 app-arch/zstd/zstd-1.5.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.2-r1.ebuild 
b/app-arch/zstd/zstd-1.5.2-r1.ebuild
index cd0a9871114f..59d0693e7796 100644
--- a/app-arch/zstd/zstd-1.5.2-r1.ebuild
+++ b/app-arch/zstd/zstd-1.5.2-r1.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ~ppc64 ~riscv 
~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2022-09-06 Thread Sam James
commit: a91e43f04683558c74488e461274cf721a45bfed
Author: Sam James  gentoo  org>
AuthorDate: Wed Sep  7 01:52:48 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Sep  7 01:52:48 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a91e43f0

app-arch/zstd: Stabilize 1.5.2-r1 arm64, #868990

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.2-r1.ebuild 
b/app-arch/zstd/zstd-1.5.2-r1.ebuild
index f58a3bd38b60..cd0a9871114f 100644
--- a/app-arch/zstd/zstd-1.5.2-r1.ebuild
+++ b/app-arch/zstd/zstd-1.5.2-r1.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2022-09-06 Thread Sam James
commit: 3f7eb7e01d693807f0cf66f724f4405ca1c45040
Author: Sam James  gentoo  org>
AuthorDate: Wed Sep  7 01:49:34 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Sep  7 01:49:34 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f7eb7e0

app-arch/zstd: Stabilize 1.5.2-r1 sparc, #868990

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.2-r1.ebuild 
b/app-arch/zstd/zstd-1.5.2-r1.ebuild
index 1215c9ab659a..f58a3bd38b60 100644
--- a/app-arch/zstd/zstd-1.5.2-r1.ebuild
+++ b/app-arch/zstd/zstd-1.5.2-r1.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2022-09-06 Thread Sam James
commit: 92582de9b35a68a529e0dc255df58e8fb4afbbce
Author: Sam James  gentoo  org>
AuthorDate: Wed Sep  7 01:48:41 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Sep  7 01:48:41 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92582de9

app-arch/zstd: Stabilize 1.5.2-r1 amd64, #868990

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.2-r1.ebuild 
b/app-arch/zstd/zstd-1.5.2-r1.ebuild
index 44d0b5a5580d..1215c9ab659a 100644
--- a/app-arch/zstd/zstd-1.5.2-r1.ebuild
+++ b/app-arch/zstd/zstd-1.5.2-r1.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2022-09-06 Thread Jakov Smolić
commit: 133de012aeabddeb3e38a6083412a589602560ae
Author: Jakov Smolić  gentoo  org>
AuthorDate: Tue Sep  6 21:59:02 2022 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Tue Sep  6 21:59:02 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=133de012

app-arch/zstd: Stabilize 1.5.2-r1 x86, #868990

Signed-off-by: Jakov Smolić  gentoo.org>

 app-arch/zstd/zstd-1.5.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.2-r1.ebuild 
b/app-arch/zstd/zstd-1.5.2-r1.ebuild
index 12427e175b59..44d0b5a5580d 100644
--- a/app-arch/zstd/zstd-1.5.2-r1.ebuild
+++ b/app-arch/zstd/zstd-1.5.2-r1.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2022-09-06 Thread Jakov Smolić
commit: b2e728bdc8c249c762d9c4fce9dbc91c57f2f12f
Author: Jakov Smolić  gentoo  org>
AuthorDate: Tue Sep  6 21:57:36 2022 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Tue Sep  6 21:57:59 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2e728bd

app-arch/zstd: Stabilize 1.5.2-r1 arm, #868990

Signed-off-by: Jakov Smolić  gentoo.org>

 app-arch/zstd/zstd-1.5.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.2-r1.ebuild 
b/app-arch/zstd/zstd-1.5.2-r1.ebuild
index 808d99d8300b..12427e175b59 100644
--- a/app-arch/zstd/zstd-1.5.2-r1.ebuild
+++ b/app-arch/zstd/zstd-1.5.2-r1.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2022-06-18 Thread Sam James
commit: 809790f9646e70171d5a45a94160585bea267342
Author: Sam James  gentoo  org>
AuthorDate: Sat Jun 18 13:06:22 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Jun 18 13:06:22 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=809790f9

app-arch/zstd: drop 1.5.2-r1 back to ~arch

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.2-r1.ebuild 
b/app-arch/zstd/zstd-1.5.2-r1.ebuild
index a55e96f74c14..808d99d8300b 100644
--- a/app-arch/zstd/zstd-1.5.2-r1.ebuild
+++ b/app-arch/zstd/zstd-1.5.2-r1.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv 
~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2022-06-18 Thread Sam James
commit: d3d6f195b3c875ddef2d642bd2d9c0ff27ffbf83
Author: Sam James  gentoo  org>
AuthorDate: Sat Jun 18 13:03:47 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Jun 18 13:04:52 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3d6f195

app-arch/zstd: add 1.5.2-r1 for split-usr too

Apparently I only did 1.5.1?

Bug: https://bugs.gentoo.org/852860
Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.1-r3.ebuild|  2 +-
 .../{zstd-1.5.1-r3.ebuild => zstd-1.5.2-r1.ebuild}| 19 ++-
 2 files changed, 3 insertions(+), 18 deletions(-)

diff --git a/app-arch/zstd/zstd-1.5.1-r3.ebuild 
b/app-arch/zstd/zstd-1.5.1-r3.ebuild
index 83b2103a30b0..99a923c9e721 100644
--- a/app-arch/zstd/zstd-1.5.1-r3.ebuild
+++ b/app-arch/zstd/zstd-1.5.1-r3.ebuild
@@ -12,7 +12,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="lz4 static-libs split-usr +threads"
+IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils
lz4? ( app-arch/lz4 )"

diff --git a/app-arch/zstd/zstd-1.5.1-r3.ebuild 
b/app-arch/zstd/zstd-1.5.2-r1.ebuild
similarity index 68%
copy from app-arch/zstd/zstd-1.5.1-r3.ebuild
copy to app-arch/zstd/zstd-1.5.2-r1.ebuild
index 83b2103a30b0..a55e96f74c14 100644
--- a/app-arch/zstd/zstd-1.5.1-r3.ebuild
+++ b/app-arch/zstd/zstd-1.5.2-r1.ebuild
@@ -11,33 +11,19 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="lz4 static-libs split-usr +threads"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv 
~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils
lz4? ( app-arch/lz4 )"
 DEPEND="${RDEPEND}"
 
-PATCHES=(
-   "${FILESDIR}"/${PN}-1.5.1-respect-CFLAGS.patch
-)
-
 src_prepare() {
default
multilib_copy_sources
 }
 
 mymake() {
-   # We need to turn off asm for certain arches (!amd64) for now.
-   # - bug #829849
-   # - https://bugzilla.redhat.com/show_bug.cgi?id=2035802
-   # - https://github.com/facebook/zstd/issues/2963
-   local asm="ZSTD_NO_ASM=1"
-
-   if use amd64 && [[ ${ABI} == amd64 ]] ; then
-   asm=
-   fi
-
emake \
CC="$(tc-getCC)" \
CXX="$(tc-getCXX)" \
@@ -45,7 +31,6 @@ mymake() {
PREFIX="${EPREFIX}/usr" \
LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
V=1 \
-   ${asm} \
"${@}"
 }
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2022-06-16 Thread Sam James
commit: 1ae31721af31ad1eff932f9de790e2584fdd3a9f
Author: Sam James  gentoo  org>
AuthorDate: Thu Jun 16 15:25:44 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Jun 16 15:25:46 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ae31721

app-arch/zstd: add split-usr support

Done with some reluctance, as I don't really want to be introducing more of
these, but it blocks being able to turn on zstd by default safely in kmod,
and it's a simple enough fix that I can't justify breaking things - it'd
be gratuitious.

Not tested on a split-usr system though, so it's really best-effort.

(split-usr being "/usr is a separate partition and therefore libraries
need to be in /$(get_libdir) for boot to bring it up", and not anything
to do with "merged-usr").

Closes: https://bugs.gentoo.org/771078
Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.1-r3.ebuild | 81 ++
 1 file changed, 81 insertions(+)

diff --git a/app-arch/zstd/zstd-1.5.1-r3.ebuild 
b/app-arch/zstd/zstd-1.5.1-r3.ebuild
new file mode 100644
index ..83b2103a30b0
--- /dev/null
+++ b/app-arch/zstd/zstd-1.5.1-r3.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit multilib-minimal toolchain-funcs usr-ldscript
+
+DESCRIPTION="zstd fast compression library"
+HOMEPAGE="https://facebook.github.io/zstd/;
+SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="|| ( BSD GPL-2 )"
+SLOT="0/1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="lz4 static-libs split-usr +threads"
+
+RDEPEND="app-arch/xz-utils
+   lz4? ( app-arch/lz4 )"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-1.5.1-respect-CFLAGS.patch
+)
+
+src_prepare() {
+   default
+   multilib_copy_sources
+}
+
+mymake() {
+   # We need to turn off asm for certain arches (!amd64) for now.
+   # - bug #829849
+   # - https://bugzilla.redhat.com/show_bug.cgi?id=2035802
+   # - https://github.com/facebook/zstd/issues/2963
+   local asm="ZSTD_NO_ASM=1"
+
+   if use amd64 && [[ ${ABI} == amd64 ]] ; then
+   asm=
+   fi
+
+   emake \
+   CC="$(tc-getCC)" \
+   CXX="$(tc-getCXX)" \
+   AR="$(tc-getAR)" \
+   PREFIX="${EPREFIX}/usr" \
+   LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
+   V=1 \
+   ${asm} \
+   "${@}"
+}
+
+multilib_src_compile() {
+   local libzstd_targets=( libzstd{,.a}$(usex threads '-mt' '') )
+
+   mymake -C lib ${libzstd_targets[@]} libzstd.pc
+
+   if multilib_is_native_abi ; then
+   mymake HAVE_LZ4="$(usex lz4 1 0)" zstd
+
+   mymake -C contrib/pzstd
+   fi
+}
+
+multilib_src_install() {
+   mymake -C lib DESTDIR="${D}" install
+
+   if multilib_is_native_abi ; then
+   mymake -C programs DESTDIR="${D}" install
+   gen_usr_ldscript -a zstd
+
+   mymake -C contrib/pzstd DESTDIR="${D}" install
+   fi
+}
+
+multilib_src_install_all() {
+   einstalldocs
+
+   if ! use static-libs; then
+   find "${ED}" -name "*.a" -delete || die
+   fi
+}



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2022-02-24 Thread Sam James
commit: 8f9c9a7d5363d49f6c42f0b2adc524f31fec6947
Author: Rolf Eike Beer  sf-mail  de>
AuthorDate: Thu Feb 24 14:57:25 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Feb 24 15:02:00 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f9c9a7d

app-arch/zstd: stable 1.5.2 for hppa, bug #833641

Package-Manager: Portage-3.0.30, Repoman-3.0.3
RepoMan-Options: --include-arches="hppa"
Signed-off-by: Rolf Eike Beer  sf-mail.de>
Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.2.ebuild b/app-arch/zstd/zstd-1.5.2.ebuild
index ebdb72ffb8eb..13b97f431df0 100644
--- a/app-arch/zstd/zstd-1.5.2.ebuild
+++ b/app-arch/zstd/zstd-1.5.2.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 
sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc 
x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2022-02-19 Thread Arthur Zamarin
commit: 04119b64d7db9973249a092c601f54ded73d6dee
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Feb 19 08:52:25 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Feb 19 08:52:25 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04119b64

app-arch/zstd: Stabilize 1.5.2 arm, #833641

Signed-off-by: Arthur Zamarin  gentoo.org>

 app-arch/zstd/zstd-1.5.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.2.ebuild b/app-arch/zstd/zstd-1.5.2.ebuild
index f9b57311177b..9bbc5b40ba13 100644
--- a/app-arch/zstd/zstd-1.5.2.ebuild
+++ b/app-arch/zstd/zstd-1.5.2.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 
sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 
sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2022-02-19 Thread Arthur Zamarin
commit: 5ddee7115150c8707cb3893e7fc35380157dcc5b
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Feb 19 08:43:31 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Feb 19 08:43:31 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ddee711

app-arch/zstd: Stabilize 1.5.2 arm64, #833641

Signed-off-by: Arthur Zamarin  gentoo.org>

 app-arch/zstd/zstd-1.5.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.2.ebuild b/app-arch/zstd/zstd-1.5.2.ebuild
index bceba14f99e5..f9b57311177b 100644
--- a/app-arch/zstd/zstd-1.5.2.ebuild
+++ b/app-arch/zstd/zstd-1.5.2.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 
sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 
sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2022-02-19 Thread Arthur Zamarin
commit: c3fbb73667d89150f7d31569e232b6e4dc8c63d4
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Feb 19 08:36:12 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Feb 19 08:36:12 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3fbb736

app-arch/zstd: Stabilize 1.5.2 ppc64, #833641

Signed-off-by: Arthur Zamarin  gentoo.org>

 app-arch/zstd/zstd-1.5.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.2.ebuild b/app-arch/zstd/zstd-1.5.2.ebuild
index 431f22a17ff9..bceba14f99e5 100644
--- a/app-arch/zstd/zstd-1.5.2.ebuild
+++ b/app-arch/zstd/zstd-1.5.2.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ppc ~ppc64 ~riscv ~s390 
sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 
sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2022-02-18 Thread Arthur Zamarin
commit: eeeb702466b766243d2b376b94c8697db279e7ba
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Feb 19 07:18:53 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Feb 19 07:18:53 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eeeb7024

app-arch/zstd: Stabilize 1.5.2 ppc, #833641

Signed-off-by: Arthur Zamarin  gentoo.org>

 app-arch/zstd/zstd-1.5.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.2.ebuild b/app-arch/zstd/zstd-1.5.2.ebuild
index 8af92ab73a1e..431f22a17ff9 100644
--- a/app-arch/zstd/zstd-1.5.2.ebuild
+++ b/app-arch/zstd/zstd-1.5.2.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ppc ~ppc64 ~riscv ~s390 
sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2022-02-18 Thread Arthur Zamarin
commit: 9d1da921c4e69e2dcf7cb0a7a1f1a740c41d63de
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Feb 19 07:18:52 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Feb 19 07:18:52 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d1da921

app-arch/zstd: Stabilize 1.5.2 sparc, #833641

Signed-off-by: Arthur Zamarin  gentoo.org>

 app-arch/zstd/zstd-1.5.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.2.ebuild b/app-arch/zstd/zstd-1.5.2.ebuild
index d284760d9866..8af92ab73a1e 100644
--- a/app-arch/zstd/zstd-1.5.2.ebuild
+++ b/app-arch/zstd/zstd-1.5.2.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2022-02-18 Thread Sam James
commit: 2ffbceea6d47cec483c3b7125374e277f012a1a0
Author: Sam James  gentoo  org>
AuthorDate: Sat Feb 19 02:38:11 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Feb 19 02:38:11 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ffbceea

app-arch/zstd: retarget 1.5.2 for stable

1.5.2 contains a bugfix which we want in stable on 1.5.1

Bug: https://bugs.gentoo.org/833641
Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.1-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.1-r2.ebuild 
b/app-arch/zstd/zstd-1.5.1-r2.ebuild
index 3db41d432cc5..29168c5fe5d2 100644
--- a/app-arch/zstd/zstd-1.5.1-r2.ebuild
+++ b/app-arch/zstd/zstd-1.5.1-r2.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 
sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2022-02-18 Thread Sam James
commit: ffa58d5798cd842d9fd4520e5abfa4e037e889cb
Author: Sam James  gentoo  org>
AuthorDate: Sat Feb 19 02:34:30 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Feb 19 02:34:30 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffa58d57

app-arch/zstd: Stabilize 1.5.1-r2 sparc, #833641

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.1-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.1-r2.ebuild 
b/app-arch/zstd/zstd-1.5.1-r2.ebuild
index aad09690120a..3db41d432cc5 100644
--- a/app-arch/zstd/zstd-1.5.1-r2.ebuild
+++ b/app-arch/zstd/zstd-1.5.1-r2.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 
~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 
sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2022-02-18 Thread Sam James
commit: ce1699fafc798fcab926fcb021dad2a5111a235d
Author: Sam James  gentoo  org>
AuthorDate: Sat Feb 19 02:32:20 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Feb 19 02:32:20 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce1699fa

app-arch/zstd: Stabilize 1.5.1-r2 ppc, #833641

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.1-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.1-r2.ebuild 
b/app-arch/zstd/zstd-1.5.1-r2.ebuild
index 9c631b965261..aad09690120a 100644
--- a/app-arch/zstd/zstd-1.5.1-r2.ebuild
+++ b/app-arch/zstd/zstd-1.5.1-r2.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ppc64 ~riscv ~s390 
~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 
~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2022-02-18 Thread Sam James
commit: cc8fd4e08bb789ae41166488f3d93e6e19456da8
Author: Sam James  gentoo  org>
AuthorDate: Sat Feb 19 02:24:55 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Feb 19 02:24:55 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc8fd4e0

app-arch/zstd: Stabilize 1.5.1-r2 x86, #833641

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.1-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.1-r2.ebuild 
b/app-arch/zstd/zstd-1.5.1-r2.ebuild
index 93fdd854548c..f3043b2b703b 100644
--- a/app-arch/zstd/zstd-1.5.1-r2.ebuild
+++ b/app-arch/zstd/zstd-1.5.1-r2.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2022-02-18 Thread Sam James
commit: f95ed9ba9e4bcd7434dd673d7c54ed31a9f880e9
Author: Sam James  gentoo  org>
AuthorDate: Sat Feb 19 02:21:25 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Feb 19 02:21:25 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f95ed9ba

app-arch/zstd: Stabilize 1.5.1-r2 amd64, #833641

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.1-r2.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app-arch/zstd/zstd-1.5.1-r2.ebuild 
b/app-arch/zstd/zstd-1.5.1-r2.ebuild
index 68a45fd7660c..93fdd854548c 100644
--- a/app-arch/zstd/zstd-1.5.1-r2.ebuild
+++ b/app-arch/zstd/zstd-1.5.1-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2022-01-21 Thread Sam James
commit: fb557c79e06436c6ca1245ac68cf006b567ce69c
Author: Sam James  gentoo  org>
AuthorDate: Fri Jan 21 23:50:38 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Jan 21 23:52:43 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb557c79

app-arch/zstd: add 1.5.2

Closes: https://bugs.gentoo.org/829799
Closes: https://bugs.gentoo.org/829849
Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/Manifest  |  1 +
 app-arch/zstd/zstd-1.5.2.ebuild | 65 +
 2 files changed, 66 insertions(+)

diff --git a/app-arch/zstd/Manifest b/app-arch/zstd/Manifest
index 3699570af10c..88472c9e4203 100644
--- a/app-arch/zstd/Manifest
+++ b/app-arch/zstd/Manifest
@@ -1,3 +1,4 @@
 DIST zstd-1.4.9.tar.gz 1834843 BLAKE2B 
907f492bd023db9459bdc292a0bc4d1b6336d92dd7041eb2b36668589c20fcb98c411b85d78f92cd16d9b4a000d9c4125b5f966a5ca777034ae78210e639315b
 SHA512 
f529db9c094f9ae26428bf1fdfcc91c6d783d400980e0f0d802d2cf13c2be2931465ef568907e03841ff76a369a1447e7371f8799d8526edb9a513ba5c6db133
 DIST zstd-1.5.0.tar.gz 1867111 BLAKE2B 
e503d17478b94128eb3ec578178f9d7023e941434dcc07790e12fd6c9933518f34fba5d7795ab7b145e4e499597644a6edd2830106649c5a749c962d5afe2f31
 SHA512 
25b657529a698eec891f92ff4a085d1fd95d2ff938ce52c8a4ff6163eb0b668ec642dd09e0db190652638cd92371006afa01d8e437437762c4097ad301675c33
 DIST zstd-1.5.1.tar.gz 1948539 BLAKE2B 
2f82fb7872c49c41c8ccae17e343825dabceae3070266e49468c2019a1324758b825d7fc1bc3b62602b4d726538260258dc9134fa81d3c5e5085a8a1b531a8c5
 SHA512 
ed8ea0143b7bbd85afdcc8f95d44589a0903cff8375059836ebe577cc4b3ea49c0c756db6a3649655e478377f48b3120ef87dc768fd449bd4bfac786209bfd31
+DIST zstd-1.5.2.tar.gz 1950967 BLAKE2B 
9d474e9fdcf7e5eb09d1f606712b05ca3001e8f6f7451254d8dba3f429101048532fd9c84a5b9083ae90d0457e9e1b1d48256581a1697e7db19b09d73595f070
 SHA512 
e107508a41fca50845cc2494e64adaba93efb95a2fa486fc962510a8ba4b2180d93067cae9870f119e88e5e8b28a046bc2240b0b23cdd8933d1fb1a6a9668c1e

diff --git a/app-arch/zstd/zstd-1.5.2.ebuild b/app-arch/zstd/zstd-1.5.2.ebuild
new file mode 100644
index ..d284760d9866
--- /dev/null
+++ b/app-arch/zstd/zstd-1.5.2.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit multilib-minimal toolchain-funcs
+
+DESCRIPTION="zstd fast compression library"
+HOMEPAGE="https://facebook.github.io/zstd/;
+SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="|| ( BSD GPL-2 )"
+SLOT="0/1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="lz4 static-libs +threads"
+
+RDEPEND="app-arch/xz-utils
+   lz4? ( app-arch/lz4 )"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+   default
+   multilib_copy_sources
+}
+
+mymake() {
+   emake \
+   CC="$(tc-getCC)" \
+   CXX="$(tc-getCXX)" \
+   AR="$(tc-getAR)" \
+   PREFIX="${EPREFIX}/usr" \
+   LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
+   V=1 \
+   "${@}"
+}
+
+multilib_src_compile() {
+   local libzstd_targets=( libzstd{,.a}$(usex threads '-mt' '') )
+
+   mymake -C lib ${libzstd_targets[@]} libzstd.pc
+
+   if multilib_is_native_abi ; then
+   mymake HAVE_LZ4="$(usex lz4 1 0)" zstd
+
+   mymake -C contrib/pzstd
+   fi
+}
+
+multilib_src_install() {
+   mymake -C lib DESTDIR="${D}" install
+
+   if multilib_is_native_abi ; then
+   mymake -C programs DESTDIR="${D}" install
+
+   mymake -C contrib/pzstd DESTDIR="${D}" install
+   fi
+}
+
+multilib_src_install_all() {
+   einstalldocs
+
+   if ! use static-libs; then
+   find "${ED}" -name "*.a" -delete || die
+   fi
+}



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2021-12-31 Thread Sam James
commit: e078583820483684b5d7c8c0bbd4c515c8a8b53c
Author: Sam James  gentoo  org>
AuthorDate: Fri Dec 31 23:54:27 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Dec 31 23:54:55 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0785838

app-arch/zstd: fix multilib x86 no exec'able stack too

Bug: https://bugs.gentoo.org/829849
Reported-by: Arfrever
Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/{zstd-1.5.1-r1.ebuild => zstd-1.5.1-r2.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.1-r1.ebuild 
b/app-arch/zstd/zstd-1.5.1-r2.ebuild
similarity index 97%
rename from app-arch/zstd/zstd-1.5.1-r1.ebuild
rename to app-arch/zstd/zstd-1.5.1-r2.ebuild
index 4e3f4fdad650..68a45fd7660c 100644
--- a/app-arch/zstd/zstd-1.5.1-r1.ebuild
+++ b/app-arch/zstd/zstd-1.5.1-r2.ebuild
@@ -34,7 +34,7 @@ mymake() {
# - https://github.com/facebook/zstd/issues/2963
local asm="ZSTD_NO_ASM=1"
 
-   if use amd64 ; then
+   if use amd64 && [[ ${ABI} == amd64 ]] ; then
asm=
fi
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2021-12-31 Thread Sam James
commit: eea3dcd064899b8250f90972208a5a7b623829e9
Author: Sam James  gentoo  org>
AuthorDate: Fri Dec 31 22:37:23 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Dec 31 22:48:16 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eea3dcd0

app-arch/zstd: disable asm (exec'able stack) on !amd64

See upstream bug / RH bug for details but the
property is silently lost and it's an error
in the annotation upstream.

Bug: https://bugs.gentoo.org/829849
Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/{zstd-1.5.1.ebuild => zstd-1.5.1-r1.ebuild} | 11 +++
 1 file changed, 11 insertions(+)

diff --git a/app-arch/zstd/zstd-1.5.1.ebuild 
b/app-arch/zstd/zstd-1.5.1-r1.ebuild
similarity index 85%
rename from app-arch/zstd/zstd-1.5.1.ebuild
rename to app-arch/zstd/zstd-1.5.1-r1.ebuild
index ee5d6e6b7871..4e3f4fdad650 100644
--- a/app-arch/zstd/zstd-1.5.1.ebuild
+++ b/app-arch/zstd/zstd-1.5.1-r1.ebuild
@@ -28,6 +28,16 @@ src_prepare() {
 }
 
 mymake() {
+   # We need to turn off asm for certain arches (!amd64) for now.
+   # - bug #829849
+   # - https://bugzilla.redhat.com/show_bug.cgi?id=2035802
+   # - https://github.com/facebook/zstd/issues/2963
+   local asm="ZSTD_NO_ASM=1"
+
+   if use amd64 ; then
+   asm=
+   fi
+
emake \
CC="$(tc-getCC)" \
CXX="$(tc-getCXX)" \
@@ -35,6 +45,7 @@ mymake() {
PREFIX="${EPREFIX}/usr" \
LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
V=1 \
+   ${asm} \
"${@}"
 }
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/files/, app-arch/zstd/

2021-12-21 Thread Sam James
commit: c8f63df394e7d5094bffa55d66a89501f8cb43b1
Author: Sam James  gentoo  org>
AuthorDate: Wed Dec 22 02:23:59 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Dec 22 02:23:59 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8f63df3

app-arch/zstd: add 1.5.1

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/Manifest |  1 +
 .../zstd/files/zstd-1.5.1-respect-CFLAGS.patch | 11 
 app-arch/zstd/zstd-1.5.1.ebuild| 69 ++
 3 files changed, 81 insertions(+)

diff --git a/app-arch/zstd/Manifest b/app-arch/zstd/Manifest
index 7950f8b80cac..3699570af10c 100644
--- a/app-arch/zstd/Manifest
+++ b/app-arch/zstd/Manifest
@@ -1,2 +1,3 @@
 DIST zstd-1.4.9.tar.gz 1834843 BLAKE2B 
907f492bd023db9459bdc292a0bc4d1b6336d92dd7041eb2b36668589c20fcb98c411b85d78f92cd16d9b4a000d9c4125b5f966a5ca777034ae78210e639315b
 SHA512 
f529db9c094f9ae26428bf1fdfcc91c6d783d400980e0f0d802d2cf13c2be2931465ef568907e03841ff76a369a1447e7371f8799d8526edb9a513ba5c6db133
 DIST zstd-1.5.0.tar.gz 1867111 BLAKE2B 
e503d17478b94128eb3ec578178f9d7023e941434dcc07790e12fd6c9933518f34fba5d7795ab7b145e4e499597644a6edd2830106649c5a749c962d5afe2f31
 SHA512 
25b657529a698eec891f92ff4a085d1fd95d2ff938ce52c8a4ff6163eb0b668ec642dd09e0db190652638cd92371006afa01d8e437437762c4097ad301675c33
+DIST zstd-1.5.1.tar.gz 1948539 BLAKE2B 
2f82fb7872c49c41c8ccae17e343825dabceae3070266e49468c2019a1324758b825d7fc1bc3b62602b4d726538260258dc9134fa81d3c5e5085a8a1b531a8c5
 SHA512 
ed8ea0143b7bbd85afdcc8f95d44589a0903cff8375059836ebe577cc4b3ea49c0c756db6a3649655e478377f48b3120ef87dc768fd449bd4bfac786209bfd31

diff --git a/app-arch/zstd/files/zstd-1.5.1-respect-CFLAGS.patch 
b/app-arch/zstd/files/zstd-1.5.1-respect-CFLAGS.patch
new file mode 100644
index ..63f0f47459d9
--- /dev/null
+++ b/app-arch/zstd/files/zstd-1.5.1-respect-CFLAGS.patch
@@ -0,0 +1,11 @@
+--- a/lib/libzstd.mk
 b/lib/libzstd.mk
+@@ -78,8 +78,6 @@ else
+ endif
+   CFLAGS += -fno-stack-protector -fomit-frame-pointer -fno-ident \
+ -DDYNAMIC_BMI2=0 -DNDEBUG
+-else
+-  CFLAGS += -O3
+ endif
+ 
+ DEBUGLEVEL ?= 0

diff --git a/app-arch/zstd/zstd-1.5.1.ebuild b/app-arch/zstd/zstd-1.5.1.ebuild
new file mode 100644
index ..ee5d6e6b7871
--- /dev/null
+++ b/app-arch/zstd/zstd-1.5.1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit multilib-minimal toolchain-funcs
+
+DESCRIPTION="zstd fast compression library"
+HOMEPAGE="https://facebook.github.io/zstd/;
+SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="|| ( BSD GPL-2 )"
+SLOT="0/1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="lz4 static-libs +threads"
+
+RDEPEND="app-arch/xz-utils
+   lz4? ( app-arch/lz4 )"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-1.5.1-respect-CFLAGS.patch
+)
+
+src_prepare() {
+   default
+   multilib_copy_sources
+}
+
+mymake() {
+   emake \
+   CC="$(tc-getCC)" \
+   CXX="$(tc-getCXX)" \
+   AR="$(tc-getAR)" \
+   PREFIX="${EPREFIX}/usr" \
+   LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
+   V=1 \
+   "${@}"
+}
+
+multilib_src_compile() {
+   local libzstd_targets=( libzstd{,.a}$(usex threads '-mt' '') )
+
+   mymake -C lib ${libzstd_targets[@]} libzstd.pc
+
+   if multilib_is_native_abi ; then
+   mymake HAVE_LZ4="$(usex lz4 1 0)" zstd
+
+   mymake -C contrib/pzstd
+   fi
+}
+
+multilib_src_install() {
+   mymake -C lib DESTDIR="${D}" install
+
+   if multilib_is_native_abi ; then
+   mymake -C programs DESTDIR="${D}" install
+
+   mymake -C contrib/pzstd DESTDIR="${D}" install
+   fi
+}
+
+multilib_src_install_all() {
+   einstalldocs
+
+   if ! use static-libs; then
+   find "${ED}" -name "*.a" -delete || die
+   fi
+}



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2021-12-21 Thread Sam James
commit: 5fa40cb12b5f387d8b35cbb7c4a2d0877e6293de
Author: Sam James  gentoo  org>
AuthorDate: Wed Dec 22 02:19:52 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Dec 22 02:19:52 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fa40cb1

app-arch/zstd: enable verbose build

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.0.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/app-arch/zstd/zstd-1.5.0.ebuild b/app-arch/zstd/zstd-1.5.0.ebuild
index f46edb314bdb..8e810dcf9fc1 100644
--- a/app-arch/zstd/zstd-1.5.0.ebuild
+++ b/app-arch/zstd/zstd-1.5.0.ebuild
@@ -30,6 +30,7 @@ mymake() {
AR="$(tc-getAR)" \
PREFIX="${EPREFIX}/usr" \
LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
+   V=1 \
"${@}"
 }
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2021-10-07 Thread Mike Frysinger
commit: 33aed1171970621f1a29506c71b9cf24aca9e137
Author: Mike Frysinger  chromium  org>
AuthorDate: Thu Oct  7 06:26:53 2021 +
Commit: Mike Frysinger  gentoo  org>
CommitDate: Thu Oct  7 06:28:01 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33aed117

app-arch/zstd: drop obsolete workaround

This release fixed the problem so don't need this workaround.

Bug: https://bugs.gentoo.org/713940
Signed-off-by: Mike Frysinger  gentoo.org>

 app-arch/zstd/zstd-1.5.0.ebuild | 7 +--
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/app-arch/zstd/zstd-1.5.0.ebuild b/app-arch/zstd/zstd-1.5.0.ebuild
index da3fe8961c8..f46edb314bd 100644
--- a/app-arch/zstd/zstd-1.5.0.ebuild
+++ b/app-arch/zstd/zstd-1.5.0.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit flag-o-matic multilib-minimal toolchain-funcs
+inherit multilib-minimal toolchain-funcs
 
 DESCRIPTION="zstd fast compression library"
 HOMEPAGE="https://facebook.github.io/zstd/;
@@ -21,11 +21,6 @@ DEPEND="${RDEPEND}"
 src_prepare() {
default
multilib_copy_sources
-
-   # Workaround #713940 / https://github.com/facebook/zstd/issues/2045
-   # where upstream build system does not add -pthread for Makefile-based
-   # build system.
-   use threads && append-flags $(test-flags-CCLD -pthread)
 }
 
 mymake() {



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2021-08-28 Thread Andreas K. Hüttel
commit: 06ab0413ee52e5e445b57e0bd6b9798df2df2d8b
Author: Andreas K. Hüttel  gentoo  org>
AuthorDate: Sun Aug 29 02:01:46 2021 +
Commit: Andreas K. Hüttel  gentoo  org>
CommitDate: Sun Aug 29 02:01:46 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06ab0413

app-arch/zstd: Keyword ~m68k, let's see how things go.

Citing upstream: "And to be honest, I'm impressed v1.4.9 runs so well."

Note that so far 1.5.0 does not work at all.

Bug: https://github.com/facebook/zstd/issues/2756
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Andreas K. Hüttel  gentoo.org>

 app-arch/zstd/zstd-1.4.9.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.4.9.ebuild b/app-arch/zstd/zstd-1.4.9.ebuild
index da3fe8961c8..c815d95ab68 100644
--- a/app-arch/zstd/zstd-1.4.9.ebuild
+++ b/app-arch/zstd/zstd-1.4.9.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc 
x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 
sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2021-07-26 Thread Sam James
commit: d52aed2b927af7f4d89a3876257e9397346f2b64
Author: Sam James  gentoo  org>
AuthorDate: Tue Jul 27 03:14:52 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Jul 27 03:14:52 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d52aed2b

app-arch/zstd: Stabilize 1.5.0 ppc64, #803443

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.0.ebuild b/app-arch/zstd/zstd-1.5.0.ebuild
index 946b837b3e6..e4916f5f0bc 100644
--- a/app-arch/zstd/zstd-1.5.0.ebuild
+++ b/app-arch/zstd/zstd-1.5.0.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~mips ppc ~ppc64 ~riscv ~s390 
sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 
sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2021-07-26 Thread Sergei Trofimovich
commit: bb158df15ac61fd0c1b850654ee7aed07cd754a4
Author: Rolf Eike Beer  sf-mail  de>
AuthorDate: Mon Jul 26 16:58:00 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Mon Jul 26 21:04:50 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb158df1

app-arch/zstd: stable 1.5.0 for hppa, bug #803443

Package-Manager: Portage-3.0.20, Repoman-3.0.2
RepoMan-Options: --include-arches="hppa"
Signed-off-by: Rolf Eike Beer  sf-mail.de>
Signed-off-by: Sergei Trofimovich  gentoo.org>

 app-arch/zstd/zstd-1.5.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.0.ebuild b/app-arch/zstd/zstd-1.5.0.ebuild
index da611c2559b..946b837b3e6 100644
--- a/app-arch/zstd/zstd-1.5.0.ebuild
+++ b/app-arch/zstd/zstd-1.5.0.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ~ppc64 ~riscv ~s390 
sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~mips ppc ~ppc64 ~riscv ~s390 
sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2021-07-26 Thread Sam James
commit: bbaa665e0651fb3c7a9155b48100fa79d3ac5bc9
Author: Sam James  gentoo  org>
AuthorDate: Mon Jul 26 11:14:10 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jul 26 11:17:11 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbaa665e

app-arch/zstd: Stabilize 1.5.0 ppc, #803443

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.0.ebuild b/app-arch/zstd/zstd-1.5.0.ebuild
index 848f8973f8c..da611c2559b 100644
--- a/app-arch/zstd/zstd-1.5.0.ebuild
+++ b/app-arch/zstd/zstd-1.5.0.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ~ppc64 ~riscv ~s390 
sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2021-07-25 Thread Sam James
commit: d3d397edf7a8f79b949b6b91e24460009ae9dd50
Author: Sam James  gentoo  org>
AuthorDate: Sun Jul 25 20:07:09 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jul 25 20:07:09 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3d397ed

app-arch/zstd: Stabilize 1.5.0 arm, #803443

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.0.ebuild b/app-arch/zstd/zstd-1.5.0.ebuild
index 801af9e179b..848f8973f8c 100644
--- a/app-arch/zstd/zstd-1.5.0.ebuild
+++ b/app-arch/zstd/zstd-1.5.0.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2021-07-23 Thread Sam James
commit: 15622a01b4ce91389ee4d9efadb20fc83c0517d7
Author: Sam James  gentoo  org>
AuthorDate: Fri Jul 23 17:58:26 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Jul 23 17:58:26 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15622a01

app-arch/zstd: Stabilize 1.5.0 sparc, #803443

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.0.ebuild b/app-arch/zstd/zstd-1.5.0.ebuild
index 61ec3b89a55..801af9e179b 100644
--- a/app-arch/zstd/zstd-1.5.0.ebuild
+++ b/app-arch/zstd/zstd-1.5.0.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2021-07-23 Thread Sam James
commit: 1c0f1dbdb04f3ae24ab9bc71e6b236055df4d1ab
Author: Sam James  gentoo  org>
AuthorDate: Fri Jul 23 17:57:17 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Jul 23 17:57:17 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c0f1dbd

app-arch/zstd: Stabilize 1.5.0 amd64, #803443

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.0.ebuild b/app-arch/zstd/zstd-1.5.0.ebuild
index 0f9fc76a04f..61ec3b89a55 100644
--- a/app-arch/zstd/zstd-1.5.0.ebuild
+++ b/app-arch/zstd/zstd-1.5.0.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2021-07-23 Thread Sam James
commit: bad0b82c73f4622cdc1baa6c6b9ff3e1e8a95965
Author: Sam James  gentoo  org>
AuthorDate: Fri Jul 23 17:55:45 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Jul 23 17:55:45 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bad0b82c

app-arch/zstd: Stabilize 1.5.0 x86, #803443

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.5.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.5.0.ebuild b/app-arch/zstd/zstd-1.5.0.ebuild
index a7b21ee6fe5..0f9fc76a04f 100644
--- a/app-arch/zstd/zstd-1.5.0.ebuild
+++ b/app-arch/zstd/zstd-1.5.0.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2021-05-15 Thread 罗百科
commit: b570cc1949e886b4e3ddcde94198c4c7c3924fc1
Author: Patrick Lauer  gentoo  org>
AuthorDate: Sat May 15 06:17:48 2021 +
Commit: 罗百科  gentoo  org>
CommitDate: Sat May 15 06:17:56 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b570cc19

app-arch/zstd: Bump to 1.5.0

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Patrick Lauer  gentoo.org>

 app-arch/zstd/Manifest  |  1 +
 app-arch/zstd/zstd-1.5.0.ebuild | 69 +
 2 files changed, 70 insertions(+)

diff --git a/app-arch/zstd/Manifest b/app-arch/zstd/Manifest
index f0e458f47e8..7950f8b80ca 100644
--- a/app-arch/zstd/Manifest
+++ b/app-arch/zstd/Manifest
@@ -1 +1,2 @@
 DIST zstd-1.4.9.tar.gz 1834843 BLAKE2B 
907f492bd023db9459bdc292a0bc4d1b6336d92dd7041eb2b36668589c20fcb98c411b85d78f92cd16d9b4a000d9c4125b5f966a5ca777034ae78210e639315b
 SHA512 
f529db9c094f9ae26428bf1fdfcc91c6d783d400980e0f0d802d2cf13c2be2931465ef568907e03841ff76a369a1447e7371f8799d8526edb9a513ba5c6db133
+DIST zstd-1.5.0.tar.gz 1867111 BLAKE2B 
e503d17478b94128eb3ec578178f9d7023e941434dcc07790e12fd6c9933518f34fba5d7795ab7b145e4e499597644a6edd2830106649c5a749c962d5afe2f31
 SHA512 
25b657529a698eec891f92ff4a085d1fd95d2ff938ce52c8a4ff6163eb0b668ec642dd09e0db190652638cd92371006afa01d8e437437762c4097ad301675c33

diff --git a/app-arch/zstd/zstd-1.5.0.ebuild b/app-arch/zstd/zstd-1.5.0.ebuild
new file mode 100644
index 000..a7b21ee6fe5
--- /dev/null
+++ b/app-arch/zstd/zstd-1.5.0.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic multilib-minimal toolchain-funcs
+
+DESCRIPTION="zstd fast compression library"
+HOMEPAGE="https://facebook.github.io/zstd/;
+SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="|| ( BSD GPL-2 )"
+SLOT="0/1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="lz4 static-libs +threads"
+
+RDEPEND="app-arch/xz-utils
+   lz4? ( app-arch/lz4 )"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+   default
+   multilib_copy_sources
+
+   # Workaround #713940 / https://github.com/facebook/zstd/issues/2045
+   # where upstream build system does not add -pthread for Makefile-based
+   # build system.
+   use threads && append-flags $(test-flags-CCLD -pthread)
+}
+
+mymake() {
+   emake \
+   CC="$(tc-getCC)" \
+   CXX="$(tc-getCXX)" \
+   AR="$(tc-getAR)" \
+   PREFIX="${EPREFIX}/usr" \
+   LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
+   "${@}"
+}
+
+multilib_src_compile() {
+   local libzstd_targets=( libzstd{,.a}$(usex threads '-mt' '') )
+
+   mymake -C lib ${libzstd_targets[@]} libzstd.pc
+
+   if multilib_is_native_abi ; then
+   mymake HAVE_LZ4="$(usex lz4 1 0)" zstd
+
+   mymake -C contrib/pzstd
+   fi
+}
+
+multilib_src_install() {
+   mymake -C lib DESTDIR="${D}" install
+
+   if multilib_is_native_abi ; then
+   mymake -C programs DESTDIR="${D}" install
+
+   mymake -C contrib/pzstd DESTDIR="${D}" install
+   fi
+}
+
+multilib_src_install_all() {
+   einstalldocs
+
+   if ! use static-libs; then
+   find "${ED}" -name "*.a" -delete || die
+   fi
+}



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2021-04-14 Thread Mike Gilbert
commit: afcb0e54065caa7dcff4c117767e711c72c22d23
Author: Mike Gilbert  gentoo  org>
AuthorDate: Thu Apr 15 02:49:17 2021 +
Commit: Mike Gilbert  gentoo  org>
CommitDate: Thu Apr 15 02:51:08 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afcb0e54

app-arch/zstd: add base-system as a maintainer

Signed-off-by: Mike Gilbert  gentoo.org>

 app-arch/zstd/metadata.xml | 17 ++---
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/app-arch/zstd/metadata.xml b/app-arch/zstd/metadata.xml
index b9782eebc30..934435006f1 100644
--- a/app-arch/zstd/metadata.xml
+++ b/app-arch/zstd/metadata.xml
@@ -1,11 +1,14 @@
 
 http://www.gentoo.org/dtd/metadata.dtd;>
 
-  
-patr...@gentoo.org
-Patrick Lauer
-  
-  
-facebook/zstd
-  
+   
+   patr...@gentoo.org
+   Patrick Lauer
+   
+   
+   base-sys...@gentoo.org
+   
+   
+   facebook/zstd
+   
 



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/files/, app-arch/zstd/

2021-03-31 Thread Mikle Kolyada
commit: fe4310bcbcacb83aa15d13bb28919e6faea0f44b
Author: Mikle Kolyada  gentoo  org>
AuthorDate: Wed Mar 31 08:06:20 2021 +
Commit: Mikle Kolyada  gentoo  org>
CommitDate: Wed Mar 31 08:06:37 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe4310bc

app-arch/zstd: Security cleanup

Bug: https://bugs.gentoo.org/774258
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Mikle Kolyada  gentoo.org>

 app-arch/zstd/Manifest |   3 -
 app-arch/zstd/files/zstd-1.4.4-make43.patch|  60 --
 .../zstd/files/zstd-1.4.4-pkgconfig_libdir.patch   | 215 -
 app-arch/zstd/files/zstd-1.4.5-fix-uclibc-ng.patch |  28 ---
 app-arch/zstd/zstd-1.4.4-r4.ebuild |  75 ---
 app-arch/zstd/zstd-1.4.5.ebuild|  73 ---
 app-arch/zstd/zstd-1.4.8-r1.ebuild |  69 ---
 7 files changed, 523 deletions(-)

diff --git a/app-arch/zstd/Manifest b/app-arch/zstd/Manifest
index cd831a81e3e..f0e458f47e8 100644
--- a/app-arch/zstd/Manifest
+++ b/app-arch/zstd/Manifest
@@ -1,4 +1 @@
-DIST zstd-1.4.4.tar.gz 1962617 BLAKE2B 
e21841a53b6c60703e5500cfc2a02923c4c3e57975aa57e1060310171e0d83d7c8eda1bd0510d5736db5c310d76847d2105ac5f614867fc3a9dc3086a035dfd7
 SHA512 
8209837e8eb14e474dfe21d5511085f46cef93b03ab77613fd41e7b8be652418231c38852669c8e0b55b78ad41ea2cb8008d0da122a83f8f27e32b5c86f045cf
-DIST zstd-1.4.5.tar.gz 1987927 BLAKE2B 
1497d4e87040e5c71466468ebf1a57f4073666f2b005229925bc1d95a4b4fcb2a51d88bb79be20f21860e5750da42f8aac21d2997421d07ba37bd6bb12a28b55
 SHA512 
b03c497c3e0590c3d384cb856e3024f144b2bfac0d805d80e68deafa612c68237f12a2d657416d476a28059e80936c79f099fc42331464b417593895ea214387
-DIST zstd-1.4.8.tar.gz 1816546 BLAKE2B 
950d03c408e9d3fc2081969553c46247a1b8c13a22542effbf70373625bbfeb2a810e0adf0e1c6180cef590e7a28487191b1a577982fddc7a00d1507b461efd5
 SHA512 
61ce5d61e24770e70c32680f32d58542d6a1b5cc65737256561d8e34c77a82c1d36c769c179da5ea8ed5ecb035b4a4af292b9717c65976172e282859a332137a
 DIST zstd-1.4.9.tar.gz 1834843 BLAKE2B 
907f492bd023db9459bdc292a0bc4d1b6336d92dd7041eb2b36668589c20fcb98c411b85d78f92cd16d9b4a000d9c4125b5f966a5ca777034ae78210e639315b
 SHA512 
f529db9c094f9ae26428bf1fdfcc91c6d783d400980e0f0d802d2cf13c2be2931465ef568907e03841ff76a369a1447e7371f8799d8526edb9a513ba5c6db133

diff --git a/app-arch/zstd/files/zstd-1.4.4-make43.patch 
b/app-arch/zstd/files/zstd-1.4.4-make43.patch
deleted file mode 100644
index 679e0b791e3..000
--- a/app-arch/zstd/files/zstd-1.4.4-make43.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From 06a57cf57e3c4e887cadcf688e3081154f3f6db4 Mon Sep 17 00:00:00 2001
-From: Bimba Shrestha 
-Date: Thu, 6 Feb 2020 14:10:51 -0800
-Subject: [PATCH] [build-issue] More portable header prefix usage (#) (#1987)
-
-* make 4.3 build issue fix
-
-* Changing header name and adding comment

- programs/Makefile | 11 +++
- 1 file changed, 7 insertions(+), 4 deletions(-)
-
-diff --git a/programs/Makefile b/programs/Makefile
-index b75314a8..a9ee3cb5 100644
 a/programs/Makefile
-+++ b/programs/Makefile
-@@ -94,9 +94,12 @@ endif
- 
- VOID = /dev/null
- 
-+# Make 4.3 doesn't support '\#' anymore (https://lwn.net/Articles/810071/)
-+NUM_SYMBOL := \#
-+
- # thread detection
- NO_THREAD_MSG := ==> no threads, building without multithreading support
--HAVE_PTHREAD := $(shell printf '\#include \nint main(void) { 
return 0; }' > have_pthread.c && $(CC) $(FLAGS) -o have_pthread$(EXT) 
have_pthread.c -pthread 2> $(VOID) && rm have_pthread$(EXT) && echo 1 || echo 
0; rm have_pthread.c)
-+HAVE_PTHREAD := $(shell printf '$(NUM_SYMBOL)include \nint 
main(void) { return 0; }' > have_pthread.c && $(CC) $(FLAGS) -o 
have_pthread$(EXT) have_pthread.c -pthread 2> $(VOID) && rm have_pthread$(EXT) 
&& echo 1 || echo 0; rm have_pthread.c)
- HAVE_THREAD := $(shell [ "$(HAVE_PTHREAD)" -eq "1" -o -n "$(filter 
Windows%,$(OS))" ] && echo 1 || echo 0)
- ifeq ($(HAVE_THREAD), 1)
- THREAD_MSG := ==> building with threading support
-@@ -108,7 +111,7 @@ endif
- 
- # zlib detection
- NO_ZLIB_MSG := ==> no zlib, building zstd without .gz support
--HAVE_ZLIB := $(shell printf '\#include \nint main(void) { return 0; 
}' > have_zlib.c && $(CC) $(FLAGS) -o have_zlib$(EXT) have_zlib.c -lz 2> 
$(VOID) && rm have_zlib$(EXT) && echo 1 || echo 0; rm have_zlib.c)
-+HAVE_ZLIB := $(shell printf '$(NUM_SYMBOL)include \nint main(void) { 
return 0; }' > have_zlib.c && $(CC) $(FLAGS) -o have_zlib$(EXT) have_zlib.c -lz 
2> $(VOID) && rm have_zlib$(EXT) && echo 1 || echo 0; rm have_zlib.c)
- ifeq ($(HAVE_ZLIB), 1)
- ZLIB_MSG := ==> building zstd with .gz compression support
- ZLIBCPP = -DZSTD_GZCOMPRESS -DZSTD_GZDECOMPRESS
-@@ -119,7 +122,7 @@ endif
- 
- # lzma detection
- NO_LZMA_MSG := ==> no liblzma, building zstd without .xz/.lzma support
--HAVE_LZMA := $(shell printf '\#include \nint main(void) { return 0; 
}' > have_lzma.c && $(CC) $(FLAGS) -o have_lzma$(EXT) have_lzma.c -llzma 2> 
$(VOID) && 

[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2021-03-27 Thread Sam James
commit: 25d2100593599196eb31cd2a9cdabaec285eb226
Author: Sam James  gentoo  org>
AuthorDate: Sat Mar 27 16:04:02 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Mar 27 16:04:02 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25d21005

app-arch/zstd: Stabilize 1.4.9 arm, #774258

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.4.9.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.4.9.ebuild b/app-arch/zstd/zstd-1.4.9.ebuild
index 28bd4413d0d..0fe3f2a85ae 100644
--- a/app-arch/zstd/zstd-1.4.9.ebuild
+++ b/app-arch/zstd/zstd-1.4.9.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 ~arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv s390 sparc 
x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv s390 sparc 
x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2021-03-26 Thread Agostino Sarubbo
commit: f5c076852ad74c85bf0b7c0186809836e1083d68
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Fri Mar 26 11:49:55 2021 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Fri Mar 26 11:49:55 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5c07685

app-arch/zstd: s390 stable wrt bug #774258

Package-Manager: Portage-3.0.13, Repoman-3.0.2
RepoMan-Options: --include-arches="s390"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 app-arch/zstd/zstd-1.4.9.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.4.9.ebuild b/app-arch/zstd/zstd-1.4.9.ebuild
index b124e86fc1e..28bd4413d0d 100644
--- a/app-arch/zstd/zstd-1.4.9.ebuild
+++ b/app-arch/zstd/zstd-1.4.9.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 ~arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 
sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv s390 sparc 
x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2021-03-26 Thread Sam James
commit: 4d0a6663e20fe418109e35ceda36e11ce03f9724
Author: Sam James  gentoo  org>
AuthorDate: Fri Mar 26 11:33:54 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Mar 26 11:33:54 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d0a6663

app-arch/zstd: Stabilize 1.4.9 arm64, #774258

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.4.9.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.4.9.ebuild b/app-arch/zstd/zstd-1.4.9.ebuild
index d60e73f19ce..b124e86fc1e 100644
--- a/app-arch/zstd/zstd-1.4.9.ebuild
+++ b/app-arch/zstd/zstd-1.4.9.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 ~arm ~arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 
sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 
sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2021-03-25 Thread Sam James
commit: 10a51a57c626fca50fe2aef1cfb4fafa0e5c3ddc
Author: Sam James  gentoo  org>
AuthorDate: Thu Mar 25 23:44:07 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Mar 25 23:44:07 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10a51a57

app-arch/zstd: Stabilize 1.4.9 ppc64, #774258

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.4.9.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.4.9.ebuild b/app-arch/zstd/zstd-1.4.9.ebuild
index 694cc693faf..d60e73f19ce 100644
--- a/app-arch/zstd/zstd-1.4.9.ebuild
+++ b/app-arch/zstd/zstd-1.4.9.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 ~arm ~arm64 hppa ~ia64 ~mips ppc ~ppc64 ~riscv ~s390 
sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm ~arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 
sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2021-03-25 Thread Sam James
commit: ed6b078fb8e16dd8744d3423849d6a0d77ba6ba1
Author: Sam James  gentoo  org>
AuthorDate: Thu Mar 25 23:43:46 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Mar 25 23:43:46 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed6b078f

app-arch/zstd: Stabilize 1.4.9 ppc, #774258

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.4.9.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.4.9.ebuild b/app-arch/zstd/zstd-1.4.9.ebuild
index 1ef5a7b5d71..694cc693faf 100644
--- a/app-arch/zstd/zstd-1.4.9.ebuild
+++ b/app-arch/zstd/zstd-1.4.9.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 ~arm ~arm64 hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm ~arm64 hppa ~ia64 ~mips ppc ~ppc64 ~riscv ~s390 
sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2021-03-25 Thread Sam James
commit: 8935db3782608280e09fe8c61b8c9e0b11a6affd
Author: Sam James  gentoo  org>
AuthorDate: Thu Mar 25 23:19:19 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Mar 25 23:19:19 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8935db37

app-arch/zstd: Stabilize 1.4.9 sparc, #774258

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.4.9.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.4.9.ebuild b/app-arch/zstd/zstd-1.4.9.ebuild
index 1cfda4d0dc9..1ef5a7b5d71 100644
--- a/app-arch/zstd/zstd-1.4.9.ebuild
+++ b/app-arch/zstd/zstd-1.4.9.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 ~arm ~arm64 hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm ~arm64 hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2021-03-25 Thread Sam James
commit: c1f17d00edaa2c96664d81dea5cbabf99e9bf9f8
Author: Sam James  gentoo  org>
AuthorDate: Thu Mar 25 23:16:14 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Mar 25 23:16:14 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1f17d00

app-arch/zstd: Stabilize 1.4.9 x86, #774258

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.4.9.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.4.9.ebuild b/app-arch/zstd/zstd-1.4.9.ebuild
index 8b07ca72238..1cfda4d0dc9 100644
--- a/app-arch/zstd/zstd-1.4.9.ebuild
+++ b/app-arch/zstd/zstd-1.4.9.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 ~arm ~arm64 hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm ~arm64 hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2021-03-25 Thread Sam James
commit: f250778f16b8df95c3d5d1e97f03d5ba41ae9406
Author: Sam James  gentoo  org>
AuthorDate: Thu Mar 25 23:13:31 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Mar 25 23:13:51 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f250778f

app-arch/zstd: Stabilize 1.4.9 amd64, #774258

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.4.9.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.4.9.ebuild b/app-arch/zstd/zstd-1.4.9.ebuild
index b41143f77e8..8b07ca72238 100644
--- a/app-arch/zstd/zstd-1.4.9.ebuild
+++ b/app-arch/zstd/zstd-1.4.9.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm ~arm64 hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2021-03-24 Thread Sergei Trofimovich
commit: 4966c997558bf092ff20a65269e1c6af733efeff
Author: Rolf Eike Beer  sf-mail  de>
AuthorDate: Wed Mar 24 17:53:58 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Wed Mar 24 21:12:50 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4966c997

app-arch/zstd: stable 1.4.9 for hppa, bug #774258

Package-Manager: Portage-3.0.13, Repoman-3.0.2
RepoMan-Options: --include-arches="hppa"
Signed-off-by: Rolf Eike Beer  sf-mail.de>
Signed-off-by: Sergei Trofimovich  gentoo.org>

 app-arch/zstd/zstd-1.4.9.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.4.9.ebuild b/app-arch/zstd/zstd-1.4.9.ebuild
index a7b21ee6fe5..b41143f77e8 100644
--- a/app-arch/zstd/zstd-1.4.9.ebuild
+++ b/app-arch/zstd/zstd-1.4.9.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2021-03-04 Thread 罗百科
commit: eeaeb711d024d7a3792119d52b37c7b30f1afb53
Author: Patrick Lauer  gentoo  org>
AuthorDate: Thu Mar  4 08:30:40 2021 +
Commit: 罗百科  gentoo  org>
CommitDate: Thu Mar  4 08:30:55 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eeaeb711

app-arch/zstd: Bump to 1.4.9

Package-Manager: Portage-3.0.16, Repoman-3.0.2
Signed-off-by: Patrick Lauer  gentoo.org>

 app-arch/zstd/Manifest  |  1 +
 app-arch/zstd/zstd-1.4.9.ebuild | 69 +
 2 files changed, 70 insertions(+)

diff --git a/app-arch/zstd/Manifest b/app-arch/zstd/Manifest
index fcb880380f7..cd831a81e3e 100644
--- a/app-arch/zstd/Manifest
+++ b/app-arch/zstd/Manifest
@@ -1,3 +1,4 @@
 DIST zstd-1.4.4.tar.gz 1962617 BLAKE2B 
e21841a53b6c60703e5500cfc2a02923c4c3e57975aa57e1060310171e0d83d7c8eda1bd0510d5736db5c310d76847d2105ac5f614867fc3a9dc3086a035dfd7
 SHA512 
8209837e8eb14e474dfe21d5511085f46cef93b03ab77613fd41e7b8be652418231c38852669c8e0b55b78ad41ea2cb8008d0da122a83f8f27e32b5c86f045cf
 DIST zstd-1.4.5.tar.gz 1987927 BLAKE2B 
1497d4e87040e5c71466468ebf1a57f4073666f2b005229925bc1d95a4b4fcb2a51d88bb79be20f21860e5750da42f8aac21d2997421d07ba37bd6bb12a28b55
 SHA512 
b03c497c3e0590c3d384cb856e3024f144b2bfac0d805d80e68deafa612c68237f12a2d657416d476a28059e80936c79f099fc42331464b417593895ea214387
 DIST zstd-1.4.8.tar.gz 1816546 BLAKE2B 
950d03c408e9d3fc2081969553c46247a1b8c13a22542effbf70373625bbfeb2a810e0adf0e1c6180cef590e7a28487191b1a577982fddc7a00d1507b461efd5
 SHA512 
61ce5d61e24770e70c32680f32d58542d6a1b5cc65737256561d8e34c77a82c1d36c769c179da5ea8ed5ecb035b4a4af292b9717c65976172e282859a332137a
+DIST zstd-1.4.9.tar.gz 1834843 BLAKE2B 
907f492bd023db9459bdc292a0bc4d1b6336d92dd7041eb2b36668589c20fcb98c411b85d78f92cd16d9b4a000d9c4125b5f966a5ca777034ae78210e639315b
 SHA512 
f529db9c094f9ae26428bf1fdfcc91c6d783d400980e0f0d802d2cf13c2be2931465ef568907e03841ff76a369a1447e7371f8799d8526edb9a513ba5c6db133

diff --git a/app-arch/zstd/zstd-1.4.9.ebuild b/app-arch/zstd/zstd-1.4.9.ebuild
new file mode 100644
index 000..a7b21ee6fe5
--- /dev/null
+++ b/app-arch/zstd/zstd-1.4.9.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic multilib-minimal toolchain-funcs
+
+DESCRIPTION="zstd fast compression library"
+HOMEPAGE="https://facebook.github.io/zstd/;
+SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="|| ( BSD GPL-2 )"
+SLOT="0/1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="lz4 static-libs +threads"
+
+RDEPEND="app-arch/xz-utils
+   lz4? ( app-arch/lz4 )"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+   default
+   multilib_copy_sources
+
+   # Workaround #713940 / https://github.com/facebook/zstd/issues/2045
+   # where upstream build system does not add -pthread for Makefile-based
+   # build system.
+   use threads && append-flags $(test-flags-CCLD -pthread)
+}
+
+mymake() {
+   emake \
+   CC="$(tc-getCC)" \
+   CXX="$(tc-getCXX)" \
+   AR="$(tc-getAR)" \
+   PREFIX="${EPREFIX}/usr" \
+   LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
+   "${@}"
+}
+
+multilib_src_compile() {
+   local libzstd_targets=( libzstd{,.a}$(usex threads '-mt' '') )
+
+   mymake -C lib ${libzstd_targets[@]} libzstd.pc
+
+   if multilib_is_native_abi ; then
+   mymake HAVE_LZ4="$(usex lz4 1 0)" zstd
+
+   mymake -C contrib/pzstd
+   fi
+}
+
+multilib_src_install() {
+   mymake -C lib DESTDIR="${D}" install
+
+   if multilib_is_native_abi ; then
+   mymake -C programs DESTDIR="${D}" install
+
+   mymake -C contrib/pzstd DESTDIR="${D}" install
+   fi
+}
+
+multilib_src_install_all() {
+   einstalldocs
+
+   if ! use static-libs; then
+   find "${ED}" -name "*.a" -delete || die
+   fi
+}



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2021-01-06 Thread Fabian Groffen
commit: 27133e59b5a11c9bbd2303c09317681eefe6f21d
Author: Fabian Groffen  gentoo  org>
AuthorDate: Wed Jan  6 12:51:50 2021 +
Commit: Fabian Groffen  gentoo  org>
CommitDate: Wed Jan  6 12:51:56 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27133e59

app-arch/zstd: drop x86-macos

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Fabian Groffen  gentoo.org>

 app-arch/zstd/zstd-1.4.4-r4.ebuild | 4 ++--
 app-arch/zstd/zstd-1.4.5.ebuild| 4 ++--
 app-arch/zstd/zstd-1.4.8-r1.ebuild | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/app-arch/zstd/zstd-1.4.4-r4.ebuild 
b/app-arch/zstd/zstd-1.4.4-r4.ebuild
index ebb7e04a9cc..b361ae879fc 100644
--- a/app-arch/zstd/zstd-1.4.4-r4.ebuild
+++ b/app-arch/zstd/zstd-1.4.4-r4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv s390 sparc 
x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv s390 sparc 
x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils

diff --git a/app-arch/zstd/zstd-1.4.5.ebuild b/app-arch/zstd/zstd-1.4.5.ebuild
index 452934eff4c..e8a10f35729 100644
--- a/app-arch/zstd/zstd-1.4.5.ebuild
+++ b/app-arch/zstd/zstd-1.4.5.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv s390 sparc 
x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv s390 sparc 
x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils

diff --git a/app-arch/zstd/zstd-1.4.8-r1.ebuild 
b/app-arch/zstd/zstd-1.4.8-r1.ebuild
index 414788bac8f..a7b21ee6fe5 100644
--- a/app-arch/zstd/zstd-1.4.8-r1.ebuild
+++ b/app-arch/zstd/zstd-1.4.8-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2020-12-23 Thread Sergei Trofimovich
commit: 775b75274276e8d7f4ad0240ebde9527accab3ac
Author: Rolf Eike Beer  sf-mail  de>
AuthorDate: Wed Dec 23 11:48:04 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Wed Dec 23 13:57:21 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=775b7527

app-arch/zstd: stable 1.4.5 for hppa/sparc, bug #760750

Package-Manager: Portage-3.0.9, Repoman-3.0.2
RepoMan-Options: --include-arches="hppa sparc"
Signed-off-by: Rolf Eike Beer  sf-mail.de>
Signed-off-by: Sergei Trofimovich  gentoo.org>

 app-arch/zstd/zstd-1.4.5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.4.5.ebuild b/app-arch/zstd/zstd-1.4.5.ebuild
index 1c165bba36a..452934eff4c 100644
--- a/app-arch/zstd/zstd-1.4.5.ebuild
+++ b/app-arch/zstd/zstd-1.4.5.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv s390 
~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv s390 sparc 
x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2020-12-22 Thread Sam James
commit: 5205c3c53de333600f99fcd255f494c795d37b6a
Author: Sam James  gentoo  org>
AuthorDate: Tue Dec 22 23:47:46 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Dec 22 23:47:55 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5205c3c5

app-arch/zstd: drop upstreamed/irrelevant patch

Revbumping because the patch still applies successfully
and could have runtime effects (let's be cautious).

Closes: https://bugs.gentoo.org/761121
Package-Manager: Portage-3.0.12-prefix, Repoman-3.0.2
Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/{zstd-1.4.8.ebuild => zstd-1.4.8-r1.ebuild} | 4 
 1 file changed, 4 deletions(-)

diff --git a/app-arch/zstd/zstd-1.4.8.ebuild 
b/app-arch/zstd/zstd-1.4.8-r1.ebuild
similarity index 96%
rename from app-arch/zstd/zstd-1.4.8.ebuild
rename to app-arch/zstd/zstd-1.4.8-r1.ebuild
index 96469d5a7f8..414788bac8f 100644
--- a/app-arch/zstd/zstd-1.4.8.ebuild
+++ b/app-arch/zstd/zstd-1.4.8-r1.ebuild
@@ -18,10 +18,6 @@ RDEPEND="app-arch/xz-utils
lz4? ( app-arch/lz4 )"
 DEPEND="${RDEPEND}"
 
-PATCHES=(
-   "${FILESDIR}/${PN}-1.4.5-fix-uclibc-ng.patch" #741972
-)
-
 src_prepare() {
default
multilib_copy_sources



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2020-12-21 Thread Sam James
commit: c14a2777da6a8c6a0d7206145146f29c4ef92ac3
Author: Sam James  gentoo  org>
AuthorDate: Tue Dec 22 06:28:37 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Dec 22 06:28:37 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c14a2777

app-arch/zstd: Stabilize 1.4.5 s390, #760750

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.4.5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.4.5.ebuild b/app-arch/zstd/zstd-1.4.5.ebuild
index c2d385d0ed5..1c165bba36a 100644
--- a/app-arch/zstd/zstd-1.4.5.ebuild
+++ b/app-arch/zstd/zstd-1.4.5.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 
~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv s390 
~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2020-12-21 Thread Sam James
commit: 5b39b09747e3408c8bbcc76b23abe398c779de93
Author: Sam James  gentoo  org>
AuthorDate: Tue Dec 22 05:04:54 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Dec 22 05:04:54 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b39b097

app-arch/zstd: Stabilize 1.4.5 ppc64, #760750

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.4.5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.4.5.ebuild b/app-arch/zstd/zstd-1.4.5.ebuild
index 427dba19c98..c2d385d0ed5 100644
--- a/app-arch/zstd/zstd-1.4.5.ebuild
+++ b/app-arch/zstd/zstd-1.4.5.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ~ppc64 ~riscv ~s390 
~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 
~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2020-12-21 Thread Sam James
commit: 1e4d5db9790962599fe2bab791dc55397453968b
Author: Sam James  gentoo  org>
AuthorDate: Tue Dec 22 01:31:34 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Dec 22 01:31:34 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e4d5db9

app-arch/zstd: Stabilize 1.4.5 ppc, #760750

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.4.5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.4.5.ebuild b/app-arch/zstd/zstd-1.4.5.ebuild
index 42fef20092e..427dba19c98 100644
--- a/app-arch/zstd/zstd-1.4.5.ebuild
+++ b/app-arch/zstd/zstd-1.4.5.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ~ppc64 ~riscv ~s390 
~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2020-12-21 Thread Sam James
commit: 3612a35be6b2930820e9baedee194562fcfb68a3
Author: Sam James  gentoo  org>
AuthorDate: Mon Dec 21 18:00:23 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Dec 21 18:01:04 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3612a35b

app-arch/zstd: Stabilize 1.4.5 arm64, #760750

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.4.5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.4.5.ebuild b/app-arch/zstd/zstd-1.4.5.ebuild
index 4632ada403a..42fef20092e 100644
--- a/app-arch/zstd/zstd-1.4.5.ebuild
+++ b/app-arch/zstd/zstd-1.4.5.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2020-12-20 Thread Sam James
commit: 6134f9c4ef5578203e7e9222a61d04683d182dae
Author: Sam James  gentoo  org>
AuthorDate: Sun Dec 20 20:06:35 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Dec 20 20:06:35 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6134f9c4

app-arch/zstd: Stabilize 1.4.5 arm, #760750

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.4.5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.4.5.ebuild b/app-arch/zstd/zstd-1.4.5.ebuild
index d525a9955a0..4632ada403a 100644
--- a/app-arch/zstd/zstd-1.4.5.ebuild
+++ b/app-arch/zstd/zstd-1.4.5.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2020-12-20 Thread Sam James
commit: aacba961699e1da75bba0066681096ddfb309051
Author: Sam James  gentoo  org>
AuthorDate: Sun Dec 20 18:20:30 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Dec 20 18:20:30 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aacba961

app-arch/zstd: Stabilize 1.4.5 amd64, #760750

Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/zstd-1.4.5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.4.5.ebuild b/app-arch/zstd/zstd-1.4.5.ebuild
index e1538195b66..d525a9955a0 100644
--- a/app-arch/zstd/zstd-1.4.5.ebuild
+++ b/app-arch/zstd/zstd-1.4.5.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2020-12-20 Thread Thomas Deutschmann
commit: ff230155584fe54e202d8d88bf15864201fb3f9c
Author: Thomas Deutschmann  gentoo  org>
AuthorDate: Sun Dec 20 16:10:48 2020 +
Commit: Thomas Deutschmann  gentoo  org>
CommitDate: Sun Dec 20 16:30:28 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff230155

app-arch/zstd: x86 stable (bug #760750)

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Thomas Deutschmann  gentoo.org>

 app-arch/zstd/zstd-1.4.5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/zstd-1.4.5.ebuild b/app-arch/zstd/zstd-1.4.5.ebuild
index 110b0378b77..e1538195b66 100644
--- a/app-arch/zstd/zstd-1.4.5.ebuild
+++ b/app-arch/zstd/zstd-1.4.5.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0/1"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="lz4 static-libs +threads"
 
 RDEPEND="app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2020-12-19 Thread Sam James
commit: a4e0cc4c8e89ec34e75a8f7cc8bea6def28705e1
Author: Sam James  gentoo  org>
AuthorDate: Sat Dec 19 17:42:06 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Dec 19 17:42:06 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4e0cc4c

app-arch/zstd: bump to 1.4.8

1.4.7 contained a regression w/ unaligned accesses
on some architectures.

Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/Manifest | 2 +-
 app-arch/zstd/{zstd-1.4.7.ebuild => zstd-1.4.8.ebuild} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-arch/zstd/Manifest b/app-arch/zstd/Manifest
index 01a87b97e2a..fcb880380f7 100644
--- a/app-arch/zstd/Manifest
+++ b/app-arch/zstd/Manifest
@@ -1,3 +1,3 @@
 DIST zstd-1.4.4.tar.gz 1962617 BLAKE2B 
e21841a53b6c60703e5500cfc2a02923c4c3e57975aa57e1060310171e0d83d7c8eda1bd0510d5736db5c310d76847d2105ac5f614867fc3a9dc3086a035dfd7
 SHA512 
8209837e8eb14e474dfe21d5511085f46cef93b03ab77613fd41e7b8be652418231c38852669c8e0b55b78ad41ea2cb8008d0da122a83f8f27e32b5c86f045cf
 DIST zstd-1.4.5.tar.gz 1987927 BLAKE2B 
1497d4e87040e5c71466468ebf1a57f4073666f2b005229925bc1d95a4b4fcb2a51d88bb79be20f21860e5750da42f8aac21d2997421d07ba37bd6bb12a28b55
 SHA512 
b03c497c3e0590c3d384cb856e3024f144b2bfac0d805d80e68deafa612c68237f12a2d657416d476a28059e80936c79f099fc42331464b417593895ea214387
-DIST zstd-1.4.7.tar.gz 1817193 BLAKE2B 
8a307fa7efca8baa45c61eb0e46c5b6eedff1459a9493d81ad7033b9050ccf96e39cfc0f5b913ea20fb64d5efa26063b70e36e6cc47077b17106f3b5135fd999
 SHA512 
720941fc484e36e2f2bd74f120966fc598781a7abb945ed2f553d4cb035fa007117d00b72979b037817fbaff60b0d72f698fc16561ccbd46b16ae2888b044548
+DIST zstd-1.4.8.tar.gz 1816546 BLAKE2B 
950d03c408e9d3fc2081969553c46247a1b8c13a22542effbf70373625bbfeb2a810e0adf0e1c6180cef590e7a28487191b1a577982fddc7a00d1507b461efd5
 SHA512 
61ce5d61e24770e70c32680f32d58542d6a1b5cc65737256561d8e34c77a82c1d36c769c179da5ea8ed5ecb035b4a4af292b9717c65976172e282859a332137a

diff --git a/app-arch/zstd/zstd-1.4.7.ebuild b/app-arch/zstd/zstd-1.4.8.ebuild
similarity index 100%
rename from app-arch/zstd/zstd-1.4.7.ebuild
rename to app-arch/zstd/zstd-1.4.8.ebuild



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/

2020-12-17 Thread 罗百科
commit: 17b1735f576911d430dead624bdcfdadc39ae3d2
Author: Patrick Lauer  gentoo  org>
AuthorDate: Thu Dec 17 10:12:39 2020 +
Commit: 罗百科  gentoo  org>
CommitDate: Thu Dec 17 10:13:00 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17b1735f

app-arch/zstd: Bump

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Patrick Lauer  gentoo.org>

 app-arch/zstd/Manifest  |  1 +
 app-arch/zstd/zstd-1.4.7.ebuild | 73 +
 2 files changed, 74 insertions(+)

diff --git a/app-arch/zstd/Manifest b/app-arch/zstd/Manifest
index 2619752ef2d..01a87b97e2a 100644
--- a/app-arch/zstd/Manifest
+++ b/app-arch/zstd/Manifest
@@ -1,2 +1,3 @@
 DIST zstd-1.4.4.tar.gz 1962617 BLAKE2B 
e21841a53b6c60703e5500cfc2a02923c4c3e57975aa57e1060310171e0d83d7c8eda1bd0510d5736db5c310d76847d2105ac5f614867fc3a9dc3086a035dfd7
 SHA512 
8209837e8eb14e474dfe21d5511085f46cef93b03ab77613fd41e7b8be652418231c38852669c8e0b55b78ad41ea2cb8008d0da122a83f8f27e32b5c86f045cf
 DIST zstd-1.4.5.tar.gz 1987927 BLAKE2B 
1497d4e87040e5c71466468ebf1a57f4073666f2b005229925bc1d95a4b4fcb2a51d88bb79be20f21860e5750da42f8aac21d2997421d07ba37bd6bb12a28b55
 SHA512 
b03c497c3e0590c3d384cb856e3024f144b2bfac0d805d80e68deafa612c68237f12a2d657416d476a28059e80936c79f099fc42331464b417593895ea214387
+DIST zstd-1.4.7.tar.gz 1817193 BLAKE2B 
8a307fa7efca8baa45c61eb0e46c5b6eedff1459a9493d81ad7033b9050ccf96e39cfc0f5b913ea20fb64d5efa26063b70e36e6cc47077b17106f3b5135fd999
 SHA512 
720941fc484e36e2f2bd74f120966fc598781a7abb945ed2f553d4cb035fa007117d00b72979b037817fbaff60b0d72f698fc16561ccbd46b16ae2888b044548

diff --git a/app-arch/zstd/zstd-1.4.7.ebuild b/app-arch/zstd/zstd-1.4.7.ebuild
new file mode 100644
index 000..96469d5a7f8
--- /dev/null
+++ b/app-arch/zstd/zstd-1.4.7.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic multilib-minimal toolchain-funcs
+
+DESCRIPTION="zstd fast compression library"
+HOMEPAGE="https://facebook.github.io/zstd/;
+SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="|| ( BSD GPL-2 )"
+SLOT="0/1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="lz4 static-libs +threads"
+
+RDEPEND="app-arch/xz-utils
+   lz4? ( app-arch/lz4 )"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+   "${FILESDIR}/${PN}-1.4.5-fix-uclibc-ng.patch" #741972
+)
+
+src_prepare() {
+   default
+   multilib_copy_sources
+
+   # Workaround #713940 / https://github.com/facebook/zstd/issues/2045
+   # where upstream build system does not add -pthread for Makefile-based
+   # build system.
+   use threads && append-flags $(test-flags-CCLD -pthread)
+}
+
+mymake() {
+   emake \
+   CC="$(tc-getCC)" \
+   CXX="$(tc-getCXX)" \
+   AR="$(tc-getAR)" \
+   PREFIX="${EPREFIX}/usr" \
+   LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
+   "${@}"
+}
+
+multilib_src_compile() {
+   local libzstd_targets=( libzstd{,.a}$(usex threads '-mt' '') )
+
+   mymake -C lib ${libzstd_targets[@]} libzstd.pc
+
+   if multilib_is_native_abi ; then
+   mymake HAVE_LZ4="$(usex lz4 1 0)" zstd
+
+   mymake -C contrib/pzstd
+   fi
+}
+
+multilib_src_install() {
+   mymake -C lib DESTDIR="${D}" install
+
+   if multilib_is_native_abi ; then
+   mymake -C programs DESTDIR="${D}" install
+
+   mymake -C contrib/pzstd DESTDIR="${D}" install
+   fi
+}
+
+multilib_src_install_all() {
+   einstalldocs
+
+   if ! use static-libs; then
+   find "${ED}" -name "*.a" -delete || die
+   fi
+}



[gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/, app-arch/zstd/files/

2020-10-06 Thread Sam James
commit: 140cb6ad1f0a8d8217453aa2ccb16e00d5a02c0a
Author: stefson  yahoo  de>
AuthorDate: Sun Sep 27 08:26:54 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Oct  6 13:53:59 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=140cb6ad

app-arch/zstd: fix compile with uclibc

Closes: https://bugs.gentoo.org/741972

Signed-off-by: Steffen Kuhn  yandex.com>
Closes: https://github.com/gentoo/gentoo/pull/17691
Signed-off-by: Sam James  gentoo.org>

 app-arch/zstd/files/zstd-1.4.5-fix-uclibc-ng.patch | 28 ++
 app-arch/zstd/zstd-1.4.4-r4.ebuild |  1 +
 app-arch/zstd/zstd-1.4.5.ebuild|  4 
 3 files changed, 33 insertions(+)

diff --git a/app-arch/zstd/files/zstd-1.4.5-fix-uclibc-ng.patch 
b/app-arch/zstd/files/zstd-1.4.5-fix-uclibc-ng.patch
new file mode 100644
index 000..e4c2335d199
--- /dev/null
+++ b/app-arch/zstd/files/zstd-1.4.5-fix-uclibc-ng.patch
@@ -0,0 +1,28 @@
+From 1dcc4787965aa8f4af48ed5a2154185750bbaff5 Mon Sep 17 00:00:00 2001
+From: Yann Collet 
+Date: Mon, 13 Jul 2020 14:16:33 -0700
+Subject: [PATCH] fix uclibc's st_mtim
+
+reported and suggested by @ewildgoose (#1872)
+---
+ programs/platform.h | 6 ++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/programs/platform.h b/programs/platform.h
+index 2b4b9f2d8..68be70bb3 100644
+--- a/programs/platform.h
 b/programs/platform.h
+@@ -102,6 +102,12 @@ extern "C" {
+ #  define PLATFORM_POSIX_VERSION 1
+ #endif
+ 
++#ifdef __UCLIBC__
++# ifndef __USE_MISC
++#  define __USE_MISC /* enable st_mtim on uclibc */
++# endif
++#endif
++
+ #  else  /* non-unix target platform (like Windows) */
+ #define PLATFORM_POSIX_VERSION 0
+ #  endif
+

diff --git a/app-arch/zstd/zstd-1.4.4-r4.ebuild 
b/app-arch/zstd/zstd-1.4.4-r4.ebuild
index 8c6ab8a0fd5..ebb7e04a9cc 100644
--- a/app-arch/zstd/zstd-1.4.4-r4.ebuild
+++ b/app-arch/zstd/zstd-1.4.4-r4.ebuild
@@ -21,6 +21,7 @@ DEPEND="${RDEPEND}"
 PATCHES=(
"${FILESDIR}/${P}-pkgconfig_libdir.patch" #700780
"${FILESDIR}/${P}-make43.patch" #708110
+   "${FILESDIR}/${PN}-1.4.5-fix-uclibc-ng.patch" #741972
 )
 
 src_prepare() {

diff --git a/app-arch/zstd/zstd-1.4.5.ebuild b/app-arch/zstd/zstd-1.4.5.ebuild
index 414788bac8f..110b0378b77 100644
--- a/app-arch/zstd/zstd-1.4.5.ebuild
+++ b/app-arch/zstd/zstd-1.4.5.ebuild
@@ -18,6 +18,10 @@ RDEPEND="app-arch/xz-utils
lz4? ( app-arch/lz4 )"
 DEPEND="${RDEPEND}"
 
+PATCHES=(
+   "${FILESDIR}/${P}-fix-uclibc-ng.patch" #741972
+)
+
 src_prepare() {
default
multilib_copy_sources



  1   2   >