[gentoo-commits] repo/gentoo:master commit in: sys-process/audit/

2024-09-08 Thread Jason Zaman
commit: f0176acf2306f140bb807c63da8d283e4e1e5cbd
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Sep  8 23:36:23 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Sep  8 23:36:23 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0176acf

sys-process/audit: stabilize 4.0.1-r1, 3.1.4-r1 for amd64, x86

Signed-off-by: Jason Zaman  gentoo.org>

 sys-process/audit/audit-3.1.4-r1.ebuild | 2 +-
 sys-process/audit/audit-4.0.1-r1.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys-process/audit/audit-3.1.4-r1.ebuild 
b/sys-process/audit/audit-3.1.4-r1.ebuild
index 1dadef4e44bb..5810adf16ccd 100644
--- a/sys-process/audit/audit-3.1.4-r1.ebuild
+++ b/sys-process/audit/audit-3.1.4-r1.ebuild
@@ -17,7 +17,7 @@ SRC_URI="https://people.redhat.com/sgrubb/audit/${P}.tar.gz";
 
 LICENSE="GPL-2+ LGPL-2.1+"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc x86"
 IUSE="gssapi io-uring ldap python static-libs test"
 
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"

diff --git a/sys-process/audit/audit-4.0.1-r1.ebuild 
b/sys-process/audit/audit-4.0.1-r1.ebuild
index a94dca39c0c5..e2b32d41ee0a 100644
--- a/sys-process/audit/audit-4.0.1-r1.ebuild
+++ b/sys-process/audit/audit-4.0.1-r1.ebuild
@@ -17,7 +17,7 @@ SRC_URI="https://people.redhat.com/sgrubb/audit/${P}.tar.gz";
 
 LICENSE="GPL-2+ LGPL-2.1+"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc x86"
 IUSE="gssapi io-uring ldap python static-libs test"
 
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"



[gentoo-commits] repo/gentoo:master commit in: sys-process/audit/

2024-09-08 Thread Jason Zaman
commit: 0322f4d854f29094947d8a8be3efad4479dbbeb7
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Sep  8 23:23:49 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Sep  8 23:23:49 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0322f4d8

sys-process/audit: drop 3.1.3

Signed-off-by: Jason Zaman  gentoo.org>

 sys-process/audit/Manifest   |   1 -
 sys-process/audit/audit-3.1.3.ebuild | 197 ---
 2 files changed, 198 deletions(-)

diff --git a/sys-process/audit/Manifest b/sys-process/audit/Manifest
index efb7e2180891..d447a382ee89 100644
--- a/sys-process/audit/Manifest
+++ b/sys-process/audit/Manifest
@@ -1,4 +1,3 @@
 DIST audit-3.1.2.tar.gz 1219860 BLAKE2B 
dfdec470bf12cce6c570b3d260e65e2b49e8ac0761e6a6fbf7b4f4a57f92e88367cd74bfcb88e6d718619b88fea27ce963a977c9f4346c95d18a5310e217accb
 SHA512 
a97003a294ed3671df01e2952688e7d5eef59a35f6891feb53e67c4c7eab9ae8c2d18de41a5b5b20e0ad7156fac93aec05f32f6bc5eea706b42b6f27f676446a
-DIST audit-3.1.3.tar.gz 1225761 BLAKE2B 
97ee35fc722083d541e164b27fd318ec7be2a4e4e8774767d14c6a2e800092a37b7042a272db5d208c913fb36d295c5343bd6082237caf0fb561ec3c7a2883db
 SHA512 
7d6399ca97b171d5ea3cf7f7566bdabe9d5677a3a54c75411146dc2971106809a90d1a9cd0b1ba9b8af4cc409e6bee5876c7f2a0c54c42400fdcf9cfade58a8c
 DIST audit-3.1.4.tar.gz 1225648 BLAKE2B 
c6875f7d031e810469511ac8f86f05b2de7f19c044dbf67bc9d66430167fcf0f031e0279ce170a496b672a6fc99ee18b8cc39943e6faf3c19a24a381d2701439
 SHA512 
d26c498c91e838d97d3f199630650f509bb1e82b44d364306b20db32d4116fa73d775ef56c0fed2ec8d548b19215052691cbc80c74699bc87f2a0ea08cf664f5
 DIST audit-4.0.1.tar.gz 1194961 BLAKE2B 
590abf58e672921a432348f48936cfbff0b6ddfa47e77b3b20eaa00e5d1c4ce2fc8d10c1fc1cbc19d44c09a9f7dfbca76778c94d8d340485c2bb1bb3b5a3c95a
 SHA512 
7fbc426d0ddea340a36ceab52ac090e8e3dfb3450ebf50b478324a097f19ab4bb2cf78a2532644acb17e6114b59b8fda718affda9da62fb84181e3abf76039df

diff --git a/sys-process/audit/audit-3.1.3.ebuild 
b/sys-process/audit/audit-3.1.3.ebuild
deleted file mode 100644
index 32ea5f173385..
--- a/sys-process/audit/audit-3.1.3.ebuild
+++ /dev/null
@@ -1,197 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-# As with sys-libs/libcap-ng, same maintainer in Fedora as upstream, so
-# check Fedora's packaging 
(https://src.fedoraproject.org/rpms/audit/tree/rawhide)
-# on bumps (or if hitting a bug) to see what they've done there.
-
-PYTHON_COMPAT=( python3_{10..12} )
-
-inherit autotools multilib-minimal toolchain-funcs python-r1 linux-info 
systemd usr-ldscript
-
-DESCRIPTION="Userspace utilities for storing and processing auditing records"
-HOMEPAGE="https://people.redhat.com/sgrubb/audit/";
-SRC_URI="https://people.redhat.com/sgrubb/audit/${P}.tar.gz";
-
-LICENSE="GPL-2+ LGPL-2.1+"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86"
-IUSE="gssapi io-uring ldap python static-libs test"
-
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
-   sys-libs/libcap-ng
-   gssapi? ( virtual/krb5 )
-   ldap? ( net-nds/openldap:= )
-   python? ( ${PYTHON_DEPS} )
-"
-DEPEND="
-   ${RDEPEND}
-   >=sys-kernel/linux-headers-2.6.34
-   test? ( dev-libs/check )
-"
-BDEPEND="
-   python? (
-   dev-lang/swig
-   $(python_gen_cond_dep '
-   dev-python/setuptools[${PYTHON_USEDEP}]
-   ' python3_12)
-   )
-"
-
-CONFIG_CHECK="~AUDIT"
-
-PATCHES=(
-   "${FILESDIR}"/${PN}-3.1.3-musl-malloc.patch
-)
-
-QA_CONFIG_IMPL_DECL_SKIP=(
-   # missing on musl. Uses handrolled AC_LINK_IFELSE but fails at link time
-   # for older compilers regardless. bug #898828
-   strndupa
-)
-
-src_prepare() {
-   # audisp-remote moved in multilib_src_install_all
-   sed -i \
-   -e "s,/sbin/audisp-remote,${EPREFIX}/usr/sbin/audisp-remote," \
-   audisp/plugins/remote/au-remote.conf || die
-
-   # Disable installing sample rules so they can be installed as docs.
-   echo -e '%:\n\t:' | tee rules/Makefile.{am,in} >/dev/null || die
-
-   default
-   eautoreconf
-}
-
-multilib_src_configure() {
-   local myeconfargs=(
-   --sbindir="${EPREFIX}"/sbin
-   $(use_enable gssapi gssapi-krb5)
-   $(use_enable ldap zos-remote)
-   $(use_enable static-libs static)
-   $(use_with arm)
-   $(use_with arm64 aarch64)
-   $(use_with io-uring io_uring)
-   --enable-systemd
-   --without-golang
-   --without-libwrap
-   

[gentoo-commits] repo/gentoo:master commit in: sys-process/audit/

2024-09-08 Thread Jason Zaman
commit: 9a4f9201cc22546ff3dac7747740968113147ade
Author: Wiktor Jaskulski  adva  com>
AuthorDate: Tue Aug 29 14:12:36 2023 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Sep  8 23:13:15 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a4f9201

sys-process/audit: fix cross compilation and add arch specific support 
configure options

Closes: https://github.com/gentoo/gentoo/pull/32507
Signed-off-by: Wiktor Jaskulski  adva.com>
Signed-off-by: Jason Zaman  gentoo.org>

 sys-process/audit/audit-3.1.2.ebuild| 3 +++
 sys-process/audit/audit-3.1.3.ebuild| 3 +++
 sys-process/audit/audit-3.1.4-r1.ebuild | 3 +++
 sys-process/audit/audit-4.0.1-r1.ebuild | 3 +++
 4 files changed, 12 insertions(+)

diff --git a/sys-process/audit/audit-3.1.2.ebuild 
b/sys-process/audit/audit-3.1.2.ebuild
index 8984d7758dcb..858f1d192457 100644
--- a/sys-process/audit/audit-3.1.2.ebuild
+++ b/sys-process/audit/audit-3.1.2.ebuild
@@ -74,6 +74,8 @@ multilib_src_configure() {
$(use_enable ldap zos-remote)
$(use_enable static-libs static)
$(use_with io-uring io_uring)
+   $(use_with arm)
+   $(use_with arm64 aarch64)
--enable-systemd
--without-golang
--without-libwrap
@@ -89,6 +91,7 @@ multilib_src_configure() {
pushd "${BUILD_DIR}" &>/dev/null || die
 
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" 
--with-python3
+   find . -type f -name 'Makefile' -exec sed -i 
"s;-I/usr/include/python;-I${SYSROOT}/usr/include/python;g" {} +
 
popd &>/dev/null || die
}

diff --git a/sys-process/audit/audit-3.1.3.ebuild 
b/sys-process/audit/audit-3.1.3.ebuild
index e185e4615aae..32ea5f173385 100644
--- a/sys-process/audit/audit-3.1.3.ebuild
+++ b/sys-process/audit/audit-3.1.3.ebuild
@@ -74,6 +74,8 @@ multilib_src_configure() {
$(use_enable gssapi gssapi-krb5)
$(use_enable ldap zos-remote)
$(use_enable static-libs static)
+   $(use_with arm)
+   $(use_with arm64 aarch64)
$(use_with io-uring io_uring)
--enable-systemd
--without-golang
@@ -90,6 +92,7 @@ multilib_src_configure() {
pushd "${BUILD_DIR}" &>/dev/null || die
 
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" 
--with-python3
+   find . -type f -name 'Makefile' -exec sed -i 
"s;-I/usr/include/python;-I${SYSROOT}/usr/include/python;g" {} +
 
popd &>/dev/null || die
}

diff --git a/sys-process/audit/audit-3.1.4-r1.ebuild 
b/sys-process/audit/audit-3.1.4-r1.ebuild
index 33f5402ee966..1dadef4e44bb 100644
--- a/sys-process/audit/audit-3.1.4-r1.ebuild
+++ b/sys-process/audit/audit-3.1.4-r1.ebuild
@@ -74,6 +74,8 @@ multilib_src_configure() {
$(use_enable gssapi gssapi-krb5)
$(use_enable ldap zos-remote)
$(use_enable static-libs static)
+   $(use_with arm)
+   $(use_with arm64 aarch64)
$(use_with io-uring io_uring)
--enable-systemd
--without-golang
@@ -90,6 +92,7 @@ multilib_src_configure() {
pushd "${BUILD_DIR}" &>/dev/null || die
 
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" 
--with-python3
+   find . -type f -name 'Makefile' -exec sed -i 
"s;-I/usr/include/python;-I${SYSROOT}/usr/include/python;g" {} +
 
popd &>/dev/null || die
}

diff --git a/sys-process/audit/audit-4.0.1-r1.ebuild 
b/sys-process/audit/audit-4.0.1-r1.ebuild
index 0757b5e9644a..a94dca39c0c5 100644
--- a/sys-process/audit/audit-4.0.1-r1.ebuild
+++ b/sys-process/audit/audit-4.0.1-r1.ebuild
@@ -77,6 +77,8 @@ multilib_src_configure() {
$(use_enable gssapi gssapi-krb5)
$(use_enable ldap zos-remote)
$(use_enable static-libs static)
+   $(use_with arm)
+   $(use_with arm64 aarch64)
$(use_with io-uring io_uring)
--without-golang
--without-libwrap
@@ -91,6 +93,7 @@ multilib_src_configure() {
pushd "${BUILD_DIR}" &>/dev/null || die
 
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" 
--with-python3
+   find . -type f -name 'Makefile' -exec sed -i 
"s;-I/usr/include/python;-I${SYSROOT}/usr/include/python;g" {} +
 
popd &>/dev/null || die
}



[gentoo-commits] repo/gentoo:master commit in: eclass/

2024-08-24 Thread Jason Zaman
commit: 75d12a333e1866ad6affa62b95fe88be48f5b118
Author: Rahul Sandhu  sandhuservices  dev>
AuthorDate: Fri Aug  2 19:37:54 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Aug 25 00:48:19 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75d12a33

selinux-policy-2.eclass: Load unconfined module for mcs/mls policy types

Currently, there doesn't seem to be a reason to block the loading of
the unconfined policy module on the mcs and mls policy types. Let's
ensure we load the unconfined policy module unconditionally in the
eclass.

The loading of the unconfined policy module was initially blocked in
82e30f21ab85b6de3ebc45ae10b28b9bd280e4a1, however as far as I can tell,
there is no longer a reason to do this. Considering there are use flags
for sec-policy/selinux-base and sec-policy/selinux-base-policy for the
unconfined policy module, and using the unconfined policy module is
supported for the mcs and mls policy types, it makes sense to no longer
block the loading of the policy module. It is also worth mentioning
that grabbing an selinux stage3 has the unconfined policy module
already loaded.

As the strict policy is effectively the targeted policy without support
for the unconfined domain, it makes sense to not load the unconfined
module for strict policy types. Let's keep a conitional check for the
strict policy to ensure we don't load the unconfined module in that
case.

Closes: https://bugs.gentoo.org/933709
Closes: https://github.com/gentoo/gentoo/pull/37931
Signed-off-by: Rahul Sandhu  sandhuservices.dev>
Signed-off-by: Jason Zaman  gentoo.org>

 eclass/selinux-policy-2.eclass | 12 
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/eclass/selinux-policy-2.eclass b/eclass/selinux-policy-2.eclass
index ad760673cab1..e7d6cd9a9e5f 100644
--- a/eclass/selinux-policy-2.eclass
+++ b/eclass/selinux-policy-2.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # Eclass for installing SELinux policy, and optionally
@@ -260,13 +260,9 @@ selinux-policy-2_pkg_postinst() {
local COMMAND
 
for i in ${POLICY_TYPES}; do
-   if [[ "${MODS}" = "unconfined" ]]; then
-   case ${i} in
-   strict|mcs|mls)
-   einfo "Ignoring loading of unconfined module in 
${i} module store.";
-   continue
-   ;;
-   esac
+   if [[ "${i}" == "strict" ]] && [[ "${MODS}" = "unconfined" ]]; 
then
+   einfo "Ignoring loading of unconfined module in strict 
module store.";
+   continue;
fi
 
einfo "Inserting the following modules into the $i module 
store: ${MODS}"



[gentoo-commits] repo/gentoo:master commit in: sys-libs/libsepol/

2024-08-11 Thread Jason Zaman
commit: babe86a253d5af6c1c9b5e9e96ff337015ded6e3
Author: Jason Zaman  gentoo  org>
AuthorDate: Mon Aug 12 00:56:29 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Mon Aug 12 01:20:48 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=babe86a2

sys-libs/libsepol: drop 3.5

Signed-off-by: Jason Zaman  gentoo.org>

 sys-libs/libsepol/Manifest|  1 -
 sys-libs/libsepol/libsepol-3.5.ebuild | 50 ---
 2 files changed, 51 deletions(-)

diff --git a/sys-libs/libsepol/Manifest b/sys-libs/libsepol/Manifest
index 959bbca8e5e5..bced87d07644 100644
--- a/sys-libs/libsepol/Manifest
+++ b/sys-libs/libsepol/Manifest
@@ -1,3 +1,2 @@
-DIST libsepol-3.5.tar.gz 497522 BLAKE2B 
dad2d346605be53fe41aef69e2e4bd4f1ce68a15f0b9307deb6b66bbe7bf06a9ee6be580e60d2f19aebbc8ee5041ac8a7b831b51342ba7c7089e1f1a447e7691
 SHA512 
66f45a9f4951589855961955db686b006b4c0cddead6ac49ad238a0e4a34775905bd10fb8cf0c0ff2ab64f9b7d8366b97fcd5b19c382dec39971a2835cc765c8
 DIST libsepol-3.6.tar.gz 509100 BLAKE2B 
c073c9437004df0c723125971ed26354dc6b8a78b069c593977062527342061303bcc48917fcd9623d17998748254f63408b233173f3c62e92ee0ea2f3c4a430
 SHA512 
35a42d2749fc4f71bc6b7488380714f56975564007128566f1c73e5c50bf81c17535b2cfda4583aacb4870aa2cd5885321c01523e415bda8b3326bfefb13d58e
 DIST libsepol-3.7.tar.gz 511487 BLAKE2B 
8e4a0b2b3731f49d8bc8ea03bd5269672428119578046bc7f38230e3c77459e6b9d4ab39285ea33c89d8e807499ef89faa606e4b4e1ecfac2c3d445454b16420
 SHA512 
85d12d0ba5a7a3225f08d041a18fd59641608db5e0a78a1e9649754e45be54a807cd422d4889b88da6e806b4af546336c7a0913448f08ac33dc6ffb983890ef8

diff --git a/sys-libs/libsepol/libsepol-3.5.ebuild 
b/sys-libs/libsepol/libsepol-3.5.ebuild
deleted file mode 100644
index 16ea268dc5c0..
--- a/sys-libs/libsepol/libsepol-3.5.ebuild
+++ /dev/null
@@ -1,50 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="7"
-
-inherit toolchain-funcs multilib-minimal
-
-MY_PV="${PV//_/-}"
-MY_P="${PN}-${MY_PV}"
-
-DESCRIPTION="SELinux binary policy representation library"
-HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki";
-
-if [[ ${PV} ==  ]]; then
-   inherit git-r3
-   EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git";
-   S="${WORKDIR}/${P}/${PN}"
-else
-   
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz";
-   KEYWORDS="amd64 arm arm64 ~mips ~riscv x86"
-   S="${WORKDIR}/${MY_P}"
-fi
-
-LICENSE="GPL-2"
-SLOT="0/2"
-
-# tests are not meant to be run outside of the full SELinux userland repo
-RESTRICT="test"
-
-src_prepare() {
-   eapply_user
-   multilib_copy_sources
-}
-
-multilib_src_compile() {
-   tc-export CC AR RANLIB
-
-   local -x CFLAGS="${CFLAGS} -fno-semantic-interposition"
-
-   emake \
-   LIBDIR="\$(PREFIX)/$(get_libdir)" \
-   SHLIBDIR="/$(get_libdir)"
-}
-
-multilib_src_install() {
-   emake DESTDIR="${D}" \
-   LIBDIR="\$(PREFIX)/$(get_libdir)" \
-   SHLIBDIR="/$(get_libdir)" \
-   install
-}



[gentoo-commits] repo/gentoo:master commit in: sys-libs/libsemanage/

2024-08-11 Thread Jason Zaman
commit: 5fdf8f592f6e6b3269201e9ca528af13abcad5f7
Author: Jason Zaman  gentoo  org>
AuthorDate: Mon Aug 12 00:52:04 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Mon Aug 12 01:20:46 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fdf8f59

sys-libs/libsemanage: drop 3.4-r1, 3.5

Signed-off-by: Jason Zaman  gentoo.org>

 sys-libs/libsemanage/Manifest  |   2 -
 sys-libs/libsemanage/libsemanage-3.4-r1.ebuild | 130 -
 sys-libs/libsemanage/libsemanage-3.5.ebuild| 130 -
 3 files changed, 262 deletions(-)

diff --git a/sys-libs/libsemanage/Manifest b/sys-libs/libsemanage/Manifest
index f434e28c3dd2..4f26371658c1 100644
--- a/sys-libs/libsemanage/Manifest
+++ b/sys-libs/libsemanage/Manifest
@@ -1,4 +1,2 @@
-DIST libsemanage-3.4.tar.gz 185177 BLAKE2B 
45276ae6f54cf3dc453bc0d99fb4d7439970bb14ff5b909ebc5511ec31bce1d2bdc477ba9c1fb4fd04ab494ccb37cd8bf47a90d81460c2974af2196d9019bf67
 SHA512 
831dc789545bb9a0b009bdb4f7fe52f6197ad8325946640f886a960d08e40b8a69eccd5a70cce51466bb5cb7f742feb78d19a9ec63383fbd03aa451508677e73
-DIST libsemanage-3.5.tar.gz 185060 BLAKE2B 
3e08b15cb6b335a2747bd5f0bd84f74abdd22a7e8ec91ebb443ca6fe3886d5e8cd2827fefdaa0e9caf2af3280cffbf593ee828fee54dd423a21b257493cc754c
 SHA512 
959fbd0d6bc6849da6caa13dc41c3f8818cbbd29f04b5d2ac7246c4b395b4f370f113a04cc9cfcb52be2afebfa636013ac4ad4011384c58c7ce066a45cae2751
 DIST libsemanage-3.6.tar.gz 182583 BLAKE2B 
3ed9ef06601093983fa41ad6ab9f7eeae241dce98937db04efca6f421afcfd3f59cf5e51d24c596ae03997a398949ed84fbdf629518e3c382a5453129b0a87ab
 SHA512 
8998b6a1b254a9673b99ae4d70a1edc769bb728a44f573cdf62e0a9c9392b77644ee2d70e1936a2f8a9a7f8b063ce98a981f4b8b7060f5b82791889330d69364
 DIST libsemanage-3.7.tar.gz 182896 BLAKE2B 
e8a4a9a57f1862efac7e46b33f34f2fdcd116a14487ca07f65aebed62b3914bb1892606a76ed8addcbdb111f361507294ae3c75975a10b90f5d554ba59d2562d
 SHA512 
4b6370b02116364964ff24b93fb6629c885611de78419f649a027db38b4f1c3b3adf3b438efb34a92b49407ab8f9446ed4091fe4c99fa4752f0f5e3e31589415

diff --git a/sys-libs/libsemanage/libsemanage-3.4-r1.ebuild 
b/sys-libs/libsemanage/libsemanage-3.4-r1.ebuild
deleted file mode 100644
index 42c8c982f7d2..
--- a/sys-libs/libsemanage/libsemanage-3.4-r1.ebuild
+++ /dev/null
@@ -1,130 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-PYTHON_COMPAT=( python3_{9..11} )
-
-inherit python-r1 toolchain-funcs multilib-minimal
-
-MY_PV="${PV//_/-}"
-MY_P="${PN}-${MY_PV}"
-
-DESCRIPTION="SELinux kernel and policy management library"
-HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki";
-
-if [[ ${PV} ==  ]]; then
-   inherit git-r3
-   EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git";
-   S="${WORKDIR}/${P}/${PN}"
-else
-   
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz";
-   KEYWORDS="amd64 arm arm64 ~mips ~riscv x86"
-   S="${WORKDIR}/${MY_P}"
-fi
-
-LICENSE="GPL-2"
-SLOT="0/2"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-RDEPEND="app-arch/bzip2[${MULTILIB_USEDEP}]
-   >=sys-libs/libsepol-${PV}:=[${MULTILIB_USEDEP}]
-   >=sys-libs/libselinux-${PV}:=[${MULTILIB_USEDEP}]
-   >=sys-process/audit-2.2.2[${MULTILIB_USEDEP}]
-   ${PYTHON_DEPS}"
-DEPEND="${RDEPEND}"
-BDEPEND=">=dev-lang/swig-2.0.4-r1
-   app-alternatives/yacc
-   app-alternatives/lex
-   virtual/pkgconfig"
-
-# tests are not meant to be run outside of the
-# full SELinux userland repo
-RESTRICT="test"
-
-src_prepare() {
-   eapply_user
-
-   echo >> "${S}/src/semanage.conf"
-   echo "# Set this to true to save the linked policy." >> 
"${S}/src/semanage.conf"
-   echo "# This is normally only useful for analysis" >> 
"${S}/src/semanage.conf"
-   echo "# or debugging of policy." >> "${S}/src/semanage.conf"
-   echo "save-linked=false" >> "${S}/src/semanage.conf"
-   echo >> "${S}/src/semanage.conf"
-   echo "# Set this to 0 to disable assertion checking." >> 
"${S}/src/semanage.conf"
-   echo "# This should speed up building the kernel policy" >> 
"${S}/src/semanage.conf"
-   echo "# from policy modules, but may leave you open to" >> 
"${S}/src/semanage.conf"
-   echo "# dangerous rules which assertion checking" >> 
"${S}/src/semanage.conf"
-   echo "# would catch." >> "${S}/src/semanage.conf"
-   echo "expand-check=1" >> "${S}/src/semanage.conf"
-   

[gentoo-commits] repo/gentoo:master commit in: sys-apps/checkpolicy/

2024-08-11 Thread Jason Zaman
commit: 62560fb10e03bb9c299cba031e74a55a6a5a767e
Author: Jason Zaman  gentoo  org>
AuthorDate: Mon Aug 12 00:04:01 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Mon Aug 12 01:20:44 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62560fb1

sys-apps/checkpolicy: drop 3.5

Signed-off-by: Jason Zaman  gentoo.org>

 sys-apps/checkpolicy/Manifest   |  1 -
 sys-apps/checkpolicy/checkpolicy-3.5.ebuild | 53 -
 2 files changed, 54 deletions(-)

diff --git a/sys-apps/checkpolicy/Manifest b/sys-apps/checkpolicy/Manifest
index de87eb345ea3..8507bbc18d9a 100644
--- a/sys-apps/checkpolicy/Manifest
+++ b/sys-apps/checkpolicy/Manifest
@@ -1,3 +1,2 @@
-DIST checkpolicy-3.5.tar.gz 69904 BLAKE2B 
e02ccad07534568a1bbb612330018bbe486800ea40df20ed6f9dc38c88aff7f8858782a28ba7915a58c3bb384f180eb8da7a8fe97a92bcb9baa61eec18da6cbc
 SHA512 
fcd490d865af3b4350c32c5dd9916f8406219841e1e255d8945c6dcc958535247aa27af5597a6988e19f11faea7beeabcb46e8ba2431112bb4aa5c7697bca529
 DIST checkpolicy-3.6.tar.gz 70684 BLAKE2B 
d32a8b86897bd4a08caf61a096a691c8d049fa7b5b4561f4847e0dfbb62a82fc6c3ddb5be163c7cd6163491c50513aec14e4c67842f256f48688b26178c2887a
 SHA512 
0d48fb385b4d1e66d562e40b6e794406f46d8803cc504705b26547130cb13b65fab5fdb4fc032b1c95d4f91862ff134a89fffde854c5ce466c2dd2657e416070
 DIST checkpolicy-3.7.tar.gz 74992 BLAKE2B 
78f419fa89981ad16364b3d6406e313fda5230588063c9a9dbb70535f0421c5b402b9c86d2f63d4ab7b8119c38044b6dc556fb2dd40240428c914cb25a2facbe
 SHA512 
f428edcbe17bd5b5f22dd827cf21c89c2cf645bae6c0342c6663743cafd9f8a8d7c8b5a1b48c04569fdb0cce11ffcb6c0b6d7fa76075a1a274948ba418bcc5b4

diff --git a/sys-apps/checkpolicy/checkpolicy-3.5.ebuild 
b/sys-apps/checkpolicy/checkpolicy-3.5.ebuild
deleted file mode 100644
index 938ef02c3595..
--- a/sys-apps/checkpolicy/checkpolicy-3.5.ebuild
+++ /dev/null
@@ -1,53 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="7"
-
-inherit toolchain-funcs
-
-MY_PV="${PV//_/-}"
-MY_P="${PN}-${MY_PV}"
-
-DESCRIPTION="SELinux policy compiler"
-HOMEPAGE="http://userspace.selinuxproject.org";
-
-if [[ ${PV} ==  ]] ; then
-   inherit git-r3
-   EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git";
-   S="${WORKDIR}/${P}/${PN}"
-else
-   
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz";
-   KEYWORDS="amd64 arm arm64 ~mips ~riscv x86"
-   S="${WORKDIR}/${MY_P}"
-fi
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="debug"
-
-RDEPEND=">=sys-libs/libsepol-${PV}:=[static-libs(+)]"
-DEPEND="${RDEPEND}"
-BDEPEND="sys-devel/flex
-   sys-devel/bison"
-
-src_compile() {
-   emake \
-   CC="$(tc-getCC)" \
-   YACC="bison -y" \
-   LIBDIR="\$(PREFIX)/$(get_libdir)"
-}
-
-src_install() {
-   default
-
-   if use debug; then
-   dobin "${S}/test/dismod"
-   dobin "${S}/test/dispol"
-   fi
-}
-
-pkg_postinst() {
-   if ! tc-is-cross-compiler; then
-   einfo "This checkpolicy can compile version `checkpolicy -V | 
cut -f 1 -d ' '` policy."
-   fi
-}



[gentoo-commits] repo/gentoo:master commit in: sys-apps/selinux-python/

2024-08-11 Thread Jason Zaman
commit: 0011c69be710c02fa4c03e213aa8a6d849b94903
Author: Jason Zaman  gentoo  org>
AuthorDate: Mon Aug 12 00:02:45 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Mon Aug 12 01:20:43 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0011c69b

sys-apps/selinux-python: drop 3.5

Signed-off-by: Jason Zaman  gentoo.org>

 sys-apps/selinux-python/Manifest  |   1 -
 sys-apps/selinux-python/selinux-python-3.5.ebuild | 114 --
 2 files changed, 115 deletions(-)

diff --git a/sys-apps/selinux-python/Manifest b/sys-apps/selinux-python/Manifest
index 2891961c7ef0..00d542eb5373 100644
--- a/sys-apps/selinux-python/Manifest
+++ b/sys-apps/selinux-python/Manifest
@@ -1,3 +1,2 @@
-DIST selinux-python-3.5.tar.gz 3604439 BLAKE2B 
5a7fcd303c337cb0f5ae0066d13c945bb5cacaba472c7b17f0496295294998fcc6d81c153720ef704b749a01590c28b48b4f471a48fc386b8f02564c3550250b
 SHA512 
2ac176a9f078f2b2721e5871ba21e92041eed54fc692fd8d809ff14327beee6de63b3084d0f1053a640b9e40bcc6461498915bb9b038a658cd772f77d80fd217
 DIST selinux-python-3.6.tar.gz 3633272 BLAKE2B 
c2b99779eda2c7698f7f68740e3136cbfa5ab471a5d154142aafd2694d8c32aa605df3609a3667c687449d3ba44e72bcc3b37c36adecba8e34fcc629b9f04de5
 SHA512 
6289f3f2a3038b2cb62f6b3b12c729a9981c34a5ee80c0830e6316e8c77f5283dffa46007f6e7dc073332b829ed9953ba54e64c986fb18c7dc40759ec0375dc9
 DIST selinux-python-3.7.tar.gz 3652377 BLAKE2B 
59fd7cab0034c175f42f6120ba665701945adcbd4e8af97a0dc2a1c79688a596b199528886ceea079a3f7a969258611fb660449d313d9e893de381293e786381
 SHA512 
036bc1f0e64cbbaade592dc7899a92765a0bac426140d7d3960f73bad6eb5f95d79d91e0f0e1604f88a991ebf59c4c90ccaaa4158f5dc4d3275ca2aed1673b09

diff --git a/sys-apps/selinux-python/selinux-python-3.5.ebuild 
b/sys-apps/selinux-python/selinux-python-3.5.ebuild
deleted file mode 100644
index 9fa9dc5ecf0f..
--- a/sys-apps/selinux-python/selinux-python-3.5.ebuild
+++ /dev/null
@@ -1,114 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-PYTHON_COMPAT=( python3_{9..11} )
-PYTHON_REQ_USE="xml(+)"
-
-inherit python-r1 toolchain-funcs
-
-MY_PV="${PV//_/-}"
-MY_P="${PN}-${MY_PV}"
-
-DESCRIPTION="SELinux core utilities"
-HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki";
-
-if [[ ${PV} ==  ]] ; then
-   inherit git-r3
-   EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git";
-   S="${WORKDIR}/${P}/${PN#selinux-}"
-else
-   
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz";
-   KEYWORDS="amd64 arm arm64 ~mips x86"
-   S="${WORKDIR}/${MY_P}"
-fi
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="test"
-RESTRICT="!test? ( test )"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-RDEPEND=">=sys-libs/libselinux-${PV}:=[python]
-   >=sys-libs/libsemanage-${PV}:=[python(+)]
-   >=sys-libs/libsepol-${PV}:=[static-libs(+)]
-   >=app-admin/setools-4.2.0[${PYTHON_USEDEP}]
-   >=sys-process/audit-1.5.1[python,${PYTHON_USEDEP}]
-   ${PYTHON_DEPS}"
-DEPEND="${RDEPEND}"
-BDEPEND="
-   test? (
-   ${RDEPEND}
-   >=sys-apps/secilc-${PV}
-   )"
-
-src_prepare() {
-   default
-   sed -i 's/-Werror//g' "${S}"/*/Makefile || die "Failed to remove Werror"
-
-   python_copy_sources
-}
-
-src_compile() {
-   building() {
-   emake -C "${BUILD_DIR}" \
-   CC="$(tc-getCC)" \
-   LIBDIR="\$(PREFIX)/$(get_libdir)"
-   }
-   python_foreach_impl building
-}
-
-src_test() {
-   testing() {
-   # The different subprojects have some interproject dependencies:
-   # - audit2allow depens on sepolgen
-   # - chcat depends on semanage
-   # and maybe others.
-   # Add all the modules of the individual subprojects to the
-   # PYTHONPATH, so they get actually found and used. In
-   # particular, already installed versions on the system are not
-   # used.
-   for dir in audit2allow chcat semanage sepolgen/src sepolicy ; do
-   PYTHONPATH="${BUILD_DIR}/${dir}:${PYTHONPATH}"
-   done
-   PYTHONPATH=${PYTHONPATH} \
-   emake -C "${BUILD_DIR}" \
-   test
-   }
-   python_foreach_impl testing
-}
-
-src_install() {
-   installation() {
-   emake -C "${BUILD_DIR}" \
-   DESTDIR="${D}" \
-   LIBDIR="\$(PREFIX)/$(get_libdir)" \
-   in

[gentoo-commits] repo/gentoo:master commit in: sys-libs/libselinux/

2024-08-11 Thread Jason Zaman
commit: 5d4b3caf8014e9e1ad97f029f2f9b935ace5581e
Author: Jason Zaman  gentoo  org>
AuthorDate: Mon Aug 12 00:53:47 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Mon Aug 12 01:20:47 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d4b3caf

sys-libs/libselinux: drop 3.5-r1

Signed-off-by: Jason Zaman  gentoo.org>

 sys-libs/libselinux/Manifest |   1 -
 sys-libs/libselinux/libselinux-3.5-r1.ebuild | 161 ---
 2 files changed, 162 deletions(-)

diff --git a/sys-libs/libselinux/Manifest b/sys-libs/libselinux/Manifest
index 7eadd0d8cbc4..21b7f934eefe 100644
--- a/sys-libs/libselinux/Manifest
+++ b/sys-libs/libselinux/Manifest
@@ -1,3 +1,2 @@
-DIST libselinux-3.5.tar.gz 211453 BLAKE2B 
f7f3067c4bb0448e18bd7085135f11d94ae99728949480a655c0f660486817beb5829d8a43dff7bce286ccd50705b0c657bde85970f01c794e01fb707f469d8b
 SHA512 
4e13261a5821018a5f3cdce676f180bb62e5bc225981ca8a498ece0d1c88d9ba8eaa0ce4099dd0849309a8a7c5a9a0953df841a9922f2c284e5a109e5d937ba7
 DIST libselinux-3.6.tar.gz 194210 BLAKE2B 
615198d47ecfb4b6274810cbe32cce5953dd44d1d04e8ce244213dc4ddbd61cde3515f4650046b805cf98f341aba718af8d7a9e1d66773172031ac19599f6032
 SHA512 
182dcdf3510083ff4b9376a4a6d6a7b33905ac3c5e974c188bf3965686c54b663162c543ecf15eab75102f3c91a2502d33d0f1104dec01dd9b14737ef3f2b544
 DIST libselinux-3.7.tar.gz 194834 BLAKE2B 
07d87c37608b480d17355334459ecb006573d61a7d3fbf622033838559397abcf343e6399f3a49b6cf24e106d03fd997397d061491d2129c15a378960dacc350
 SHA512 
e949c20b606c50ad521b9592ce55ad6658e8c4b24d9838028f5aba0a4fc762b6d0d0d0d207f5bef7a2e41485e12d91382fa6090df27152dbb40071b273419352

diff --git a/sys-libs/libselinux/libselinux-3.5-r1.ebuild 
b/sys-libs/libselinux/libselinux-3.5-r1.ebuild
deleted file mode 100644
index dd4272b05308..
--- a/sys-libs/libselinux/libselinux-3.5-r1.ebuild
+++ /dev/null
@@ -1,161 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="7"
-PYTHON_COMPAT=( python3_{10..12} )
-USE_RUBY="ruby30 ruby31 ruby32"
-
-# No, I am not calling ruby-ng
-inherit flag-o-matic python-r1 toolchain-funcs multilib-minimal
-
-MY_PV="${PV//_/-}"
-MY_P="${PN}-${MY_PV}"
-
-DESCRIPTION="SELinux userland library"
-HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki";
-
-if [[ ${PV} ==  ]]; then
-   inherit git-r3
-   EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git";
-   S="${WORKDIR}/${P}/${PN}"
-else
-   
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz";
-   KEYWORDS="amd64 arm arm64 ~mips ~riscv x86"
-   S="${WORKDIR}/${MY_P}"
-fi
-
-LICENSE="public-domain"
-SLOT="0"
-IUSE="python ruby static-libs ruby_targets_ruby30 ruby_targets_ruby31 
ruby_targets_ruby32"
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-
-RDEPEND="dev-libs/libpcre2:=[static-libs?,${MULTILIB_USEDEP}]
-   >=sys-libs/libsepol-${PV}:=[${MULTILIB_USEDEP},static-libs(+)]
-   python? ( ${PYTHON_DEPS} )
-   ruby? (
-   ruby_targets_ruby30? ( dev-lang/ruby:3.0 )
-   ruby_targets_ruby31? ( dev-lang/ruby:3.1 )
-   ruby_targets_ruby32? ( dev-lang/ruby:3.2 )
-   )
-   elibc_musl? ( sys-libs/fts-standalone )"
-DEPEND="${RDEPEND}"
-BDEPEND="virtual/pkgconfig
-   python? (
-   >=dev-lang/swig-2.0.9
-   dev-python/pip[${PYTHON_USEDEP}]
-   )
-   ruby? ( >=dev-lang/swig-2.0.9 )"
-
-src_prepare() {
-   eapply_user
-
-   multilib_copy_sources
-}
-
-multilib_src_compile() {
-   tc-export AR CC PKG_CONFIG RANLIB
-
-   # bug 905711
-   use elibc_musl && append-cppflags -D_LARGEFILE64_SOURCE
-
-   local -x CFLAGS="${CFLAGS} -fno-semantic-interposition"
-
-   emake \
-   LIBDIR="\$(PREFIX)/$(get_libdir)" \
-   SHLIBDIR="/$(get_libdir)" \
-   LDFLAGS="-fPIC ${LDFLAGS} -pthread" \
-   USE_PCRE2=y \
-   FTS_LDLIBS="$(usex elibc_musl '-lfts' '')" \
-   all
-
-   if multilib_is_native_abi && use python; then
-   building() {
-   emake \
-   LDFLAGS="-fPIC ${LDFLAGS} -lpthread" \
-   LIBDIR="\$(PREFIX)/$(get_libdir)" \
-   SHLIBDIR="/$(get_libdir)" \
-   USE_PCRE2=y \
-   FTS_LDLIBS="$(usex elibc_musl '-lfts' '')" \
-   pywrap
-   }
-   python_foreach_impl building
-  

[gentoo-commits] repo/gentoo:master commit in: sys-apps/mcstrans/

2024-08-11 Thread Jason Zaman
commit: b8247f2bb4971d1b3525bdcc25e5b316909676ef
Author: Filip Kobierski  pm  me>
AuthorDate: Tue Jul 30 13:09:57 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Mon Aug 12 01:20:38 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8247f2b

sys-apps/mcstrans: drop 3.5

Signed-off-by: Filip Kobierski  pm.me>
Signed-off-by: Jason Zaman  gentoo.org>

 sys-apps/mcstrans/Manifest|  1 -
 sys-apps/mcstrans/mcstrans-3.5.ebuild | 52 ---
 2 files changed, 53 deletions(-)

diff --git a/sys-apps/mcstrans/Manifest b/sys-apps/mcstrans/Manifest
index d137545f5461..61ae8187f494 100644
--- a/sys-apps/mcstrans/Manifest
+++ b/sys-apps/mcstrans/Manifest
@@ -1,3 +1,2 @@
-DIST mcstrans-3.5.tar.gz 45091 BLAKE2B 
c6604075a6b37d7bf10e2daee40d9f034a26c5d56b81973cbc3b39621bdf5e2cb1d5906e91942e09ff077a14facafcc2464995675d8df31930707033fac5db90
 SHA512 
f4d3b04750e197c6abd31f1642af4b53a4fe0e968952a7ade992909f903d7486c1e72733963453563fcbc9745273c8238f169f520550df1470e7f6e4d6e56665
 DIST mcstrans-3.6.tar.gz 42199 BLAKE2B 
0f1b4ed212994037b062c42887e2629ae7374e0cbbd79692588ce164440eafddc6d7ab15d58f6064d68781a5a8fd614c9cfa734c4dbe1d3fea1dbb0f8191ddc1
 SHA512 
2c01a70741675faa41e8a9243f3cf08b558e568d7ae343874ff9c269473ba2748d42e0b45871d82d6c9b01bf71547835d547683f1aa5a8cf626708c7c69569fc
 DIST mcstrans-3.7.tar.gz 42501 BLAKE2B 
b1112a5098a6681ade55e9fada8b0e4629bda8ff4334242b570bc042113204374bd2ca72face7fd7bc0958981a3c39284fa953a02e0860c4101e966f77f7e49a
 SHA512 
51483ce4fd0b0a4bcba0d52eb418aa56104732888782f32c27a855c167cdb267de22eeb414ad8c6b2e733620c3e59db39646136c97f7bcb8901ce12fed44583a

diff --git a/sys-apps/mcstrans/mcstrans-3.5.ebuild 
b/sys-apps/mcstrans/mcstrans-3.5.ebuild
deleted file mode 100644
index 641549bb91e3..
--- a/sys-apps/mcstrans/mcstrans-3.5.ebuild
+++ /dev/null
@@ -1,52 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="7"
-
-inherit toolchain-funcs
-
-MY_PV="${PV//_/-}"
-MY_P="${PN}-${MY_PV}"
-
-DESCRIPTION="SELinux context translation to human readable names"
-HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki";
-
-if [[ ${PV} == * ]] ; then
-   inherit git-r3
-   EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git";
-   S="${WORKDIR}/${P}/${PN}"
-else
-   
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz";
-   KEYWORDS="amd64 arm arm64 ~mips x86"
-   S="${WORKDIR}/${MY_P}"
-fi
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE=""
-
-DEPEND=">=sys-libs/libsepol-${PV}:=[static-libs(+)]
-   >=sys-libs/libselinux-${PV}:=
-   dev-libs/libpcre2:=
-   >=sys-libs/libcap-1.10-r10:="
-
-RDEPEND="${DEPEND}"
-
-src_prepare() {
-   default
-
-   sed -i 's/-Werror//g' "${S}"/*/Makefile || die "Failed to remove Werror"
-}
-
-src_compile() {
-   tc-export CC
-   default
-}
-
-src_install() {
-   emake DESTDIR="${D}" install
-
-   rm -rf "${D}/etc/rc.d" || die
-
-   newinitd "${FILESDIR}/mcstransd.init" mcstransd
-}



[gentoo-commits] repo/gentoo:master commit in: sys-apps/restorecond/

2024-08-11 Thread Jason Zaman
commit: d20d0a2a4e2f23a75ee4c131f4c0b027e9f0727b
Author: Filip Kobierski  pm  me>
AuthorDate: Tue Jul 30 13:06:36 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Mon Aug 12 01:20:39 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d20d0a2a

sys-apps/restorecond: drop 3.5

Signed-off-by: Filip Kobierski  pm.me>
Signed-off-by: Jason Zaman  gentoo.org>

 sys-apps/restorecond/Manifest   |  1 -
 sys-apps/restorecond/restorecond-3.5.ebuild | 54 -
 2 files changed, 55 deletions(-)

diff --git a/sys-apps/restorecond/Manifest b/sys-apps/restorecond/Manifest
index 68daa3551b54..270d7a4f56a3 100644
--- a/sys-apps/restorecond/Manifest
+++ b/sys-apps/restorecond/Manifest
@@ -1,3 +1,2 @@
-DIST restorecond-3.5.tar.gz 19070 BLAKE2B 
6db7d0fc9085a07669d346e025836a94acca610572e986e2c90974b0bd21b55e66b57a2dafd7d42011bed5f06363b654f5431ac43530fccf7b68d3edd9d63850
 SHA512 
80cb84e62c7072a12fe57ebaafc0bcb441c853862c67f9ea35b86faa2d8e49ea22a70b9e05a3ff24e8ce08ca2999604d7961efd534f89167cd6fcb05c852de40
 DIST restorecond-3.6.tar.gz 18020 BLAKE2B 
306b4a7c9990c0b2f229cc7963dbd0481df5f9fbecd709b37d254839177fc604f6f85ac19235209f4fbb12d9186f01dd71a11f98deca5d01bd70c415240ddf5a
 SHA512 
e21fa23bfea488f2bddd01b4bab353f22863e09247078e47db9852995d7a0153aee6483cbeaaaf033b482b60f80affad0b6a3e829f935c3901c034a7efb1ebef
 DIST restorecond-3.7.tar.gz 18072 BLAKE2B 
3f352345fa169a438fd6dc073d329c68aca67b3c49d100b1dc619ae40eae3764fa07327306ec0f1232450433e27908493711cc6aec20ebb60f2b66dbceed0cb8
 SHA512 
6b0ed20a5d6654281cae78a337254558a2170040f09c1f7ba023b40cf2a5b33b36d6f3c57d9e32d55523fbe78a8b212c0de377ce201778e2211aa37dc0b2b936

diff --git a/sys-apps/restorecond/restorecond-3.5.ebuild 
b/sys-apps/restorecond/restorecond-3.5.ebuild
deleted file mode 100644
index 010553a8791d..
--- a/sys-apps/restorecond/restorecond-3.5.ebuild
+++ /dev/null
@@ -1,54 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="7"
-
-inherit systemd toolchain-funcs
-
-MY_PV="${PV//_/-}"
-MY_P="${PN}-${MY_PV}"
-
-if [[ ${PV} == * ]] ; then
-   inherit git-r3
-   EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git";
-   S="${WORKDIR}/${P}/${PN}"
-else
-   
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz";
-   KEYWORDS="amd64 arm arm64 ~mips x86"
-   S="${WORKDIR}/${MY_P}"
-fi
-
-DESCRIPTION="Daemon to watch for creation and set default SELinux fcontexts"
-HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki";
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE=""
-
-DEPEND="dev-libs/glib:2
-   >=sys-libs/libsepol-${PV}:=
-   >=sys-libs/libselinux-${PV}:="
-
-RDEPEND="${DEPEND}"
-
-src_prepare() {
-   default
-
-   sed -i 's/-Werror//g' "${S}"/Makefile || die "Failed to remove Werror"
-}
-
-src_compile() {
-   tc-export CC
-   default
-}
-
-src_install() {
-   emake DESTDIR="${D}" \
-   SYSTEMDSYSTEMUNITDIR="$(systemd_get_systemunitdir)" \
-   SYSTEMDUSERUNITDIR=$(systemd_get_userunitdir) \
-   install
-
-   rm -rf "${D}/etc/rc.d" || die
-
-   newinitd "${FILESDIR}/restorecond.init" restorecond
-}



[gentoo-commits] repo/gentoo:master commit in: sys-apps/policycoreutils/

2024-08-11 Thread Jason Zaman
commit: c60876e98e4a3e0690d8aae39791ddd4c0c9c5f1
Author: Jason Zaman  gentoo  org>
AuthorDate: Mon Aug 12 00:00:38 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Mon Aug 12 01:20:42 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c60876e9

sys-apps/policycoreutils: drop 3.5

Signed-off-by: Jason Zaman  gentoo.org>

 sys-apps/policycoreutils/Manifest  |   1 -
 .../policycoreutils/policycoreutils-3.5.ebuild | 168 -
 2 files changed, 169 deletions(-)

diff --git a/sys-apps/policycoreutils/Manifest 
b/sys-apps/policycoreutils/Manifest
index 6bc51afcdd25..65e7ebd2adf1 100644
--- a/sys-apps/policycoreutils/Manifest
+++ b/sys-apps/policycoreutils/Manifest
@@ -1,4 +1,3 @@
-DIST policycoreutils-3.5.tar.gz 775639 BLAKE2B 
777b8564484e89385db7a184c4cad9a99aabf1fd1ac41abd5826c7e6ad29118ae9d6f0d0fd968b6ced87f2f04bc6d7cd207b67428151522915367f656fb8d3f8
 SHA512 
7978ef6b7a278c6384c9b397734d03c4932c8aefecceaa1e6a1345be27b253dbe276fdcd219ce83ad732c6ed55d53bbc3254e39bccadd67d2cd1152a14749444
 DIST policycoreutils-3.6.tar.gz 755682 BLAKE2B 
a8b180c8006989192d152651dcfa51856956780bfe1139cc1dc0162eb66ba1eef4f7d64f68a48479572b02e2e97a68c7082722a745d22a9453e8378373319e3c
 SHA512 
e1f32e6e0310b879a5aadab157b103314a61bf3b8fd59c1212d701fbf39900e3b9a0b727338988103d784a7e505355a871ba519dd91520b135a3b9dae40bf1b0
 DIST policycoreutils-3.7.tar.gz 757142 BLAKE2B 
95794d48ef80882803199af5330f0ac4f1cee6710562a559e3d8fd94475d117286f8b612ffc5dc9027f4f8f4cd55e82ddb4d328e91d6c9846b18460c9bee159b
 SHA512 
30e3413b15df0bf1a994d2b3a03a719f89b3ee521a708b92fcc684822152145722cb3ef28fd5b7c42b779281b0bd4d69d65c0bc2605eec1af3f388609d985500
 DIST policycoreutils-extra-1.37.tar.bz2 8809 BLAKE2B 
a7f6122c2e27f54b018174e962bd7f4c14af04e09bbb5300bde6967ea7f2dc5cd03b5787919a4e7f5288bcbc6747922962b5bd3b588ab1e3a035fbff4910d8f5
 SHA512 
0a85cd7cf279256b5e1927f9dfdd89626a1c8b77b0aeb62b496e7e8d1dccbaa315e39f9308fb2df7270f0bc1c10787b19990e7365cad74b47b61e30394c8b23f

diff --git a/sys-apps/policycoreutils/policycoreutils-3.5.ebuild 
b/sys-apps/policycoreutils/policycoreutils-3.5.ebuild
deleted file mode 100644
index 5d45077b38c6..
--- a/sys-apps/policycoreutils/policycoreutils-3.5.ebuild
+++ /dev/null
@@ -1,168 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="7"
-PYTHON_COMPAT=( python3_{9..11} )
-PYTHON_REQ_USE="xml(+)"
-
-inherit multilib python-r1 toolchain-funcs bash-completion-r1
-
-MY_PV="${PV//_/-}"
-MY_P="${PN}-${MY_PV}"
-EXTRAS_VER="1.37"
-
-DESCRIPTION="SELinux core utilities"
-HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki";
-
-if [[ ${PV} ==  ]]; then
-   inherit git-r3
-   EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git";
-   
SRC_URI="https://dev.gentoo.org/~perfinion/distfiles/policycoreutils-extra-${EXTRAS_VER}.tar.bz2";
-   S1="${WORKDIR}/${P}/${PN}"
-   S2="${WORKDIR}/policycoreutils-extra"
-   S="${S1}"
-else
-   
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz
-   
https://dev.gentoo.org/~perfinion/distfiles/policycoreutils-extra-${EXTRAS_VER}.tar.bz2";
-   KEYWORDS="amd64 arm arm64 ~mips x86"
-   S1="${WORKDIR}/${MY_P}"
-   S2="${WORKDIR}/policycoreutils-extra"
-   S="${S1}"
-fi
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="audit pam split-usr"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-DEPEND=">=sys-libs/libselinux-${PV}:=[python,${PYTHON_USEDEP}]
-   >=sys-libs/libsemanage-${PV}:=[python(+),${PYTHON_USEDEP}]
-   >=sys-libs/libsepol-${PV}:=
-   sys-libs/libcap-ng:=
-   >=app-admin/setools-4.2.0[${PYTHON_USEDEP}]
-   audit? ( >=sys-process/audit-1.5.1[python,${PYTHON_USEDEP}] )
-   pam? ( sys-libs/pam:= )
-   ${PYTHON_DEPS}"
-
-# Avoid dependency loop in the cross-compile case, bug #755173
-# (Still exists in native)
-BDEPEND="sys-devel/gettext"
-
-# pax-utils for scanelf used by rlpkg
-RDEPEND="${DEPEND}
-   app-misc/pax-utils"
-
-PDEPEND="sys-apps/semodule-utils
-   sys-apps/selinux-python"
-
-src_unpack() {
-   # Override default one because we need the SRC_URI ones even in case of 
 ebuilds
-   default
-   if [[ ${PV} ==  ]] ; then
-   git-r3_src_unpack
-   fi
-}
-
-src_prepare() {
-   S="${S1}"
-   cd "${S}" || die "Failed to switch to ${S}"
-   if [[ ${PV} !=  ]] ; then
-   # If needed for live ebuilds please use /etc/portage/patches
-   eapply 
"${FILESDIR}/policycoreutils-3.1-0001-newrole-not-suid.patch"
-   fi
-
-  

[gentoo-commits] repo/gentoo:master commit in: sys-apps/semodule-utils/

2024-08-11 Thread Jason Zaman
commit: 8803694d433296304821e7432152779252de35db
Author: Filip Kobierski  pm  me>
AuthorDate: Tue Jul 30 13:04:42 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Mon Aug 12 01:20:40 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8803694d

sys-apps/semodule-utils: drop 3.5

Signed-off-by: Filip Kobierski  pm.me>
Signed-off-by: Jason Zaman  gentoo.org>

 sys-apps/semodule-utils/Manifest  |  1 -
 sys-apps/semodule-utils/semodule-utils-3.5.ebuild | 43 ---
 2 files changed, 44 deletions(-)

diff --git a/sys-apps/semodule-utils/Manifest b/sys-apps/semodule-utils/Manifest
index 8e4644e36f7d..72580447cbc4 100644
--- a/sys-apps/semodule-utils/Manifest
+++ b/sys-apps/semodule-utils/Manifest
@@ -1,3 +1,2 @@
-DIST semodule-utils-3.5.tar.gz 14383 BLAKE2B 
a1bb432013bca1023d99b32f43b2c972b6b807a4677f9d8c9fb9aff10225232506f3ecca86fc231b4c63d04582a91a1c4218f87ce5532a4d35a26a09665c6f10
 SHA512 
7c32f425ae71745040d1c6a6585149a1efb319913aa9d4c8bf185b0a4216dc66378fa38595b171614ee3ae4ade997d3ae56a060346e334faec55c419a87d71dd
 DIST semodule-utils-3.6.tar.gz 12844 BLAKE2B 
e5e7501c412649f471e89cc89569d6c51421e0b46f172f243ce778bbe3a2c658ef9a92e3f3e1e07fb3358e25f63e004b6bd4b56619472fbcae8cb5b916d54170
 SHA512 
16b58bbafcaef9a2e8e34a20d0e1e4024a9044024de8fa3137c5ba1b9af600afac51c15ccb648dd6bff77747c047f4c9feafeea07c19b1eb14955acc92697a48
 DIST semodule-utils-3.7.tar.gz 12896 BLAKE2B 
7487c74585e281f6c44e9977efb85e89bf01d93285c6cc6593dd876e948cc385ec9f11b52f3fc182b2bac3621bcc89c53fc217c41b1a01d586274139b0a40fa6
 SHA512 
133f76ddff0cc4121e59560f4167e15288cc7f6172a39b49ea631803f6e3365fef95166a55498fa2e036de85466e37bb6ec164ef60855eef8c888c9b384b0120

diff --git a/sys-apps/semodule-utils/semodule-utils-3.5.ebuild 
b/sys-apps/semodule-utils/semodule-utils-3.5.ebuild
deleted file mode 100644
index b67d886e7b9c..
--- a/sys-apps/semodule-utils/semodule-utils-3.5.ebuild
+++ /dev/null
@@ -1,43 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="7"
-
-inherit toolchain-funcs
-
-MY_PV="${PV//_/-}"
-MY_P="${PN}-${MY_PV}"
-
-DESCRIPTION="SELinux policy module utilities"
-HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki";
-
-if [[ ${PV} == * ]] ; then
-   inherit git-r3
-   EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git";
-   S="${WORKDIR}/${P}/${PN}"
-else
-   
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz";
-   KEYWORDS="amd64 arm arm64 ~mips x86"
-   S="${WORKDIR}/${MY_P}"
-fi
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE=""
-
-DEPEND=">=sys-libs/libsepol-${PV}:="
-RDEPEND="${DEPEND}"
-
-src_prepare() {
-   default
-
-   sed -i 's/-Werror//g' "${S}"/*/Makefile || die "Failed to remove Werror"
-}
-
-src_compile() {
-   emake CC="$(tc-getCC)"
-}
-
-src_install() {
-   emake DESTDIR="${D}" install
-}



[gentoo-commits] repo/gentoo:master commit in: sys-apps/secilc/

2024-08-11 Thread Jason Zaman
commit: 4ed3fbd9c91d8d6996644faffec4b894eacec33a
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Aug 11 23:58:43 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Mon Aug 12 01:20:41 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ed3fbd9

sys-apps/secilc: drop 3.5

Signed-off-by: Jason Zaman  gentoo.org>

 sys-apps/secilc/Manifest  |  1 -
 sys-apps/secilc/secilc-3.5.ebuild | 37 -
 2 files changed, 38 deletions(-)

diff --git a/sys-apps/secilc/Manifest b/sys-apps/secilc/Manifest
index be70f2c54d39..9f2038f9dffa 100644
--- a/sys-apps/secilc/Manifest
+++ b/sys-apps/secilc/Manifest
@@ -1,3 +1,2 @@
-DIST secilc-3.5.tar.gz 180803 BLAKE2B 
a42620318b312a5ef35565e3b40a89fd7ff44aaf73de835bc349f927193121b72c07bd2151a8a6b2cee53e2699a3ae6bb246084e18a181d334ebc082fdfdc56e
 SHA512 
eff37a981072c4b9c7c15bf4709db8797d8af5325883515f5c2fe611136b24419f6d01c797e4f131c9c08e1ba40576fcb2094b1e34325aae8351b6299bdba3dd
 DIST secilc-3.6.tar.gz 185186 BLAKE2B 
47fdc281cad69339eb23226a277df8c8086557fe3a2c7f013eef38bbfcd62584e318ce2d79552388617687b39c37e67a1328b808becbecad364253b7527d3a52
 SHA512 
91381aae1444822c7897729c1695ca221a4226dcec042b2223a55800d1247510ef2033b844d8d0627623fb15b8169a626fb0ca2efeee8090635219c4139eabf5
 DIST secilc-3.7.tar.gz 185694 BLAKE2B 
c7bdfb01bc23008c5f360aeae9473db096a62ba535b2ec54d8f4ec766495f6de2642656c52d5ca8d28335e84bc42e76c9d5294db73a588aa4bceda8f3d59f814
 SHA512 
1f6061587242b63583370e04cc113b4884060c6071774b90908655df17ddc702187960d1f5b1ed53de9eb6ebd7f0029160e58d8c5f0c1126464bf6222f6f7d3e

diff --git a/sys-apps/secilc/secilc-3.5.ebuild 
b/sys-apps/secilc/secilc-3.5.ebuild
deleted file mode 100644
index a61159147c34..
--- a/sys-apps/secilc/secilc-3.5.ebuild
+++ /dev/null
@@ -1,37 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="7"
-inherit toolchain-funcs
-
-MY_PV="${PV//_/-}"
-MY_P="${PN}-${MY_PV}"
-
-DESCRIPTION="SELinux Common Intermediate Language (CIL) Compiler"
-HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki";
-
-if [[ ${PV} ==  ]]; then
-   inherit git-r3
-   EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git";
-   S="${WORKDIR}/${P}/${PN}"
-else
-   
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz";
-   KEYWORDS="amd64 arm arm64 x86"
-   S="${WORKDIR}/${MY_P}"
-fi
-
-LICENSE="GPL-2"
-SLOT="0"
-
-DEPEND=">=sys-libs/libsepol-${PV}"
-RDEPEND="${DEPEND}"
-BDEPEND="app-text/xmlto"
-
-# tests are not meant to be run outside of the
-# full SELinux userland repo
-RESTRICT="test"
-
-src_compile() {
-   tc-export CC
-   default
-}



[gentoo-commits] repo/gentoo:master commit in: sys-boot/tboot/

2024-08-11 Thread Jason Zaman
commit: 0a715a1c31fa93999da3f5841988018d4cbbc1a7
Author: Christopher Byrne  gmail  com>
AuthorDate: Mon Dec 26 20:19:11 2022 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Aug 11 23:17:07 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a715a1c

sys-boot/tboot: add 1.11.3

Signed-off-by: Christopher Byrne  gmail.com>
Signed-off-by: Jason Zaman  gentoo.org>

 sys-boot/tboot/Manifest|  1 +
 sys-boot/tboot/tboot-1.11.3.ebuild | 77 ++
 2 files changed, 78 insertions(+)

diff --git a/sys-boot/tboot/Manifest b/sys-boot/tboot/Manifest
index 7d038e2463ba..964a585a19d1 100644
--- a/sys-boot/tboot/Manifest
+++ b/sys-boot/tboot/Manifest
@@ -1 +1,2 @@
 DIST tboot-1.10.5.tar.gz 907657 BLAKE2B 
f9e33c512fac304eba6cbf87b497c48ff52c5efdb47103f247e04c95f8e44230671c58811d7d58753cd9c49c53d9ad77a0c5c7fb7fcce5c94d48f8fcaa9ad1f7
 SHA512 
01a039e5612b6cca6f7558e93673ba50edfcfbf3f65e390ac64f4aa6ae0859a314676b20d722dcd41a7a3c940473fe7982e823c800a75bd26a5e8f956528f223
+DIST tboot-1.11.3.tar.gz 924627 BLAKE2B 
5c734121f3c8ef206963fbfb6d1a044f36f3ec4893999357a95a208867101ad14e79289519353f9e634a6c16c824c0af3cdaa7baa436359b6d04e93c5b0054f7
 SHA512 
777026cdfb31041dd7d9dd4d208c888e6fe8259171d1340ea7936f22053362ac1ec64017319626dbcb6a9a1283c8819c9a8fe1107b9b2f3898380fd0abcc047b

diff --git a/sys-boot/tboot/tboot-1.11.3.ebuild 
b/sys-boot/tboot/tboot-1.11.3.ebuild
new file mode 100644
index ..2dd62fe49384
--- /dev/null
+++ b/sys-boot/tboot/tboot-1.11.3.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit mount-boot toolchain-funcs
+
+DESCRIPTION="Performs a measured and verified boot using Intel Trusted 
Execution Technology"
+HOMEPAGE="https://sourceforge.net/projects/tboot/";
+SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz";
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="custom-cflags selinux"
+
+# requires patching the kernel src
+RESTRICT="test"
+
+DEPEND="dev-libs/openssl:0=[-bindist(-)]"
+
+RDEPEND="${DEPEND}
+   sys-boot/grub:2
+   selinux? ( sec-policy/selinux-tboot )"
+
+DOCS=( README.md COPYING CHANGELOG )
+PATCHES=( "${FILESDIR}/${PN}-1.10.3-disable-Werror.patch"
+ "${FILESDIR}/${PN}-1.10.3-disable-strip.patch"
+ "${FILESDIR}/${PN}-1.10.3-dont-call-toolchain-directly.patch"
+ "${FILESDIR}/${PN}-1.10.5-fix-pconf-element.patch" )
+
+pkg_setup() {
+   if tc-is-clang; then
+   eerror "tboot is a freestanding application that uses gcc"
+   eerror "extensions in fundemental ways, include VLAIS"
+   eerror "(Variable Length Arrays in Structs) and will not"
+   eerror "compile with clang witout upstream action"
+   die "Cannot compile with clang. See bug #832020"
+   fi
+}
+
+src_configure() {
+   tc-export AS LD CC CPP AR RANLIB NM OBJCOPY OBJDUMP STRIP
+
+   default
+}
+
+src_compile() {
+   use custom-cflags && export TBOOT_CFLAGS=${CFLAGS} || unset CCASFLAGS 
CFLAGS CPPFLAGS LDFLAGS
+
+   if use amd64; then
+   export MAKEARGS="TARGET_ARCH=x86_64"
+   else
+   export MAKEARGS="TARGET_ARCH=i686"
+   fi
+
+   default
+}
+
+src_install() {
+   emake DISTDIR="${D}" install
+
+   dodoc "${DOCS[@]}"
+   dodoc docs/*.{txt,md}
+
+   cd "${ED}" || die
+   mkdir -p usr/lib/tboot/ || die
+   mv boot usr/lib/tboot/ || die
+}
+
+pkg_postinst() {
+   cp "${ROOT}/usr/lib/tboot/boot/"* "${ROOT}/boot/" || die
+
+   ewarn "Please remember to download the SINIT AC Module relevant"
+   ewarn "for your platform from:"
+   ewarn 
"http://software.intel.com/en-us/articles/intel-trusted-execution-technology/";
+}



[gentoo-commits] repo/gentoo:master commit in: sys-boot/tboot/

2024-08-11 Thread Jason Zaman
commit: 7c3a225147940fb78468a392dd60b8fc8f6028d5
Author: Christopher Byrne  gmail  com>
AuthorDate: Wed Jun 21 16:08:33 2023 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Aug 11 23:17:08 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c3a2251

sys-boot/tboot: drop 1.10.5

Signed-off-by: Christopher Byrne  gmail.com>
Signed-off-by: Jason Zaman  gentoo.org>

 sys-boot/tboot/Manifest|  1 -
 sys-boot/tboot/tboot-1.10.5.ebuild | 77 --
 2 files changed, 78 deletions(-)

diff --git a/sys-boot/tboot/Manifest b/sys-boot/tboot/Manifest
index 964a585a19d1..3c9ef91b05fa 100644
--- a/sys-boot/tboot/Manifest
+++ b/sys-boot/tboot/Manifest
@@ -1,2 +1 @@
-DIST tboot-1.10.5.tar.gz 907657 BLAKE2B 
f9e33c512fac304eba6cbf87b497c48ff52c5efdb47103f247e04c95f8e44230671c58811d7d58753cd9c49c53d9ad77a0c5c7fb7fcce5c94d48f8fcaa9ad1f7
 SHA512 
01a039e5612b6cca6f7558e93673ba50edfcfbf3f65e390ac64f4aa6ae0859a314676b20d722dcd41a7a3c940473fe7982e823c800a75bd26a5e8f956528f223
 DIST tboot-1.11.3.tar.gz 924627 BLAKE2B 
5c734121f3c8ef206963fbfb6d1a044f36f3ec4893999357a95a208867101ad14e79289519353f9e634a6c16c824c0af3cdaa7baa436359b6d04e93c5b0054f7
 SHA512 
777026cdfb31041dd7d9dd4d208c888e6fe8259171d1340ea7936f22053362ac1ec64017319626dbcb6a9a1283c8819c9a8fe1107b9b2f3898380fd0abcc047b

diff --git a/sys-boot/tboot/tboot-1.10.5.ebuild 
b/sys-boot/tboot/tboot-1.10.5.ebuild
deleted file mode 100644
index 2dd62fe49384..
--- a/sys-boot/tboot/tboot-1.10.5.ebuild
+++ /dev/null
@@ -1,77 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit mount-boot toolchain-funcs
-
-DESCRIPTION="Performs a measured and verified boot using Intel Trusted 
Execution Technology"
-HOMEPAGE="https://sourceforge.net/projects/tboot/";
-SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz";
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="-* ~amd64 ~x86"
-IUSE="custom-cflags selinux"
-
-# requires patching the kernel src
-RESTRICT="test"
-
-DEPEND="dev-libs/openssl:0=[-bindist(-)]"
-
-RDEPEND="${DEPEND}
-   sys-boot/grub:2
-   selinux? ( sec-policy/selinux-tboot )"
-
-DOCS=( README.md COPYING CHANGELOG )
-PATCHES=( "${FILESDIR}/${PN}-1.10.3-disable-Werror.patch"
- "${FILESDIR}/${PN}-1.10.3-disable-strip.patch"
- "${FILESDIR}/${PN}-1.10.3-dont-call-toolchain-directly.patch"
- "${FILESDIR}/${PN}-1.10.5-fix-pconf-element.patch" )
-
-pkg_setup() {
-   if tc-is-clang; then
-   eerror "tboot is a freestanding application that uses gcc"
-   eerror "extensions in fundemental ways, include VLAIS"
-   eerror "(Variable Length Arrays in Structs) and will not"
-   eerror "compile with clang witout upstream action"
-   die "Cannot compile with clang. See bug #832020"
-   fi
-}
-
-src_configure() {
-   tc-export AS LD CC CPP AR RANLIB NM OBJCOPY OBJDUMP STRIP
-
-   default
-}
-
-src_compile() {
-   use custom-cflags && export TBOOT_CFLAGS=${CFLAGS} || unset CCASFLAGS 
CFLAGS CPPFLAGS LDFLAGS
-
-   if use amd64; then
-   export MAKEARGS="TARGET_ARCH=x86_64"
-   else
-   export MAKEARGS="TARGET_ARCH=i686"
-   fi
-
-   default
-}
-
-src_install() {
-   emake DISTDIR="${D}" install
-
-   dodoc "${DOCS[@]}"
-   dodoc docs/*.{txt,md}
-
-   cd "${ED}" || die
-   mkdir -p usr/lib/tboot/ || die
-   mv boot usr/lib/tboot/ || die
-}
-
-pkg_postinst() {
-   cp "${ROOT}/usr/lib/tboot/boot/"* "${ROOT}/boot/" || die
-
-   ewarn "Please remember to download the SINIT AC Module relevant"
-   ewarn "for your platform from:"
-   ewarn 
"http://software.intel.com/en-us/articles/intel-trusted-execution-technology/";
-}



[gentoo-commits] repo/gentoo:master commit in: net-libs/google-cloud-cpp/files/, net-libs/google-cloud-cpp/

2024-08-11 Thread Jason Zaman
commit: 5625b743cbb5688bba2b2d3adc8056a30f33bf25
Author: Filip Kobierski  pm  me>
AuthorDate: Wed Jul 31 13:01:30 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Aug 11 22:15:16 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5625b743

net-libs/google-cloud-cpp: drop old

Signed-off-by: Filip Kobierski  pm.me>
Signed-off-by: Jason Zaman  gentoo.org>

 net-libs/google-cloud-cpp/Manifest |  5 --
 ...ogle-cloud-cpp-0.9.0-offline_nlohmannjson.patch | 15 --
 .../google-cloud-cpp-0.10.0-r2.ebuild  | 61 -
 .../google-cloud-cpp-1.36.0.ebuild | 62 --
 4 files changed, 143 deletions(-)

diff --git a/net-libs/google-cloud-cpp/Manifest 
b/net-libs/google-cloud-cpp/Manifest
index ad1605349f85..d4da5f6c7ee5 100644
--- a/net-libs/google-cloud-cpp/Manifest
+++ b/net-libs/google-cloud-cpp/Manifest
@@ -1,7 +1,2 @@
-DIST google-cloud-cpp-0.10.0.tar.gz 2189161 BLAKE2B 
1e599478db3f280cddc4232c7e6005c7b5a48b1f22aecc8a99dc60f461dad349d343b40e6545680e7b211ea40a07c9b069052c2a6e36cb7279e400cdebfa95a3
 SHA512 
9a1774dcc39d1626c8a9cf8630fe3b3110df7e21e452c7b137e1911d10b304997571aadff5fc0216715729db4a29621066a5236a0b2cb027bba4ce3c56492fb3
-DIST google-cloud-cpp-1.36.0.tar.gz 4522003 BLAKE2B 
f436935b3a95fa911fb04429ee20b0712eeaf58f8ebfdd1b75f848e19ffa88d17b1be1d917f5693f1996ce6eaff6bd6053958c2b20cf29370164bccf2794c76c
 SHA512 
a9885f9e0726de64eaee0376f3d1ed3a00c32919f2b9a911479206f2965a62eea5ff292b459f61eae97d5d2fe336c410c615296fcb0c7506faf45c57bd6f8871
 DIST google-cloud-cpp-2.19.0.tar.gz 12289079 BLAKE2B 
915acacdc8e757e95244c715b74618e34ae3a22ea39bd0ae3e628dcd07f0dc99a2baaa11f4f69b9d2134ffc10af9e9437cf8862eff19a720ff415e0b1b15e6b8
 SHA512 
a392da19ac353409ecbf30e390803b2e34670552fd54466a08ee554a77c893d447289b30d5841c7f79b2a23244a269d8ecac8f7fbd8a34dda45ce2d8b1d46817
 DIST googleapis-0e3b813b0d0da539eacbe86b8716feeed00943c5.tar.gz 7914422 
BLAKE2B 
05dfb0523a4208c84d51e99bb3edd531b1d4069971fb6810ab2c31b7bc1b14824be9a4c5d0e176ad741d1b902242702be7f125595d22dd5a6d75d0a9e8790ed8
 SHA512 
56a9fd1ff464f33d80dcce1bfc927e4332fe2e986f731b3f8ceb583265a2b23a659273dc6777a100d563ed972672353f8fd0292f894c42b4142bb5d7882f8ef6
-DIST googleapis-28c6bb97cac6f16c69879be4e655674a74b886ef.tar.gz 5448352 
BLAKE2B 
0421ba9506e931d0bd7b01011832a91235f04ae825489021204da17d543671994e68dfecd97eeb8ee90f42726450d375955e1458e7dfba8551854c036bdc6069
 SHA512 
59f4d78c268280323314b8d471d4877cacc4238bfac3a769aa86cedd22d79ebeb50f2aaa8a60f9264976d12ef629a2a3d1a0da1c0d6723ec08f517ef0fae9450
-DIST googleapis-6a3277c0656219174ff7c345f31fb20a90b30b97.tar.gz 746503 BLAKE2B 
c0cba88c19c658ba7e9e65b80557903f8ded280d25438120b32f8c29a714b58a527c9218f0f73b53646949ecc073d873fee712b370b95523bdea5c28747eeb25
 SHA512 
92795397dfb9a6aa931be7b191ee91f9f2678a7175dea6babf19a50f61923373d288832cf10edf1ff252ca5148fe649c1bf95535e7c21513129495afae4c0ff7
-DIST nlohmann-json-3.4.0-json.hpp 705920 BLAKE2B 
9a22a6420f818038d8c4b352fb92ff0f0041b76232ef8665686399d184cfc62caffb60b4ccf1d8d33ae428839a70fece959f94795d71803623405d041efc9a13
 SHA512 
a1bdb4b434ee34cbc360e0203f500b25e15d7e1a6d25ea6e3bd3b56a5e7ec47d8c0bbe074930b7a07d6ceaf2112eefa24da9c1f0595aaf12c88697048238166d

diff --git 
a/net-libs/google-cloud-cpp/files/google-cloud-cpp-0.9.0-offline_nlohmannjson.patch
 
b/net-libs/google-cloud-cpp/files/google-cloud-cpp-0.9.0-offline_nlohmannjson.patch
deleted file mode 100644
index b528647311eb..
--- 
a/net-libs/google-cloud-cpp/files/google-cloud-cpp-0.9.0-offline_nlohmannjson.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-diff --git a/cmake/DownloadNlohmannJson.cmake 
b/cmake/DownloadNlohmannJson.cmake
-index 1db953bed..4bbbe35fa 100644
 a/cmake/DownloadNlohmannJson.cmake
-+++ b/cmake/DownloadNlohmannJson.cmake
-@@ -37,6 +37,10 @@ function (_download_json_hpp)
- execute_process(COMMAND "${CMAKE_COMMAND}" -E sleep
- "${sleep_seconds}")
- endif ()
-+if (EXISTS "${DEST}/json.hpp")
-+set(download_error_code 0)
-+break()
-+endif ()
- file(DOWNLOAD "${JSON_URL}" "${DEST}/json.hpp" STATUS download_status)
- list(GET download_status 0 download_error_code)
- if (download_error_code EQUAL 0)

diff --git a/net-libs/google-cloud-cpp/google-cloud-cpp-0.10.0-r2.ebuild 
b/net-libs/google-cloud-cpp/google-cloud-cpp-0.10.0-r2.ebuild
deleted file mode 100644
index b441242910a4..
--- a/net-libs/google-cloud-cpp/google-cloud-cpp-0.10.0-r2.ebuild
+++ /dev/null
@@ -1,61 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-CMAKE_MAKEFILE_GENERATOR=emake
-inherit cmake
-
-JSON_VER="3.4.0"
-GOOGLEAPIS_COMMIT="6a3277c0656219174ff7c345f31fb20a90b30b97"
-
-DESCRIPTION="Google Cloud Clie

[gentoo-commits] repo/gentoo:master commit in: sys-process/audit/, sys-process/audit/files/

2024-07-21 Thread Jason Zaman
commit: 1881165de3cc20817f3f874e00bdeb7e0c265439
Author: Jason Zaman  gentoo  org>
AuthorDate: Mon Jul 22 04:09:32 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Mon Jul 22 04:32:28 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1881165d

sys-process/audit: add 4.0.1

Signed-off-by: Jason Zaman  gentoo.org>

 sys-process/audit/Manifest |   1 +
 sys-process/audit/audit-4.0.1.ebuild   | 193 +++
 .../audit-4.0.1-implicit-builtin-functions.patch   | 563 +
 .../audit/files/audit-4.0.1-null-deref.patch   |  35 ++
 4 files changed, 792 insertions(+)

diff --git a/sys-process/audit/Manifest b/sys-process/audit/Manifest
index 32dd6e54f424..efb7e2180891 100644
--- a/sys-process/audit/Manifest
+++ b/sys-process/audit/Manifest
@@ -1,3 +1,4 @@
 DIST audit-3.1.2.tar.gz 1219860 BLAKE2B 
dfdec470bf12cce6c570b3d260e65e2b49e8ac0761e6a6fbf7b4f4a57f92e88367cd74bfcb88e6d718619b88fea27ce963a977c9f4346c95d18a5310e217accb
 SHA512 
a97003a294ed3671df01e2952688e7d5eef59a35f6891feb53e67c4c7eab9ae8c2d18de41a5b5b20e0ad7156fac93aec05f32f6bc5eea706b42b6f27f676446a
 DIST audit-3.1.3.tar.gz 1225761 BLAKE2B 
97ee35fc722083d541e164b27fd318ec7be2a4e4e8774767d14c6a2e800092a37b7042a272db5d208c913fb36d295c5343bd6082237caf0fb561ec3c7a2883db
 SHA512 
7d6399ca97b171d5ea3cf7f7566bdabe9d5677a3a54c75411146dc2971106809a90d1a9cd0b1ba9b8af4cc409e6bee5876c7f2a0c54c42400fdcf9cfade58a8c
 DIST audit-3.1.4.tar.gz 1225648 BLAKE2B 
c6875f7d031e810469511ac8f86f05b2de7f19c044dbf67bc9d66430167fcf0f031e0279ce170a496b672a6fc99ee18b8cc39943e6faf3c19a24a381d2701439
 SHA512 
d26c498c91e838d97d3f199630650f509bb1e82b44d364306b20db32d4116fa73d775ef56c0fed2ec8d548b19215052691cbc80c74699bc87f2a0ea08cf664f5
+DIST audit-4.0.1.tar.gz 1194961 BLAKE2B 
590abf58e672921a432348f48936cfbff0b6ddfa47e77b3b20eaa00e5d1c4ce2fc8d10c1fc1cbc19d44c09a9f7dfbca76778c94d8d340485c2bb1bb3b5a3c95a
 SHA512 
7fbc426d0ddea340a36ceab52ac090e8e3dfb3450ebf50b478324a097f19ab4bb2cf78a2532644acb17e6114b59b8fda718affda9da62fb84181e3abf76039df

diff --git a/sys-process/audit/audit-4.0.1.ebuild 
b/sys-process/audit/audit-4.0.1.ebuild
new file mode 100644
index ..fead7ccba13f
--- /dev/null
+++ b/sys-process/audit/audit-4.0.1.ebuild
@@ -0,0 +1,193 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# As with sys-libs/libcap-ng, same maintainer in Fedora as upstream, so
+# check Fedora's packaging 
(https://src.fedoraproject.org/rpms/audit/tree/rawhide)
+# on bumps (or if hitting a bug) to see what they've done there.
+
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit autotools multilib-minimal toolchain-funcs python-r1 linux-info 
systemd usr-ldscript
+
+DESCRIPTION="Userspace utilities for storing and processing auditing records"
+HOMEPAGE="https://people.redhat.com/sgrubb/audit/";
+SRC_URI="https://people.redhat.com/sgrubb/audit/${P}.tar.gz";
+
+LICENSE="GPL-2+ LGPL-2.1+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86"
+IUSE="gssapi io-uring ldap python static-libs test"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+   sys-libs/libcap-ng
+   gssapi? ( virtual/krb5 )
+   ldap? ( net-nds/openldap:= )
+   python? ( ${PYTHON_DEPS} )
+"
+DEPEND="
+   ${RDEPEND}
+   >=sys-kernel/linux-headers-2.6.34
+   test? ( dev-libs/check )
+"
+BDEPEND="
+   python? (
+   dev-lang/swig
+   $(python_gen_cond_dep '
+   dev-python/setuptools[${PYTHON_USEDEP}]
+   ' python3_12)
+   )
+"
+
+CONFIG_CHECK="~AUDIT"
+
+QA_CONFIG_IMPL_DECL_SKIP=(
+   # missing on musl. Uses handrolled AC_LINK_IFELSE but fails at link time
+   # for older compilers regardless. bug #898828
+   strndupa
+)
+
+PATCHES=(
+   "${FILESDIR}/${P}-implicit-builtin-functions.patch"
+   "${FILESDIR}/${P}-null-deref.patch"
+)
+
+src_prepare() {
+   # audisp-remote moved in multilib_src_install_all
+   sed -i \
+   -e "s,/sbin/audisp-remote,${EPREFIX}/usr/sbin/audisp-remote," \
+   audisp/plugins/remote/au-remote.conf || die
+
+   # Disable installing sample rules so they can be installed as docs.
+   echo -e '%:\n\t:' | tee rules/Makefile.{am,in} >/dev/null || die
+
+   default
+   eautoreconf
+}
+
+multilib_src_configure() {
+   local myeconfargs=(
+   --sbindir="${EPREFIX}"/sbin
+   $(use_enable gssapi gssapi-krb5)
+   $(use_enable ldap zos-remote)
+   $(use_enable static-libs static)
+   $(use_with io-uring io_uring)
+  

[gentoo-commits] repo/gentoo:master commit in: sys-process/audit/

2024-07-14 Thread Jason Zaman
commit: 3edb55baebcf30334a12d5246066dd1af680f98c
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Jul 14 22:37:12 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Jul 14 23:13:53 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3edb55ba

sys-process/audit: add 3.1.4

Signed-off-by: Jason Zaman  gentoo.org>

 sys-process/audit/Manifest   |   1 +
 sys-process/audit/audit-3.1.4.ebuild | 190 +++
 2 files changed, 191 insertions(+)

diff --git a/sys-process/audit/Manifest b/sys-process/audit/Manifest
index d7059e70c611..a4241527b24b 100644
--- a/sys-process/audit/Manifest
+++ b/sys-process/audit/Manifest
@@ -1,3 +1,4 @@
 DIST audit-3.1.1.tar.gz 1218111 BLAKE2B 
a804684e438efc5f35b387708b3dc91bf857eeb56624261e0f75543556c436bfe638b792f63289f049c11541b10b2dc0e9f17b22f44b913da0168b1cf20684fc
 SHA512 
4917970cc4c7f786c464a6d101bf66d55d55ac4716cf415ff97177f08176a6301e946716d28cf5b16054538469b3140b97db99d55a28686a9a807eea60c070f3
 DIST audit-3.1.2.tar.gz 1219860 BLAKE2B 
dfdec470bf12cce6c570b3d260e65e2b49e8ac0761e6a6fbf7b4f4a57f92e88367cd74bfcb88e6d718619b88fea27ce963a977c9f4346c95d18a5310e217accb
 SHA512 
a97003a294ed3671df01e2952688e7d5eef59a35f6891feb53e67c4c7eab9ae8c2d18de41a5b5b20e0ad7156fac93aec05f32f6bc5eea706b42b6f27f676446a
 DIST audit-3.1.3.tar.gz 1225761 BLAKE2B 
97ee35fc722083d541e164b27fd318ec7be2a4e4e8774767d14c6a2e800092a37b7042a272db5d208c913fb36d295c5343bd6082237caf0fb561ec3c7a2883db
 SHA512 
7d6399ca97b171d5ea3cf7f7566bdabe9d5677a3a54c75411146dc2971106809a90d1a9cd0b1ba9b8af4cc409e6bee5876c7f2a0c54c42400fdcf9cfade58a8c
+DIST audit-3.1.4.tar.gz 1225648 BLAKE2B 
c6875f7d031e810469511ac8f86f05b2de7f19c044dbf67bc9d66430167fcf0f031e0279ce170a496b672a6fc99ee18b8cc39943e6faf3c19a24a381d2701439
 SHA512 
d26c498c91e838d97d3f199630650f509bb1e82b44d364306b20db32d4116fa73d775ef56c0fed2ec8d548b19215052691cbc80c74699bc87f2a0ea08cf664f5

diff --git a/sys-process/audit/audit-3.1.4.ebuild 
b/sys-process/audit/audit-3.1.4.ebuild
new file mode 100644
index ..0d70c01f9efe
--- /dev/null
+++ b/sys-process/audit/audit-3.1.4.ebuild
@@ -0,0 +1,190 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# As with sys-libs/libcap-ng, same maintainer in Fedora as upstream, so
+# check Fedora's packaging 
(https://src.fedoraproject.org/rpms/audit/tree/rawhide)
+# on bumps (or if hitting a bug) to see what they've done there.
+
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit autotools multilib-minimal toolchain-funcs python-r1 linux-info 
systemd usr-ldscript
+
+DESCRIPTION="Userspace utilities for storing and processing auditing records"
+HOMEPAGE="https://people.redhat.com/sgrubb/audit/";
+SRC_URI="https://people.redhat.com/sgrubb/audit/${P}.tar.gz";
+
+LICENSE="GPL-2+ LGPL-2.1+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86"
+IUSE="gssapi io-uring ldap python static-libs test"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+   sys-libs/libcap-ng
+   gssapi? ( virtual/krb5 )
+   ldap? ( net-nds/openldap:= )
+   python? ( ${PYTHON_DEPS} )
+"
+DEPEND="
+   ${RDEPEND}
+   >=sys-kernel/linux-headers-2.6.34
+   test? ( dev-libs/check )
+"
+BDEPEND="
+   python? (
+   dev-lang/swig
+   $(python_gen_cond_dep '
+   dev-python/setuptools[${PYTHON_USEDEP}]
+   ' python3_12)
+   )
+"
+
+CONFIG_CHECK="~AUDIT"
+
+QA_CONFIG_IMPL_DECL_SKIP=(
+   # missing on musl. Uses handrolled AC_LINK_IFELSE but fails at link time
+   # for older compilers regardless. bug #898828
+   strndupa
+)
+
+src_prepare() {
+   # audisp-remote moved in multilib_src_install_all
+   sed -i \
+   -e "s,/sbin/audisp-remote,${EPREFIX}/usr/sbin/audisp-remote," \
+   audisp/plugins/remote/au-remote.conf || die
+
+   # Disable installing sample rules so they can be installed as docs.
+   echo -e '%:\n\t:' | tee rules/Makefile.{am,in} >/dev/null || die
+
+   default
+   eautoreconf
+}
+
+multilib_src_configure() {
+   local myeconfargs=(
+   --sbindir="${EPREFIX}"/sbin
+   $(use_enable gssapi gssapi-krb5)
+   $(use_enable ldap zos-remote)
+   $(use_enable static-libs static)
+   $(use_with io-uring io_uring)
+   --enable-systemd
+   --without-golang
+   --without-libwrap
+   --without-python
+   --without-python3
+   )
+
+   ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
+
+   if multilib_is_native_abi &

[gentoo-commits] repo/gentoo:master commit in: sys-process/audit/files/, sys-process/audit/

2024-07-14 Thread Jason Zaman
commit: 06f2781c70fab797c05d34fdccd3abca5391946e
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Jul 14 22:43:21 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Jul 14 23:13:54 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06f2781c

sys-process/audit: drop 3.1.1

Signed-off-by: Jason Zaman  gentoo.org>

 sys-process/audit/Manifest |   1 -
 sys-process/audit/audit-3.1.1.ebuild   | 196 -
 .../files/audit-3.0.8-linux-headers-5.17.patch |  41 -
 3 files changed, 238 deletions(-)

diff --git a/sys-process/audit/Manifest b/sys-process/audit/Manifest
index a4241527b24b..32dd6e54f424 100644
--- a/sys-process/audit/Manifest
+++ b/sys-process/audit/Manifest
@@ -1,4 +1,3 @@
-DIST audit-3.1.1.tar.gz 1218111 BLAKE2B 
a804684e438efc5f35b387708b3dc91bf857eeb56624261e0f75543556c436bfe638b792f63289f049c11541b10b2dc0e9f17b22f44b913da0168b1cf20684fc
 SHA512 
4917970cc4c7f786c464a6d101bf66d55d55ac4716cf415ff97177f08176a6301e946716d28cf5b16054538469b3140b97db99d55a28686a9a807eea60c070f3
 DIST audit-3.1.2.tar.gz 1219860 BLAKE2B 
dfdec470bf12cce6c570b3d260e65e2b49e8ac0761e6a6fbf7b4f4a57f92e88367cd74bfcb88e6d718619b88fea27ce963a977c9f4346c95d18a5310e217accb
 SHA512 
a97003a294ed3671df01e2952688e7d5eef59a35f6891feb53e67c4c7eab9ae8c2d18de41a5b5b20e0ad7156fac93aec05f32f6bc5eea706b42b6f27f676446a
 DIST audit-3.1.3.tar.gz 1225761 BLAKE2B 
97ee35fc722083d541e164b27fd318ec7be2a4e4e8774767d14c6a2e800092a37b7042a272db5d208c913fb36d295c5343bd6082237caf0fb561ec3c7a2883db
 SHA512 
7d6399ca97b171d5ea3cf7f7566bdabe9d5677a3a54c75411146dc2971106809a90d1a9cd0b1ba9b8af4cc409e6bee5876c7f2a0c54c42400fdcf9cfade58a8c
 DIST audit-3.1.4.tar.gz 1225648 BLAKE2B 
c6875f7d031e810469511ac8f86f05b2de7f19c044dbf67bc9d66430167fcf0f031e0279ce170a496b672a6fc99ee18b8cc39943e6faf3c19a24a381d2701439
 SHA512 
d26c498c91e838d97d3f199630650f509bb1e82b44d364306b20db32d4116fa73d775ef56c0fed2ec8d548b19215052691cbc80c74699bc87f2a0ea08cf664f5

diff --git a/sys-process/audit/audit-3.1.1.ebuild 
b/sys-process/audit/audit-3.1.1.ebuild
deleted file mode 100644
index 97910e182b7e..
--- a/sys-process/audit/audit-3.1.1.ebuild
+++ /dev/null
@@ -1,196 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-# As with sys-libs/libcap-ng, same maintainer in Fedora as upstream, so
-# check Fedora's packaging 
(https://src.fedoraproject.org/rpms/audit/tree/rawhide)
-# on bumps (or if hitting a bug) to see what they've done there.
-
-PYTHON_COMPAT=( python3_{10..12} )
-
-inherit autotools multilib-minimal toolchain-funcs python-r1 linux-info 
systemd usr-ldscript
-
-DESCRIPTION="Userspace utilities for storing and processing auditing records"
-HOMEPAGE="https://people.redhat.com/sgrubb/audit/";
-SRC_URI="https://people.redhat.com/sgrubb/audit/${P}.tar.gz";
-
-LICENSE="GPL-2+ LGPL-2.1+"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv 
~s390 sparc x86"
-IUSE="gssapi io-uring ldap python static-libs test"
-
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
-   sys-libs/libcap-ng
-   gssapi? ( virtual/krb5 )
-   ldap? ( net-nds/openldap:= )
-   python? ( ${PYTHON_DEPS} )
-"
-DEPEND="
-   ${RDEPEND}
-   >=sys-kernel/linux-headers-2.6.34
-   test? ( dev-libs/check )
-"
-BDEPEND="python? (
-   dev-lang/swig
-   $(python_gen_cond_dep '
-   dev-python/setuptools[${PYTHON_USEDEP}]
-   ' python3_12)
-   )
-"
-
-CONFIG_CHECK="~AUDIT"
-
-PATCHES=(
-   # See bug #836702 before removing / verify builds fine w/ USE=python
-   # with latest kernel headers.
-   "${FILESDIR}"/${PN}-3.0.8-linux-headers-5.17.patch
-   "${FILESDIR}"/${PN}-3.0.8-musl-malloc.patch
-)
-
-QA_CONFIG_IMPL_DECL_SKIP=(
-   # missing on musl. Uses handrolled AC_LINK_IFELSE but fails at link time
-   # for older compilers regardless. bug #898828
-   strndupa
-)
-
-src_prepare() {
-   # audisp-remote moved in multilib_src_install_all
-   sed -i \
-   -e "s,/sbin/audisp-remote,${EPREFIX}/usr/sbin/audisp-remote," \
-   audisp/plugins/remote/au-remote.conf || die
-
-   # Disable installing sample rules so they can be installed as docs.
-   echo -e '%:\n\t:' | tee rules/Makefile.{am,in} >/dev/null || die
-
-   default
-   eautoreconf
-}
-
-multilib_src_configure() {
-   local myeconfargs=(
-   --sbindir="${EPREFIX}"/sbin
-   $(use_enable gssapi gssapi-krb5)
-   $(use_enable ldap zos-remote)
-   

[gentoo-commits] repo/gentoo:master commit in: sci-astronomy/siril/files/, sci-astronomy/siril/

2024-07-05 Thread Jason Zaman
commit: ebe0880735724b0da36d882d33a11f37d5f3a07d
Author: Mario Haustein  hrz  tu-chemnitz  de>
AuthorDate: Fri Jun 14 15:48:41 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Fri Jul  5 22:29:20 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebe08807

sci-astronomy/siril: drop 1.2.0

Closes: https://github.com/gentoo/gentoo/pull/37158
Signed-off-by: Mario Haustein  hrz.tu-chemnitz.de>
Signed-off-by: Jason Zaman  gentoo.org>

 sci-astronomy/siril/Manifest   |  1 -
 .../siril/files/siril-1.2-exiv2-0.28.patch | 39 -
 sci-astronomy/siril/siril-1.2.0.ebuild | 92 --
 3 files changed, 132 deletions(-)

diff --git a/sci-astronomy/siril/Manifest b/sci-astronomy/siril/Manifest
index cb5cfbd03c0b..3dd2b5266b76 100644
--- a/sci-astronomy/siril/Manifest
+++ b/sci-astronomy/siril/Manifest
@@ -1,3 +1,2 @@
-DIST siril-1.2.0.tar.bz2 4500147 BLAKE2B 
7ff4fa5bf1b578336c82bd0f67e404fe47715640edae9cb231da4a3c6a30638612e77515049d56dd1d444965ad58f12d5e2516ad13d3e726f13242b11d91b954
 SHA512 
7df7b17d65a2aad9e0edd4b5022c1d23688ad8884a973d2195391234151aff0824e155ce949b385a951eaef71065a811f33b54e08b865ab5fa6c1d331841663c
 DIST siril-1.2.1.tar.bz2 4596163 BLAKE2B 
c461a397e623164ccb2310b26aede120bf587b3491a2af3fab446af5ecbfb716169120b549c496bb615d3b7ac6175629258173fe66682ef4684ef5cf01d64761
 SHA512 
352b3e761a2d863d4ce4e01b0bf4181d8fefa903478973b50ace76ff419dbf07775099a994e685cd83cc2210b34ca10fb98004cedfdea34fe0c1520b4892bb6d
 DIST siril-1.2.3.tar.bz2 4615997 BLAKE2B 
f8464849fad03faca07f238b3abd08c59126dab567666d92f1a53d2cea302608fe40b5532c6544029e869c639d1fc625c8ccc98779e678457713675c43225a74
 SHA512 
52cfa86ce0ddede42a3572c3d422a72da02a6efe207231ec98de9d59cc48704edd35e8ae83e86318e6980ce80eca3b9dba639e93f8551355a1328156ed9a

diff --git a/sci-astronomy/siril/files/siril-1.2-exiv2-0.28.patch 
b/sci-astronomy/siril/files/siril-1.2-exiv2-0.28.patch
deleted file mode 100644
index 8678316bfc87..
--- a/sci-astronomy/siril/files/siril-1.2-exiv2-0.28.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-* asturm 2023-08-20: Combination of two commits from upstream git master
-  3c2579cd: Pick the only hunk relevant for exiv2-0.28...
-  64583490: Blend with that to fix build w/o exiv2 and fix indendation...
-
-  
-From 3c2579cd171314f7e408c00bc8e793330dcc07ba Mon Sep 17 00:00:00 2001
-From: Cyril Richard 
-Date: Sun, 4 Jun 2023 22:10:55 +
-Subject: [PATCH] XISF image import
-
-From 64583490214302f4057cf223d7591be9d2172a4f Mon Sep 17 00:00:00 2001
-From: Vincent Hourdin 
-Date: Mon, 5 Jun 2023 00:27:56 +0200
-Subject: [PATCH] fixing exiv2 as optional
-
 a/src/core/exif.cpp
-+++ b/src/core/exif.cpp
-@@ -121,10 +121,18 @@
- #endif
- }
- 
-+#ifdef HAVE_EXIV2
-+#if EXIV2_TEST_VERSION(0,28,0)
-+typedef Exiv2::Image::UniquePtr ImagePtr;
-+#else
-+typedef Exiv2::Image::AutoPtr ImagePtr;
-+#endif
-+#endif
-+
- gchar* siril_get_date_from_exif(const char *filename) {
- #ifdef HAVE_EXIV2
-   try {
--  Exiv2::Image::AutoPtr image = 
Exiv2::ImageFactory::open(WIDEN(filename));
-+  ImagePtr image = Exiv2::ImageFactory::open(WIDEN(filename));
-   if (image.get() == 0) {
-   fprintf(stderr, "Error Cannot open the file.\n");
-   return NULL;
--- 
-GitLab

diff --git a/sci-astronomy/siril/siril-1.2.0.ebuild 
b/sci-astronomy/siril/siril-1.2.0.ebuild
deleted file mode 100644
index 70a659136663..
--- a/sci-astronomy/siril/siril-1.2.0.ebuild
+++ /dev/null
@@ -1,92 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit meson optfeature toolchain-funcs xdg
-
-DESCRIPTION="A free astronomical image processing software"
-HOMEPAGE="https://siril.org/";
-
-if [[ ${PV} == "" ]]; then
-   inherit git-r3
-   EGIT_REPO_URI="https://gitlab.com/free-astro/${PN}.git";
-else
-   
SRC_URI="https://gitlab.com/free-astro/siril/-/archive/${PV/_/-}/${PN}-${PV/_/-}.tar.bz2";
-   KEYWORDS="amd64 ~x86"
-   S="${WORKDIR}/${PN}-${PV/_/-}"
-fi
-
-LICENSE="GPL-3+ Boost-1.0"
-SLOT="0"
-IUSE="curl exif ffmpeg heif jpeg libconfig openmp png raw tiff wcs"
-
-DEPEND="
-   >=dev-libs/glib-2.56.0:2
-   >=dev-libs/json-glib-1.2.6
-   media-libs/librtprocess
-   >=media-libs/opencv-4.4.0:=
-   sci-libs/cfitsio:=
-   sci-libs/fftw:3.0=
-   sci-libs/gsl:=
-   x11-libs/gdk-pixbuf:2
-   x11-libs/cairo
-   x11-libs/pango
-   >=x11-libs/gtk+-3.20.0:3
-   curl? ( net-misc/curl )
-   exif? ( >=media-gfx/exiv2-0.25:= )
-   ffmpeg? ( media-video/ffmpeg:= )
-   heif? ( media-libs/libheif:= )
-   jpeg? ( media-libs/libjpeg-turbo:= )
-   libconfig? ( >=dev-libs/libconfig-1.4:=[

[gentoo-commits] repo/gentoo:master commit in: sci-astronomy/siril/

2024-07-05 Thread Jason Zaman
commit: b4ccf373e8de530244564678f6d30e9e58463b3f
Author: Mario Haustein  hrz  tu-chemnitz  de>
AuthorDate: Mon Jun 24 21:49:39 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Fri Jul  5 22:29:19 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4ccf373

sci-astronomy/siril: add 1.2.3

Signed-off-by: Mario Haustein  hrz.tu-chemnitz.de>
Signed-off-by: Jason Zaman  gentoo.org>

 sci-astronomy/siril/Manifest   |  1 +
 sci-astronomy/siril/siril-1.2.3.ebuild | 93 ++
 2 files changed, 94 insertions(+)

diff --git a/sci-astronomy/siril/Manifest b/sci-astronomy/siril/Manifest
index 2840ba6a92d8..cb5cfbd03c0b 100644
--- a/sci-astronomy/siril/Manifest
+++ b/sci-astronomy/siril/Manifest
@@ -1,2 +1,3 @@
 DIST siril-1.2.0.tar.bz2 4500147 BLAKE2B 
7ff4fa5bf1b578336c82bd0f67e404fe47715640edae9cb231da4a3c6a30638612e77515049d56dd1d444965ad58f12d5e2516ad13d3e726f13242b11d91b954
 SHA512 
7df7b17d65a2aad9e0edd4b5022c1d23688ad8884a973d2195391234151aff0824e155ce949b385a951eaef71065a811f33b54e08b865ab5fa6c1d331841663c
 DIST siril-1.2.1.tar.bz2 4596163 BLAKE2B 
c461a397e623164ccb2310b26aede120bf587b3491a2af3fab446af5ecbfb716169120b549c496bb615d3b7ac6175629258173fe66682ef4684ef5cf01d64761
 SHA512 
352b3e761a2d863d4ce4e01b0bf4181d8fefa903478973b50ace76ff419dbf07775099a994e685cd83cc2210b34ca10fb98004cedfdea34fe0c1520b4892bb6d
+DIST siril-1.2.3.tar.bz2 4615997 BLAKE2B 
f8464849fad03faca07f238b3abd08c59126dab567666d92f1a53d2cea302608fe40b5532c6544029e869c639d1fc625c8ccc98779e678457713675c43225a74
 SHA512 
52cfa86ce0ddede42a3572c3d422a72da02a6efe207231ec98de9d59cc48704edd35e8ae83e86318e6980ce80eca3b9dba639e93f8551355a1328156ed9a

diff --git a/sci-astronomy/siril/siril-1.2.3.ebuild 
b/sci-astronomy/siril/siril-1.2.3.ebuild
new file mode 100644
index ..8b3fc3865d24
--- /dev/null
+++ b/sci-astronomy/siril/siril-1.2.3.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson optfeature toolchain-funcs xdg
+
+DESCRIPTION="A free astronomical image processing software"
+HOMEPAGE="https://siril.org/";
+
+if [[ ${PV} == "" ]]; then
+   inherit git-r3
+   EGIT_REPO_URI="https://gitlab.com/free-astro/${PN}.git";
+else
+   
SRC_URI="https://gitlab.com/free-astro/siril/-/archive/${PV/_/-}/${PN}-${PV/_/-}.tar.bz2";
+   KEYWORDS="~amd64 ~x86"
+   S="${WORKDIR}/${PN}-${PV/_/-}"
+fi
+
+LICENSE="GPL-3+ Boost-1.0"
+SLOT="0"
+IUSE="curl exif ffmpeg heif jpeg libconfig openmp png raw tiff wcs"
+
+DEPEND="
+   >=dev-libs/glib-2.56.0:2
+   >=dev-libs/json-glib-1.2.6
+   media-libs/librtprocess
+   >=media-libs/opencv-4.4.0:=
+   sci-libs/cfitsio:=
+   sci-libs/fftw:3.0=
+   sci-libs/gsl:=
+   x11-libs/gdk-pixbuf:2
+   x11-libs/cairo
+   x11-libs/pango
+   >=x11-libs/gtk+-3.20.0:3
+   curl? ( net-misc/curl )
+   exif? ( >=media-gfx/exiv2-0.25:= )
+   ffmpeg? ( media-video/ffmpeg:= )
+   heif? ( media-libs/libheif:= )
+   jpeg? ( media-libs/libjpeg-turbo:= )
+   libconfig? ( >=dev-libs/libconfig-1.4:=[cxx] )
+   png? ( >=media-libs/libpng-1.6.0:= )
+   raw? ( media-libs/libraw:= )
+   tiff? ( media-libs/tiff:= )
+   wcs? ( >=sci-astronomy/wcslib-7.7:= )
+"
+RDEPEND="
+   ${DEPEND}
+"
+BDEPEND="dev-build/cmake
+   x11-base/xorg-proto"
+
+PATCHES=(
+   "${FILESDIR}/${PN}-docfiles.patch"
+   "${FILESDIR}/${PN}-1.2-fseek64-musl.patch"
+   "${FILESDIR}/${PN}-1.2.1-options.patch"
+)
+
+DOCS=( README.md NEWS ChangeLog AUTHORS )
+
+pkg_pretend() {
+   [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+   [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+src_configure() {
+   local emesonargs=(
+   -Dffms2=false
+   -Dcriterion=false
+   $(meson_use exif exiv2)
+   $(meson_use ffmpeg)
+   $(meson_use heif libheif)
+   $(meson_use jpeg libjpeg)
+   $(meson_use libconfig)
+   $(meson_use openmp)
+   $(meson_use png libpng)
+   $(meson_use raw libraw)
+   $(meson_use tiff libtiff)
+   $(meson_use wcs wcslib)
+   $(usex curl -Denable-libcurl=yes -Denable-libcurl=no)
+   )
+   meson_src_configure
+}
+
+pkg_postinst() {
+   xdg_desktop_database_update
+   xdg_icon_cache_update
+   xdg_mimeinfo_database_update
+   optfeature "gnuplot support" sci-visualization/gnuplot
+}



[gentoo-commits] repo/gentoo:master commit in: sci-astronomy/sirilic/

2024-07-05 Thread Jason Zaman
commit: 5bc1e26e89408440f0220da0afdee82e4476e153
Author: Mario Haustein  hrz  tu-chemnitz  de>
AuthorDate: Wed Jun 12 15:20:27 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Fri Jul  5 22:29:21 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bc1e26e

sci-astronomy/sirilic: enable py3.12

Closes: https://github.com/gentoo/gentoo/pull/37132
Signed-off-by: Mario Haustein  hrz.tu-chemnitz.de>
Signed-off-by: Jason Zaman  gentoo.org>

 sci-astronomy/sirilic/sirilic-1.15.8-r1.ebuild | 23 +++
 1 file changed, 23 insertions(+)

diff --git a/sci-astronomy/sirilic/sirilic-1.15.8-r1.ebuild 
b/sci-astronomy/sirilic/sirilic-1.15.8-r1.ebuild
new file mode 100644
index ..dd5dcb825cc7
--- /dev/null
+++ b/sci-astronomy/sirilic/sirilic-1.15.8-r1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 2021-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} )
+inherit distutils-r1
+
+DESCRIPTION="Preparing acquisition files for processing with the SiriL 
software"
+HOMEPAGE="https://gitlab.com/free-astro/sirilic";
+SRC_URI="https://gitlab.com/free-astro/sirilic/-/archive/V${PV}/${PN}-V${PV}.tar.bz2";
+S="${WORKDIR}/${PN}-V${PV}"
+
+LICENSE="LGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="
+   dev-python/requests[${PYTHON_USEDEP}]
+   >=dev-python/wxpython-4.2:4.0[${PYTHON_USEDEP}]
+"
+RDEPEND="${DEPEND}"



[gentoo-commits] repo/gentoo:master commit in: sys-apps/selinux-python/

2024-06-29 Thread Jason Zaman
commit: af6b633a45323f175e63a6befb4941c6f6a20e30
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Jun 30 00:39:05 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Jun 30 00:39:05 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af6b633a

sys-apps/selinux-python: bump to 3.7

Signed-off-by: Jason Zaman  gentoo.org>

 sys-apps/selinux-python/Manifest  |   1 +
 sys-apps/selinux-python/selinux-python-3.7.ebuild | 117 ++
 2 files changed, 118 insertions(+)

diff --git a/sys-apps/selinux-python/Manifest b/sys-apps/selinux-python/Manifest
index 36a775ec9d10..2891961c7ef0 100644
--- a/sys-apps/selinux-python/Manifest
+++ b/sys-apps/selinux-python/Manifest
@@ -1,2 +1,3 @@
 DIST selinux-python-3.5.tar.gz 3604439 BLAKE2B 
5a7fcd303c337cb0f5ae0066d13c945bb5cacaba472c7b17f0496295294998fcc6d81c153720ef704b749a01590c28b48b4f471a48fc386b8f02564c3550250b
 SHA512 
2ac176a9f078f2b2721e5871ba21e92041eed54fc692fd8d809ff14327beee6de63b3084d0f1053a640b9e40bcc6461498915bb9b038a658cd772f77d80fd217
 DIST selinux-python-3.6.tar.gz 3633272 BLAKE2B 
c2b99779eda2c7698f7f68740e3136cbfa5ab471a5d154142aafd2694d8c32aa605df3609a3667c687449d3ba44e72bcc3b37c36adecba8e34fcc629b9f04de5
 SHA512 
6289f3f2a3038b2cb62f6b3b12c729a9981c34a5ee80c0830e6316e8c77f5283dffa46007f6e7dc073332b829ed9953ba54e64c986fb18c7dc40759ec0375dc9
+DIST selinux-python-3.7.tar.gz 3652377 BLAKE2B 
59fd7cab0034c175f42f6120ba665701945adcbd4e8af97a0dc2a1c79688a596b199528886ceea079a3f7a969258611fb660449d313d9e893de381293e786381
 SHA512 
036bc1f0e64cbbaade592dc7899a92765a0bac426140d7d3960f73bad6eb5f95d79d91e0f0e1604f88a991ebf59c4c90ccaaa4158f5dc4d3275ca2aed1673b09

diff --git a/sys-apps/selinux-python/selinux-python-3.7.ebuild 
b/sys-apps/selinux-python/selinux-python-3.7.ebuild
new file mode 100644
index ..f772119ca1ee
--- /dev/null
+++ b/sys-apps/selinux-python/selinux-python-3.7.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_REQ_USE="xml(+)"
+
+inherit python-r1 toolchain-funcs
+
+MY_PV="${PV//_/-}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="SELinux core utilities"
+HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki";
+
+if [[ ${PV} ==  ]] ; then
+   inherit git-r3
+   EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git";
+   S="${WORKDIR}/${P}/${PN#selinux-}"
+else
+   
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz";
+   KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
+   S="${WORKDIR}/${MY_P}"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND=">=sys-libs/libselinux-${PV}:=[python]
+   >=sys-libs/libsemanage-${PV}:=[python(+)]
+   >=sys-libs/libsepol-${PV}:=
+   >=app-admin/setools-4.2.0[${PYTHON_USEDEP}]
+   >=sys-process/audit-1.5.1[python,${PYTHON_USEDEP}]
+   ${PYTHON_DEPS}"
+DEPEND="${RDEPEND}"
+BDEPEND="
+   test? (
+   ${RDEPEND}
+   >=sys-apps/secilc-${PV}
+   )"
+
+src_prepare() {
+   default
+   sed -i 's/-Werror//g' "${S}"/*/Makefile || die "Failed to remove Werror"
+
+   python_copy_sources
+}
+
+src_compile() {
+   building() {
+   emake -C "${BUILD_DIR}" \
+   CC="$(tc-getCC)" \
+   LIBDIR="\$(PREFIX)/$(get_libdir)"
+   }
+   python_foreach_impl building
+}
+
+src_test() {
+   testing() {
+   # The different subprojects have some interproject dependencies:
+   # - audit2allow depens on sepolgen
+   # - chcat depends on semanage
+   # and maybe others.
+   # Add all the modules of the individual subprojects to the
+   # PYTHONPATH, so they get actually found and used. In
+   # particular, already installed versions on the system are not
+   # used.
+   for dir in audit2allow chcat semanage sepolgen/src sepolicy ; do
+   PYTHONPATH="${BUILD_DIR}/${dir}:${PYTHONPATH}"
+   done
+   PYTHONPATH=${PYTHONPATH} \
+   emake -C "${BUILD_DIR}" \
+   test
+   }
+   python_foreach_impl testing
+}
+
+src_install() {
+   installation() {
+   emake -C "${BUILD_DIR}" \
+   DESTDIR="${D}" \
+   LIBDIR="\$(PREFIX)/$(get_libdir)" \
+   

[gentoo-commits] repo/gentoo:master commit in: sys-apps/restorecond/

2024-06-29 Thread Jason Zaman
commit: 8f65771b60c5bd0a7d1a80e2c53f89a5303b6fec
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Jun 30 00:39:53 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Jun 30 00:39:53 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f65771b

sys-apps/restorecond: bump to 3.7

Signed-off-by: Jason Zaman  gentoo.org>

 sys-apps/restorecond/Manifest   |  1 +
 sys-apps/restorecond/restorecond-3.7.ebuild | 53 +
 2 files changed, 54 insertions(+)

diff --git a/sys-apps/restorecond/Manifest b/sys-apps/restorecond/Manifest
index c48a0b0fc5a8..68daa3551b54 100644
--- a/sys-apps/restorecond/Manifest
+++ b/sys-apps/restorecond/Manifest
@@ -1,2 +1,3 @@
 DIST restorecond-3.5.tar.gz 19070 BLAKE2B 
6db7d0fc9085a07669d346e025836a94acca610572e986e2c90974b0bd21b55e66b57a2dafd7d42011bed5f06363b654f5431ac43530fccf7b68d3edd9d63850
 SHA512 
80cb84e62c7072a12fe57ebaafc0bcb441c853862c67f9ea35b86faa2d8e49ea22a70b9e05a3ff24e8ce08ca2999604d7961efd534f89167cd6fcb05c852de40
 DIST restorecond-3.6.tar.gz 18020 BLAKE2B 
306b4a7c9990c0b2f229cc7963dbd0481df5f9fbecd709b37d254839177fc604f6f85ac19235209f4fbb12d9186f01dd71a11f98deca5d01bd70c415240ddf5a
 SHA512 
e21fa23bfea488f2bddd01b4bab353f22863e09247078e47db9852995d7a0153aee6483cbeaaaf033b482b60f80affad0b6a3e829f935c3901c034a7efb1ebef
+DIST restorecond-3.7.tar.gz 18072 BLAKE2B 
3f352345fa169a438fd6dc073d329c68aca67b3c49d100b1dc619ae40eae3764fa07327306ec0f1232450433e27908493711cc6aec20ebb60f2b66dbceed0cb8
 SHA512 
6b0ed20a5d6654281cae78a337254558a2170040f09c1f7ba023b40cf2a5b33b36d6f3c57d9e32d55523fbe78a8b212c0de377ce201778e2211aa37dc0b2b936

diff --git a/sys-apps/restorecond/restorecond-3.7.ebuild 
b/sys-apps/restorecond/restorecond-3.7.ebuild
new file mode 100644
index ..452a33b36841
--- /dev/null
+++ b/sys-apps/restorecond/restorecond-3.7.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+inherit systemd toolchain-funcs
+
+MY_PV="${PV//_/-}"
+MY_P="${PN}-${MY_PV}"
+
+if [[ ${PV} == * ]] ; then
+   inherit git-r3
+   EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git";
+   S="${WORKDIR}/${P}/${PN}"
+else
+   
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz";
+   KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
+   S="${WORKDIR}/${MY_P}"
+fi
+
+DESCRIPTION="Daemon to watch for creation and set default SELinux fcontexts"
+HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki";
+
+LICENSE="GPL-2"
+SLOT="0"
+
+DEPEND="dev-libs/glib:2
+   >=sys-libs/libsepol-${PV}:=
+   >=sys-libs/libselinux-${PV}:="
+
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+   default
+
+   sed -i 's/-Werror//g' "${S}"/Makefile || die "Failed to remove Werror"
+}
+
+src_compile() {
+   tc-export CC
+   default
+}
+
+src_install() {
+   emake DESTDIR="${D}" \
+   SYSTEMDSYSTEMUNITDIR="$(systemd_get_systemunitdir)" \
+   SYSTEMDUSERUNITDIR=$(systemd_get_userunitdir) \
+   install
+
+   rm -rf "${D}/etc/rc.d" || die
+
+   newinitd "${FILESDIR}/restorecond.init" restorecond
+}



[gentoo-commits] repo/gentoo:master commit in: sys-apps/policycoreutils/

2024-06-29 Thread Jason Zaman
commit: c14d8d314cf1ffec2007f9f8acf17f37c7e8a50d
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Jun 30 00:38:49 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Jun 30 00:38:49 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c14d8d31

sys-apps/policycoreutils: bump to 3.7

Signed-off-by: Jason Zaman  gentoo.org>

 sys-apps/policycoreutils/Manifest  |   1 +
 .../policycoreutils/policycoreutils-3.7.ebuild | 168 +
 2 files changed, 169 insertions(+)

diff --git a/sys-apps/policycoreutils/Manifest 
b/sys-apps/policycoreutils/Manifest
index 6983b77d03e7..6bc51afcdd25 100644
--- a/sys-apps/policycoreutils/Manifest
+++ b/sys-apps/policycoreutils/Manifest
@@ -1,3 +1,4 @@
 DIST policycoreutils-3.5.tar.gz 775639 BLAKE2B 
777b8564484e89385db7a184c4cad9a99aabf1fd1ac41abd5826c7e6ad29118ae9d6f0d0fd968b6ced87f2f04bc6d7cd207b67428151522915367f656fb8d3f8
 SHA512 
7978ef6b7a278c6384c9b397734d03c4932c8aefecceaa1e6a1345be27b253dbe276fdcd219ce83ad732c6ed55d53bbc3254e39bccadd67d2cd1152a14749444
 DIST policycoreutils-3.6.tar.gz 755682 BLAKE2B 
a8b180c8006989192d152651dcfa51856956780bfe1139cc1dc0162eb66ba1eef4f7d64f68a48479572b02e2e97a68c7082722a745d22a9453e8378373319e3c
 SHA512 
e1f32e6e0310b879a5aadab157b103314a61bf3b8fd59c1212d701fbf39900e3b9a0b727338988103d784a7e505355a871ba519dd91520b135a3b9dae40bf1b0
+DIST policycoreutils-3.7.tar.gz 757142 BLAKE2B 
95794d48ef80882803199af5330f0ac4f1cee6710562a559e3d8fd94475d117286f8b612ffc5dc9027f4f8f4cd55e82ddb4d328e91d6c9846b18460c9bee159b
 SHA512 
30e3413b15df0bf1a994d2b3a03a719f89b3ee521a708b92fcc684822152145722cb3ef28fd5b7c42b779281b0bd4d69d65c0bc2605eec1af3f388609d985500
 DIST policycoreutils-extra-1.37.tar.bz2 8809 BLAKE2B 
a7f6122c2e27f54b018174e962bd7f4c14af04e09bbb5300bde6967ea7f2dc5cd03b5787919a4e7f5288bcbc6747922962b5bd3b588ab1e3a035fbff4910d8f5
 SHA512 
0a85cd7cf279256b5e1927f9dfdd89626a1c8b77b0aeb62b496e7e8d1dccbaa315e39f9308fb2df7270f0bc1c10787b19990e7365cad74b47b61e30394c8b23f

diff --git a/sys-apps/policycoreutils/policycoreutils-3.7.ebuild 
b/sys-apps/policycoreutils/policycoreutils-3.7.ebuild
new file mode 100644
index ..6b54ec0947c1
--- /dev/null
+++ b/sys-apps/policycoreutils/policycoreutils-3.7.ebuild
@@ -0,0 +1,168 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_REQ_USE="xml(+)"
+
+inherit python-r1 toolchain-funcs bash-completion-r1
+
+MY_PV="${PV//_/-}"
+MY_P="${PN}-${MY_PV}"
+EXTRAS_VER="1.37"
+
+DESCRIPTION="SELinux core utilities"
+HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki";
+
+if [[ ${PV} ==  ]]; then
+   inherit git-r3
+   EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git";
+   
SRC_URI="https://dev.gentoo.org/~perfinion/distfiles/policycoreutils-extra-${EXTRAS_VER}.tar.bz2";
+   S1="${WORKDIR}/${P}/${PN}"
+   S2="${WORKDIR}/policycoreutils-extra"
+   S="${S1}"
+else
+   
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz
+   
https://dev.gentoo.org/~perfinion/distfiles/policycoreutils-extra-${EXTRAS_VER}.tar.bz2";
+   KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
+   S1="${WORKDIR}/${MY_P}"
+   S2="${WORKDIR}/policycoreutils-extra"
+   S="${S1}"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="audit pam split-usr"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND=">=sys-libs/libselinux-${PV}:=[python,${PYTHON_USEDEP}]
+   >=sys-libs/libsemanage-${PV}:=[python(+),${PYTHON_USEDEP}]
+   >=sys-libs/libsepol-${PV}:=
+   sys-libs/libcap-ng:=
+   >=app-admin/setools-4.2.0[${PYTHON_USEDEP}]
+   audit? ( >=sys-process/audit-1.5.1[python,${PYTHON_USEDEP}] )
+   pam? ( sys-libs/pam:= )
+   ${PYTHON_DEPS}"
+
+# Avoid dependency loop in the cross-compile case, bug #755173
+# (Still exists in native)
+BDEPEND="sys-devel/gettext"
+
+# pax-utils for scanelf used by rlpkg
+RDEPEND="${DEPEND}
+   app-misc/pax-utils"
+
+PDEPEND="sys-apps/semodule-utils
+   sys-apps/selinux-python"
+
+src_unpack() {
+   # Override default one because we need the SRC_URI ones even in case of 
 ebuilds
+   default
+   if [[ ${PV} ==  ]] ; then
+   git-r3_src_unpack
+   fi
+}
+
+src_prepare() {
+   S="${S1}"
+   cd "${S}" || die "Failed to switch to ${S}"
+   if [[ ${PV} !=  ]] ; then
+   # If needed for live ebuilds please use /etc/portage/patches
+   eapply 
"${FILESDIR}/policycoreutils-3.1-0001-newrole-not-suid.patch"
+   fi
+
+  

[gentoo-commits] repo/gentoo:master commit in: sys-apps/mcstrans/

2024-06-29 Thread Jason Zaman
commit: c4017c541afd1881f31a11ac1ba90808041b2416
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Jun 30 00:39:37 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Jun 30 00:39:37 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4017c54

sys-apps/mcstrans: bump to 3.7

Signed-off-by: Jason Zaman  gentoo.org>

 sys-apps/mcstrans/Manifest|  1 +
 sys-apps/mcstrans/mcstrans-3.7.ebuild | 51 +++
 2 files changed, 52 insertions(+)

diff --git a/sys-apps/mcstrans/Manifest b/sys-apps/mcstrans/Manifest
index aafb84a12eef..d137545f5461 100644
--- a/sys-apps/mcstrans/Manifest
+++ b/sys-apps/mcstrans/Manifest
@@ -1,2 +1,3 @@
 DIST mcstrans-3.5.tar.gz 45091 BLAKE2B 
c6604075a6b37d7bf10e2daee40d9f034a26c5d56b81973cbc3b39621bdf5e2cb1d5906e91942e09ff077a14facafcc2464995675d8df31930707033fac5db90
 SHA512 
f4d3b04750e197c6abd31f1642af4b53a4fe0e968952a7ade992909f903d7486c1e72733963453563fcbc9745273c8238f169f520550df1470e7f6e4d6e56665
 DIST mcstrans-3.6.tar.gz 42199 BLAKE2B 
0f1b4ed212994037b062c42887e2629ae7374e0cbbd79692588ce164440eafddc6d7ab15d58f6064d68781a5a8fd614c9cfa734c4dbe1d3fea1dbb0f8191ddc1
 SHA512 
2c01a70741675faa41e8a9243f3cf08b558e568d7ae343874ff9c269473ba2748d42e0b45871d82d6c9b01bf71547835d547683f1aa5a8cf626708c7c69569fc
+DIST mcstrans-3.7.tar.gz 42501 BLAKE2B 
b1112a5098a6681ade55e9fada8b0e4629bda8ff4334242b570bc042113204374bd2ca72face7fd7bc0958981a3c39284fa953a02e0860c4101e966f77f7e49a
 SHA512 
51483ce4fd0b0a4bcba0d52eb418aa56104732888782f32c27a855c167cdb267de22eeb414ad8c6b2e733620c3e59db39646136c97f7bcb8901ce12fed44583a

diff --git a/sys-apps/mcstrans/mcstrans-3.7.ebuild 
b/sys-apps/mcstrans/mcstrans-3.7.ebuild
new file mode 100644
index ..184e15644712
--- /dev/null
+++ b/sys-apps/mcstrans/mcstrans-3.7.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+inherit toolchain-funcs
+
+MY_PV="${PV//_/-}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="SELinux context translation to human readable names"
+HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki";
+
+if [[ ${PV} == * ]] ; then
+   inherit git-r3
+   EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git";
+   S="${WORKDIR}/${P}/${PN}"
+else
+   
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz";
+   KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
+   S="${WORKDIR}/${MY_P}"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+
+DEPEND=">=sys-libs/libsepol-${PV}:=
+   >=sys-libs/libselinux-${PV}:=
+   dev-libs/libpcre2:=
+   >=sys-libs/libcap-1.10-r10:="
+
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+   default
+
+   sed -i 's/-Werror//g' "${S}"/*/Makefile || die "Failed to remove Werror"
+}
+
+src_compile() {
+   tc-export CC
+   default
+}
+
+src_install() {
+   emake DESTDIR="${D}" install
+
+   rm -rf "${D}/etc/rc.d" || die
+
+   newinitd "${FILESDIR}/mcstransd.init" mcstransd
+}



[gentoo-commits] repo/gentoo:master commit in: sys-apps/semodule-utils/

2024-06-29 Thread Jason Zaman
commit: 505681333523f1d3f6809884d806ce5df0bc010e
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Jun 30 00:39:21 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Jun 30 00:39:21 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50568133

sys-apps/semodule-utils: bump to 3.7

Signed-off-by: Jason Zaman  gentoo.org>

 sys-apps/semodule-utils/Manifest  |  1 +
 sys-apps/semodule-utils/semodule-utils-3.7.ebuild | 42 +++
 2 files changed, 43 insertions(+)

diff --git a/sys-apps/semodule-utils/Manifest b/sys-apps/semodule-utils/Manifest
index 0b70f909b56e..8e4644e36f7d 100644
--- a/sys-apps/semodule-utils/Manifest
+++ b/sys-apps/semodule-utils/Manifest
@@ -1,2 +1,3 @@
 DIST semodule-utils-3.5.tar.gz 14383 BLAKE2B 
a1bb432013bca1023d99b32f43b2c972b6b807a4677f9d8c9fb9aff10225232506f3ecca86fc231b4c63d04582a91a1c4218f87ce5532a4d35a26a09665c6f10
 SHA512 
7c32f425ae71745040d1c6a6585149a1efb319913aa9d4c8bf185b0a4216dc66378fa38595b171614ee3ae4ade997d3ae56a060346e334faec55c419a87d71dd
 DIST semodule-utils-3.6.tar.gz 12844 BLAKE2B 
e5e7501c412649f471e89cc89569d6c51421e0b46f172f243ce778bbe3a2c658ef9a92e3f3e1e07fb3358e25f63e004b6bd4b56619472fbcae8cb5b916d54170
 SHA512 
16b58bbafcaef9a2e8e34a20d0e1e4024a9044024de8fa3137c5ba1b9af600afac51c15ccb648dd6bff77747c047f4c9feafeea07c19b1eb14955acc92697a48
+DIST semodule-utils-3.7.tar.gz 12896 BLAKE2B 
7487c74585e281f6c44e9977efb85e89bf01d93285c6cc6593dd876e948cc385ec9f11b52f3fc182b2bac3621bcc89c53fc217c41b1a01d586274139b0a40fa6
 SHA512 
133f76ddff0cc4121e59560f4167e15288cc7f6172a39b49ea631803f6e3365fef95166a55498fa2e036de85466e37bb6ec164ef60855eef8c888c9b384b0120

diff --git a/sys-apps/semodule-utils/semodule-utils-3.7.ebuild 
b/sys-apps/semodule-utils/semodule-utils-3.7.ebuild
new file mode 100644
index ..088b9f48cc78
--- /dev/null
+++ b/sys-apps/semodule-utils/semodule-utils-3.7.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+inherit toolchain-funcs
+
+MY_PV="${PV//_/-}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="SELinux policy module utilities"
+HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki";
+
+if [[ ${PV} == * ]] ; then
+   inherit git-r3
+   EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git";
+   S="${WORKDIR}/${P}/${PN}"
+else
+   
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz";
+   KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
+   S="${WORKDIR}/${MY_P}"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+
+DEPEND=">=sys-libs/libsepol-${PV}:="
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+   default
+
+   sed -i 's/-Werror//g' "${S}"/*/Makefile || die "Failed to remove Werror"
+}
+
+src_compile() {
+   emake CC="$(tc-getCC)"
+}
+
+src_install() {
+   emake DESTDIR="${D}" install
+}



[gentoo-commits] repo/gentoo:master commit in: sys-apps/checkpolicy/

2024-06-29 Thread Jason Zaman
commit: 5482967ee3bb1c7f344527f6c547f4835b86f54c
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Jun 30 00:38:32 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Jun 30 00:38:32 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5482967e

sys-apps/checkpolicy: bump to 3.7

Signed-off-by: Jason Zaman  gentoo.org>

 sys-apps/checkpolicy/Manifest   |  1 +
 sys-apps/checkpolicy/checkpolicy-3.7.ebuild | 54 +
 2 files changed, 55 insertions(+)

diff --git a/sys-apps/checkpolicy/Manifest b/sys-apps/checkpolicy/Manifest
index d8d08681182e..de87eb345ea3 100644
--- a/sys-apps/checkpolicy/Manifest
+++ b/sys-apps/checkpolicy/Manifest
@@ -1,2 +1,3 @@
 DIST checkpolicy-3.5.tar.gz 69904 BLAKE2B 
e02ccad07534568a1bbb612330018bbe486800ea40df20ed6f9dc38c88aff7f8858782a28ba7915a58c3bb384f180eb8da7a8fe97a92bcb9baa61eec18da6cbc
 SHA512 
fcd490d865af3b4350c32c5dd9916f8406219841e1e255d8945c6dcc958535247aa27af5597a6988e19f11faea7beeabcb46e8ba2431112bb4aa5c7697bca529
 DIST checkpolicy-3.6.tar.gz 70684 BLAKE2B 
d32a8b86897bd4a08caf61a096a691c8d049fa7b5b4561f4847e0dfbb62a82fc6c3ddb5be163c7cd6163491c50513aec14e4c67842f256f48688b26178c2887a
 SHA512 
0d48fb385b4d1e66d562e40b6e794406f46d8803cc504705b26547130cb13b65fab5fdb4fc032b1c95d4f91862ff134a89fffde854c5ce466c2dd2657e416070
+DIST checkpolicy-3.7.tar.gz 74992 BLAKE2B 
78f419fa89981ad16364b3d6406e313fda5230588063c9a9dbb70535f0421c5b402b9c86d2f63d4ab7b8119c38044b6dc556fb2dd40240428c914cb25a2facbe
 SHA512 
f428edcbe17bd5b5f22dd827cf21c89c2cf645bae6c0342c6663743cafd9f8a8d7c8b5a1b48c04569fdb0cce11ffcb6c0b6d7fa76075a1a274948ba418bcc5b4

diff --git a/sys-apps/checkpolicy/checkpolicy-3.7.ebuild 
b/sys-apps/checkpolicy/checkpolicy-3.7.ebuild
new file mode 100644
index ..35ff8c551e28
--- /dev/null
+++ b/sys-apps/checkpolicy/checkpolicy-3.7.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+inherit toolchain-funcs
+
+MY_PV="${PV//_/-}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="SELinux policy compiler"
+HOMEPAGE="http://userspace.selinuxproject.org";
+
+if [[ ${PV} ==  ]] ; then
+   inherit git-r3
+   EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git";
+   S="${WORKDIR}/${P}/${PN}"
+else
+   
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz";
+   KEYWORDS="~amd64 ~arm ~arm64 ~mips ~riscv ~x86"
+   S="${WORKDIR}/${MY_P}"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="debug"
+
+DEPEND=">=sys-libs/libsepol-${PV}"
+BDEPEND="sys-devel/flex
+   sys-devel/bison"
+
+RDEPEND=">=sys-libs/libsepol-${PV}"
+
+src_compile() {
+   emake \
+   CC="$(tc-getCC)" \
+   YACC="bison -y" \
+   LIBDIR="\$(PREFIX)/$(get_libdir)"
+}
+
+src_install() {
+   default
+
+   if use debug; then
+   dobin "${S}/test/dismod"
+   dobin "${S}/test/dispol"
+   fi
+}
+
+pkg_postinst() {
+   if ! tc-is-cross-compiler; then
+   einfo "This checkpolicy can compile version `checkpolicy -V | 
cut -f 1 -d ' '` policy."
+   fi
+}



[gentoo-commits] repo/gentoo:master commit in: sys-libs/libsemanage/

2024-06-29 Thread Jason Zaman
commit: 396248b15940c53d6c21235758189138fdd28cb2
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Jun 30 00:38:17 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Jun 30 00:38:17 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=396248b1

sys-libs/libsemanage: bump to 3.7

Signed-off-by: Jason Zaman  gentoo.org>

 sys-libs/libsemanage/Manifest   |   1 +
 sys-libs/libsemanage/libsemanage-3.7.ebuild | 117 
 2 files changed, 118 insertions(+)

diff --git a/sys-libs/libsemanage/Manifest b/sys-libs/libsemanage/Manifest
index a3f9dcc60c04..f434e28c3dd2 100644
--- a/sys-libs/libsemanage/Manifest
+++ b/sys-libs/libsemanage/Manifest
@@ -1,3 +1,4 @@
 DIST libsemanage-3.4.tar.gz 185177 BLAKE2B 
45276ae6f54cf3dc453bc0d99fb4d7439970bb14ff5b909ebc5511ec31bce1d2bdc477ba9c1fb4fd04ab494ccb37cd8bf47a90d81460c2974af2196d9019bf67
 SHA512 
831dc789545bb9a0b009bdb4f7fe52f6197ad8325946640f886a960d08e40b8a69eccd5a70cce51466bb5cb7f742feb78d19a9ec63383fbd03aa451508677e73
 DIST libsemanage-3.5.tar.gz 185060 BLAKE2B 
3e08b15cb6b335a2747bd5f0bd84f74abdd22a7e8ec91ebb443ca6fe3886d5e8cd2827fefdaa0e9caf2af3280cffbf593ee828fee54dd423a21b257493cc754c
 SHA512 
959fbd0d6bc6849da6caa13dc41c3f8818cbbd29f04b5d2ac7246c4b395b4f370f113a04cc9cfcb52be2afebfa636013ac4ad4011384c58c7ce066a45cae2751
 DIST libsemanage-3.6.tar.gz 182583 BLAKE2B 
3ed9ef06601093983fa41ad6ab9f7eeae241dce98937db04efca6f421afcfd3f59cf5e51d24c596ae03997a398949ed84fbdf629518e3c382a5453129b0a87ab
 SHA512 
8998b6a1b254a9673b99ae4d70a1edc769bb728a44f573cdf62e0a9c9392b77644ee2d70e1936a2f8a9a7f8b063ce98a981f4b8b7060f5b82791889330d69364
+DIST libsemanage-3.7.tar.gz 182896 BLAKE2B 
e8a4a9a57f1862efac7e46b33f34f2fdcd116a14487ca07f65aebed62b3914bb1892606a76ed8addcbdb111f361507294ae3c75975a10b90f5d554ba59d2562d
 SHA512 
4b6370b02116364964ff24b93fb6629c885611de78419f649a027db38b4f1c3b3adf3b438efb34a92b49407ab8f9446ed4091fe4c99fa4752f0f5e3e31589415

diff --git a/sys-libs/libsemanage/libsemanage-3.7.ebuild 
b/sys-libs/libsemanage/libsemanage-3.7.ebuild
new file mode 100644
index ..89603aab06a7
--- /dev/null
+++ b/sys-libs/libsemanage/libsemanage-3.7.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit python-r1 toolchain-funcs multilib-minimal
+
+MY_PV="${PV//_/-}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="SELinux kernel and policy management library"
+HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki";
+
+if [[ ${PV} ==  ]]; then
+   inherit git-r3
+   EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git";
+   S="${WORKDIR}/${P}/${PN}"
+else
+   
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz";
+   KEYWORDS="~amd64 ~arm ~arm64 ~mips ~riscv ~x86"
+   S="${WORKDIR}/${MY_P}"
+fi
+
+LICENSE="GPL-2"
+SLOT="0/2"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="app-arch/bzip2[${MULTILIB_USEDEP}]
+   >=sys-libs/libsepol-${PV}:=[${MULTILIB_USEDEP}]
+   >=sys-libs/libselinux-${PV}:=[${MULTILIB_USEDEP}]
+   >=sys-process/audit-2.2.2[${MULTILIB_USEDEP}]
+   ${PYTHON_DEPS}"
+DEPEND="${RDEPEND}"
+BDEPEND=">=dev-lang/swig-2.0.4-r1
+   app-alternatives/yacc
+   app-alternatives/lex
+   virtual/pkgconfig"
+
+# tests are not meant to be run outside of the
+# full SELinux userland repo
+RESTRICT="test"
+
+src_prepare() {
+   eapply_user
+
+   echo >> "${S}/src/semanage.conf"
+   echo "# Set this to true to save the linked policy." >> 
"${S}/src/semanage.conf"
+   echo "# This is normally only useful for analysis" >> 
"${S}/src/semanage.conf"
+   echo "# or debugging of policy." >> "${S}/src/semanage.conf"
+   echo "save-linked=false" >> "${S}/src/semanage.conf"
+   echo >> "${S}/src/semanage.conf"
+   echo "# Set this to 0 to disable assertion checking." >> 
"${S}/src/semanage.conf"
+   echo "# This should speed up building the kernel policy" >> 
"${S}/src/semanage.conf"
+   echo "# from policy modules, but may leave you open to" >> 
"${S}/src/semanage.conf"
+   echo "# dangerous rules which assertion checking" >> 
"${S}/src/semanage.conf"
+   echo "# would catch." >> "${S}/src/semanage.conf"
+   echo "expand-check=1" >> "${S}/src/semanage.conf"
+   echo >> "${S}/src/semanage.conf"
+   echo "# Modules in t

[gentoo-commits] repo/gentoo:master commit in: sys-apps/secilc/

2024-06-29 Thread Jason Zaman
commit: fb63fd00f5741491393d60901f2062c536da868d
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Jun 30 00:37:41 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Jun 30 00:37:41 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb63fd00

sys-apps/secilc: bump to 3.7

Signed-off-by: Jason Zaman  gentoo.org>

 sys-apps/secilc/Manifest  |  1 +
 sys-apps/secilc/secilc-3.7.ebuild | 37 +
 2 files changed, 38 insertions(+)

diff --git a/sys-apps/secilc/Manifest b/sys-apps/secilc/Manifest
index 36fef1449bdc..be70f2c54d39 100644
--- a/sys-apps/secilc/Manifest
+++ b/sys-apps/secilc/Manifest
@@ -1,2 +1,3 @@
 DIST secilc-3.5.tar.gz 180803 BLAKE2B 
a42620318b312a5ef35565e3b40a89fd7ff44aaf73de835bc349f927193121b72c07bd2151a8a6b2cee53e2699a3ae6bb246084e18a181d334ebc082fdfdc56e
 SHA512 
eff37a981072c4b9c7c15bf4709db8797d8af5325883515f5c2fe611136b24419f6d01c797e4f131c9c08e1ba40576fcb2094b1e34325aae8351b6299bdba3dd
 DIST secilc-3.6.tar.gz 185186 BLAKE2B 
47fdc281cad69339eb23226a277df8c8086557fe3a2c7f013eef38bbfcd62584e318ce2d79552388617687b39c37e67a1328b808becbecad364253b7527d3a52
 SHA512 
91381aae1444822c7897729c1695ca221a4226dcec042b2223a55800d1247510ef2033b844d8d0627623fb15b8169a626fb0ca2efeee8090635219c4139eabf5
+DIST secilc-3.7.tar.gz 185694 BLAKE2B 
c7bdfb01bc23008c5f360aeae9473db096a62ba535b2ec54d8f4ec766495f6de2642656c52d5ca8d28335e84bc42e76c9d5294db73a588aa4bceda8f3d59f814
 SHA512 
1f6061587242b63583370e04cc113b4884060c6071774b90908655df17ddc702187960d1f5b1ed53de9eb6ebd7f0029160e58d8c5f0c1126464bf6222f6f7d3e

diff --git a/sys-apps/secilc/secilc-3.7.ebuild 
b/sys-apps/secilc/secilc-3.7.ebuild
new file mode 100644
index ..466a1d0558c5
--- /dev/null
+++ b/sys-apps/secilc/secilc-3.7.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+inherit toolchain-funcs
+
+MY_PV="${PV//_/-}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="SELinux Common Intermediate Language (CIL) Compiler"
+HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki";
+
+if [[ ${PV} ==  ]]; then
+   inherit git-r3
+   EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git";
+   S="${WORKDIR}/${P}/${PN}"
+else
+   
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz";
+   KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+   S="${WORKDIR}/${MY_P}"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+
+DEPEND=">=sys-libs/libsepol-${PV}"
+RDEPEND="${DEPEND}"
+BDEPEND="app-text/xmlto"
+
+# tests are not meant to be run outside of the
+# full SELinux userland repo
+RESTRICT="test"
+
+src_compile() {
+   tc-export CC
+   default
+}



[gentoo-commits] repo/gentoo:master commit in: sys-libs/libselinux/

2024-06-29 Thread Jason Zaman
commit: 5bbab275c6a453eb8ff011e44cb8efb6ef7b1ec3
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Jun 30 00:37:58 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Jun 30 00:37:58 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bbab275

sys-libs/libselinux: bump to 3.7

Signed-off-by: Jason Zaman  gentoo.org>

 sys-libs/libselinux/Manifest  |   1 +
 sys-libs/libselinux/libselinux-3.7.ebuild | 161 ++
 2 files changed, 162 insertions(+)

diff --git a/sys-libs/libselinux/Manifest b/sys-libs/libselinux/Manifest
index 3dedaef745f7..7eadd0d8cbc4 100644
--- a/sys-libs/libselinux/Manifest
+++ b/sys-libs/libselinux/Manifest
@@ -1,2 +1,3 @@
 DIST libselinux-3.5.tar.gz 211453 BLAKE2B 
f7f3067c4bb0448e18bd7085135f11d94ae99728949480a655c0f660486817beb5829d8a43dff7bce286ccd50705b0c657bde85970f01c794e01fb707f469d8b
 SHA512 
4e13261a5821018a5f3cdce676f180bb62e5bc225981ca8a498ece0d1c88d9ba8eaa0ce4099dd0849309a8a7c5a9a0953df841a9922f2c284e5a109e5d937ba7
 DIST libselinux-3.6.tar.gz 194210 BLAKE2B 
615198d47ecfb4b6274810cbe32cce5953dd44d1d04e8ce244213dc4ddbd61cde3515f4650046b805cf98f341aba718af8d7a9e1d66773172031ac19599f6032
 SHA512 
182dcdf3510083ff4b9376a4a6d6a7b33905ac3c5e974c188bf3965686c54b663162c543ecf15eab75102f3c91a2502d33d0f1104dec01dd9b14737ef3f2b544
+DIST libselinux-3.7.tar.gz 194834 BLAKE2B 
07d87c37608b480d17355334459ecb006573d61a7d3fbf622033838559397abcf343e6399f3a49b6cf24e106d03fd997397d061491d2129c15a378960dacc350
 SHA512 
e949c20b606c50ad521b9592ce55ad6658e8c4b24d9838028f5aba0a4fc762b6d0d0d0d207f5bef7a2e41485e12d91382fa6090df27152dbb40071b273419352

diff --git a/sys-libs/libselinux/libselinux-3.7.ebuild 
b/sys-libs/libselinux/libselinux-3.7.ebuild
new file mode 100644
index ..29818462940a
--- /dev/null
+++ b/sys-libs/libselinux/libselinux-3.7.ebuild
@@ -0,0 +1,161 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+PYTHON_COMPAT=( python3_{10..12} )
+USE_RUBY="ruby31 ruby32 ruby33"
+
+# No, I am not calling ruby-ng
+inherit flag-o-matic python-r1 toolchain-funcs multilib-minimal
+
+MY_PV="${PV//_/-}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="SELinux userland library"
+HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki";
+
+if [[ ${PV} ==  ]]; then
+   inherit git-r3
+   EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git";
+   S="${WORKDIR}/${P}/${PN}"
+else
+   
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz";
+   KEYWORDS="~amd64 ~arm ~arm64 ~mips ~riscv ~x86"
+   S="${WORKDIR}/${MY_P}"
+fi
+
+LICENSE="public-domain"
+SLOT="0"
+IUSE="python ruby static-libs ruby_targets_ruby31 ruby_targets_ruby32 
ruby_targets_ruby33"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="dev-libs/libpcre2:=[static-libs?,${MULTILIB_USEDEP}]
+   >=sys-libs/libsepol-${PV}:=[${MULTILIB_USEDEP}]
+   python? ( ${PYTHON_DEPS} )
+   ruby? (
+   ruby_targets_ruby31? ( dev-lang/ruby:3.1 )
+   ruby_targets_ruby32? ( dev-lang/ruby:3.2 )
+   ruby_targets_ruby33? ( dev-lang/ruby:3.3 )
+   )
+   elibc_musl? ( sys-libs/fts-standalone )"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig
+   python? (
+   >=dev-lang/swig-2.0.9
+   dev-python/pip[${PYTHON_USEDEP}]
+)
+   ruby? ( >=dev-lang/swig-2.0.9 )"
+
+src_prepare() {
+   eapply_user
+
+   multilib_copy_sources
+}
+
+multilib_src_compile() {
+   tc-export AR CC PKG_CONFIG RANLIB
+
+   # bug 905711
+   use elibc_musl && append-cppflags -D_LARGEFILE64_SOURCE
+
+   local -x CFLAGS="${CFLAGS} -fno-semantic-interposition"
+
+   emake \
+   LIBDIR="\$(PREFIX)/$(get_libdir)" \
+   SHLIBDIR="/$(get_libdir)" \
+   LDFLAGS="-fPIC ${LDFLAGS} -pthread" \
+   USE_PCRE2=y \
+   FTS_LDLIBS="$(usex elibc_musl '-lfts' '')" \
+   all
+
+   if multilib_is_native_abi && use python; then
+   building() {
+   emake \
+   LDFLAGS="-fPIC ${LDFLAGS} -lpthread" \
+   LIBDIR="\$(PREFIX)/$(get_libdir)" \
+   SHLIBDIR="/$(get_libdir)" \
+   USE_PCRE2=y \
+   FTS_LDLIBS="$(usex elibc_musl '-lfts' '')" \
+   pywrap
+   }
+   python_foreach_impl building
+   fi
+
+   if multilib_is_native_abi &am

[gentoo-commits] repo/gentoo:master commit in: sys-libs/libsepol/

2024-06-29 Thread Jason Zaman
commit: e3c71c6417c56a7f68c116178c57d46283da5221
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Jun 30 00:37:25 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Jun 30 00:37:25 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3c71c64

sys-libs/libsepol: bump to 3.7

Signed-off-by: Jason Zaman  gentoo.org>

 sys-libs/libsepol/Manifest|  1 +
 sys-libs/libsepol/libsepol-3.7.ebuild | 50 +++
 2 files changed, 51 insertions(+)

diff --git a/sys-libs/libsepol/Manifest b/sys-libs/libsepol/Manifest
index aeb3b703de01..959bbca8e5e5 100644
--- a/sys-libs/libsepol/Manifest
+++ b/sys-libs/libsepol/Manifest
@@ -1,2 +1,3 @@
 DIST libsepol-3.5.tar.gz 497522 BLAKE2B 
dad2d346605be53fe41aef69e2e4bd4f1ce68a15f0b9307deb6b66bbe7bf06a9ee6be580e60d2f19aebbc8ee5041ac8a7b831b51342ba7c7089e1f1a447e7691
 SHA512 
66f45a9f4951589855961955db686b006b4c0cddead6ac49ad238a0e4a34775905bd10fb8cf0c0ff2ab64f9b7d8366b97fcd5b19c382dec39971a2835cc765c8
 DIST libsepol-3.6.tar.gz 509100 BLAKE2B 
c073c9437004df0c723125971ed26354dc6b8a78b069c593977062527342061303bcc48917fcd9623d17998748254f63408b233173f3c62e92ee0ea2f3c4a430
 SHA512 
35a42d2749fc4f71bc6b7488380714f56975564007128566f1c73e5c50bf81c17535b2cfda4583aacb4870aa2cd5885321c01523e415bda8b3326bfefb13d58e
+DIST libsepol-3.7.tar.gz 511487 BLAKE2B 
8e4a0b2b3731f49d8bc8ea03bd5269672428119578046bc7f38230e3c77459e6b9d4ab39285ea33c89d8e807499ef89faa606e4b4e1ecfac2c3d445454b16420
 SHA512 
85d12d0ba5a7a3225f08d041a18fd59641608db5e0a78a1e9649754e45be54a807cd422d4889b88da6e806b4af546336c7a0913448f08ac33dc6ffb983890ef8

diff --git a/sys-libs/libsepol/libsepol-3.7.ebuild 
b/sys-libs/libsepol/libsepol-3.7.ebuild
new file mode 100644
index ..4cb9db630532
--- /dev/null
+++ b/sys-libs/libsepol/libsepol-3.7.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+inherit toolchain-funcs multilib-minimal
+
+MY_PV="${PV//_/-}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="SELinux binary policy representation library"
+HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki";
+
+if [[ ${PV} ==  ]]; then
+   inherit git-r3
+   EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git";
+   S="${WORKDIR}/${P}/${PN}"
+else
+   
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz";
+   KEYWORDS="~amd64 ~arm ~arm64 ~mips ~riscv ~x86"
+   S="${WORKDIR}/${MY_P}"
+fi
+
+LICENSE="GPL-2"
+SLOT="0/2"
+
+# tests are not meant to be run outside of the full SELinux userland repo
+RESTRICT="test"
+
+src_prepare() {
+   eapply_user
+   multilib_copy_sources
+}
+
+multilib_src_compile() {
+   tc-export CC AR RANLIB
+
+   local -x CFLAGS="${CFLAGS} -fno-semantic-interposition"
+
+   emake \
+   LIBDIR="\$(PREFIX)/$(get_libdir)" \
+   SHLIBDIR="/$(get_libdir)"
+}
+
+multilib_src_install() {
+   emake DESTDIR="${D}" \
+   LIBDIR="\$(PREFIX)/$(get_libdir)" \
+   SHLIBDIR="/$(get_libdir)" \
+   install
+}



[gentoo-commits] repo/gentoo:master commit in: sys-libs/libselinux/

2024-06-29 Thread Jason Zaman
commit: 24860ff23620ae5083554aa4d2ea1073fd0a9e44
Author: Jason Zaman  gentoo  org>
AuthorDate: Sat Jun 29 23:12:42 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Jun 30 00:30:15 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24860ff2

sys-libs/libselinux: update EAPI 7 -> 8

Signed-off-by: Jason Zaman  gentoo.org>

 sys-libs/libselinux/libselinux-.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-libs/libselinux/libselinux-.ebuild 
b/sys-libs/libselinux/libselinux-.ebuild
index 204faee972bf..29818462940a 100644
--- a/sys-libs/libselinux/libselinux-.ebuild
+++ b/sys-libs/libselinux/libselinux-.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="7"
+EAPI="8"
 PYTHON_COMPAT=( python3_{10..12} )
 USE_RUBY="ruby31 ruby32 ruby33"
 



[gentoo-commits] repo/gentoo:master commit in: sys-apps/mcstrans/

2024-06-29 Thread Jason Zaman
commit: 6c1663148d62b15cf13d2d5a71fcab71d4c3f146
Author: Jason Zaman  gentoo  org>
AuthorDate: Sat Jun 29 23:48:19 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Jun 30 00:34:50 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c166314

sys-apps/mcstrans: update EAPI 7 -> 8

Signed-off-by: Jason Zaman  gentoo.org>

 sys-apps/mcstrans/mcstrans-.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-apps/mcstrans/mcstrans-.ebuild 
b/sys-apps/mcstrans/mcstrans-.ebuild
index bbd7a4cc0378..184e15644712 100644
--- a/sys-apps/mcstrans/mcstrans-.ebuild
+++ b/sys-apps/mcstrans/mcstrans-.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="7"
+EAPI="8"
 
 inherit toolchain-funcs
 



[gentoo-commits] repo/gentoo:master commit in: sys-apps/selinux-python/

2024-06-29 Thread Jason Zaman
commit: 5429bca875dd5d530f597d7ca5b84fcf1b748d8d
Author: Jason Zaman  gentoo  org>
AuthorDate: Sat Jun 29 23:42:40 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Jun 30 00:34:45 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5429bca8

sys-apps/selinux-python: update EAPI 7 -> 8

Signed-off-by: Jason Zaman  gentoo.org>

 sys-apps/selinux-python/selinux-python-.ebuild | 11 +++
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/sys-apps/selinux-python/selinux-python-.ebuild 
b/sys-apps/selinux-python/selinux-python-.ebuild
index 79bfb3db2006..f772119ca1ee 100644
--- a/sys-apps/selinux-python/selinux-python-.ebuild
+++ b/sys-apps/selinux-python/selinux-python-.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI="8"
 PYTHON_COMPAT=( python3_{10..12} )
 PYTHON_REQ_USE="xml(+)"
 
@@ -101,14 +101,17 @@ src_install() {
then
local selinuxtype=$(awk -F'=' '/^SELINUXTYPE/ {print $2}' 
/etc/selinux/config);
mkdir -p "${D}"/etc/selinux || die "Failed to create selinux 
directory";
-   echo 
"SELINUX_DEVEL_PATH=/usr/share/selinux/${selinuxtype}/include:/usr/share/selinux/${selinuxtype}"
 > "${D}"/etc/selinux/sepolgen.conf;
+   echo 
"SELINUX_DEVEL_PATH=/usr/share/selinux/${selinuxtype}/include:/usr/share/selinux/${selinuxtype}"
 \
+   > "${D}"/etc/selinux/sepolgen.conf || die "Failed to 
generate sepolgen"
else
local selinuxtype="${POLICY_TYPES%% *}";
if [[ -n "${selinuxtype}" ]];
then
-   echo 
"SELINUX_DEVEL_PATH=/usr/share/selinux/${selinuxtype}/include:/usr/share/selinux/${selinuxtype}"
 > "${D}"/etc/selinux/sepolgen.conf;
+   echo 
"SELINUX_DEVEL_PATH=/usr/share/selinux/${selinuxtype}/include:/usr/share/selinux/${selinuxtype}"
 \
+   > "${D}"/etc/selinux/sepolgen.conf || die 
"Failed to generate sepolgen"
else
-   echo 
"SELINUX_DEVEL_PATH=/usr/share/selinux/strict/include:/usr/share/selinux/strict"
 > "${D}"/etc/selinux/sepolgen.conf;
+   echo 
"SELINUX_DEVEL_PATH=/usr/share/selinux/strict/include:/usr/share/selinux/strict"
 \
+   > "${D}"/etc/selinux/sepolgen.conf || die 
"Failed to generate sepolgen"
fi
fi
 }



[gentoo-commits] repo/gentoo:master commit in: sys-apps/policycoreutils/

2024-06-29 Thread Jason Zaman
commit: d8bd6ae532d7bae3e06e9afaab65eceb59ae639c
Author: Jason Zaman  gentoo  org>
AuthorDate: Sat Jun 29 23:46:57 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Jun 30 00:34:46 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8bd6ae5

sys-apps/policycoreutils: update EAPI 7 -> 8

Signed-off-by: Jason Zaman  gentoo.org>

 sys-apps/policycoreutils/policycoreutils-.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-apps/policycoreutils/policycoreutils-.ebuild 
b/sys-apps/policycoreutils/policycoreutils-.ebuild
index 7ac02d3d3f39..6b54ec0947c1 100644
--- a/sys-apps/policycoreutils/policycoreutils-.ebuild
+++ b/sys-apps/policycoreutils/policycoreutils-.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="7"
+EAPI="8"
 PYTHON_COMPAT=( python3_{10..12} )
 PYTHON_REQ_USE="xml(+)"
 



[gentoo-commits] repo/gentoo:master commit in: sys-apps/restorecond/

2024-06-29 Thread Jason Zaman
commit: 9249a35936924ab5faa627289e3ee50f2af798c7
Author: Jason Zaman  gentoo  org>
AuthorDate: Sat Jun 29 23:47:52 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Jun 30 00:34:48 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9249a359

sys-apps/restorecond: update EAPI 7 -> 8

Signed-off-by: Jason Zaman  gentoo.org>

 sys-apps/restorecond/restorecond-.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-apps/restorecond/restorecond-.ebuild 
b/sys-apps/restorecond/restorecond-.ebuild
index 794b84bc99e8..452a33b36841 100644
--- a/sys-apps/restorecond/restorecond-.ebuild
+++ b/sys-apps/restorecond/restorecond-.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="7"
+EAPI="8"
 
 inherit systemd toolchain-funcs
 



[gentoo-commits] repo/gentoo:master commit in: sys-apps/secilc/

2024-06-29 Thread Jason Zaman
commit: e5013ec785cfe50ebc0c1568461adcf9917cbefd
Author: Jason Zaman  gentoo  org>
AuthorDate: Sat Jun 29 23:47:28 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Jun 30 00:34:47 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5013ec7

sys-apps/secilc: update EAPI 7 -> 8

Signed-off-by: Jason Zaman  gentoo.org>

 sys-apps/secilc/secilc-.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-apps/secilc/secilc-.ebuild 
b/sys-apps/secilc/secilc-.ebuild
index 5c59b25c3742..466a1d0558c5 100644
--- a/sys-apps/secilc/secilc-.ebuild
+++ b/sys-apps/secilc/secilc-.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="7"
+EAPI="8"
 inherit toolchain-funcs
 
 MY_PV="${PV//_/-}"



[gentoo-commits] repo/gentoo:master commit in: sys-apps/semodule-utils/

2024-06-29 Thread Jason Zaman
commit: eb1cac7da12faab504a92434c9c8925a29d9688c
Author: Jason Zaman  gentoo  org>
AuthorDate: Sat Jun 29 23:40:34 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Jun 30 00:30:18 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb1cac7d

sys-apps/semodule-utils: update EAPI 7 -> 8

Signed-off-by: Jason Zaman  gentoo.org>

 sys-apps/semodule-utils/semodule-utils-.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-apps/semodule-utils/semodule-utils-.ebuild 
b/sys-apps/semodule-utils/semodule-utils-.ebuild
index 621cfaf21ea4..088b9f48cc78 100644
--- a/sys-apps/semodule-utils/semodule-utils-.ebuild
+++ b/sys-apps/semodule-utils/semodule-utils-.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="7"
+EAPI="8"
 
 inherit toolchain-funcs
 



[gentoo-commits] repo/gentoo:master commit in: sys-libs/libsepol/

2024-06-29 Thread Jason Zaman
commit: 3fb370da66cc00680e830697457783b7f8e9598e
Author: Jason Zaman  gentoo  org>
AuthorDate: Sat Jun 29 23:10:26 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Jun 30 00:30:14 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3fb370da

sys-libs/libsepol: update EAPI 7 -> 8

Signed-off-by: Jason Zaman  gentoo.org>

 sys-libs/libsepol/libsepol-.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-libs/libsepol/libsepol-.ebuild 
b/sys-libs/libsepol/libsepol-.ebuild
index 17fe4da89451..4cb9db630532 100644
--- a/sys-libs/libsepol/libsepol-.ebuild
+++ b/sys-libs/libsepol/libsepol-.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="7"
+EAPI="8"
 
 inherit toolchain-funcs multilib-minimal
 



[gentoo-commits] repo/gentoo:master commit in: sys-libs/libsemanage/

2024-06-29 Thread Jason Zaman
commit: c6d238a15babdc97b71356bbb5d811d951feb5de
Author: Jason Zaman  gentoo  org>
AuthorDate: Sat Jun 29 23:19:48 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Jun 30 00:30:16 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6d238a1

sys-libs/libsemanage: update EAPI 7 -> 8

Also drop message about policy store migration. The policy store moved
in 2015, it's been long enough now to not need the message anymore.

Signed-off-by: Jason Zaman  gentoo.org>

 sys-libs/libsemanage/libsemanage-.ebuild | 15 +--
 1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/sys-libs/libsemanage/libsemanage-.ebuild 
b/sys-libs/libsemanage/libsemanage-.ebuild
index 3393a1021748..89603aab06a7 100644
--- a/sys-libs/libsemanage/libsemanage-.ebuild
+++ b/sys-libs/libsemanage/libsemanage-.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI="8"
 PYTHON_COMPAT=( python3_{10..12} )
 
 inherit python-r1 toolchain-funcs multilib-minimal
@@ -115,16 +115,3 @@ multiib_src_install_all() {
python_setup
python_fix_shebang "${ED}"/usr/libexec/selinux/semanage_migrate_store
 }
-
-pkg_postinst() {
-   # Migrate the SELinux semanage configuration store if not done already
-   local selinuxtype=$(awk -F'=' '/SELINUXTYPE=/ {print $2}' 
"${EROOT}"/etc/selinux/config 2>/dev/null)
-   if [ -n "${selinuxtype}" ] && [ ! -d 
"${EROOT}"/var/lib/selinux/${selinuxtype}/active ] ; then
-   ewarn "Since the 2.4 SELinux userspace, the policy module store 
is moved"
-   ewarn "from /etc/selinux to /var/lib/selinux. The migration 
will be run now."
-   ewarn "If there are any issues, it can be done manually by 
running:"
-   ewarn "/usr/libexec/selinux/semanage_migrate_store"
-   ewarn "For more information, please see"
-   ewarn "- 
https://github.com/SELinuxProject/selinux/wiki/Policy-Store-Migration";
-   fi
-}



[gentoo-commits] repo/gentoo:master commit in: sys-apps/checkpolicy/

2024-06-29 Thread Jason Zaman
commit: 637337d7de21f8e2493878a60faa239b7bd9b228
Author: Jason Zaman  gentoo  org>
AuthorDate: Sat Jun 29 23:40:03 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Jun 30 00:30:17 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=637337d7

sys-apps/checkpolicy: update EAPI 7 -> 8

Signed-off-by: Jason Zaman  gentoo.org>

 sys-apps/checkpolicy/checkpolicy-.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-apps/checkpolicy/checkpolicy-.ebuild 
b/sys-apps/checkpolicy/checkpolicy-.ebuild
index 6d5e91d8b18a..35ff8c551e28 100644
--- a/sys-apps/checkpolicy/checkpolicy-.ebuild
+++ b/sys-apps/checkpolicy/checkpolicy-.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="7"
+EAPI="8"
 
 inherit toolchain-funcs
 



[gentoo-commits] repo/gentoo:master commit in: net-misc/ser2net/

2024-06-22 Thread Jason Zaman
commit: 67504b63dc667172125bfc8ce0ba4f4b3c9b295d
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Jun 23 01:51:20 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Jun 23 02:50:54 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67504b63

net-misc/ser2net: Fix pkgcheck issues in 2.10

Signed-off-by: Jason Zaman  gentoo.org>

 net-misc/ser2net/ser2net-2.10.0-r1.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/net-misc/ser2net/ser2net-2.10.0-r1.ebuild 
b/net-misc/ser2net/ser2net-2.10.0-r1.ebuild
index 72d5a604c80c..a4441cf96772 100644
--- a/net-misc/ser2net/ser2net-2.10.0-r1.ebuild
+++ b/net-misc/ser2net/ser2net-2.10.0-r1.ebuild
@@ -4,12 +4,12 @@
 EAPI=8
 
 DESCRIPTION="Serial To Network Proxy"
-SRC_URI="https://downloads.sourceforge.net/ser2net/${P}.tar.gz";
 HOMEPAGE="https://sourceforge.net/projects/ser2net";
+SRC_URI="https://downloads.sourceforge.net/ser2net/${P}.tar.gz";
 
-KEYWORDS="amd64 ppc x86"
-SLOT="0"
 LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
 IUSE="tcpd"
 
 DEPEND="tcpd? ( sys-apps/tcp-wrappers )"



[gentoo-commits] repo/gentoo:master commit in: net-misc/ser2net/

2024-06-22 Thread Jason Zaman
commit: 94d66a80501717ab582edda139a2ccdc317e055b
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Jun 23 01:48:27 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Jun 23 02:50:53 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94d66a80

net-misc/ser2net: add myself as a maintainer

Signed-off-by: Jason Zaman  gentoo.org>

 net-misc/ser2net/metadata.xml | 12 +++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/net-misc/ser2net/metadata.xml b/net-misc/ser2net/metadata.xml
index 1fe9d8c02aa9..72212e7f69df 100644
--- a/net-misc/ser2net/metadata.xml
+++ b/net-misc/ser2net/metadata.xml
@@ -1,8 +1,18 @@
 
 https://www.gentoo.org/dtd/metadata.dtd";>
 
-   
+   
+   perfin...@gentoo.org
+       Jason Zaman
+   
+
+   
+   Serial to network interface, a proxy that allows telnet/tcp 
connections
+   to be made to serial ports on a machine.
+   
+

ser2net
+   cminyard/ser2net

 



[gentoo-commits] repo/gentoo:master commit in: net-misc/gensio/files/, net-misc/gensio/

2024-06-22 Thread Jason Zaman
commit: bb10aad0aed0af2b4a150b454c46c95303eb6613
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Jun 23 01:39:26 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Jun 23 02:50:52 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb10aad0

net-misc/gensio: new package, add 2.8.5

Signed-off-by: Jason Zaman  gentoo.org>

 net-misc/gensio/Manifest   |  1 +
 .../gensio/files/gensio-2.8.5-install-dir.patch| 16 +
 net-misc/gensio/gensio-2.8.5.ebuild| 75 ++
 net-misc/gensio/metadata.xml   | 17 +
 4 files changed, 109 insertions(+)

diff --git a/net-misc/gensio/Manifest b/net-misc/gensio/Manifest
new file mode 100644
index ..4d862c8842cf
--- /dev/null
+++ b/net-misc/gensio/Manifest
@@ -0,0 +1 @@
+DIST gensio-2.8.5.tar.gz 1550476 BLAKE2B 
4a000101a31ce0e1b9ee47e786a3a552b5b2e5863de67491bcfea0a61e55132220b5a62c6e40bb17aeae66ea57b651611e776b1446c6b1c3ac74452238295d95
 SHA512 
820bceca89085f830d0bdf05147ffa591f63a635311757d0af22a5a0284065e9b50e3bb4bea64bba1114c563e448d11e7f425c311b8f577d7f0f2d17944c9549

diff --git a/net-misc/gensio/files/gensio-2.8.5-install-dir.patch 
b/net-misc/gensio/files/gensio-2.8.5-install-dir.patch
new file mode 100644
index ..ddea0cb55402
--- /dev/null
+++ b/net-misc/gensio/files/gensio-2.8.5-install-dir.patch
@@ -0,0 +1,16 @@
+--- gensio-2.8.5.orig/lib/Makefile.am  2024-06-18 21:45:20.427838306 -0700
 gensio-2.8.5/lib/Makefile.am   2024-06-18 21:46:09.360860952 -0700
+@@ -385,6 +385,7 @@
+ endif
+ 
+ install-exec-hook:
++  @(install -d $(DESTDIR)$(gensiolibexecdir))
+   @(cd $(DESTDIR)$(gensiolibexecdir) && $(RM) -f 
$(gensiolibexec_LTLIBRARIES))
+   @(cd $(DESTDIR)$(gensiolibexecdir) && $(RM) -f $(xgensio_libs))
+ 
+@@ -392,4 +393,5 @@
+ # libtool will not remove the .so or .dll files since the .la file is
+ # no longer there.  We have to do that by hand.
+ uninstall-hook:
++  @(install -d $(DESTDIR)$(gensiolibexecdir))
+   @(cd $(DESTDIR)$(gensiolibexecdir) && $(RM) -f $(xgensio_solibs))

diff --git a/net-misc/gensio/gensio-2.8.5.ebuild 
b/net-misc/gensio/gensio-2.8.5.ebuild
new file mode 100644
index ..738d126edafe
--- /dev/null
+++ b/net-misc/gensio/gensio-2.8.5.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+DESCRIPTION="General Stream I/O"
+HOMEPAGE="https://sourceforge.net/projects/ser2net";
+SRC_URI="https://downloads.sourceforge.net/ser2net/${P}.tar.gz";
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug tcpd"
+
+DEPEND="
+   tcpd? ( sys-apps/tcp-wrappers )
+"
+RDEPEND="${DEPEND}"
+
+# Test suite requires a kernel module
+RESTRICT="test"
+
+PATCHES=(
+   "${FILESDIR}/${PN}-2.8.5-install-dir.patch"
+)
+
+src_prepare() {
+   default
+   eautoreconf
+}
+
+src_configure() {
+   econf \
+   --with-file-stdio \
+   --without-link-ssl-with-main \
+   --with-uucp-locking \
+   --with-flock-locking \
+   --without-broken-pselect \
+   --with-pthreads \
+   --without-glib \
+   --without-cplusplus \
+   --without-python \
+   --without-go \
+   --without-swig \
+   --without-all-gensios \
+   --without-moduleinstall \
+   --with-net=yes \
+   --with-udp=yes \
+   --with-sctp=no \
+   --with-stdio=yes \
+   --with-pty=yes \
+   --with-serialdev=yes \
+   --with-telnet=yes \
+   --without-tcl \
+   --without-openipmi \
+   --without-ipmisol \
+   --without-mdns \
+   --without-dnssd \
+   --without-alsa \
+   --without-winsound \
+   --without-portaudio \
+   --without-certauth \
+   --without-udev \
+   --without-ssl \
+   --enable-doc \
+   --disable-internal-trace \
+   $(use_with tcpd tcp-wrappers) \
+   $(use_enable debug)
+}
+
+src_install() {
+   default
+   find "${ED}" -type f -name '*.la' -delete || die
+}

diff --git a/net-misc/gensio/metadata.xml b/net-misc/gensio/metadata.xml
new file mode 100644
index ..846d0822488b
--- /dev/null
+++ b/net-misc/gensio/metadata.xml
@@ -0,0 +1,17 @@
+
+https://www.gentoo.org/dtd/metadata.dtd";>
+
+   
+   perfin...@gentoo.org
+   Jason Zaman
+   
+
+   
+   A library to abstract stream I/O like serial port, TCP, telnet, 
UDP, SSL, IPMI SOL, etc.
+   
+
+   
+   ser2net
+   cminyard/gensio
+   
+



[gentoo-commits] repo/gentoo:master commit in: net-misc/ser2net/, net-misc/ser2net/files/

2024-06-22 Thread Jason Zaman
commit: 1733a83306a214ba568c639ece1852ee9adb9e18
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Jun 23 01:52:19 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Jun 23 02:50:55 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1733a833

net-misc/ser2net: add 4.6.2

Signed-off-by: Jason Zaman  gentoo.org>

 net-misc/ser2net/Manifest   |  1 +
 net-misc/ser2net/files/ser2net.confd-r2 | 21 +++
 net-misc/ser2net/files/ser2net.initd-r2 | 37 +
 net-misc/ser2net/ser2net-4.6.2.ebuild   | 37 +
 4 files changed, 96 insertions(+)

diff --git a/net-misc/ser2net/Manifest b/net-misc/ser2net/Manifest
index 1e582c5cffa9..8856e9cc1668 100644
--- a/net-misc/ser2net/Manifest
+++ b/net-misc/ser2net/Manifest
@@ -1 +1,2 @@
 DIST ser2net-2.10.0.tar.gz 364322 BLAKE2B 
db041297069ea0a111ed73d6b1fc8a639971f113952fbcd499a81671bbd873ee3e1724146bfb5c6975d1812acd8e545e9df2bde445f4a86af57a0ae5b9b19ec1
 SHA512 
dd3e37619b10d8bf20d738e90c253bc2d109e0a57ee9f3a8b2a85a69399afa5a8459a4602b2856f0b655427023a36c78330851bf7f8d8da0f28d1fe22c1d5e10
+DIST ser2net-4.6.2.tar.gz 474345 BLAKE2B 
b495628f7aeda3804c43e59f76a54bfb872551011ccf338a81dc4ed92fa89b36a7356f45b5d4d6804969505eb90b117a348c7a2f78e08a4ed08c730c58df2e40
 SHA512 
3bd7ceb743f1503c055e0c206cfd2b987fee8ba532683a8470c7c078134b68d115809ef94c38fe926ff29363930e014d9cc9a44cc32a8ed93559e193a13204f8

diff --git a/net-misc/ser2net/files/ser2net.confd-r2 
b/net-misc/ser2net/files/ser2net.confd-r2
new file mode 100644
index ..a443ce752a75
--- /dev/null
+++ b/net-misc/ser2net/files/ser2net.confd-r2
@@ -0,0 +1,21 @@
+# Config file for /etc/init.d/ser2net
+
+# Set the configuration file to one other than the default of 
/etc/ser2net/ser2net.yaml
+#
+#CONFIG_FILE="/etc/ser2net/ser2net.yaml"
+
+# Enables the control port and sets the TCP port to listen to for the control 
port.
+# A port number may be of the form [host,]port, such as 127.0.0.1,2000 or 
localhost,2000.
+# If this is specified, it will only bind to the IP address specified for the 
port.
+# Otherwise, it will bind to all the addresses on the machine.
+#
+#CONTROL_PORT=""
+
+# Enable or disable UUCP locking (default=yes)
+#
+#UUCP_LOCKS="no"
+
+# see the ser2net(8) manual page for additional options you can configure here
+#
+#EXTRA_OPTS=""
+

diff --git a/net-misc/ser2net/files/ser2net.initd-r2 
b/net-misc/ser2net/files/ser2net.initd-r2
new file mode 100644
index ..0321e8a9bbb6
--- /dev/null
+++ b/net-misc/ser2net/files/ser2net.initd-r2
@@ -0,0 +1,37 @@
+#!/sbin/openrc-run
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+description="Serial to network proxy (${RC_SVCNAME#*.})"
+pidfile="/var/run/${RC_SVCNAME}.pid"
+command="/usr/sbin/ser2net"
+name="${description}"
+
+extra_started_commands="reload"
+description_reload="Reread configuration file and make the appropriate changes"
+start_stop_daemon_args="--quiet"
+command_args_background="-P ${pidfile}"
+command_args_foreground="-n"
+
+depend() {
+   use logger
+   need net
+}
+
+start_pre() {
+   command_args="${EXTRA_OPTS}"
+   CONFIG_FILE_DEFAULT="/etc/ser2net/ser2net.yaml"
+
+   yesno "${UUCP_LOCKS:-yes}" || command_args="${command_args} -u"
+   [ -n "${CONTROL_PORT}" ] && command_args="${command_args} -p 
${CONTROL_PORT}"
+   [ -z "${CONFIG_FILE}" ] && CONFIG_FILE="${CONFIG_FILE_DEFAULT}"
+   [ "${CONFIG_FILE}" != "${CONFIG_FILE_DEFAULT}" ] && 
command_args="${command_args} -c ${CONFIG_FILE}"
+
+   return 0
+}
+
+reload() {
+   ebegin "Reloading ${description}"
+   start-stop-daemon --signal HUP --pidfile "${pidfile}"
+   eend ${?}
+}

diff --git a/net-misc/ser2net/ser2net-4.6.2.ebuild 
b/net-misc/ser2net/ser2net-4.6.2.ebuild
new file mode 100644
index ..3fd27c27be52
--- /dev/null
+++ b/net-misc/ser2net/ser2net-4.6.2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Serial To Network Proxy"
+HOMEPAGE="https://sourceforge.net/projects/ser2net";
+SRC_URI="https://downloads.sourceforge.net/ser2net/${P}.tar.gz";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="pam"
+
+DEPEND="
+   dev-libs/libyaml:=
+   net-misc/gensio
+   pam? ( sys-libs/pam )
+"
+RDEPEND="${DEPEND}"
+
+# Test suite requires a kernel module
+RESTRICT="test"
+
+src_configure() {
+   econf --without-sysfs-led-support $(use_with pam)
+}
+
+src_install() {
+   default
+
+   insinto /etc/${PN}
+   doins ${PN}.yaml
+
+   newinitd "${FILESDIR}/${PN}.initd-r2" ${PN}
+   newconfd "${FILESDIR}/${PN}.confd-r2" ${PN}
+}



[gentoo-commits] repo/gentoo:master commit in: xfce-base/xfce4-power-manager/

2024-06-09 Thread Jason Zaman
commit: e5236f09fb9d75cb4368e1ce24ea8fefb1fcfd9a
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Jun  9 17:15:30 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Jun  9 17:17:59 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5236f09

xfce-base/xfce4-power-manager: add 4.18.4

Signed-off-by: Jason Zaman  gentoo.org>

 xfce-base/xfce4-power-manager/Manifest |  1 +
 .../xfce4-power-manager-4.18.4.ebuild  | 75 ++
 2 files changed, 76 insertions(+)

diff --git a/xfce-base/xfce4-power-manager/Manifest 
b/xfce-base/xfce4-power-manager/Manifest
index 8211f193bc72..a638d97841fb 100644
--- a/xfce-base/xfce4-power-manager/Manifest
+++ b/xfce-base/xfce4-power-manager/Manifest
@@ -1,3 +1,4 @@
 DIST xfce4-power-manager-4.18.3.tar.bz2 1244867 BLAKE2B 
a028f556f485f51668ab46ac246e07d9e94376aa1609d1c6a08e159df749bc8e37819ecdcfd09e6d2edbcb72441c06a310a4ce2f6ca1f109dd6e5b9da7d9072f
 SHA512 
97f198ed78c3a13c5e64f0551d49533ac2efe0c719f4360eab94736790b225411b347a8524e8a2d7e28b14e546df6133df5273c80d8e0eb5766145782e1412fb
+DIST xfce4-power-manager-4.18.4.tar.bz2 1241669 BLAKE2B 
7fe0caca8ed87d1178bc2feb6704b7415ba03c2630962798e949e7d6e13956eee26dfd5bdd098d765a28776896e1881d3bf7913f48c6187cf372379300680185
 SHA512 
829151b99c279a01037544e8a0a2bbe3cb4c1ec90d8943b3159947d819f94e8f73a8e73db255e1151ca59278583a28448b00d6fc002bd1f8a724c1c16c44fb1b
 DIST xfce4-power-manager-4.19.2.tar.bz2 1506787 BLAKE2B 
f9ceaabaaad09f236bf7f391f3f84fe614aa2e95468204a64a6d96da580d4c249565486ca4a89be09ee14f8dc849d6393ab731a6ac50d24c689e99e3da6a59ac
 SHA512 
3a1f43df4a980d72022f61252e5c5a1d65a424ecbf7d588fe87d24f364d6a748f4d5f107e6af973654d9a70557d4ccd639d1365c0ae88a6327ac16351c66be50
 DIST xfce4-power-manager-4.19.3.tar.bz2 1513388 BLAKE2B 
dfdad39878e9ee1181053ebbd8248bc7eb9ddccb6bb156d8d6093bcaab657549fc182db5ec766c968dd7a1534c7e3131d468a8cba0876f34b6a61ff8012a6b3e
 SHA512 
984dfc52f4863bf9c9e05e5ae021c4146e5a2f7edff39582d676717073123937980387c1712ce4657c8a4816caf59f73d9e1fd3fa4c54e37ad46c2233f528f23

diff --git a/xfce-base/xfce4-power-manager/xfce4-power-manager-4.18.4.ebuild 
b/xfce-base/xfce4-power-manager/xfce4-power-manager-4.18.4.ebuild
new file mode 100644
index ..657e51a279b1
--- /dev/null
+++ b/xfce-base/xfce4-power-manager/xfce4-power-manager-4.18.4.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit xdg-utils
+
+DESCRIPTION="Power manager for the Xfce desktop environment"
+HOMEPAGE="
+   https://docs.xfce.org/xfce/xfce4-power-manager/start
+   https://gitlab.xfce.org/xfce/xfce4-power-manager/
+"
+SRC_URI="https://archive.xfce.org/src/xfce/${PN}/${PV%.*}/${P}.tar.bz2";
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~x86"
+IUSE="networkmanager +panel-plugin policykit"
+
+DEPEND="
+   >=dev-libs/glib-2.66.0
+   >=sys-power/upower-0.99.0
+   >=x11-libs/gtk+-3.24.0:3
+   >=x11-libs/libnotify-0.7
+   x11-libs/libX11
+   >=x11-libs/libXrandr-1.2
+   x11-libs/libXext
+   x11-libs/libXtst
+   >=xfce-base/xfconf-4.12:=
+   >=xfce-base/libxfce4ui-4.18.4:=[gtk3(+)]
+   >=xfce-base/libxfce4util-4.12:=
+   panel-plugin? ( >=xfce-base/xfce4-panel-4.12:= )
+   policykit? ( >=sys-auth/polkit-0.112 )
+"
+RDEPEND="
+   ${DEPEND}
+   networkmanager? ( net-misc/networkmanager )
+"
+DEPEND+="
+   x11-base/xorg-proto
+"
+BDEPEND="
+   dev-util/intltool
+   sys-devel/gettext
+   virtual/pkgconfig
+"
+
+src_configure() {
+   local myconf=(
+   $(use_enable policykit polkit)
+   $(use_enable networkmanager network-manager)
+   $(use_enable panel-plugin xfce4panel)
+   )
+
+   econf "${myconf[@]}"
+}
+
+src_install() {
+   default
+   find "${D}" -name '*.la' -delete || die
+}
+
+pkg_postinst() {
+   xdg_icon_cache_update
+
+   if ! has_version sys-apps/systemd && ! has_version sys-auth/elogind
+   then
+   elog "Suspend/hibernate support requires a logind provider 
installed"
+   elog "(sys-apps/systemd or sys-auth/elogind)"
+   fi
+}
+
+pkg_postrm() {
+   xdg_icon_cache_update
+}



[gentoo-commits] repo/gentoo:master commit in: net-misc/rclone/

2024-05-15 Thread Jason Zaman
commit: ca3e2c711957b6764efdf7fe7c7342ce97a2da65
Author: Maciej Barć  gentoo  org>
AuthorDate: Tue May 14 12:14:36 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Wed May 15 14:37:33 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca3e2c71

net-misc/rclone: bump to 1.66.0

Signed-off-by: Maciej Barć  gentoo.org>
Signed-off-by: Jason Zaman  gentoo.org>

 net-misc/rclone/Manifest |  2 ++
 net-misc/rclone/rclone-1.66.0.ebuild | 65 
 2 files changed, 67 insertions(+)

diff --git a/net-misc/rclone/Manifest b/net-misc/rclone/Manifest
index e9e8b85e7266..d920dc4e4452 100644
--- a/net-misc/rclone/Manifest
+++ b/net-misc/rclone/Manifest
@@ -4,3 +4,5 @@ DIST rclone-1.63.0-deps.tar.xz 297987608 BLAKE2B 
cfda8663ca32b36f5e56db74a724bde
 DIST rclone-1.63.0.tar.gz 16291884 BLAKE2B 
540755808dd73fac061c481e2ea4f1ee241bcd55ccabda9b05343f2074f1672868c4246baff42471ecc7000455fe2c2a04c93578faa994aa0323e0033681bb38
 SHA512 
5f4590a5244d4eb1a51fc15a4ebef70941af94db8790d3ea1bd56b91f399f580b2cd1cc168c5d5e1fd9ee4bc4a3a4a908c8720aead8f8c24bcee3eacc6423ef3
 DIST rclone-1.63.1-deps.tar.xz 298002884 BLAKE2B 
e9dc1dcd3240d4a649b26606109f4ceb9e4e03448da8d27a11c19ed0dc6df39569c3f4714194c3a62e3d80c7a22591ac392d4187df464a4cf203c6135438ec5b
 SHA512 
fff9e6d8ec7721abfd6c95220163478cf1bb3c8fd551a4310641b1213c072ed853e3ca40fd4109ff642d621cc441434f93608af590bb1b07ac2854ddd1d54147
 DIST rclone-1.63.1.tar.gz 16294505 BLAKE2B 
ccb83d5c748f8b68ba7eb7f5910f9b3e8e503407855b4bdd10d5feafaaa96bbf113305cb90952d05922a0ccae6e8efe88737271f4a193cf7a38f79820439c007
 SHA512 
fff03146ae7de4b47b883576b67852f9ff0558137ecb966300bd357c706d4b71c20ad0f87d0028c90b570d9351024f4ae8ddcce1df1cabd0e76e08b29063
+DIST rclone-1.66.0-deps.tar.xz 367625224 BLAKE2B 
244dc6c77315d1e1038b5e784deb55ca597ce728df34b0619a62ebd40524547a8e12c90f85385bf8515eb69f5cb07d5db6dbcb0de2c7a259edb1d934ce1eb747
 SHA512 
b238069636da506826deb99ddab869789bf7bda58d4eb47e47101c5011dd35dfd9a39f481f1c874d57a3330fa8b969fed2b98bb1d13ec8e79495f55403cf6001
+DIST rclone-1.66.0.tar.gz 17066102 BLAKE2B 
587208635c2154782a9f3285c7972a567625120140d1b43096b572d19ab74ae9c7e12b485d6a74d88f1ef4bbce9656bea8f21c67c641227756dd48856a4da9a7
 SHA512 
955ed1457ebe7e6ac2288484109ba263601e147f767ce71b70e14ddcf3f97659d90704de094e4e83c0820267e0f41b1950fc3db534bb3577bcf27f0a2401eb84

diff --git a/net-misc/rclone/rclone-1.66.0.ebuild 
b/net-misc/rclone/rclone-1.66.0.ebuild
new file mode 100644
index ..87da0231b062
--- /dev/null
+++ b/net-misc/rclone/rclone-1.66.0.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit bash-completion-r1 check-reqs edo go-module
+
+DESCRIPTION="A program to sync files to and from various cloud storage 
providers"
+HOMEPAGE="https://rclone.org/
+   https://github.com/rclone/rclone/";
+SRC_URI="
+   https://github.com/rclone/rclone/archive/v${PV}.tar.gz
+   -> ${P}.tar.gz
+   https://dev.gentoo.org/~xgqt/distfiles/deps/${P}-deps.tar.xz
+"
+
+LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
+
+RDEPEND="
+   sys-fs/fuse:3
+"
+
+CHECKREQS_DISK_BUILD="2500M"
+
+pkg_setup() {
+   check-reqs_pkg_setup
+}
+
+src_compile() {
+   local go_ldflags="
+   -X github.com/rclone/rclone/fs.Version=${PV}
+   "
+   local -a go_buildargs=(
+   -ldflags "${go_ldflags}"
+   -mod=readonly
+   -o ./
+   )
+   ego build "${go_buildargs[@]}" .
+
+   edob ./rclone genautocomplete bash "${PN}.bash"
+   edob ./rclone genautocomplete zsh "${PN}.zsh"
+}
+
+src_test() {
+   # Setting CI skips unreliable tests, see "fstest/testy/testy.go"
+   # "TestAddPlugin" and "TestRemovePlugin" fail.
+   local -x CI="true"
+   local -x RCLONE_CONFIG="/not_found"
+
+   edob go test -mod=readonly -v -run "!Test.*Plugin" ./...
+}
+
+src_install() {
+   exeinto /usr/bin
+   doexe "${PN}"
+   doman "${PN}.1"
+
+   newbashcomp "${PN}.bash" "${PN}"
+   insinto /usr/share/zsh/site-functions
+   newins "${PN}.zsh" "_${PN}"
+
+   einstalldocs
+}



[gentoo-commits] repo/gentoo:master commit in: net-misc/rclone/

2024-05-15 Thread Jason Zaman
commit: 8d8fe1eab6d6a7dcfefa6dd4a5d7a0c6e4c1fba7
Author: Maciej Barć  gentoo  org>
AuthorDate: Tue May 14 12:16:25 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Wed May 15 14:37:32 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d8fe1ea

net-misc/rclone: metadata - add myself as co-maintainer, add bugs-to

Signed-off-by: Maciej Barć  gentoo.org>
Signed-off-by: Jason Zaman  gentoo.org>

 net-misc/rclone/metadata.xml | 5 +
 1 file changed, 5 insertions(+)

diff --git a/net-misc/rclone/metadata.xml b/net-misc/rclone/metadata.xml
index 92b54863ba1f..77f51273cdf6 100644
--- a/net-misc/rclone/metadata.xml
+++ b/net-misc/rclone/metadata.xml
@@ -5,7 +5,12 @@
perfin...@gentoo.org
    Jason Zaman

+   
+   x...@gentoo.org
+   Maciej Barć
+   

+   https://gitlab.com/rclone/rclone/-/issues/
rclone/rclone

 



[gentoo-commits] repo/gentoo:master commit in: app-admin/setools/files/, app-admin/setools/

2024-05-05 Thread Jason Zaman
commit: e83faeafed615ba030c50309a8ad9ebe312f86f5
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun May  5 20:50:10 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun May  5 20:50:31 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e83faeaf

app-admin/setools: drop 4.4.2

Signed-off-by: Jason Zaman  gentoo.org>

 app-admin/setools/Manifest |  1 -
 .../setools/files/setools-4.4.1-cython3.patch  | 43 ---
 app-admin/setools/setools-4.4.2.ebuild | 61 --
 3 files changed, 105 deletions(-)

diff --git a/app-admin/setools/Manifest b/app-admin/setools/Manifest
index 5c758f3470ff..dafa5d1085b1 100644
--- a/app-admin/setools/Manifest
+++ b/app-admin/setools/Manifest
@@ -1,3 +1,2 @@
-DIST setools-4.4.2.tar.bz2 261962 BLAKE2B 
7c8e47d8c15f1eb72d93da5d3ae1a64e857ed0a75e1a47bbad9e4b0d11180581d9e4705ebe942e460acbc4d68261f06f9b03a8c4af1516cc388c201e30dca75e
 SHA512 
4e8cba61ca28459387d862136a2d8ee0914c4bcd254a6d39792cbfcbbf7e58cb82223c05d66c114b08aebbd75c11cef11517c51f674ddb3c1913dc85414546c1
 DIST setools-4.4.4.tar.bz2 262867 BLAKE2B 
d64605ef050a2d51531e2a180bff086da536aa8d5e5c8cb96a81e137f575d089f9e9ec117cf0de9864f07174d92258b27ebf8fbc462714ef50bbd6d9f80d0a60
 SHA512 
ef72a7244ba0c724c4aea3afc40d71427e9c0592715f81cccaa8917e96836a88807ea78039c11c261dd3b4d72294accd76ab4bd37447cd500772030245db3c6e
 DIST setools-4.5.1.tar.bz2 264998 BLAKE2B 
479cec6f541c1e7125d641928ba49aee949e538612a478840cec2d70106dcf9f7fa5b8049c9d18c560587670ee624a3a744714667d52b99cff24c51e72026db7
 SHA512 
1045c223423fcb056ffbc2f93c4dc0ccc6ae078ce7d2acbe3a3c65de19440fe801b5b9f71038cde62bf9851f52d868c845aafbe33691ee531cf9854217e061d8

diff --git a/app-admin/setools/files/setools-4.4.1-cython3.patch 
b/app-admin/setools/files/setools-4.4.1-cython3.patch
deleted file mode 100644
index 386b92f44576..
--- a/app-admin/setools/files/setools-4.4.1-cython3.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-https://bugs.gentoo.org/898664
-https://github.com/SELinuxProject/setools/pull/105/commits/fc443b5a0379f3644e071a458e996ea6115ccba3
-(cherry-picked from 
https://github.com/SELinuxProject/setools/commit/31e104c3a9ca97038e09d3a4549fe2b8c8df36e8)
-
-From fc443b5a0379f3644e071a458e996ea6115ccba3 Mon Sep 17 00:00:00 2001
-From: Chris PeBenito 
-Date: Mon, 17 Jul 2023 16:08:21 -0400
-Subject: [PATCH] SELinuxPolicy: Add explicit cast for libspol message
- callback.
-
-Cython 3.0 is more strict.  The change fixes this issue:
-
-setools/policyrep/selinuxpolicy.pxi:685:46: Cannot assign type 'void (void *, 
sepol_handle_t *, const char *, ...) except *' to 'msg_callback'
-
-Additionally, the msg_callback is not typedef-ed in sepol/debug.h, so it must
-be explicitly defined in sepol.pxd for the casting to work.
-
-Signed-off-by: Chris PeBenito 
 a/setools/policyrep/selinuxpolicy.pxi
-+++ b/setools/policyrep/selinuxpolicy.pxi
-@@ -668,7 +668,7 @@ cdef class SELinuxPolicy:
- if self.sh == NULL:
- raise MemoryError
- 
--sepol.sepol_msg_set_callback(self.sh, sepol_logging_callback, 
self.handle)
-+sepol.sepol_msg_set_callback(self.sh, 
sepol_logging_callback, self.handle)
- 
- if sepol.sepol_policydb_create(&self.handle) < 0:
- raise MemoryError
 a/setools/policyrep/sepol.pxd
-+++ b/setools/policyrep/sepol.pxd
-@@ -16,8 +16,10 @@ cdef extern from "":
- void sepol_handle_destroy(sepol_handle_t *sh)
- 
- 
-+ctypedef void (*msg_callback)(void *varg, sepol_handle_t *handle, const char 
*fmt, ...)
-+
-+
- cdef extern from "":
--ctypedef void (*msg_callback)(void *varg, sepol_handle_t *handle, const 
char *fmt, ...)
- void sepol_msg_set_callback(sepol_handle * handle, msg_callback cb, void 
*cb_arg)
- 
- 

diff --git a/app-admin/setools/setools-4.4.2.ebuild 
b/app-admin/setools/setools-4.4.2.ebuild
deleted file mode 100644
index a0fdba4cdd9d..
--- a/app-admin/setools/setools-4.4.2.ebuild
+++ /dev/null
@@ -1,61 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="8"
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..11} )
-
-inherit distutils-r1
-
-DESCRIPTION="Policy Analysis Tools for SELinux"
-HOMEPAGE="https://github.com/SELinuxProject/setools/wiki";
-
-if [[ ${PV} ==  ]] ; then
-   inherit git-r3
-   EGIT_REPO_URI="https://github.com/SELinuxProject/setools.git";
-   S="${WORKDIR}/${P}"
-else
-   
SRC_URI="https://github.com/SELinuxProject/setools/releases/download/${PV}/${P}.tar.bz2";
-   KEYWORDS="amd64 arm arm64 x86"
-   S="${WORKDIR}/${PN}"
-fi
-
-LICENSE="GPL-2 LGPL-2.1"
-SLOT="0"
-IUSE="test X"
-RESTRICT="!test? ( test )"
-
-RDEPEND="${PYTHON_DEPS}
-   de

[gentoo-commits] repo/gentoo:master commit in: app-admin/setools/

2024-05-05 Thread Jason Zaman
commit: 714179b47b83aad18299fb49a8f9cb5733f08cd9
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun May  5 20:41:09 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun May  5 20:50:30 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=714179b4

app-admin/setools: Add 4.5.1

This requires PyQt6 so drops keywords for arm x86.

Signed-off-by: Jason Zaman  gentoo.org>

 app-admin/setools/Manifest  | 1 +
 app-admin/setools/{setools-.ebuild => setools-4.5.1.ebuild} | 9 +
 app-admin/setools/setools-.ebuild   | 7 ---
 3 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/app-admin/setools/Manifest b/app-admin/setools/Manifest
index 2e475c76c75d..5c758f3470ff 100644
--- a/app-admin/setools/Manifest
+++ b/app-admin/setools/Manifest
@@ -1,2 +1,3 @@
 DIST setools-4.4.2.tar.bz2 261962 BLAKE2B 
7c8e47d8c15f1eb72d93da5d3ae1a64e857ed0a75e1a47bbad9e4b0d11180581d9e4705ebe942e460acbc4d68261f06f9b03a8c4af1516cc388c201e30dca75e
 SHA512 
4e8cba61ca28459387d862136a2d8ee0914c4bcd254a6d39792cbfcbbf7e58cb82223c05d66c114b08aebbd75c11cef11517c51f674ddb3c1913dc85414546c1
 DIST setools-4.4.4.tar.bz2 262867 BLAKE2B 
d64605ef050a2d51531e2a180bff086da536aa8d5e5c8cb96a81e137f575d089f9e9ec117cf0de9864f07174d92258b27ebf8fbc462714ef50bbd6d9f80d0a60
 SHA512 
ef72a7244ba0c724c4aea3afc40d71427e9c0592715f81cccaa8917e96836a88807ea78039c11c261dd3b4d72294accd76ab4bd37447cd500772030245db3c6e
+DIST setools-4.5.1.tar.bz2 264998 BLAKE2B 
479cec6f541c1e7125d641928ba49aee949e538612a478840cec2d70106dcf9f7fa5b8049c9d18c560587670ee624a3a744714667d52b99cff24c51e72026db7
 SHA512 
1045c223423fcb056ffbc2f93c4dc0ccc6ae078ce7d2acbe3a3c65de19440fe801b5b9f71038cde62bf9851f52d868c845aafbe33691ee531cf9854217e061d8

diff --git a/app-admin/setools/setools-.ebuild 
b/app-admin/setools/setools-4.5.1.ebuild
similarity index 84%
copy from app-admin/setools/setools-.ebuild
copy to app-admin/setools/setools-4.5.1.ebuild
index ec3d11050109..22f10e5d09ca 100644
--- a/app-admin/setools/setools-.ebuild
+++ b/app-admin/setools/setools-4.5.1.ebuild
@@ -18,7 +18,7 @@ if [[ ${PV} ==  ]] ; then
S="${WORKDIR}/${P}"
 else

SRC_URI="https://github.com/SELinuxProject/setools/releases/download/${PV}/${P}.tar.bz2";
-   KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+   KEYWORDS="~amd64 ~arm64"
S="${WORKDIR}/${PN}"
 fi
 
@@ -28,15 +28,16 @@ IUSE="test X"
 RESTRICT="!test? ( test )"
 
 RDEPEND="${PYTHON_DEPS}
-   >=dev-python/networkx-2.0[${PYTHON_USEDEP}]
+   >=dev-python/networkx-2.6[${PYTHON_USEDEP}]
dev-python/setuptools[${PYTHON_USEDEP}]
>=sys-libs/libsepol-3.2:=
>=sys-libs/libselinux-3.2:=
X? (
-   dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}]
+   dev-python/PyQt6[gui,widgets,${PYTHON_USEDEP}]
+   dev-python/pygraphviz[${PYTHON_USEDEP}]
)"
 DEPEND="${RDEPEND}"
-BDEPEND=">=dev-python/cython-0.27[${PYTHON_USEDEP}]
+BDEPEND=">=dev-python/cython-0.29.14[${PYTHON_USEDEP}]
test? (
sys-apps/checkpolicy
)"

diff --git a/app-admin/setools/setools-.ebuild 
b/app-admin/setools/setools-.ebuild
index ec3d11050109..0ce34473cb2a 100644
--- a/app-admin/setools/setools-.ebuild
+++ b/app-admin/setools/setools-.ebuild
@@ -28,15 +28,16 @@ IUSE="test X"
 RESTRICT="!test? ( test )"
 
 RDEPEND="${PYTHON_DEPS}
-   >=dev-python/networkx-2.0[${PYTHON_USEDEP}]
+   >=dev-python/networkx-2.6[${PYTHON_USEDEP}]
dev-python/setuptools[${PYTHON_USEDEP}]
>=sys-libs/libsepol-3.2:=
>=sys-libs/libselinux-3.2:=
X? (
-   dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}]
+   dev-python/PyQt6[gui,widgets,${PYTHON_USEDEP}]
+   dev-python/pygraphviz[${PYTHON_USEDEP}]
)"
 DEPEND="${RDEPEND}"
-BDEPEND=">=dev-python/cython-0.27[${PYTHON_USEDEP}]
+BDEPEND=">=dev-python/cython-0.29.14[${PYTHON_USEDEP}]
test? (
sys-apps/checkpolicy
)"



[gentoo-commits] repo/gentoo:master commit in: profiles/

2024-04-28 Thread Jason Zaman
commit: 72975b267a62abaf1a2df0f4ece7018bbbdf236a
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Apr 28 18:50:07 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Apr 28 18:53:15 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72975b26

package.mask: Last Rites sci-libs/keras-{applications,preprocessing}

Signed-off-by: Jason Zaman  gentoo.org>

 profiles/package.mask | 8 
 1 file changed, 8 insertions(+)

diff --git a/profiles/package.mask b/profiles/package.mask
index 03e86c811499..be00dda8cf7f 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -33,6 +33,14 @@
 
 #--- END OF EXAMPLES ---
 
+# Jason Zaman  (2024-04-28)
+# TensorFlow was removed from the tree in feb, Keras applications and
+# preprocessing no longer have any revdeps in the tree. For ML, the
+# recommendation is to install from pip in a venv.
+# Removal in 30 days. Bug #930830
+sci-libs/keras-applications
+sci-libs/keras-preprocessing
+
 # Sam James  (2024-04-28)
 # Masked for testing. Tracker bug: bug #930805.
 >=sys-libs/ncurses-6.5



[gentoo-commits] repo/gentoo:master commit in: profiles/

2024-04-27 Thread Jason Zaman
commit: f56242c911f110c3d7607ab5856544e1e2a86aed
Author: Jason Zaman  gentoo  org>
AuthorDate: Sat Apr 27 16:28:47 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Apr 27 16:28:47 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f56242c9

Mask sys-fs/sandboxfs

Sandboxfs was only experimental in Bazel. It was fully removed in Bazel-7
Bazel was removed from gentoo in Feb.
Removal in 30 days. Bug #930790

Signed-off-by: Jason Zaman  gentoo.org>

 profiles/package.mask | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/profiles/package.mask b/profiles/package.mask
index 4fd10f0dd400..1bf9a899bc3a 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -33,6 +33,12 @@
 
 #--- END OF EXAMPLES ---
 
+# Jason Zaman  (2024-04-27)
+# Sandboxfs was only experimental in Bazel. It was fully removed in Bazel-7
+# Bazel was removed from gentoo in Feb.
+# Removal in 30 days. Bug #930790
+sys-fs/sandboxfs
+
 # Arthur Zamarin  (2024-04-27)
 # EAPI=6 package, has issues with implicit function declarations, has
 # issues with incompatible types and more. The only reverse dependency



[gentoo-commits] repo/gentoo:master commit in: dev-python/ml-dtypes/

2024-02-14 Thread Jason Zaman
commit: 7acdad97eaa4e07ce21b35e7d4b6d8f81ceb9899
Author: Jason Zaman  gentoo  org>
AuthorDate: Wed Feb 14 16:29:11 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Wed Feb 14 16:51:01 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7acdad97

dev-python/ml-dtypes: Fix $S after pkgmove

Signed-off-by: Jason Zaman  gentoo.org>

 dev-python/ml-dtypes/ml-dtypes-0.2.0.ebuild | 1 +
 dev-python/ml-dtypes/ml-dtypes-0.3.2.ebuild | 1 +
 2 files changed, 2 insertions(+)

diff --git a/dev-python/ml-dtypes/ml-dtypes-0.2.0.ebuild 
b/dev-python/ml-dtypes/ml-dtypes-0.2.0.ebuild
index 2c22d3c56d02..e12495719202 100644
--- a/dev-python/ml-dtypes/ml-dtypes-0.2.0.ebuild
+++ b/dev-python/ml-dtypes/ml-dtypes-0.2.0.ebuild
@@ -21,6 +21,7 @@ SRC_URI="
 LICENSE="Apache-2.0"
 SLOT="0"
 KEYWORDS="~amd64"
+S="${WORKDIR}/${PNGH}-${PV}"
 
 DEPEND="
dev-python/numpy[${PYTHON_USEDEP}]

diff --git a/dev-python/ml-dtypes/ml-dtypes-0.3.2.ebuild 
b/dev-python/ml-dtypes/ml-dtypes-0.3.2.ebuild
index 2c22d3c56d02..e12495719202 100644
--- a/dev-python/ml-dtypes/ml-dtypes-0.3.2.ebuild
+++ b/dev-python/ml-dtypes/ml-dtypes-0.3.2.ebuild
@@ -21,6 +21,7 @@ SRC_URI="
 LICENSE="Apache-2.0"
 SLOT="0"
 KEYWORDS="~amd64"
+S="${WORKDIR}/${PNGH}-${PV}"
 
 DEPEND="
dev-python/numpy[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: sci-libs/tensorflow-estimator/, sci-libs/tensorflow-estimator/files/

2024-02-14 Thread Jason Zaman
commit: 6cae3d12a062463c577e1b2c9b99c767f8e1ecd2
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Feb  4 20:16:32 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Wed Feb 14 16:50:59 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6cae3d12

sci-libs/tensorflow-estimator: drop 2.11.0, 2.12.0, 2.13.0, 2.14.0

Signed-off-by: Jason Zaman  gentoo.org>

 sci-libs/tensorflow-estimator/Manifest |  5 --
 ...-Update-setup.py-for-2.11.0-final-release.patch | 25 ---
 .../tensorflow-estimator-2.11.0.ebuild | 80 --
 .../tensorflow-estimator-2.12.0.ebuild | 76 
 .../tensorflow-estimator-2.13.0.ebuild | 75 
 .../tensorflow-estimator-2.14.0.ebuild | 75 
 6 files changed, 336 deletions(-)

diff --git a/sci-libs/tensorflow-estimator/Manifest 
b/sci-libs/tensorflow-estimator/Manifest
index c186db69ab42..8b16cb6636f8 100644
--- a/sci-libs/tensorflow-estimator/Manifest
+++ b/sci-libs/tensorflow-estimator/Manifest
@@ -1,8 +1,3 @@
 DIST bazelbuild-rules_cc-0.0.2.tar.gz 127138 BLAKE2B 
2a4cb12096bd8e6efebb13861b259ea12266372d37ef0d6c6005c4b9a6f919c26e1caa2ac78578aefd80a4f5bf08c1a14e15df5218f5d6b949beacba116b7b33
 SHA512 
688b5e6ea0e4cc8e5e11fc7aaac70f88c54d2d70221df0772eea1f0ff3ec16e2e92305f76da09c3c497f29e9132870ceaec7ecad034cca678ff4303899b67c14
-DIST bazelbuild-rules_cc-b1c40e1de81913a3c40e5948f78719c28152486d.zip 201360 
BLAKE2B 
0173a8edb17f344b18e42026e2f8a62a1909d4694ab0be83562b6437a3f1ef38889f069269ddd2308b41062e5f375f791be0d2631a8e52ede668203779813b56
 SHA512 
2ba1dc316d88947c1d17ec67154c052700e3571b8d03370a9f204cf9fe94a1bd58f93a2c4a3c0b02233ee3250053a4c30a4133b5b38745858c1d04be8c9d973f
 DIST bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip 9422 
BLAKE2B 
bbc45c97551ee8126335b611ffca6574dac843d4db9b3221b10d26487f8eecfe38ba0cd67a4039a3ad921c25fea6294c43e4f4e7a57a060a30791acd6c4f9d39
 SHA512 
ba06242feb711e7fb6e821fd9ac029248b4f3e466fb1acf971d0db8196f3efe4d114ef137acbe4913073f8cbe8ccab4d47d8bafa21b867b2d6a6d57f5a647f0c
-DIST tensorflow-estimator-2.11.0-rc0.tar.gz 655514 BLAKE2B 
cc73f282a32f657bf507d948210aa981f0867c4898574c61fb5654204fa573ac7bdef16635d202ed3d202ccc9c8915f5613e4149ce6839d59281a38cfd6953f7
 SHA512 
c473a6db62a0a55f25f8fd5fd7ffb2f2a473261c5a7b3217bd1d8a21a02ab4871793ea57917c6eb9dc9012bd030faf8030702caf3f764983ce526d201866204f
-DIST tensorflow-estimator-2.12.0.tar.gz 656763 BLAKE2B 
a67c81487b7765f3195f7567b66455a4be390bff8d6dec751d054a26b654b1aac96982f6fa55d0488a8e6414e7d4b58d1ae59680a1c694615f82718c77478872
 SHA512 
d86bfde67c97988beeb5abc8042c1847c6d0081d54e21e35424d463895e95a5d0adc74d7d2bb006a617748da3b9a8bbb8979d6a842f024ab3a4d08a2e806147b
-DIST tensorflow-estimator-2.13.0.tar.gz 656953 BLAKE2B 
2aeae25089990914018cd713aba1289195595e67b85cc5d66b1a348b9d65c29854768118989aa0d5540eb5d70bb32ac1699584f0191460f5f23f6f8b3f9d7204
 SHA512 
c445a43d497c575fb6e2f7a26d5346b2db8712540f807e0bc64759db056468ada909371b29b828470c7763156570c25917157dbe0d61e9f148c3027c29ebd181
-DIST tensorflow-estimator-2.14.0.tar.gz 656933 BLAKE2B 
4506b4149824f505b7f42c5c6a73daaa1d5b46201141e11e0775baa7524e0a7886cee5079bdb97af6a880d2f6dbfa276b9e484d06406f84f254b2541b2f80c5b
 SHA512 
a2ac534acba806177400c18968a3d5384a30e4fd431eb3b9f4e1542220b1e382e9272be9909f14d6984d50591b155be5eef7051620a9133ffd199bd1e6fe4582
 DIST tensorflow-estimator-2.15.0.tar.gz 658541 BLAKE2B 
519ccab7f77a3074009b3b9d24f18267abece981dc33a7716cd916b388a4306183221ec12ddb3e32ac41cbe30d936dc504d931a612b71d35093d27def5d391e8
 SHA512 
129fe36ee63932b324d8ee77f917d4ded99be2e645e0884bd920bebf703b63889ed72b76b14fcc3aa8f9cfd0b465428d67067fcfc43f2c761a101ea56d574d04

diff --git 
a/sci-libs/tensorflow-estimator/files/0001-Update-setup.py-for-2.11.0-final-release.patch
 
b/sci-libs/tensorflow-estimator/files/0001-Update-setup.py-for-2.11.0-final-release.patch
deleted file mode 100644
index 3a22052e9845..
--- 
a/sci-libs/tensorflow-estimator/files/0001-Update-setup.py-for-2.11.0-final-release.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From bfc826cf6ab1a65c3cf2e28cf9c6300ced56e9f8 Mon Sep 17 00:00:00 2001
-From: Vinila S <106367904+vinil...@users.noreply.github.com>
-Date: Fri, 11 Nov 2022 16:55:11 -0800
-Subject: [PATCH] Update setup.py for 2.11.0 final release.
-

- tensorflow_estimator/tools/pip_package/setup.py | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/tensorflow_estimator/tools/pip_package/setup.py 
b/tensorflow_estimator/tools/pip_package/setup.py
-index b49eff2..fe35b4b 100644
 a/tensorflow_estimator/tools/pip_package/setup.py
-+++ b/tensorflow_estimator/tools/pip_package/setup.py
-@@ -30,7 +30,7 @@ DOCLINES = __doc__.split('\n')
- # This version string is semver compatible, but incompatible with pip.
- # For pip, we will remove all '-' characters from this string, and use the
- # resul

[gentoo-commits] repo/gentoo:master commit in: sci-libs/keras/, sci-libs/keras/files/

2024-02-14 Thread Jason Zaman
commit: 8982f42c528afa68d382d6890859a443a95c3c55
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Feb  4 20:12:55 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Wed Feb 14 16:50:56 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8982f42c

sci-libs/keras: drop 2.10.0, 2.11.0, 2.12.0, 2.13.1, 2.14.0

Signed-off-by: Jason Zaman  gentoo.org>

 sci-libs/keras/Manifest|   6 -
 ...ras-2.10.0-0001-bazel-Use-system-protobuf.patch | 327 
 ...ras-2.11.0-0001-bazel-Use-system-protobuf.patch | 330 -
 ...ras-2.12.0-0001-bazel-Use-system-protobuf.patch | 330 -
 sci-libs/keras/keras-2.10.0.ebuild |  86 --
 sci-libs/keras/keras-2.11.0.ebuild |  86 --
 sci-libs/keras/keras-2.12.0.ebuild |  86 --
 sci-libs/keras/keras-2.13.1.ebuild |  84 --
 sci-libs/keras/keras-2.14.0.ebuild |  84 --
 9 files changed, 1419 deletions(-)

diff --git a/sci-libs/keras/Manifest b/sci-libs/keras/Manifest
index d05d881937da..773b0a5317c2 100644
--- a/sci-libs/keras/Manifest
+++ b/sci-libs/keras/Manifest
@@ -1,9 +1,3 @@
 DIST bazelbuild-rules_cc-0.0.2.tar.gz 127138 BLAKE2B 
2a4cb12096bd8e6efebb13861b259ea12266372d37ef0d6c6005c4b9a6f919c26e1caa2ac78578aefd80a4f5bf08c1a14e15df5218f5d6b949beacba116b7b33
 SHA512 
688b5e6ea0e4cc8e5e11fc7aaac70f88c54d2d70221df0772eea1f0ff3ec16e2e92305f76da09c3c497f29e9132870ceaec7ecad034cca678ff4303899b67c14
-DIST bazelbuild-rules_cc-b1c40e1de81913a3c40e5948f78719c28152486d.zip 201360 
BLAKE2B 
0173a8edb17f344b18e42026e2f8a62a1909d4694ab0be83562b6437a3f1ef38889f069269ddd2308b41062e5f375f791be0d2631a8e52ede668203779813b56
 SHA512 
2ba1dc316d88947c1d17ec67154c052700e3571b8d03370a9f204cf9fe94a1bd58f93a2c4a3c0b02233ee3250053a4c30a4133b5b38745858c1d04be8c9d973f
 DIST bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip 9422 
BLAKE2B 
bbc45c97551ee8126335b611ffca6574dac843d4db9b3221b10d26487f8eecfe38ba0cd67a4039a3ad921c25fea6294c43e4f4e7a57a060a30791acd6c4f9d39
 SHA512 
ba06242feb711e7fb6e821fd9ac029248b4f3e466fb1acf971d0db8196f3efe4d114ef137acbe4913073f8cbe8ccab4d47d8bafa21b867b2d6a6d57f5a647f0c
-DIST keras-2.10.0.tar.gz 2250425 BLAKE2B 
eb05537739cdc81e279b5c400e2e2b77d46f4085e8530fef565bde12414ddccedb44c0b13265106a3353e67c367106e1d341412dc25b32e2221f144a31d76079
 SHA512 
8682110495a045c2ebc61f31a98d646b88fd9608d5169be78701cf528457ff0d2e39669d885854c14c1e6bebb380b14968957f2a8a34a8a023f8860efc7aeecd
-DIST keras-2.11.0.tar.gz 2260857 BLAKE2B 
9c85e0f64176848886509fbf269b85732f8ad98e7be3ec186e71870e453454b9b81516ef2ca4e67fb8906bc0ca1241d61ae94db6b58c7483527d33519f7c38fb
 SHA512 
17c773e1f9c592676d56a8b3eed707d52240800b33e85db80f206e8459c8c18485f0bcb6d5775ce1ef0625dc5ebe699574b8599dd98dbb73620da4301968
-DIST keras-2.12.0.tar.gz 2319287 BLAKE2B 
332b2b02eecac2da7c87c1f051c56d495027630e2e0254d543897e462f7f44a282bff6cf3cbe2602663cae2e2c76ab45c9b3b53cadbc3317b3e2dd366bdf7ace
 SHA512 
10d034abc9b159a0945610dcfb2fc58d8143267629b8f59496b4e5f097b1220bdb02a269f135f05b8abed56c2d5237b3e0c2b74882cd3f321850fc7f47694dbb
-DIST keras-2.13.1.tar.gz 2373567 BLAKE2B 
8b8b0c51fa9c0f53baa2306d0ee4361aaeaed272d887e0fb2f4289696a74e2cb45239fb378db70d954346b30124255a16002555002813656607721b3f393d0c2
 SHA512 
0f0c93f31d555e27e3f4268af7749b4c494a1f698bc763cebc4efe55e8011dbf637b978ca976ed61c46e8b11b8267b1a277d5048c3d3bcbe47005ee8960a1fc3
-DIST keras-2.14.0.tar.gz 2385374 BLAKE2B 
adca6634e06130d6f238d58e1d94ddd435b30da9b9cc8dd46f40d3ceec98cc6a82c37c3454c438f79b22da1aee223fcae99cf73fe1348383669c5176ee9ef225
 SHA512 
aeb89c8186410d0a5b36b3293d5e36111755716adde1b89fc33a3cc35f8dbdd297a8f8c7f54c9ca21835bc430ba0886a1eee13febe0dbcc510bfab602a6ddc81
 DIST keras-2.15.0.tar.gz 2389088 BLAKE2B 
8cadb992f8e23568a1680d825b382c25d5ec5b82be758289c977a071cb5000429d40738c1462c292f53cda20fbfdc499c025b2fbb1ca9637eb2a8e5789c0a5bf
 SHA512 
2ce001d8dadda2a3df24420a512822204795300215db4496003c1f1a317223f1a8aa6f8b2493a67fbaf9986c2a48e1fd1065828eac6a6f3953bad3db66ed7515

diff --git 
a/sci-libs/keras/files/keras-2.10.0-0001-bazel-Use-system-protobuf.patch 
b/sci-libs/keras/files/keras-2.10.0-0001-bazel-Use-system-protobuf.patch
deleted file mode 100644
index d7cb39f70e8c..
--- a/sci-libs/keras/files/keras-2.10.0-0001-bazel-Use-system-protobuf.patch
+++ /dev/null
@@ -1,327 +0,0 @@
-From bbb2bd19534d6d5aef466dc8707f7c8ad3bab9d8 Mon Sep 17 00:00:00 2001
-From: Jason Zaman 
-Date: Sun, 14 Nov 2021 17:59:39 -0800
-Subject: [PATCH] bazel: Use system protobuf
-

- WORKSPACE|  49 -
- keras/protobuf/BUILD |   2 +-
- third_party/BUILD|   8 +-
- third_party/protobuf.bzl | 216 +++
- 4 files changed, 224 insertions(+), 51 deletions(-)
- create mode 100644 third_party/protobuf.bzl
-
-diff --git a/WORKSPACE b/WORKSPACE
-index 898b5b6d..61282a

[gentoo-commits] repo/gentoo:master commit in: sci-visualization/tensorboard/

2024-02-14 Thread Jason Zaman
commit: d553f8c6e520402e2e330374474077c70bc4fbed
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Feb  4 20:13:39 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Wed Feb 14 16:50:58 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d553f8c6

sci-visualization/tensorboard: drop 2.10.0, 2.11.0, 2.12.0, 2.13.0, 2.14.1

Signed-off-by: Jason Zaman  gentoo.org>

 sci-visualization/tensorboard/Manifest |  5 --
 .../tensorboard/tensorboard-2.10.0.ebuild  | 66 
 .../tensorboard/tensorboard-2.11.0.ebuild  | 72 --
 .../tensorboard/tensorboard-2.12.0.ebuild  | 72 --
 .../tensorboard/tensorboard-2.13.0.ebuild  | 72 --
 .../tensorboard/tensorboard-2.14.1.ebuild  | 71 -
 6 files changed, 358 deletions(-)

diff --git a/sci-visualization/tensorboard/Manifest 
b/sci-visualization/tensorboard/Manifest
index c2e8344f9623..abfd09a540fc 100644
--- a/sci-visualization/tensorboard/Manifest
+++ b/sci-visualization/tensorboard/Manifest
@@ -1,6 +1 @@
-DIST tensorboard-2.10.0.zip 5873469 BLAKE2B 
b03a804682275abd83482e6dc8e62bef4301d796ef5bd2b02bed8d15ab16ff4bd19f1b9e3488e12ea6c03e1b7a85fd69a6a226f0a5378da2067c661b7f1f2f7e
 SHA512 
04da20089d7e24e2c519da24bb8ad32f622386799e28403e036d40c29bc99011cc374480176776b0801df0e37eb2b0e93a987d2a97cd7406eabb75bfd649a311
-DIST tensorboard-2.11.0-py3-none-any.whl.zip 5990351 BLAKE2B 
d6796fceb047abc69c84c8f30ce6b5e0739a376e110fb7e2bb78ee5b6c7dd8d1344546950d46dbdc3a47780f4ad685be186087286225dbeb9ebce558f0837d8c
 SHA512 
f1b908e13a56a86f6618ae8bf596339243642d0f00793d326ac884fd8e736bb316331728b474022936570fb6202b323d8ba2bf4908619aa1f79411b904edf209
-DIST tensorboard-2.12.0-py3-none-any.whl.zip 5638388 BLAKE2B 
617c76fa49b2aa647d7f099d8dbc7d53449e3024981f2f5858c1eff44b6a3c9369169579436562373fd2f44222e506b54d10083292352b70c400f16dcfaf1dec
 SHA512 
d7eaeeb68adf1ad121bffd15f5147564af78ee74b7f2f251f6111bc94973b4ee7c952de51eab4608126a230b4709af5c67944608f4c5c73918af82945abc63e3
-DIST tensorboard-2.13.0-py3-none-any.whl.zip 5569681 BLAKE2B 
f7c671e9a59ab50c9bf150d52826a70091908876ebd65ee39e347eef15f63d1c1e3dadd6c2748917bdd640a09e1816238b755de92c2eb82ca296a67a28be0387
 SHA512 
6d934632855431056a4b255be52312a9cb6592ca4fde97a2a563634dbbc7ff2809cac6adbffbd6ea5eb03f22cdf682593b704704ed9af208cea9a36030cd9ff1
-DIST tensorboard-2.14.1-py3-none-any.whl.zip 5508920 BLAKE2B 
b1f7afccc29ea7f1694127a02ef571bfd984be17c9a4f4e30be0fece64c94e8f3e6c4f4dfc49cb0544694a806ab09d83d56b0064aae0a226721ca47d20e7bf6a
 SHA512 
6d4f61452a99b88aef2e640a9be9324eb7c287121faff267b9fb8b114381f03c90cbcd46d38f2fd0aa54d6c7c5ed9f8123bd76675454564169ab0ccd67abaa6e
 DIST tensorboard-2.15.1-py3-none-any.whl.zip 5539710 BLAKE2B 
39791d7c7a857df8836d5113c4514bd9d8fd568df6e67f2f3c43f1faa125ba445c1aaa137b38de2cfcccb4ebbda9e7d0ffc2f41e61770d44f7e93683acb3ab13
 SHA512 
cd73752fa375075ed9ec3240853401f87df16aaae784c7ccf820d8a5a3ff1bf1f2a1424fa62a417ea0a8ed2463ac1be7de5228bc161f9f3f9e52b56b02354323

diff --git a/sci-visualization/tensorboard/tensorboard-2.10.0.ebuild 
b/sci-visualization/tensorboard/tensorboard-2.10.0.ebuild
deleted file mode 100644
index 207c16f36c79..
--- a/sci-visualization/tensorboard/tensorboard-2.10.0.ebuild
+++ /dev/null
@@ -1,66 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_10 )
-inherit python-r1
-
-DESCRIPTION="TensorFlow's Visualization Toolkit"
-HOMEPAGE="https://www.tensorflow.org/";
-SRC_URI="https://files.pythonhosted.org/packages/py3/${PN::1}/${PN}/${P}-py3-none-any.whl
 -> ${P}.zip"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE=""
-REQUIRED_USE=${PYTHON_REQUIRED_USE}
-
-RDEPEND="
-   ${PYTHON_DEPS}
-   dev-python/bleach[${PYTHON_USEDEP}]
-   >=dev-python/google-auth-1.6.3[${PYTHON_USEDEP}]
-   >=dev-python/google-auth-oauthlib-0.4.1[${PYTHON_USEDEP}]
-   dev-python/grpcio[${PYTHON_USEDEP}]
-   dev-python/html5lib[${PYTHON_USEDEP}]
-   dev-python/markdown[${PYTHON_USEDEP}]
-   dev-python/numpy[${PYTHON_USEDEP}]
-   dev-python/protobuf-python[${PYTHON_USEDEP}]
-   dev-python/six[${PYTHON_USEDEP}]
-   >=dev-python/setuptools-41[${PYTHON_USEDEP}]
-   dev-python/werkzeug[${PYTHON_USEDEP}]
-   dev-python/wheel[${PYTHON_USEDEP}]
-   >=dev-python/scipy-1.4.1[${PYTHON_USEDEP}]"
-BDEPEND="app-arch/unzip
-   ${PYTHON_DEPS}"
-PDEPEND="sci-libs/tensorflow[python,${PYTHON_USEDEP}]"
-
-S="${WORKDIR}"
-
-src_prepare() {
-   eapply_user
-
-   sed -i -e '/_vendor.__init__/d' -e '/_vendor.bleach/d' -e 
'/_vendor.html5lib/d' -e '/_vendor.webencodings/d' \
-   &

[gentoo-commits] repo/gentoo:master commit in: dev-python/ml_dtypes/, profiles/updates/, sci-libs/tensorflow/, ...

2024-02-04 Thread Jason Zaman
commit: 9f5e70d044a709f73b730e823df56be17c794fb1
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Feb  4 19:39:01 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun Feb  4 19:54:11 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f5e70d0

Move dev-python/{ml_dtypes → ml-dtypes}

Signed-off-by: Jason Zaman  gentoo.org>

 dev-python/{ml_dtypes => ml-dtypes}/Manifest   | 0
 dev-python/{ml_dtypes => ml-dtypes}/metadata.xml   | 2 +-
 .../ml_dtypes-0.2.0.ebuild => ml-dtypes/ml-dtypes-0.2.0.ebuild}| 3 ++-
 .../ml_dtypes-0.3.2.ebuild => ml-dtypes/ml-dtypes-0.3.2.ebuild}| 3 ++-
 profiles/updates/1Q-2024   | 1 +
 sci-libs/tensorflow/tensorflow-2.14.1.ebuild   | 2 +-
 sci-libs/tensorflow/tensorflow-2.15.0.ebuild   | 2 +-
 7 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/dev-python/ml_dtypes/Manifest b/dev-python/ml-dtypes/Manifest
similarity index 100%
rename from dev-python/ml_dtypes/Manifest
rename to dev-python/ml-dtypes/Manifest

diff --git a/dev-python/ml_dtypes/metadata.xml 
b/dev-python/ml-dtypes/metadata.xml
similarity index 87%
rename from dev-python/ml_dtypes/metadata.xml
rename to dev-python/ml-dtypes/metadata.xml
index fb90faa23f9d..a0436bcc589f 100644
--- a/dev-python/ml_dtypes/metadata.xml
+++ b/dev-python/ml-dtypes/metadata.xml
@@ -7,6 +7,6 @@


jax-ml/ml_dtypes
-   ml_dtypes
+   ml-dtypes

 

diff --git a/dev-python/ml_dtypes/ml_dtypes-0.2.0.ebuild 
b/dev-python/ml-dtypes/ml-dtypes-0.2.0.ebuild
similarity index 84%
rename from dev-python/ml_dtypes/ml_dtypes-0.2.0.ebuild
rename to dev-python/ml-dtypes/ml-dtypes-0.2.0.ebuild
index b6db456a8c20..2c22d3c56d02 100644
--- a/dev-python/ml_dtypes/ml_dtypes-0.2.0.ebuild
+++ b/dev-python/ml-dtypes/ml-dtypes-0.2.0.ebuild
@@ -3,6 +3,7 @@
 
 EAPI=8
 
+PNGH="${PN/-/_}" # pypi is ml-dtypes, github is ml_dtypes
 PYTHON_COMPAT=( python3_{10..12} )
 DISTUTILS_EXT=1
 DISTUTILS_USE_PEP517=setuptools
@@ -13,7 +14,7 @@ EIGEN_CommitId="7bf2968fed5f246c0589e004cb420fcd7c71"
 DESCRIPTION="A stand-alone implementation of several NumPy dtype extensions"
 HOMEPAGE="https://github.com/jax-ml/ml_dtypes";
 SRC_URI="
-   https://github.com/jax-ml/${PN}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.gh.tar.gz
+   https://github.com/jax-ml/${PNGH}/archive/refs/tags/v${PV}.tar.gz -> 
${PNGH}-${PV}.gh.tar.gz

https://gitlab.com/libeigen/eigen/-/archive/${EIGEN_CommitId}/eigen-${EIGEN_CommitId}.tar.bz2
 "
 

diff --git a/dev-python/ml_dtypes/ml_dtypes-0.3.2.ebuild 
b/dev-python/ml-dtypes/ml-dtypes-0.3.2.ebuild
similarity index 84%
rename from dev-python/ml_dtypes/ml_dtypes-0.3.2.ebuild
rename to dev-python/ml-dtypes/ml-dtypes-0.3.2.ebuild
index b6db456a8c20..2c22d3c56d02 100644
--- a/dev-python/ml_dtypes/ml_dtypes-0.3.2.ebuild
+++ b/dev-python/ml-dtypes/ml-dtypes-0.3.2.ebuild
@@ -3,6 +3,7 @@
 
 EAPI=8
 
+PNGH="${PN/-/_}" # pypi is ml-dtypes, github is ml_dtypes
 PYTHON_COMPAT=( python3_{10..12} )
 DISTUTILS_EXT=1
 DISTUTILS_USE_PEP517=setuptools
@@ -13,7 +14,7 @@ EIGEN_CommitId="7bf2968fed5f246c0589e004cb420fcd7c71"
 DESCRIPTION="A stand-alone implementation of several NumPy dtype extensions"
 HOMEPAGE="https://github.com/jax-ml/ml_dtypes";
 SRC_URI="
-   https://github.com/jax-ml/${PN}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.gh.tar.gz
+   https://github.com/jax-ml/${PNGH}/archive/refs/tags/v${PV}.tar.gz -> 
${PNGH}-${PV}.gh.tar.gz

https://gitlab.com/libeigen/eigen/-/archive/${EIGEN_CommitId}/eigen-${EIGEN_CommitId}.tar.bz2
 "
 

diff --git a/profiles/updates/1Q-2024 b/profiles/updates/1Q-2024
index 042990983c3f..e6ceb321a776 100644
--- a/profiles/updates/1Q-2024
+++ b/profiles/updates/1Q-2024
@@ -71,3 +71,4 @@ move dev-util/scap-driver dev-debug/scap-driver
 move dev-util/icmake dev-build/icmake
 move sci-libs/scikit-image dev-python/scikit-image
 move dev-python/confusable_homoglyphs dev-python/confusable-homoglyphs
+move dev-python/ml_dtypes dev-python/ml-dtypes

diff --git a/sci-libs/tensorflow/tensorflow-2.14.1.ebuild 
b/sci-libs/tensorflow/tensorflow-2.14.1.ebuild
index 83e63834a518..a3fde6eea76c 100644
--- a/sci-libs/tensorflow/tensorflow-2.14.1.ebuild
+++ b/sci-libs/tensorflow/tensorflow-2.14.1.ebuild
@@ -123,7 +123,7 @@ RDEPEND="
~dev-python/flatbuffers-23.5.26[${PYTHON_USEDEP}]
>=dev-python/gast-0.3.3[${PYTHON_USEDEP}]
dev-python/h5py[${PYTHON_USEDEP}]
-   =dev-python/numpy-1.19[${PYTHON_USEDEP}]
>=dev-python/google-pasta-0.1.8[${PYTHON_USEDEP}]
>=dev-python/opt-einsum-3.3.0[${PYTHON_USEDEP}]

diff --git a/sci-libs/tensorflow/te

[gentoo-commits] repo/gentoo:master commit in: sci-libs/tensorflow-estimator/, sci-libs/tensorflow-estimator/files/

2024-02-03 Thread Jason Zaman
commit: 89cd3bb535605a68f05fd245efdd8eed96ca
Author: wangjiezhe  gmail  com>
AuthorDate: Sat Jan 20 11:27:06 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Feb  3 19:33:02 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89cd3bb5

sci-libs/tensorflow-estimator: add 2.15.0

Signed-off-by: wangjiezhe  gmail.com>
Signed-off-by: Jason Zaman  gentoo.org>

 sci-libs/tensorflow-estimator/Manifest |   1 +
 ...ude-extractor_wrapper-and-generator_wrapp.patch |  29 +
 ...te-TF-Estimator-to-use-new-TF-API-Generat.patch | 703 +
 .../tensorflow-estimator-2.15.0.ebuild |  80 +++
 4 files changed, 813 insertions(+)

diff --git a/sci-libs/tensorflow-estimator/Manifest 
b/sci-libs/tensorflow-estimator/Manifest
index 659bd20d7373..c186db69ab42 100644
--- a/sci-libs/tensorflow-estimator/Manifest
+++ b/sci-libs/tensorflow-estimator/Manifest
@@ -5,3 +5,4 @@ DIST tensorflow-estimator-2.11.0-rc0.tar.gz 655514 BLAKE2B 
cc73f282a32f657bf507d
 DIST tensorflow-estimator-2.12.0.tar.gz 656763 BLAKE2B 
a67c81487b7765f3195f7567b66455a4be390bff8d6dec751d054a26b654b1aac96982f6fa55d0488a8e6414e7d4b58d1ae59680a1c694615f82718c77478872
 SHA512 
d86bfde67c97988beeb5abc8042c1847c6d0081d54e21e35424d463895e95a5d0adc74d7d2bb006a617748da3b9a8bbb8979d6a842f024ab3a4d08a2e806147b
 DIST tensorflow-estimator-2.13.0.tar.gz 656953 BLAKE2B 
2aeae25089990914018cd713aba1289195595e67b85cc5d66b1a348b9d65c29854768118989aa0d5540eb5d70bb32ac1699584f0191460f5f23f6f8b3f9d7204
 SHA512 
c445a43d497c575fb6e2f7a26d5346b2db8712540f807e0bc64759db056468ada909371b29b828470c7763156570c25917157dbe0d61e9f148c3027c29ebd181
 DIST tensorflow-estimator-2.14.0.tar.gz 656933 BLAKE2B 
4506b4149824f505b7f42c5c6a73daaa1d5b46201141e11e0775baa7524e0a7886cee5079bdb97af6a880d2f6dbfa276b9e484d06406f84f254b2541b2f80c5b
 SHA512 
a2ac534acba806177400c18968a3d5384a30e4fd431eb3b9f4e1542220b1e382e9272be9909f14d6984d50591b155be5eef7051620a9133ffd199bd1e6fe4582
+DIST tensorflow-estimator-2.15.0.tar.gz 658541 BLAKE2B 
519ccab7f77a3074009b3b9d24f18267abece981dc33a7716cd916b388a4306183221ec12ddb3e32ac41cbe30d936dc504d931a612b71d35093d27def5d391e8
 SHA512 
129fe36ee63932b324d8ee77f917d4ded99be2e645e0884bd920bebf703b63889ed72b76b14fcc3aa8f9cfd0b465428d67067fcfc43f2c761a101ea56d574d04

diff --git 
a/sci-libs/tensorflow-estimator/files/0001-Revert-Exclude-extractor_wrapper-and-generator_wrapp.patch
 
b/sci-libs/tensorflow-estimator/files/0001-Revert-Exclude-extractor_wrapper-and-generator_wrapp.patch
new file mode 100644
index ..cc44a9592d96
--- /dev/null
+++ 
b/sci-libs/tensorflow-estimator/files/0001-Revert-Exclude-extractor_wrapper-and-generator_wrapp.patch
@@ -0,0 +1,29 @@
+From f6d965a9f81b3062ca2f9194bcfa52ee4eeec928 Mon Sep 17 00:00:00 2001
+From: wangjiezhe 
+Date: Sat, 23 Dec 2023 10:06:57 +0800
+Subject: [PATCH 1/2] Revert "Exclude `extractor_wrapper` and
+ `generator_wrapper` from the pip package, and remove the exclusion for the
+ deleted `create_python_api_wrapper`."
+
+This reverts commit bd50049c3905fd8c9ad058d2e09682b45b9b9b02.
+---
+ tensorflow_estimator/tools/pip_package/create_pip_helper.py | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/tensorflow_estimator/tools/pip_package/create_pip_helper.py 
b/tensorflow_estimator/tools/pip_package/create_pip_helper.py
+index 4810594..e1b1f27 100644
+--- a/tensorflow_estimator/tools/pip_package/create_pip_helper.py
 b/tensorflow_estimator/tools/pip_package/create_pip_helper.py
+@@ -35,8 +35,7 @@ PIP_EXCLUDED_FILES = frozenset([
+ 'tensorflow_estimator/python/estimator/canned/v1/baseline_test_v1.py',
+ 'tensorflow_estimator/python/estimator/canned/v1/dnn_test_fc_v1_v1.py',
+ 'tensorflow_estimator/python/estimator/canned/v1/dnn_test_fc_v2_v1.py',
+-'tensorflow_estimator/python/estimator/api/extractor_wrapper.py',
+-'tensorflow_estimator/python/estimator/api/generator_wrapper.py',
++'tensorflow_estimator/python/estimator/api/create_python_api_wrapper.py',
+ 'tensorflow_estimator/tools/pip_package/setup.py',
+ 'tensorflow_estimator/tools/pip_package/create_pip_helper.py',
+ ])
+-- 
+2.41.0
+

diff --git 
a/sci-libs/tensorflow-estimator/files/0002-Revert-Update-TF-Estimator-to-use-new-TF-API-Generat.patch
 
b/sci-libs/tensorflow-estimator/files/0002-Revert-Update-TF-Estimator-to-use-new-TF-API-Generat.patch
new file mode 100644
index ..d7167adb8488
--- /dev/null
+++ 
b/sci-libs/tensorflow-estimator/files/0002-Revert-Update-TF-Estimator-to-use-new-TF-API-Generat.patch
@@ -0,0 +1,703 @@
+From 38076a1b48096ef7b4f1e5005fdf9e14425d56a8 Mon Sep 17 00:00:00 2001
+From: wangjiezhe 
+Date: Sat, 23 Dec 2023 10:07:02 +0800
+Subject: [PATCH 2/2] Revert "Update TF Estimator to use new TF API Generator"
+
+This reverts commit f7653f9adf978acb3bd459e6ec779a659f1f9a2a.
+--

[gentoo-commits] repo/gentoo:master commit in: sci-libs/tensorflow/files/, sci-libs/tensorflow/

2024-02-03 Thread Jason Zaman
commit: 77b20ee55bb5699ecd496e3a68e27fb4d5399f03
Author: wangjiezhe  gmail  com>
AuthorDate: Sun Jan 21 08:07:44 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Feb  3 19:33:04 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77b20ee5

sci-libs/tensorflow: fixing build issue with gcc-13

Tested on tensorflow-2.12/2.13/2.14/2.15 with USE="mpi python xla -cuda"
and gcc-13.

Bug: https://bugs.gentoo.org/905673

Signed-off-by: wangjiezhe  gmail.com>
Signed-off-by: Jason Zaman  gentoo.org>

 ...xing-build-issue-with-Clang-16-and-GCC-13.patch | 39 ++
 ...4.1-0014-Fixing-build-issue-with-Clang-16.patch | 25 ++
 sci-libs/tensorflow/tensorflow-2.11.0.ebuild   |  1 +
 sci-libs/tensorflow/tensorflow-2.12.0.ebuild   |  1 +
 sci-libs/tensorflow/tensorflow-2.13.1.ebuild   |  1 +
 sci-libs/tensorflow/tensorflow-2.14.1.ebuild   |  1 +
 6 files changed, 68 insertions(+)

diff --git 
a/sci-libs/tensorflow/files/tensorflow-2.13.0-0013-Fixing-build-issue-with-Clang-16-and-GCC-13.patch
 
b/sci-libs/tensorflow/files/tensorflow-2.13.0-0013-Fixing-build-issue-with-Clang-16-and-GCC-13.patch
new file mode 100644
index ..9961d94cd48c
--- /dev/null
+++ 
b/sci-libs/tensorflow/files/tensorflow-2.13.0-0013-Fixing-build-issue-with-Clang-16-and-GCC-13.patch
@@ -0,0 +1,39 @@
+From 9081d1ccadb7fcd3e2dd01106e85003af2fb7975 Mon Sep 17 00:00:00 2001
+From: wangjiezhe 
+Date: Sun, 21 Jan 2024 00:26:21 +0800
+Subject: [PATCH 13/13] Fixing build issue with Clang 16 and GCC 13
+
+---
+ tensorflow/lite/kernels/internal/spectrogram.cc | 2 ++
+ tensorflow/tsl/lib/io/cache.h   | 2 ++
+ 2 files changed, 4 insertions(+)
+
+diff --git a/tensorflow/lite/kernels/internal/spectrogram.cc 
b/tensorflow/lite/kernels/internal/spectrogram.cc
+index a832962a38d..9b1f86ba717 100644
+--- a/tensorflow/lite/kernels/internal/spectrogram.cc
 b/tensorflow/lite/kernels/internal/spectrogram.cc
+@@ -18,6 +18,8 @@ limitations under the License.
+ #include 
+ #include 
+ 
++#include 
++
+ #include "third_party/fft2d/fft.h"
+ 
+ namespace tflite {
+diff --git a/tensorflow/tsl/lib/io/cache.h b/tensorflow/tsl/lib/io/cache.h
+index f894c5916d5..e49d09b7450 100644
+--- a/tensorflow/tsl/lib/io/cache.h
 b/tensorflow/tsl/lib/io/cache.h
+@@ -16,6 +16,8 @@ limitations under the License.
+ #ifndef TENSORFLOW_TSL_LIB_IO_CACHE_H_
+ #define TENSORFLOW_TSL_LIB_IO_CACHE_H_
+ 
++#include 
++
+ #include "tensorflow/tsl/platform/stringpiece.h"
+ 
+ // A Cache is an interface that maps keys to values.  It has internal
+-- 
+2.43.0
+

diff --git 
a/sci-libs/tensorflow/files/tensorflow-2.14.1-0014-Fixing-build-issue-with-Clang-16.patch
 
b/sci-libs/tensorflow/files/tensorflow-2.14.1-0014-Fixing-build-issue-with-Clang-16.patch
new file mode 100644
index ..379aa7385df1
--- /dev/null
+++ 
b/sci-libs/tensorflow/files/tensorflow-2.14.1-0014-Fixing-build-issue-with-Clang-16.patch
@@ -0,0 +1,25 @@
+From 9db05c2eb25372b3be4badb15aa67d19298aeaf4 Mon Sep 17 00:00:00 2001
+From: Ben Olson 
+Date: Tue, 8 Aug 2023 17:15:50 -0500
+Subject: [PATCH 14/14] Fixing build issue with Clang 16
+
+---
+ tensorflow/tsl/lib/io/cache.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/tensorflow/tsl/lib/io/cache.h b/tensorflow/tsl/lib/io/cache.h
+index f894c5916d5..e49d09b7450 100644
+--- a/tensorflow/tsl/lib/io/cache.h
 b/tensorflow/tsl/lib/io/cache.h
+@@ -16,6 +16,8 @@ limitations under the License.
+ #ifndef TENSORFLOW_TSL_LIB_IO_CACHE_H_
+ #define TENSORFLOW_TSL_LIB_IO_CACHE_H_
+ 
++#include 
++
+ #include "tensorflow/tsl/platform/stringpiece.h"
+ 
+ // A Cache is an interface that maps keys to values.  It has internal
+-- 
+2.43.0
+

diff --git a/sci-libs/tensorflow/tensorflow-2.11.0.ebuild 
b/sci-libs/tensorflow/tensorflow-2.11.0.ebuild
index 5a44042dcde2..7307e3bc3c8d 100644
--- a/sci-libs/tensorflow/tensorflow-2.11.0.ebuild
+++ b/sci-libs/tensorflow/tensorflow-2.11.0.ebuild
@@ -198,6 +198,7 @@ src_prepare() {
bazel_setup_bazelrc
 
eapply "${WORKDIR}"/patches/*.patch
+   eapply 
"${FILESDIR}/tensorflow-2.13.0-0013-Fixing-build-issue-with-Clang-16-and-GCC-13.patch"
 
# Relax version checks in setup.py
sed -i "/^'/s/==/>=/g" tensorflow/tools/pip_package/setup.py || die

diff --git a/sci-libs/tensorflow/tensorflow-2.12.0.ebuild 
b/sci-libs/tensorflow/tensorflow-2.12.0.ebuild
index b2050fa13bff..adc648f45814 100644
--- a/sci-libs/tensorflow/tensorflow-2.12.0.ebuild
+++ b/sci-libs/tensorflow/tensorflow-2.12.0.ebuild
@@ -200,6 +200,7 @@ src_prepare() {
bazel_setup_bazelrc
 
eapply "${WORKDIR}"/patches/*.patch
+   eapply 
"${FILESDIR}/tensorflow-2.13.0-0013-Fixing-build-issue-with-Clang-16-and-GCC-13.patch"
 
# Relax version checks in setup.py
sed -i "/^'/s/==/&

[gentoo-commits] repo/gentoo:master commit in: sci-libs/keras/

2024-02-03 Thread Jason Zaman
commit: ba0f5232c5d77be561fafb77e5e8fa173b5bd641
Author: wangjiezhe  gmail  com>
AuthorDate: Sat Jan 20 11:24:58 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Feb  3 19:33:01 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba0f5232

sci-libs/keras: add 2.15.0

Signed-off-by: wangjiezhe  gmail.com>
Signed-off-by: Jason Zaman  gentoo.org>

 sci-libs/keras/Manifest|  1 +
 sci-libs/keras/keras-2.15.0.ebuild | 84 ++
 2 files changed, 85 insertions(+)

diff --git a/sci-libs/keras/Manifest b/sci-libs/keras/Manifest
index 0032aa4f3fac..d05d881937da 100644
--- a/sci-libs/keras/Manifest
+++ b/sci-libs/keras/Manifest
@@ -6,3 +6,4 @@ DIST keras-2.11.0.tar.gz 2260857 BLAKE2B 
9c85e0f64176848886509fbf269b85732f8ad98
 DIST keras-2.12.0.tar.gz 2319287 BLAKE2B 
332b2b02eecac2da7c87c1f051c56d495027630e2e0254d543897e462f7f44a282bff6cf3cbe2602663cae2e2c76ab45c9b3b53cadbc3317b3e2dd366bdf7ace
 SHA512 
10d034abc9b159a0945610dcfb2fc58d8143267629b8f59496b4e5f097b1220bdb02a269f135f05b8abed56c2d5237b3e0c2b74882cd3f321850fc7f47694dbb
 DIST keras-2.13.1.tar.gz 2373567 BLAKE2B 
8b8b0c51fa9c0f53baa2306d0ee4361aaeaed272d887e0fb2f4289696a74e2cb45239fb378db70d954346b30124255a16002555002813656607721b3f393d0c2
 SHA512 
0f0c93f31d555e27e3f4268af7749b4c494a1f698bc763cebc4efe55e8011dbf637b978ca976ed61c46e8b11b8267b1a277d5048c3d3bcbe47005ee8960a1fc3
 DIST keras-2.14.0.tar.gz 2385374 BLAKE2B 
adca6634e06130d6f238d58e1d94ddd435b30da9b9cc8dd46f40d3ceec98cc6a82c37c3454c438f79b22da1aee223fcae99cf73fe1348383669c5176ee9ef225
 SHA512 
aeb89c8186410d0a5b36b3293d5e36111755716adde1b89fc33a3cc35f8dbdd297a8f8c7f54c9ca21835bc430ba0886a1eee13febe0dbcc510bfab602a6ddc81
+DIST keras-2.15.0.tar.gz 2389088 BLAKE2B 
8cadb992f8e23568a1680d825b382c25d5ec5b82be758289c977a071cb5000429d40738c1462c292f53cda20fbfdc499c025b2fbb1ca9637eb2a8e5789c0a5bf
 SHA512 
2ce001d8dadda2a3df24420a512822204795300215db4496003c1f1a317223f1a8aa6f8b2493a67fbaf9986c2a48e1fd1065828eac6a6f3953bad3db66ed7515

diff --git a/sci-libs/keras/keras-2.15.0.ebuild 
b/sci-libs/keras/keras-2.15.0.ebuild
new file mode 100644
index ..c67472647c1b
--- /dev/null
+++ b/sci-libs/keras/keras-2.15.0.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..11} )
+inherit bazel distutils-r1
+
+DESCRIPTION="Deep Learning for humans"
+HOMEPAGE="https://keras.io/";
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+bazel_external_uris="
+   
https://github.com/bazelbuild/rules_cc/releases/download/0.0.2/rules_cc-0.0.2.tar.gz
 -> bazelbuild-rules_cc-0.0.2.tar.gz
+   
https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip
 -> bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip"
+
+SRC_URI="https://github.com/keras-team/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz
+   ${bazel_external_uris}"
+
+RDEPEND="
+   >=dev-libs/protobuf-3.13.0:=
+   dev-python/absl-py[${PYTHON_USEDEP}]
+   dev-python/h5py[${PYTHON_USEDEP}]
+   dev-python/numpy[${PYTHON_USEDEP}]
+   dev-python/pandas[${PYTHON_USEDEP}]
+   dev-python/pillow[${PYTHON_USEDEP}]
+   >=dev-python/protobuf-python-3.13.0[${PYTHON_USEDEP}]
+   dev-python/six[${PYTHON_USEDEP}]
+   >=sci-libs/keras-applications-1.0.8[${PYTHON_USEDEP}]
+   >=sci-libs/keras-preprocessing-1.1.2[${PYTHON_USEDEP}]
+   >=sci-libs/tensorflow-2.15[python,${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+   dev-python/setuptools[${PYTHON_USEDEP}]"
+BDEPEND="
+   app-arch/unzip
+   >=dev-libs/protobuf-3.13.0
+   dev-java/java-config
+   >=dev-build/bazel-5.3.0"
+
+# Bazel tests not pytest, also want GPU access
+RESTRICT="test"
+DOCS=( CONTRIBUTING.md README.md )
+PATCHES=(
+   "${FILESDIR}/keras-2.14.0-0001-bazel-Use-system-protobuf.patch"
+)
+
+src_unpack() {
+   unpack "${P}.tar.gz"
+   bazel_load_distfiles "${bazel_external_uris}"
+}
+
+src_prepare() {
+   bazel_setup_bazelrc
+   default
+   python_copy_sources
+}
+
+python_compile() {
+   pushd "${BUILD_DIR}" >/dev/null || die
+
+   ebazel build //keras/tools/pip_package:build_pip_package
+   ebazel shutdown
+
+   local srcdir="${T}/src-${EPYTHON/./_}"
+   mkdir -p "${srcdir}" || die
+   bazel-bin/keras/tools/pip_package/build_pip_package --src "${srcdir}" 
|| die
+
+   popd || die
+}
+
+src_compile() {
+   export JAVA_HOME=$(java-config --jre-home)
+   distutils-r1_src_compile
+}
+
+python_install() {
+   pushd "${T}/src-${EPYTHON/./_}" >/dev/null || die
+   esetup.py install
+   python_optimize
+   popd || die
+}



[gentoo-commits] repo/gentoo:master commit in: sci-libs/tensorflow/, sci-libs/tensorflow/files/

2024-02-03 Thread Jason Zaman
commit: e17026a6281b2cbef77b066992a2d0b304c6929b
Author: wangjiezhe  gmail  com>
AuthorDate: Sat Jan 20 11:23:54 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Feb  3 19:33:00 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e17026a6

sci-libs/tensorflow: add 2.15.0

Signed-off-by: wangjiezhe  gmail.com>
Signed-off-by: Jason Zaman  gentoo.org>

 sci-libs/tensorflow/Manifest   |  16 +
 ...dd-rules-docker-http_archive-bazel-toolch.patch |  37 +
 ...emlib-Latest-absl-LTS-has-split-cord-libs.patch |  32 +
 ...Must-link-against-libm-for-round-and-log2.patch |  29 +
 ...ensorflow_cc-Add-systemlib-nsync-linkopts.patch |  35 +
 ...systemlib-Updates-for-Abseil-20220623-LTS.patch |  71 ++
 ...0006-systemlib-Update-targets-for-absl_py.patch |  24 +
 ...temlib-Add-well_known_types_py_pb2-target.patch |  28 +
 ...-0008-Relax-setup.py-version-requirements.patch |  86 ++
 0-0009-systemlib-update-targets-for-absl.patch | 365 
 ...010-systemlib-fix-missing-osx-in-pybind11.patch |  25 +
 ...temlib-fix-missing-LICENSE-in-flatbuffers.patch |  25 +
 ...nstallation-remove-cp_local_config_python.patch |  68 ++
 ...2.15.0-0013-build-use-non-hermetic-python.patch | 990 +
 sci-libs/tensorflow/tensorflow-2.15.0.ebuild   | 464 ++
 15 files changed, 2295 insertions(+)

diff --git a/sci-libs/tensorflow/Manifest b/sci-libs/tensorflow/Manifest
index 8d8e59ab8231..0edb4d42f136 100644
--- a/sci-libs/tensorflow/Manifest
+++ b/sci-libs/tensorflow/Manifest
@@ -1,9 +1,11 @@
 DIST ARM_NEON_2_x86_SSE-a15b489e1222b2087007546b4912e21293ea86ff.tar.gz 103972 
BLAKE2B 
77d843aae7d471f7bb916caa40f66ec66322c11bab18ac338360c1a1faeb51a54fb394a35bee7ad3095ba34835e51441416d0c09ecc627769d9181678494eada
 SHA512 
1d9a4192baf05be8cd36ffa55b9bf97e09ab6f714b303bd2ca7b16bbffbb661475c11b130437cafe234fce66d046d7b041f7daf9c25263c5921584412a5c1c12
 DIST FP16-4dfe081cf6bcd15db339cf2680b9281b8451eeb3.zip 91462 BLAKE2B 
dc40d6129c009fc28b40d58b81b89e96a2deeeda3ea19c680b66073f02f955cc5dfc379d7843ec8aeed9fedeae6a70594b45752014526deee5c6226ec4b952e9
 SHA512 
15ae434977209a938739691eb91150556bac75a4a5449a9b4f135424f42beabd67ede4cf12c3a5594dea5028cc4aadaf989d0b42c2bb6f741db55ebd34717e24
 DIST FXdiv-63058eff77e11aa15bf531df5dd34395ec3017c8.zip 16646 BLAKE2B 
8f6ca6feee16cb57d9b4504e7615703c2c7ea86fa8ea3f814668478cc13b8cb3cb1429200359be5521ca11f77e1c3d575bd123d3ac03586faab88a131ac2
 SHA512 
6b4830a56137e226d51ba8166fe1a31c51256f1666cc0a683abfb154fbe313d415ce15e362756865a1dd91510cf581c619604b29e8a5288c328c85da57d53308
+DIST Implib.so-5fb84c2a750434b9df1da67d67b749eb929598f1.tar.gz 27694 BLAKE2B 
6c3339a98dbf36a77290c1b58da3005cfbf358d9f7759d6fba9047a82d7d240e5c7168d1a172447770559e1cd4ad37aaae6c4e884896ecbc636740d24bf2137a
 SHA512 
694c392754f3b483176515096f98add0cb453c6c36d729ac8609c35fc3d6f01e2982b01c20bb1c5a2ed0776559aca5b8e86967d1984a16678ba047475c21f3d6
 DIST OouraFFT-v1.0.tar.gz 110531 BLAKE2B 
de0e280407e21118e2bc6ca93a7caf3c4a49d0a13eda018b1497f98851af73dda4cef56460dba310336c7ed958e34feef4784ca2575a13287dec2c1ac9a5af6d
 SHA512 
89c6e8fd57abf26351b3efb792008a1bbe62d404a4225dcae8aa666b3782a421be071bdc9760ebb0c95b5336ee5ea517d2fa43ab915045f7cf6fd76e73578079
 DIST XNNPACK-659147817805d17c7be2d60bd7bbca7e780f9c82.zip 20341886 BLAKE2B 
9aa37b3622e62e554b9021fca88f9f8d274989d4799d942c27a6d13ebb59409b130423a23f60f4e42042b8894457d8d691e17e3f2162c8e9d1f97bb1ae13
 SHA512 
13c87064ec57adb29320c4d061ce0ae6cdb42b5e7584fbb758e3703f7f0a96d47e618b7ef584bf10d5b11d3658c43c6822e3b13748b6e659a5820ef534652ebf
 DIST XNNPACK-b9d4073a6913891ce9cbd8965c8d506075d2a45a.zip 24168206 BLAKE2B 
ba6d612cb09823a655f065a76bd9b956a37664eade90aede2d30d9892f6bcfa2c6134f5332eb31247bea6b46e51f47250ae09a6810bde181c72f715550811f49
 SHA512 
29c844e758ec2f2913dc477866b016afc04679f16da5774069dabbc9373ed210d510c4b1205eb681de20669e49f34098f490340f5524139b079461589f41e7b0
+DIST XNNPACK-bbbaa7352a3ea729987d3e654d37be93e8009691.zip 26938397 BLAKE2B 
fa8b24435529958833bae368d554a6a71c04bad96a53c26b8f247c1dff2ffcccd0b5382a6b9ae07da111f3f071fc4a96ea28abf5f5a09e3f3099ab032bcc92b3
 SHA512 
b542c6850c6698f2d46cd2a7a6de4b18f14558a9720c5b169fa9898c5cff5b499005adc767962fcf2a38b4f06b5eb038e4c1fecee0eac0524dde23aafe55ee15
 DIST XNNPACK-e8f74a9763aa36559980a0c2f37f587794995622.zip 18756888 BLAKE2B 
0a1787166e8bbfda4aa6010075d92573112a21f3f9d3b1c13bc931fae6fa4cafb71685e4c57e86d7a662912bb6431c2d39a24378bf82361b50e5855d1b62f524
 SHA512 
a6802f0995742af0ca82de010cbd42da230b36cc884612d4ba2de20ba0ca56da6a11209bfb01ee1a5ddc31dc891a69438fa4836ec9d62d56e32c6aa144c6e7aa
 DIST apple_support.1.1.0.tar.gz 27105 BLAKE2B 
6982ed0188760caeb6951dd28d211449d37a3192fa75e22f5ea86b599a5a92bf8efcfe5a549146533b725aa0fd41584c4d12db3fab41ffbcbca60f657e9590f5
 SHA512 
db291209ab9a54238b244e02abbca749a695ca3b9b9dc2e207227d3ea32f13144f3236fa921df4c6ba954850635db56584582d8916bdf4c90a2adc55dc90cd3a
 DIST apple_support.1.6.0.

[gentoo-commits] repo/gentoo:master commit in: dev-build/bazel/

2024-02-03 Thread Jason Zaman
commit: d459ace304d05b94d467a6af160d75cbcb48bca6
Author: wangjiezhe  gmail  com>
AuthorDate: Sat Jan 20 11:43:40 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Feb  3 19:33:03 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d459ace3

dev-build/bazel: add 6.4.0

Signed-off-by: wangjiezhe  gmail.com>
Signed-off-by: Jason Zaman  gentoo.org>

 dev-build/bazel/Manifest   |   1 +
 dev-build/bazel/bazel-6.4.0.ebuild | 102 +
 2 files changed, 103 insertions(+)

diff --git a/dev-build/bazel/Manifest b/dev-build/bazel/Manifest
index a1316accb541..3ceee170ffa2 100644
--- a/dev-build/bazel/Manifest
+++ b/dev-build/bazel/Manifest
@@ -4,3 +4,4 @@ DIST bazel-5.0.0-dist.zip 235894565 BLAKE2B 
3798eb9111772809f0345e0c74bef38d8f9d
 DIST bazel-5.1.1-dist.zip 236073335 BLAKE2B 
dacc98db99a4877bcda743058f8d34c276d893bec14a595155587f9d0a2716caf106e1d08917f8103b9c15c45433285cce2063f15a2653d3d1a4a6b67242876f
 SHA512 
84e2f72df1838fc88a39853afc510bca835fea28590e9aac2138b5416d2f8d9aefd082c81012a2066194fdc440b00b44f9f188b5c896461acebfeb9cd40efc7c
 DIST bazel-5.3.0-dist.zip 235314819 BLAKE2B 
771a940e083d569b0297d37877e6d52c16f698bc5141e2c9c895d5d6cdd9e93203fbc941eca7daa4b40026551c25a5bf45d0862b8b13993bc40434aa6bb99dd3
 SHA512 
6c98e904596764a309e98ea2453c751dc0bf27c683462c5654b72076f8537bccf6c5103ccea60fa3a3dffeaa76b07db80a594feb96ed566282d10bb04f0e1455
 DIST bazel-6.2.0-dist.zip 196992916 BLAKE2B 
9516deae60f4193e68687909e3dff0539030d55ee220973890c41c82bb390f04327411fc2a4f0f6782279ae3c2d127498283a86ecc86c2fcdf424b3bd10bad93
 SHA512 
c2ff9cafd07553bf7e6f4ed2b561bd217f5ec6dda173269cc5a1885f5ec2fea09855cc09f63b62e653135b9babbedbf280e928bf0f3a1404b7066ba5bbecf18f
+DIST bazel-6.4.0-dist.zip 206062629 BLAKE2B 
096f942639a1f2bf8f67ce6d4d313d18ada6998400c3ba320f6afe7877d20113c3d5ee76dcc125fd6eab832d0ba8c94d83d6b15d1e659b0b96835cdb0ec8b496
 SHA512 
e16d16d3f665517d0a4d79257c451d002259838c011749e678520639ea8c5a3f2f5309fb8f2070462b8d2f1dd1f9f0c18d233919e4d92871db67ea71f3f0c88d

diff --git a/dev-build/bazel/bazel-6.4.0.ebuild 
b/dev-build/bazel/bazel-6.4.0.ebuild
new file mode 100644
index ..f756db0dbc6a
--- /dev/null
+++ b/dev-build/bazel/bazel-6.4.0.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit bash-completion-r1 bazel java-pkg-2 multiprocessing toolchain-funcs
+
+DESCRIPTION="Fast and correct automated build system"
+HOMEPAGE="https://bazel.build/";
+
+SRC_URI="https://github.com/bazelbuild/bazel/releases/download/${PV}/${P}-dist.zip";
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="examples tools"
+# strip corrupts the bazel binary
+# test fails with network-sandbox: An error occurred during the fetch of 
repository 'io_bazel_skydoc' (bug 690794)
+RESTRICT="strip test"
+RDEPEND=">=virtual/jre-11:*"
+DEPEND="
+   virtual/jdk:11
+   app-arch/unzip
+   app-arch/zip"
+
+S="${WORKDIR}"
+
+pkg_setup() {
+   if has ccache ${FEATURES}; then
+   ewarn "${PN} usually fails to compile with ccache, you have 
been warned"
+   fi
+   java-pkg-2_pkg_setup
+
+   if [[ ${MERGE_TYPE} != binary ]] && tc-is-gcc && ver_test 
$(gcc-version) -ge 13 ; then
+   eerror "Bazel 6 needs <=gcc-12 to compile."
+   eerror "Please run 'eselect gcc' and set correct gcc version."
+   die "GCC version is too new to compile Bazel!"
+   fi
+}
+
+src_unpack() {
+   # Only unpack the main distfile
+   unpack ${P}-dist.zip
+}
+
+src_prepare() {
+   default
+
+   # F: fopen_wr
+   # S: deny
+   # P: /proc/self/setgroups
+   # A: /proc/self/setgroups
+   # R: /proc/24939/setgroups
+   # C: /usr/lib/systemd/systemd
+   addpredict /proc
+}
+
+src_compile() {
+   export JAVA_HOME=$(java-config --jre-home) # so keepwork works
+   export EXTRA_BAZEL_ARGS="--jobs=$(makeopts_jobs) $(bazel_get_flags)
+   --java_runtime_version=local_jdk
+   --tool_java_runtime_version=local_jdk"
+   VERBOSE=yes ./compile.sh || die "Failed compiling bazel"
+
+   ./scripts/generate_bash_completion.sh \
+   --bazel=output/bazel \
+   --output=bazel-complete.bash \
+   --prepend=scripts/bazel-complete-header.bash \
+   --prepend=scripts/bazel-complete-template.bash || die "Failed 
to generate bash completions"
+}
+
+src_test() {
+   output/bazel test \
+   --verbose_failures \
+   --spawn_strategy=standalone \
+   --genrule_strategy=standalone \
+   --verbose_test_summary \
+   examples/cp

[gentoo-commits] repo/gentoo:master commit in: sci-visualization/tensorboard/

2024-02-03 Thread Jason Zaman
commit: f82ba8a3ae5c7cfd018ca00e2c71f98c8ad3c5ff
Author: wangjiezhe  gmail  com>
AuthorDate: Sat Jan 20 11:22:10 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Feb  3 19:32:59 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f82ba8a3

sci-visualization/tensorboard: add 2.15.1

Signed-off-by: wangjiezhe  gmail.com>
Signed-off-by: Jason Zaman  gentoo.org>

 sci-visualization/tensorboard/Manifest |  1 +
 .../tensorboard/tensorboard-2.15.1.ebuild  | 71 ++
 2 files changed, 72 insertions(+)

diff --git a/sci-visualization/tensorboard/Manifest 
b/sci-visualization/tensorboard/Manifest
index dd1c5fee7f69..c2e8344f9623 100644
--- a/sci-visualization/tensorboard/Manifest
+++ b/sci-visualization/tensorboard/Manifest
@@ -3,3 +3,4 @@ DIST tensorboard-2.11.0-py3-none-any.whl.zip 5990351 BLAKE2B 
d6796fceb047abc69c8
 DIST tensorboard-2.12.0-py3-none-any.whl.zip 5638388 BLAKE2B 
617c76fa49b2aa647d7f099d8dbc7d53449e3024981f2f5858c1eff44b6a3c9369169579436562373fd2f44222e506b54d10083292352b70c400f16dcfaf1dec
 SHA512 
d7eaeeb68adf1ad121bffd15f5147564af78ee74b7f2f251f6111bc94973b4ee7c952de51eab4608126a230b4709af5c67944608f4c5c73918af82945abc63e3
 DIST tensorboard-2.13.0-py3-none-any.whl.zip 5569681 BLAKE2B 
f7c671e9a59ab50c9bf150d52826a70091908876ebd65ee39e347eef15f63d1c1e3dadd6c2748917bdd640a09e1816238b755de92c2eb82ca296a67a28be0387
 SHA512 
6d934632855431056a4b255be52312a9cb6592ca4fde97a2a563634dbbc7ff2809cac6adbffbd6ea5eb03f22cdf682593b704704ed9af208cea9a36030cd9ff1
 DIST tensorboard-2.14.1-py3-none-any.whl.zip 5508920 BLAKE2B 
b1f7afccc29ea7f1694127a02ef571bfd984be17c9a4f4e30be0fece64c94e8f3e6c4f4dfc49cb0544694a806ab09d83d56b0064aae0a226721ca47d20e7bf6a
 SHA512 
6d4f61452a99b88aef2e640a9be9324eb7c287121faff267b9fb8b114381f03c90cbcd46d38f2fd0aa54d6c7c5ed9f8123bd76675454564169ab0ccd67abaa6e
+DIST tensorboard-2.15.1-py3-none-any.whl.zip 5539710 BLAKE2B 
39791d7c7a857df8836d5113c4514bd9d8fd568df6e67f2f3c43f1faa125ba445c1aaa137b38de2cfcccb4ebbda9e7d0ffc2f41e61770d44f7e93683acb3ab13
 SHA512 
cd73752fa375075ed9ec3240853401f87df16aaae784c7ccf820d8a5a3ff1bf1f2a1424fa62a417ea0a8ed2463ac1be7de5228bc161f9f3f9e52b56b02354323

diff --git a/sci-visualization/tensorboard/tensorboard-2.15.1.ebuild 
b/sci-visualization/tensorboard/tensorboard-2.15.1.ebuild
new file mode 100644
index ..c1090cd5fc97
--- /dev/null
+++ b/sci-visualization/tensorboard/tensorboard-2.15.1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..11} )
+inherit python-r1 pypi
+
+DESCRIPTION="TensorFlow's Visualization Toolkit"
+HOMEPAGE="https://www.tensorflow.org/";
+SRC_URI="$(pypi_wheel_url --unpack)"
+S=${WORKDIR}
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+RDEPEND="
+   ${PYTHON_DEPS}
+   dev-python/bleach[${PYTHON_USEDEP}]
+   >=dev-python/google-auth-1.6.3[${PYTHON_USEDEP}]
+   >=dev-python/google-auth-oauthlib-0.4.1[${PYTHON_USEDEP}]
+   dev-python/grpcio[${PYTHON_USEDEP}]
+   dev-python/html5lib[${PYTHON_USEDEP}]
+   dev-python/markdown[${PYTHON_USEDEP}]
+   dev-python/numpy[${PYTHON_USEDEP}]
+   dev-python/protobuf-python[${PYTHON_USEDEP}]
+   dev-python/six[${PYTHON_USEDEP}]
+   >=dev-python/setuptools-41[${PYTHON_USEDEP}]
+   dev-python/werkzeug[${PYTHON_USEDEP}]
+   dev-python/wheel[${PYTHON_USEDEP}]
+   >=dev-python/scipy-1.4.1[${PYTHON_USEDEP}]
+"
+BDEPEND="
+   app-arch/unzip
+   ${PYTHON_DEPS}
+"
+PDEPEND="
+   =sci-libs/tensorflow-2.15*[python,${PYTHON_USEDEP}]
+"
+
+src_prepare() {
+   eapply_user
+
+   sed -i -e '/_vendor.__init__/d' -e '/_vendor.bleach/d' -e 
'/_vendor.html5lib/d' -e '/_vendor.webencodings/d' \
+   "${S}/${P}.dist-info/RECORD" || die "failed to unvendor"
+   grep -q "_vendor" "${S}/${P}.dist-info/RECORD" && die "More vendored 
deps found"
+
+   find "${S}/${PN}" -name '*.py' -exec sed -i \
+   -e 's/^from tensorboard\._vendor import /import /' \
+   -e 's/^from tensorboard\._vendor\./from /' \
+   {} + || die "failed to unvendor"
+
+   rm -rf "${S}/${PN}/_vendor" || die
+
+   sed -i -e '/tensorboard-plugin-/d' "${S}/${P}.dist-info/METADATA" || 
die "failed to remove plugin deps"
+   sed -i -e '/tensorboard-data-server/d' "${S}/${P}.dist-info/METADATA" 
|| die "failed to remove data-server deps"
+   sed -i -e 's/google-auth-oauthlib.*$/google-auth-oauthlib/' 
&q

[gentoo-commits] repo/gentoo:master commit in: dev-python/flatbuffers/

2024-02-03 Thread Jason Zaman
commit: ad0e39b851547de4d1bd14e6694b8a7660379144
Author: wangjiezhe  gmail  com>
AuthorDate: Fri Jan 19 10:21:19 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Feb  3 19:32:44 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad0e39b8

Revert "dev-python/flatbuffers: Remove old"

This reverts commit 2bc4030874064a68c9fd9646ed2cee14e6e51b01.

Also update PYTHON_COMPAT

Co-authored-by: Andrew Ammerlaan  gentoo.org>
Signed-off-by: Jiezhe Wang  gmail.com>
Signed-off-by: Jason Zaman  gentoo.org>

 dev-python/flatbuffers/Manifest   |  1 +
 dev-python/flatbuffers/flatbuffers-23.1.21.ebuild | 39 +++
 2 files changed, 40 insertions(+)

diff --git a/dev-python/flatbuffers/Manifest b/dev-python/flatbuffers/Manifest
index ff76ed194531..16918eaf4e7a 100644
--- a/dev-python/flatbuffers/Manifest
+++ b/dev-python/flatbuffers/Manifest
@@ -1 +1,2 @@
+DIST flatbuffers-23.1.21.gh.tar.gz 2181861 BLAKE2B 
6368358c21e677feb466245a746b86cebb6d6a4058bb6d593de81bf3c32ddfb9fd475e4bb225d4529ea106253456a5ed1ee6d024b1e2521e02efef171750f428
 SHA512 
fa62188f773ad044644a58caf1e25bef417dfdea47c9da8a2ea7f997154b4f3976019e32e73cc533696a3d4e45ec4a8402b6df140878dfa2ff078740d61b4b0f
 DIST flatbuffers-23.5.26.gh.tar.gz 2257271 BLAKE2B 
147425e7c018072f4ae4cdb3e034a4f434362d88d5e27b09375965993c279acfbed36064014c8f4fbe3fb81175ac0aa9b07629675e2c7ad33d59a9c85f2c3bb8
 SHA512 
cd0a5efad8016e1217d01a181d6b02e546f5693c6412361bfeaee820d5dfe5e2a424cee1963270e851c1a4f936ae8a0032a51c5bb16ee19313e0ecc77dc4ba31

diff --git a/dev-python/flatbuffers/flatbuffers-23.1.21.ebuild 
b/dev-python/flatbuffers/flatbuffers-23.1.21.ebuild
new file mode 100644
index ..f6733524881c
--- /dev/null
+++ b/dev-python/flatbuffers/flatbuffers-23.1.21.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="RFC 7049 - Concise Binary Object Representation"
+HOMEPAGE="
+   https://github.com/google/flatbuffers/
+   https://pypi.org/project/flatbuffers/
+"
+SRC_URI="
+   https://github.com/google/${PN}/archive/v${PV}.tar.gz
+   -> ${P}.gh.tar.gz
+"
+S=${WORKDIR}/${P}/python
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 arm arm64 ~riscv x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+   test? (
+   dev-python/numpy[${PYTHON_USEDEP}]
+   )
+"
+
+python_test() {
+   cd "${WORKDIR}/${P}/tests" || die
+   # zeroes means without benchmarks
+   "${EPYTHON}" py_test.py 0 0 0 false || die "Tests failed with 
${EPYTHON}"
+   "${EPYTHON}" py_flexbuffers_test.py -v || die "Tests failed with 
${EPYTHON}"
+}



[gentoo-commits] repo/gentoo:master commit in: sci-libs/tensorflow-estimator/

2024-02-03 Thread Jason Zaman
commit: ab8ddac6f64feafa96647cf160cecd5bfd75cbee
Author: wangjiezhe  gmail  com>
AuthorDate: Sat Jan 20 06:47:09 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Feb  3 19:32:57 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab8ddac6

sci-libs/tensorflow-estimator: add 2.14.0

Signed-off-by: wangjiezhe  gmail.com>
Signed-off-by: Jason Zaman  gentoo.org>

 sci-libs/tensorflow-estimator/Manifest |  2 +
 .../tensorflow-estimator-2.14.0.ebuild | 75 ++
 2 files changed, 77 insertions(+)

diff --git a/sci-libs/tensorflow-estimator/Manifest 
b/sci-libs/tensorflow-estimator/Manifest
index 19331123a3e2..659bd20d7373 100644
--- a/sci-libs/tensorflow-estimator/Manifest
+++ b/sci-libs/tensorflow-estimator/Manifest
@@ -1,5 +1,7 @@
+DIST bazelbuild-rules_cc-0.0.2.tar.gz 127138 BLAKE2B 
2a4cb12096bd8e6efebb13861b259ea12266372d37ef0d6c6005c4b9a6f919c26e1caa2ac78578aefd80a4f5bf08c1a14e15df5218f5d6b949beacba116b7b33
 SHA512 
688b5e6ea0e4cc8e5e11fc7aaac70f88c54d2d70221df0772eea1f0ff3ec16e2e92305f76da09c3c497f29e9132870ceaec7ecad034cca678ff4303899b67c14
 DIST bazelbuild-rules_cc-b1c40e1de81913a3c40e5948f78719c28152486d.zip 201360 
BLAKE2B 
0173a8edb17f344b18e42026e2f8a62a1909d4694ab0be83562b6437a3f1ef38889f069269ddd2308b41062e5f375f791be0d2631a8e52ede668203779813b56
 SHA512 
2ba1dc316d88947c1d17ec67154c052700e3571b8d03370a9f204cf9fe94a1bd58f93a2c4a3c0b02233ee3250053a4c30a4133b5b38745858c1d04be8c9d973f
 DIST bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip 9422 
BLAKE2B 
bbc45c97551ee8126335b611ffca6574dac843d4db9b3221b10d26487f8eecfe38ba0cd67a4039a3ad921c25fea6294c43e4f4e7a57a060a30791acd6c4f9d39
 SHA512 
ba06242feb711e7fb6e821fd9ac029248b4f3e466fb1acf971d0db8196f3efe4d114ef137acbe4913073f8cbe8ccab4d47d8bafa21b867b2d6a6d57f5a647f0c
 DIST tensorflow-estimator-2.11.0-rc0.tar.gz 655514 BLAKE2B 
cc73f282a32f657bf507d948210aa981f0867c4898574c61fb5654204fa573ac7bdef16635d202ed3d202ccc9c8915f5613e4149ce6839d59281a38cfd6953f7
 SHA512 
c473a6db62a0a55f25f8fd5fd7ffb2f2a473261c5a7b3217bd1d8a21a02ab4871793ea57917c6eb9dc9012bd030faf8030702caf3f764983ce526d201866204f
 DIST tensorflow-estimator-2.12.0.tar.gz 656763 BLAKE2B 
a67c81487b7765f3195f7567b66455a4be390bff8d6dec751d054a26b654b1aac96982f6fa55d0488a8e6414e7d4b58d1ae59680a1c694615f82718c77478872
 SHA512 
d86bfde67c97988beeb5abc8042c1847c6d0081d54e21e35424d463895e95a5d0adc74d7d2bb006a617748da3b9a8bbb8979d6a842f024ab3a4d08a2e806147b
 DIST tensorflow-estimator-2.13.0.tar.gz 656953 BLAKE2B 
2aeae25089990914018cd713aba1289195595e67b85cc5d66b1a348b9d65c29854768118989aa0d5540eb5d70bb32ac1699584f0191460f5f23f6f8b3f9d7204
 SHA512 
c445a43d497c575fb6e2f7a26d5346b2db8712540f807e0bc64759db056468ada909371b29b828470c7763156570c25917157dbe0d61e9f148c3027c29ebd181
+DIST tensorflow-estimator-2.14.0.tar.gz 656933 BLAKE2B 
4506b4149824f505b7f42c5c6a73daaa1d5b46201141e11e0775baa7524e0a7886cee5079bdb97af6a880d2f6dbfa276b9e484d06406f84f254b2541b2f80c5b
 SHA512 
a2ac534acba806177400c18968a3d5384a30e4fd431eb3b9f4e1542220b1e382e9272be9909f14d6984d50591b155be5eef7051620a9133ffd199bd1e6fe4582

diff --git a/sci-libs/tensorflow-estimator/tensorflow-estimator-2.14.0.ebuild 
b/sci-libs/tensorflow-estimator/tensorflow-estimator-2.14.0.ebuild
new file mode 100644
index ..7ce12833b815
--- /dev/null
+++ b/sci-libs/tensorflow-estimator/tensorflow-estimator-2.14.0.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..11} )
+MY_PN="estimator"
+MY_PV=${PV/_rc/-rc}
+MY_P=${MY_PN}-${MY_PV}
+
+inherit bazel distutils-r1
+
+DESCRIPTION="A high-level TensorFlow API that greatly simplifies machine 
learning programming"
+HOMEPAGE="https://www.tensorflow.org/";
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+bazel_external_uris="
+   
https://github.com/bazelbuild/rules_cc/releases/download/0.0.2/rules_cc-0.0.2.tar.gz
 -> bazelbuild-rules_cc-0.0.2.tar.gz
+   
https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip
 -> bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip"
+
+SRC_URI="https://github.com/tensorflow/${MY_PN}/archive/v${MY_PV}.tar.gz -> 
${P}.tar.gz
+   ${bazel_external_uris}"
+
+RDEPEND="
+   =sci-libs/tensorflow-2.14*[python,${PYTHON_USEDEP}]
+   sci-libs/keras[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}"
+BDEPEND="
+   app-arch/unzip
+   >=dev-build/bazel-5.3.0
+   dev-java/java-config
+"
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS=( CONTRIBUTING.md README.md )
+
+src_unpack() {
+   unpack "${P}.tar.gz"
+   bazel_load_distfiles "${bazel_external_uris}"
+}
+
+src_prepare() {
+   bazel_setup_bazelrc
+  

[gentoo-commits] repo/gentoo:master commit in: dev-python/ml_dtypes/

2024-02-03 Thread Jason Zaman
commit: adba82d914ab1d30ef1df45cf88c394454527c06
Author: wangjiezhe  gmail  com>
AuthorDate: Sat Jan 20 11:20:48 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Feb  3 19:32:58 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=adba82d9

dev-python/ml_dtypes: add 0.3.2

Signed-off-by: wangjiezhe  gmail.com>
Signed-off-by: Jason Zaman  gentoo.org>

 dev-python/ml_dtypes/Manifest   |  1 +
 dev-python/ml_dtypes/ml_dtypes-0.3.2.ebuild | 35 +
 2 files changed, 36 insertions(+)

diff --git a/dev-python/ml_dtypes/Manifest b/dev-python/ml_dtypes/Manifest
index 270337efceaf..bc543760e578 100644
--- a/dev-python/ml_dtypes/Manifest
+++ b/dev-python/ml_dtypes/Manifest
@@ -1,2 +1,3 @@
 DIST eigen-7bf2968fed5f246c0589e004cb420fcd7c71.tar.bz2 2239233 BLAKE2B 
3a7e81c302cb11ae1d6ef9433a9ec41506c1f37d04cfb8744ac3fcf7dbe9430c1b48d7197ca3b8e1f9354398bac3d0dbc3e0599c0b649acd6175e906befe2973
 SHA512 
29ee89770726e6e0f5135b7fab24649f3e69223caed90d2daa6f0014783e69fe98f0551de49bd4e393d7b7938f2943caf1ed00f3933fa771ac14fae3c63fd5dd
 DIST ml_dtypes-0.2.0.gh.tar.gz 66155 BLAKE2B 
fc3bcdc8af99a232611b2b9da3ff640852f236dd6b13b8e3fbb9e47934e8a30f3d4d009b845ec1da6f96a4b2fe04e269cef29a5f44061ed9cd38ba24a7d7ce2e
 SHA512 
5903534832f75c13c4fbd5522ff5d93a2d1bf0cbc0226c72f26c4b8137df74fd6603230e5f6de7a58d68f38ff70d97f9e1f3a256b1b64ef611b3f522cb492682
+DIST ml_dtypes-0.3.2.gh.tar.gz 71606 BLAKE2B 
cbf5414d09160a2e4e878261c5842efd664a424064aae727d9d1188304a5e888ca955b3bf199956c2beed53c78c0f8afeb8860245d57553b10ca7262ba1e8bce
 SHA512 
d42f6734edc5c159f15b9c020deb2595f32bbcdf53ecfaea840afb38314a855d09315693129393f755fdc3295b5965073b404822aacf1a149c7f9bab89c48fd5

diff --git a/dev-python/ml_dtypes/ml_dtypes-0.3.2.ebuild 
b/dev-python/ml_dtypes/ml_dtypes-0.3.2.ebuild
new file mode 100644
index ..b6db456a8c20
--- /dev/null
+++ b/dev-python/ml_dtypes/ml_dtypes-0.3.2.ebuild
@@ -0,0 +1,35 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+inherit distutils-r1
+
+EIGEN_CommitId="7bf2968fed5f246c0589e004cb420fcd7c71"
+
+DESCRIPTION="A stand-alone implementation of several NumPy dtype extensions"
+HOMEPAGE="https://github.com/jax-ml/ml_dtypes";
+SRC_URI="
+   https://github.com/jax-ml/${PN}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.gh.tar.gz
+   
https://gitlab.com/libeigen/eigen/-/archive/${EIGEN_CommitId}/eigen-${EIGEN_CommitId}.tar.bz2
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="
+   dev-python/numpy[${PYTHON_USEDEP}]
+"
+BDEPEND="
+   dev-python/pybind11[${PYTHON_USEDEP}]
+"
+
+python_prepare_all() {
+   rmdir third_party/eigen || die
+   cp -r "${WORKDIR}/eigen-${EIGEN_CommitId}" third_party/eigen || die
+   distutils-r1_python_prepare_all
+}



[gentoo-commits] repo/gentoo:master commit in: sci-libs/tensorflow/files/, sci-libs/tensorflow/

2024-02-03 Thread Jason Zaman
commit: 9d1694eac17c1be7f0115747818ec13bc3c88de2
Author: wangjiezhe  gmail  com>
AuthorDate: Fri Jan 19 13:03:12 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Feb  3 19:32:49 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d1694ea

sci-libs/tensorflow: add 2.13.1

Signed-off-by: wangjiezhe  gmail.com>
Signed-off-by: Jason Zaman  gentoo.org>

 sci-libs/tensorflow/Manifest   |  18 +
 ...dd-rules-docker-http_archive-bazel-toolch.patch |  38 ++
 ...emlib-Latest-absl-LTS-has-split-cord-libs.patch |  32 ++
 ...Must-link-against-libm-for-round-and-log2.patch |  29 ++
 ...ensorflow_cc-Add-systemlib-nsync-linkopts.patch |  35 ++
 ...systemlib-Updates-for-Abseil-20220623-LTS.patch |  71 
 ...0006-systemlib-Update-targets-for-absl_py.patch |  27 ++
 ...emlibs-Add-well_known_types_py_pb2-target.patch |  28 ++
 ...-0008-Relax-setup.py-version-requirements.patch |  55 +++
 ...flow-2.13.0-0009-fix-sparse-transpose-op2.patch |  30 ++
 ...0-0010-systemlibs-update-targets-for-absl.patch | 352 
 ...mlibs-update-targets-for-google_cloud_cpp.patch |  25 ++
 ...w-2.13.0-0012-bump-cudnn-frontend-to-v0.9.patch |  29 ++
 sci-libs/tensorflow/tensorflow-2.13.1.ebuild   | 453 +
 14 files changed, 1222 insertions(+)

diff --git a/sci-libs/tensorflow/Manifest b/sci-libs/tensorflow/Manifest
index 40b0ce6a48ca..6e541231fe2d 100644
--- a/sci-libs/tensorflow/Manifest
+++ b/sci-libs/tensorflow/Manifest
@@ -3,6 +3,7 @@ DIST FP16-4dfe081cf6bcd15db339cf2680b9281b8451eeb3.zip 91462 
BLAKE2B dc40d6129c0
 DIST FXdiv-63058eff77e11aa15bf531df5dd34395ec3017c8.zip 16646 BLAKE2B 
8f6ca6feee16cb57d9b4504e7615703c2c7ea86fa8ea3f814668478cc13b8cb3cb1429200359be5521ca11f77e1c3d575bd123d3ac03586faab88a131ac2
 SHA512 
6b4830a56137e226d51ba8166fe1a31c51256f1666cc0a683abfb154fbe313d415ce15e362756865a1dd91510cf581c619604b29e8a5288c328c85da57d53308
 DIST OouraFFT-v1.0.tar.gz 110531 BLAKE2B 
de0e280407e21118e2bc6ca93a7caf3c4a49d0a13eda018b1497f98851af73dda4cef56460dba310336c7ed958e34feef4784ca2575a13287dec2c1ac9a5af6d
 SHA512 
89c6e8fd57abf26351b3efb792008a1bbe62d404a4225dcae8aa666b3782a421be071bdc9760ebb0c95b5336ee5ea517d2fa43ab915045f7cf6fd76e73578079
 DIST XNNPACK-659147817805d17c7be2d60bd7bbca7e780f9c82.zip 20341886 BLAKE2B 
9aa37b3622e62e554b9021fca88f9f8d274989d4799d942c27a6d13ebb59409b130423a23f60f4e42042b8894457d8d691e17e3f2162c8e9d1f97bb1ae13
 SHA512 
13c87064ec57adb29320c4d061ce0ae6cdb42b5e7584fbb758e3703f7f0a96d47e618b7ef584bf10d5b11d3658c43c6822e3b13748b6e659a5820ef534652ebf
+DIST XNNPACK-b9d4073a6913891ce9cbd8965c8d506075d2a45a.zip 24168206 BLAKE2B 
ba6d612cb09823a655f065a76bd9b956a37664eade90aede2d30d9892f6bcfa2c6134f5332eb31247bea6b46e51f47250ae09a6810bde181c72f715550811f49
 SHA512 
29c844e758ec2f2913dc477866b016afc04679f16da5774069dabbc9373ed210d510c4b1205eb681de20669e49f34098f490340f5524139b079461589f41e7b0
 DIST XNNPACK-e8f74a9763aa36559980a0c2f37f587794995622.zip 18756888 BLAKE2B 
0a1787166e8bbfda4aa6010075d92573112a21f3f9d3b1c13bc931fae6fa4cafb71685e4c57e86d7a662912bb6431c2d39a24378bf82361b50e5855d1b62f524
 SHA512 
a6802f0995742af0ca82de010cbd42da230b36cc884612d4ba2de20ba0ca56da6a11209bfb01ee1a5ddc31dc891a69438fa4836ec9d62d56e32c6aa144c6e7aa
 DIST apple_support.1.1.0.tar.gz 27105 BLAKE2B 
6982ed0188760caeb6951dd28d211449d37a3192fa75e22f5ea86b599a5a92bf8efcfe5a549146533b725aa0fd41584c4d12db3fab41ffbcbca60f657e9590f5
 SHA512 
db291209ab9a54238b244e02abbca749a695ca3b9b9dc2e207227d3ea32f13144f3236fa921df4c6ba954850635db56584582d8916bdf4c90a2adc55dc90cd3a
 DIST bazel-skylib-1.3.0.tar.gz 36103 BLAKE2B 
a58142b9d2a5da9f137705105aa735c8489519989ca7e633968114309f23074a56cd03b5fed70e284da63751d666904c2573940ad9a0feb2be689d695f0f07ae
 SHA512 
ab3a0b465ebbfe07c139b92f1e8b2c0bcede66d6366d184891e3c0ccd6619164bc299777e7d7236cb463834b98426f6fb6890409e0ce94b75446dbd85854944f
@@ -13,6 +14,8 @@ DIST bazelbuild-rules_android-v0.1.1.zip 14654 BLAKE2B 
1cfd5af08c6eab9602883f62d
 DIST bazelbuild-rules_cc-081771d4a0e9d7d3aa0eed2ef389fa4700dfb23e.tar.gz 
130803 BLAKE2B 
406331205e8e35fc9f7f727f6f7f9697c658af800e4b90373440c433ec5cfedfe0a3986ce5b1499a2db5b7aa4dc62efac364e73639b98864d2f63076e5b209e3
 SHA512 
2dc8f50c405cadf10d797117b51868fa22798c4ff7cc1c4f7d4c39fa0d2e5ffbfe8269df42f90c92e0870bb8e8a9c204d3dea237a7ded03f6275657060ee9774
 DIST bazelbuild-rules_closure-308b05b2419edb5c8ee0471b67a40403df940149.tar.gz 
464906 BLAKE2B 
033d76b8081f4f987e64875ad5c8e7b8f894ec6be58c52ee02c4d31d4480fee02f3f432ea9c4630ad3f5d1163f820aff37f6493da797ec51b148b361ab3c8b25
 SHA512 
2cd841f4530503ed31fa6425cb749ef29f8a1071b5d55594644303233e58455783cb02402bc23d7104ef036745733087d43075a1fcdab2ac96cd1a9872a6ea4a
 DIST bazelbuild-rules_docker-v0.10.0.tar.gz 549649 BLAKE2B 
e7a537b21138a5c5d9ce360e46238f57c917d2dbf5dd17887607402227cbe7c5d68aead9db0ecdb74c09eed9dac26eb86e004a9020c251152d15beb48be0

[gentoo-commits] repo/gentoo:master commit in: sci-libs/keras/files/, sci-libs/keras/

2024-02-03 Thread Jason Zaman
commit: 4016745dba5525a8b83d7f5d65cfd62b68b5e1b4
Author: wangjiezhe  gmail  com>
AuthorDate: Sat Jan 20 06:45:02 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Feb  3 19:32:56 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4016745d

sci-libs/keras: add 2.14.0

Signed-off-by: wangjiezhe  gmail.com>
Signed-off-by: Jason Zaman  gentoo.org>

 sci-libs/keras/Manifest|   2 +
 ...ras-2.14.0-0001-bazel-Use-system-protobuf.patch | 330 +
 sci-libs/keras/keras-2.14.0.ebuild |  84 ++
 3 files changed, 416 insertions(+)

diff --git a/sci-libs/keras/Manifest b/sci-libs/keras/Manifest
index bf70e32a6475..0032aa4f3fac 100644
--- a/sci-libs/keras/Manifest
+++ b/sci-libs/keras/Manifest
@@ -1,6 +1,8 @@
+DIST bazelbuild-rules_cc-0.0.2.tar.gz 127138 BLAKE2B 
2a4cb12096bd8e6efebb13861b259ea12266372d37ef0d6c6005c4b9a6f919c26e1caa2ac78578aefd80a4f5bf08c1a14e15df5218f5d6b949beacba116b7b33
 SHA512 
688b5e6ea0e4cc8e5e11fc7aaac70f88c54d2d70221df0772eea1f0ff3ec16e2e92305f76da09c3c497f29e9132870ceaec7ecad034cca678ff4303899b67c14
 DIST bazelbuild-rules_cc-b1c40e1de81913a3c40e5948f78719c28152486d.zip 201360 
BLAKE2B 
0173a8edb17f344b18e42026e2f8a62a1909d4694ab0be83562b6437a3f1ef38889f069269ddd2308b41062e5f375f791be0d2631a8e52ede668203779813b56
 SHA512 
2ba1dc316d88947c1d17ec67154c052700e3571b8d03370a9f204cf9fe94a1bd58f93a2c4a3c0b02233ee3250053a4c30a4133b5b38745858c1d04be8c9d973f
 DIST bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip 9422 
BLAKE2B 
bbc45c97551ee8126335b611ffca6574dac843d4db9b3221b10d26487f8eecfe38ba0cd67a4039a3ad921c25fea6294c43e4f4e7a57a060a30791acd6c4f9d39
 SHA512 
ba06242feb711e7fb6e821fd9ac029248b4f3e466fb1acf971d0db8196f3efe4d114ef137acbe4913073f8cbe8ccab4d47d8bafa21b867b2d6a6d57f5a647f0c
 DIST keras-2.10.0.tar.gz 2250425 BLAKE2B 
eb05537739cdc81e279b5c400e2e2b77d46f4085e8530fef565bde12414ddccedb44c0b13265106a3353e67c367106e1d341412dc25b32e2221f144a31d76079
 SHA512 
8682110495a045c2ebc61f31a98d646b88fd9608d5169be78701cf528457ff0d2e39669d885854c14c1e6bebb380b14968957f2a8a34a8a023f8860efc7aeecd
 DIST keras-2.11.0.tar.gz 2260857 BLAKE2B 
9c85e0f64176848886509fbf269b85732f8ad98e7be3ec186e71870e453454b9b81516ef2ca4e67fb8906bc0ca1241d61ae94db6b58c7483527d33519f7c38fb
 SHA512 
17c773e1f9c592676d56a8b3eed707d52240800b33e85db80f206e8459c8c18485f0bcb6d5775ce1ef0625dc5ebe699574b8599dd98dbb73620da4301968
 DIST keras-2.12.0.tar.gz 2319287 BLAKE2B 
332b2b02eecac2da7c87c1f051c56d495027630e2e0254d543897e462f7f44a282bff6cf3cbe2602663cae2e2c76ab45c9b3b53cadbc3317b3e2dd366bdf7ace
 SHA512 
10d034abc9b159a0945610dcfb2fc58d8143267629b8f59496b4e5f097b1220bdb02a269f135f05b8abed56c2d5237b3e0c2b74882cd3f321850fc7f47694dbb
 DIST keras-2.13.1.tar.gz 2373567 BLAKE2B 
8b8b0c51fa9c0f53baa2306d0ee4361aaeaed272d887e0fb2f4289696a74e2cb45239fb378db70d954346b30124255a16002555002813656607721b3f393d0c2
 SHA512 
0f0c93f31d555e27e3f4268af7749b4c494a1f698bc763cebc4efe55e8011dbf637b978ca976ed61c46e8b11b8267b1a277d5048c3d3bcbe47005ee8960a1fc3
+DIST keras-2.14.0.tar.gz 2385374 BLAKE2B 
adca6634e06130d6f238d58e1d94ddd435b30da9b9cc8dd46f40d3ceec98cc6a82c37c3454c438f79b22da1aee223fcae99cf73fe1348383669c5176ee9ef225
 SHA512 
aeb89c8186410d0a5b36b3293d5e36111755716adde1b89fc33a3cc35f8dbdd297a8f8c7f54c9ca21835bc430ba0886a1eee13febe0dbcc510bfab602a6ddc81

diff --git 
a/sci-libs/keras/files/keras-2.14.0-0001-bazel-Use-system-protobuf.patch 
b/sci-libs/keras/files/keras-2.14.0-0001-bazel-Use-system-protobuf.patch
new file mode 100644
index ..526742490f90
--- /dev/null
+++ b/sci-libs/keras/files/keras-2.14.0-0001-bazel-Use-system-protobuf.patch
@@ -0,0 +1,330 @@
+From a064130a9cb6a2544c96552d43b3ff1b4bab0de4 Mon Sep 17 00:00:00 2001
+From: wangjiezhe 
+Date: Fri, 24 Nov 2023 00:35:16 +0800
+Subject: [PATCH] bazel: Use system protobuf
+
+---
+ WORKSPACE|  52 --
+ keras/protobuf/BUILD |   2 +-
+ third_party/BUILD|   8 +-
+ third_party/protobuf.bzl | 216 +++
+ 4 files changed, 224 insertions(+), 54 deletions(-)
+ create mode 100644 third_party/protobuf.bzl
+
+diff --git a/WORKSPACE b/WORKSPACE
+index c0ebc4e52..61282aead 100644
+--- a/WORKSPACE
 b/WORKSPACE
+@@ -1,53 +1 @@
+ workspace(name = "org_keras")
+-
+-load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
+-
+-# Needed by protobuf
+-load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
+-http_archive(
+-name = "bazel_skylib",
+-urls = [
+-
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz";,
+-
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz";,
+-],
+-sha256 = 
"74d544d96f4a5bb630d465ca8bbcfe231e359

[gentoo-commits] repo/gentoo:master commit in: sci-visualization/tensorboard/

2024-02-03 Thread Jason Zaman
commit: beef914babe36ac00193e9a0263a584a4bf467db
Author: wangjiezhe  gmail  com>
AuthorDate: Fri Jan 19 12:59:34 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Feb  3 19:32:48 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=beef914b

sci-visualization/tensorboard: add 2.13.0

Signed-off-by: wangjiezhe  gmail.com>
Signed-off-by: Jason Zaman  gentoo.org>

 sci-visualization/tensorboard/Manifest |  1 +
 .../tensorboard/tensorboard-2.13.0.ebuild  | 72 ++
 2 files changed, 73 insertions(+)

diff --git a/sci-visualization/tensorboard/Manifest 
b/sci-visualization/tensorboard/Manifest
index 520d06a75624..e775562064f5 100644
--- a/sci-visualization/tensorboard/Manifest
+++ b/sci-visualization/tensorboard/Manifest
@@ -1,3 +1,4 @@
 DIST tensorboard-2.10.0.zip 5873469 BLAKE2B 
b03a804682275abd83482e6dc8e62bef4301d796ef5bd2b02bed8d15ab16ff4bd19f1b9e3488e12ea6c03e1b7a85fd69a6a226f0a5378da2067c661b7f1f2f7e
 SHA512 
04da20089d7e24e2c519da24bb8ad32f622386799e28403e036d40c29bc99011cc374480176776b0801df0e37eb2b0e93a987d2a97cd7406eabb75bfd649a311
 DIST tensorboard-2.11.0-py3-none-any.whl.zip 5990351 BLAKE2B 
d6796fceb047abc69c84c8f30ce6b5e0739a376e110fb7e2bb78ee5b6c7dd8d1344546950d46dbdc3a47780f4ad685be186087286225dbeb9ebce558f0837d8c
 SHA512 
f1b908e13a56a86f6618ae8bf596339243642d0f00793d326ac884fd8e736bb316331728b474022936570fb6202b323d8ba2bf4908619aa1f79411b904edf209
 DIST tensorboard-2.12.0-py3-none-any.whl.zip 5638388 BLAKE2B 
617c76fa49b2aa647d7f099d8dbc7d53449e3024981f2f5858c1eff44b6a3c9369169579436562373fd2f44222e506b54d10083292352b70c400f16dcfaf1dec
 SHA512 
d7eaeeb68adf1ad121bffd15f5147564af78ee74b7f2f251f6111bc94973b4ee7c952de51eab4608126a230b4709af5c67944608f4c5c73918af82945abc63e3
+DIST tensorboard-2.13.0-py3-none-any.whl.zip 5569681 BLAKE2B 
f7c671e9a59ab50c9bf150d52826a70091908876ebd65ee39e347eef15f63d1c1e3dadd6c2748917bdd640a09e1816238b755de92c2eb82ca296a67a28be0387
 SHA512 
6d934632855431056a4b255be52312a9cb6592ca4fde97a2a563634dbbc7ff2809cac6adbffbd6ea5eb03f22cdf682593b704704ed9af208cea9a36030cd9ff1

diff --git a/sci-visualization/tensorboard/tensorboard-2.13.0.ebuild 
b/sci-visualization/tensorboard/tensorboard-2.13.0.ebuild
new file mode 100644
index ..1983d32cdb5b
--- /dev/null
+++ b/sci-visualization/tensorboard/tensorboard-2.13.0.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..11} )
+inherit python-r1 pypi
+
+DESCRIPTION="TensorFlow's Visualization Toolkit"
+HOMEPAGE="https://www.tensorflow.org/";
+SRC_URI="$(pypi_wheel_url --unpack)"
+S=${WORKDIR}
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+RDEPEND="
+   ${PYTHON_DEPS}
+   dev-python/bleach[${PYTHON_USEDEP}]
+   >=dev-python/google-auth-1.6.3[${PYTHON_USEDEP}]
+   >=dev-python/google-auth-oauthlib-0.4.1[${PYTHON_USEDEP}]
+   dev-python/grpcio[${PYTHON_USEDEP}]
+   dev-python/html5lib[${PYTHON_USEDEP}]
+   dev-python/markdown[${PYTHON_USEDEP}]
+   dev-python/numpy[${PYTHON_USEDEP}]
+   dev-python/protobuf-python[${PYTHON_USEDEP}]
+   dev-python/six[${PYTHON_USEDEP}]
+   >=dev-python/setuptools-41[${PYTHON_USEDEP}]
+   dev-python/werkzeug[${PYTHON_USEDEP}]
+   dev-python/wheel[${PYTHON_USEDEP}]
+   >=dev-python/scipy-1.4.1[${PYTHON_USEDEP}]
+"
+BDEPEND="
+   app-arch/unzip
+   ${PYTHON_DEPS}
+"
+PDEPEND="
+   =sci-libs/tensorflow-2.13*[python,${PYTHON_USEDEP}]
+"
+
+src_prepare() {
+   eapply_user
+
+   sed -i -e '/_vendor.__init__/d' -e '/_vendor.bleach/d' -e 
'/_vendor.html5lib/d' -e '/_vendor.webencodings/d' \
+   "${S}/${P}.dist-info/RECORD" || die "failed to unvendor"
+   grep -q "_vendor" "${S}/${P}.dist-info/RECORD" && die "More vendored 
deps found"
+
+   find "${S}/${PN}" -name '*.py' -exec sed -i \
+   -e 's/^from tensorboard\._vendor import /import /' \
+   -e 's/^from tensorboard\._vendor\./from /' \
+   {} + || die "failed to unvendor"
+
+   rm -rf "${S}/${PN}/_vendor" || die
+
+   sed -i -e '/tensorboard-plugin-/d' "${S}/${P}.dist-info/METADATA" || 
die "failed to remove plugin deps"
+   sed -i -e '/tensorboard-data-server/d' "${S}/${P}.dist-info/METADATA" 
|| die "failed to remove data-server deps"
+   sed -i -e 's/google-auth-oauthlib.*$/google-auth-oauthlib/' 
"${S}/${P}.dist-info/METADATA" \
+   || die "failed to relax oauth deps"
+   sed -i -e 's/protobuf.*$/protobuf/' "${S}/${P}.dist-info/METADATA" \
+   || die "failed to relax protobuf deps"
+}
+
+src_install() {
+   do_install() {
+   python_domodule "${PN}"
+   python_domodule "${P}.dist-info"
+   }
+   python_foreach_impl do_install
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/ml_dtypes/

2024-02-03 Thread Jason Zaman
commit: c358e8c57ca31f08b4cb26b8dce2358288252603
Author: wangjiezhe  gmail  com>
AuthorDate: Sat Jan 20 06:37:21 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Feb  3 19:32:53 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c358e8c5

dev-python/ml_dtypes: new package, add 0.2.0

required by tensorflow-2.14

Signed-off-by: wangjiezhe  gmail.com>
Signed-off-by: Jason Zaman  gentoo.org>

 dev-python/ml_dtypes/Manifest   |  2 ++
 dev-python/ml_dtypes/metadata.xml   | 12 ++
 dev-python/ml_dtypes/ml_dtypes-0.2.0.ebuild | 35 +
 3 files changed, 49 insertions(+)

diff --git a/dev-python/ml_dtypes/Manifest b/dev-python/ml_dtypes/Manifest
new file mode 100644
index ..270337efceaf
--- /dev/null
+++ b/dev-python/ml_dtypes/Manifest
@@ -0,0 +1,2 @@
+DIST eigen-7bf2968fed5f246c0589e004cb420fcd7c71.tar.bz2 2239233 BLAKE2B 
3a7e81c302cb11ae1d6ef9433a9ec41506c1f37d04cfb8744ac3fcf7dbe9430c1b48d7197ca3b8e1f9354398bac3d0dbc3e0599c0b649acd6175e906befe2973
 SHA512 
29ee89770726e6e0f5135b7fab24649f3e69223caed90d2daa6f0014783e69fe98f0551de49bd4e393d7b7938f2943caf1ed00f3933fa771ac14fae3c63fd5dd
+DIST ml_dtypes-0.2.0.gh.tar.gz 66155 BLAKE2B 
fc3bcdc8af99a232611b2b9da3ff640852f236dd6b13b8e3fbb9e47934e8a30f3d4d009b845ec1da6f96a4b2fe04e269cef29a5f44061ed9cd38ba24a7d7ce2e
 SHA512 
5903534832f75c13c4fbd5522ff5d93a2d1bf0cbc0226c72f26c4b8137df74fd6603230e5f6de7a58d68f38ff70d97f9e1f3a256b1b64ef611b3f522cb492682

diff --git a/dev-python/ml_dtypes/metadata.xml 
b/dev-python/ml_dtypes/metadata.xml
new file mode 100644
index ..fb90faa23f9d
--- /dev/null
+++ b/dev-python/ml_dtypes/metadata.xml
@@ -0,0 +1,12 @@
+
+http://www.gentoo.org/dtd/metadata.dtd";>
+
+   
+   perfin...@gentoo.org
+   Jason Zaman
+   
+   
+   jax-ml/ml_dtypes
+   ml_dtypes
+   
+

diff --git a/dev-python/ml_dtypes/ml_dtypes-0.2.0.ebuild 
b/dev-python/ml_dtypes/ml_dtypes-0.2.0.ebuild
new file mode 100644
index ..b6db456a8c20
--- /dev/null
+++ b/dev-python/ml_dtypes/ml_dtypes-0.2.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+inherit distutils-r1
+
+EIGEN_CommitId="7bf2968fed5f246c0589e004cb420fcd7c71"
+
+DESCRIPTION="A stand-alone implementation of several NumPy dtype extensions"
+HOMEPAGE="https://github.com/jax-ml/ml_dtypes";
+SRC_URI="
+   https://github.com/jax-ml/${PN}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.gh.tar.gz
+   
https://gitlab.com/libeigen/eigen/-/archive/${EIGEN_CommitId}/eigen-${EIGEN_CommitId}.tar.bz2
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="
+   dev-python/numpy[${PYTHON_USEDEP}]
+"
+BDEPEND="
+   dev-python/pybind11[${PYTHON_USEDEP}]
+"
+
+python_prepare_all() {
+   rmdir third_party/eigen || die
+   cp -r "${WORKDIR}/eigen-${EIGEN_CommitId}" third_party/eigen || die
+   distutils-r1_python_prepare_all
+}



[gentoo-commits] repo/gentoo:master commit in: sci-libs/tensorflow-estimator/

2024-02-03 Thread Jason Zaman
commit: 192953de9321e0fc1e698620e578a2b637b3a78d
Author: wangjiezhe  gmail  com>
AuthorDate: Fri Jan 19 13:05:34 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Feb  3 19:32:51 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=192953de

sci-libs/tensorflow-estimator: add 2.13.0

Signed-off-by: wangjiezhe  gmail.com>
Signed-off-by: Jason Zaman  gentoo.org>

 sci-libs/tensorflow-estimator/Manifest |  1 +
 .../tensorflow-estimator-2.13.0.ebuild | 75 ++
 2 files changed, 76 insertions(+)

diff --git a/sci-libs/tensorflow-estimator/Manifest 
b/sci-libs/tensorflow-estimator/Manifest
index 28ee49beed06..19331123a3e2 100644
--- a/sci-libs/tensorflow-estimator/Manifest
+++ b/sci-libs/tensorflow-estimator/Manifest
@@ -2,3 +2,4 @@ DIST 
bazelbuild-rules_cc-b1c40e1de81913a3c40e5948f78719c28152486d.zip 201360 BLA
 DIST bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip 9422 
BLAKE2B 
bbc45c97551ee8126335b611ffca6574dac843d4db9b3221b10d26487f8eecfe38ba0cd67a4039a3ad921c25fea6294c43e4f4e7a57a060a30791acd6c4f9d39
 SHA512 
ba06242feb711e7fb6e821fd9ac029248b4f3e466fb1acf971d0db8196f3efe4d114ef137acbe4913073f8cbe8ccab4d47d8bafa21b867b2d6a6d57f5a647f0c
 DIST tensorflow-estimator-2.11.0-rc0.tar.gz 655514 BLAKE2B 
cc73f282a32f657bf507d948210aa981f0867c4898574c61fb5654204fa573ac7bdef16635d202ed3d202ccc9c8915f5613e4149ce6839d59281a38cfd6953f7
 SHA512 
c473a6db62a0a55f25f8fd5fd7ffb2f2a473261c5a7b3217bd1d8a21a02ab4871793ea57917c6eb9dc9012bd030faf8030702caf3f764983ce526d201866204f
 DIST tensorflow-estimator-2.12.0.tar.gz 656763 BLAKE2B 
a67c81487b7765f3195f7567b66455a4be390bff8d6dec751d054a26b654b1aac96982f6fa55d0488a8e6414e7d4b58d1ae59680a1c694615f82718c77478872
 SHA512 
d86bfde67c97988beeb5abc8042c1847c6d0081d54e21e35424d463895e95a5d0adc74d7d2bb006a617748da3b9a8bbb8979d6a842f024ab3a4d08a2e806147b
+DIST tensorflow-estimator-2.13.0.tar.gz 656953 BLAKE2B 
2aeae25089990914018cd713aba1289195595e67b85cc5d66b1a348b9d65c29854768118989aa0d5540eb5d70bb32ac1699584f0191460f5f23f6f8b3f9d7204
 SHA512 
c445a43d497c575fb6e2f7a26d5346b2db8712540f807e0bc64759db056468ada909371b29b828470c7763156570c25917157dbe0d61e9f148c3027c29ebd181

diff --git a/sci-libs/tensorflow-estimator/tensorflow-estimator-2.13.0.ebuild 
b/sci-libs/tensorflow-estimator/tensorflow-estimator-2.13.0.ebuild
new file mode 100644
index ..5d4bf8bd330d
--- /dev/null
+++ b/sci-libs/tensorflow-estimator/tensorflow-estimator-2.13.0.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..11} )
+MY_PN="estimator"
+MY_PV=${PV/_rc/-rc}
+MY_P=${MY_PN}-${MY_PV}
+
+inherit bazel distutils-r1
+
+DESCRIPTION="A high-level TensorFlow API that greatly simplifies machine 
learning programming"
+HOMEPAGE="https://www.tensorflow.org/";
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+bazel_external_uris="
+   
https://github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip
 -> bazelbuild-rules_cc-b1c40e1de81913a3c40e5948f78719c28152486d.zip
+   
https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip
 -> bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip"
+
+SRC_URI="https://github.com/tensorflow/${MY_PN}/archive/v${MY_PV}.tar.gz -> 
${P}.tar.gz
+   ${bazel_external_uris}"
+
+RDEPEND="
+   =sci-libs/tensorflow-2.13*[python,${PYTHON_USEDEP}]
+   sci-libs/keras[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}"
+BDEPEND="
+   app-arch/unzip
+   >=dev-build/bazel-5.3.0
+   dev-java/java-config
+"
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS=( CONTRIBUTING.md README.md )
+
+src_unpack() {
+   unpack "${P}.tar.gz"
+   bazel_load_distfiles "${bazel_external_uris}"
+}
+
+src_prepare() {
+   bazel_setup_bazelrc
+   default
+   python_copy_sources
+}
+
+python_compile() {
+   pushd "${BUILD_DIR}" >/dev/null || die
+
+   ebazel build //tensorflow_estimator/tools/pip_package:build_pip_package
+   ebazel shutdown
+
+   local srcdir="${T}/src-${EPYTHON/./_}"
+   mkdir -p "${srcdir}" || die
+   bazel-bin/tensorflow_estimator/tools/pip_package/build_pip_package 
--src "${srcdir}" || die
+
+   popd >/dev/null || die
+}
+
+src_compile() {
+   export JAVA_HOME=$(java-config --jre-home)
+   distutils-r1_src_compile
+}
+
+python_install() {
+   pushd "${T}/src-${EPYTHON/./_}" >/dev/null || die
+   esetup.py install
+   python_optimize
+   popd >/dev/null || die
+}



[gentoo-commits] repo/gentoo:master commit in: sci-libs/keras/

2024-02-03 Thread Jason Zaman
commit: 2ba5cc38a32fcc6b297c9bade8ba5447924e8bd0
Author: wangjiezhe  gmail  com>
AuthorDate: Fri Jan 19 13:04:31 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Feb  3 19:32:50 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ba5cc38

sci-libs/keras: add 2.13.1

Signed-off-by: wangjiezhe  gmail.com>
Signed-off-by: Jason Zaman  gentoo.org>

 sci-libs/keras/Manifest|  1 +
 sci-libs/keras/keras-2.13.1.ebuild | 84 ++
 2 files changed, 85 insertions(+)

diff --git a/sci-libs/keras/Manifest b/sci-libs/keras/Manifest
index d5c590e7cbd2..bf70e32a6475 100644
--- a/sci-libs/keras/Manifest
+++ b/sci-libs/keras/Manifest
@@ -3,3 +3,4 @@ DIST 
bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip 9422 BLA
 DIST keras-2.10.0.tar.gz 2250425 BLAKE2B 
eb05537739cdc81e279b5c400e2e2b77d46f4085e8530fef565bde12414ddccedb44c0b13265106a3353e67c367106e1d341412dc25b32e2221f144a31d76079
 SHA512 
8682110495a045c2ebc61f31a98d646b88fd9608d5169be78701cf528457ff0d2e39669d885854c14c1e6bebb380b14968957f2a8a34a8a023f8860efc7aeecd
 DIST keras-2.11.0.tar.gz 2260857 BLAKE2B 
9c85e0f64176848886509fbf269b85732f8ad98e7be3ec186e71870e453454b9b81516ef2ca4e67fb8906bc0ca1241d61ae94db6b58c7483527d33519f7c38fb
 SHA512 
17c773e1f9c592676d56a8b3eed707d52240800b33e85db80f206e8459c8c18485f0bcb6d5775ce1ef0625dc5ebe699574b8599dd98dbb73620da4301968
 DIST keras-2.12.0.tar.gz 2319287 BLAKE2B 
332b2b02eecac2da7c87c1f051c56d495027630e2e0254d543897e462f7f44a282bff6cf3cbe2602663cae2e2c76ab45c9b3b53cadbc3317b3e2dd366bdf7ace
 SHA512 
10d034abc9b159a0945610dcfb2fc58d8143267629b8f59496b4e5f097b1220bdb02a269f135f05b8abed56c2d5237b3e0c2b74882cd3f321850fc7f47694dbb
+DIST keras-2.13.1.tar.gz 2373567 BLAKE2B 
8b8b0c51fa9c0f53baa2306d0ee4361aaeaed272d887e0fb2f4289696a74e2cb45239fb378db70d954346b30124255a16002555002813656607721b3f393d0c2
 SHA512 
0f0c93f31d555e27e3f4268af7749b4c494a1f698bc763cebc4efe55e8011dbf637b978ca976ed61c46e8b11b8267b1a277d5048c3d3bcbe47005ee8960a1fc3

diff --git a/sci-libs/keras/keras-2.13.1.ebuild 
b/sci-libs/keras/keras-2.13.1.ebuild
new file mode 100644
index ..f6a875c9e4ab
--- /dev/null
+++ b/sci-libs/keras/keras-2.13.1.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..11} )
+inherit bazel distutils-r1
+
+DESCRIPTION="Deep Learning for humans"
+HOMEPAGE="https://keras.io/";
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+bazel_external_uris="
+   
https://github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip
 -> bazelbuild-rules_cc-b1c40e1de81913a3c40e5948f78719c28152486d.zip
+   
https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip
 -> bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip"
+
+SRC_URI="https://github.com/keras-team/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz
+   ${bazel_external_uris}"
+
+RDEPEND="
+   >=dev-libs/protobuf-3.13.0:=
+   dev-python/absl-py[${PYTHON_USEDEP}]
+   dev-python/h5py[${PYTHON_USEDEP}]
+   dev-python/numpy[${PYTHON_USEDEP}]
+   dev-python/pandas[${PYTHON_USEDEP}]
+   dev-python/pillow[${PYTHON_USEDEP}]
+   >=dev-python/protobuf-python-3.13.0[${PYTHON_USEDEP}]
+   dev-python/six[${PYTHON_USEDEP}]
+   >=sci-libs/keras-applications-1.0.8[${PYTHON_USEDEP}]
+   >=sci-libs/keras-preprocessing-1.1.2[${PYTHON_USEDEP}]
+   >=sci-libs/tensorflow-2.13[python,${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+   dev-python/setuptools[${PYTHON_USEDEP}]"
+BDEPEND="
+   app-arch/unzip
+   >=dev-libs/protobuf-3.13.0
+   dev-java/java-config
+   >=dev-build/bazel-5.3.0"
+
+# Bazel tests not pytest, also want GPU access
+RESTRICT="test"
+DOCS=( CONTRIBUTING.md README.md )
+PATCHES=(
+   "${FILESDIR}/keras-2.12.0-0001-bazel-Use-system-protobuf.patch"
+)
+
+src_unpack() {
+   unpack "${P}.tar.gz"
+   bazel_load_distfiles "${bazel_external_uris}"
+}
+
+src_prepare() {
+   bazel_setup_bazelrc
+   default
+   python_copy_sources
+}
+
+python_compile() {
+   pushd "${BUILD_DIR}" >/dev/null || die
+
+   ebazel build //keras/tools/pip_package:build_pip_package
+   ebazel shutdown
+
+   local srcdir="${T}/src-${EPYTHON/./_}"
+   mkdir -p "${srcdir}" || die
+   bazel-bin/keras/tools/pip_package/build_pip_package --src "${srcdir}" 
|| die
+
+   popd || die
+}
+
+src_compile() {
+   export JAVA_HOME=$(java-config --jre-home)
+   distutils-r1_src_compile
+}
+
+python_install() {
+   pushd "${T}/src-${EPYTHON/./_}" >/dev/null || die
+   esetup.py install
+   python_optimize
+   popd || die
+}



[gentoo-commits] repo/gentoo:master commit in: dev-build/bazel/

2024-02-03 Thread Jason Zaman
commit: e9b99e43843a56b446dacfb90c9881e743ac7249
Author: wangjiezhe  gmail  com>
AuthorDate: Sat Jan 20 03:18:22 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Feb  3 19:32:52 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9b99e43

dev-build/bazel: add notation for gcc-13 compilation issue

Bug: https://bugs.gentoo.org/906914
Bug: https://bugs.gentoo.org/917689
Bug: https://bugs.gentoo.org/918703

Signed-off-by: wangjiezhe  gmail.com>
Signed-off-by: Jason Zaman  gentoo.org>

 dev-build/bazel/bazel-5.3.0.ebuild | 8 +++-
 dev-build/bazel/bazel-6.2.0.ebuild | 8 +++-
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/dev-build/bazel/bazel-5.3.0.ebuild 
b/dev-build/bazel/bazel-5.3.0.ebuild
index 1afd007db9d4..f756db0dbc6a 100644
--- a/dev-build/bazel/bazel-5.3.0.ebuild
+++ b/dev-build/bazel/bazel-5.3.0.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit bash-completion-r1 bazel java-pkg-2 multiprocessing
+inherit bash-completion-r1 bazel java-pkg-2 multiprocessing toolchain-funcs
 
 DESCRIPTION="Fast and correct automated build system"
 HOMEPAGE="https://bazel.build/";
@@ -30,6 +30,12 @@ pkg_setup() {
ewarn "${PN} usually fails to compile with ccache, you have 
been warned"
fi
java-pkg-2_pkg_setup
+
+   if [[ ${MERGE_TYPE} != binary ]] && tc-is-gcc && ver_test 
$(gcc-version) -ge 13 ; then
+   eerror "Bazel 6 needs <=gcc-12 to compile."
+   eerror "Please run 'eselect gcc' and set correct gcc version."
+   die "GCC version is too new to compile Bazel!"
+   fi
 }
 
 src_unpack() {

diff --git a/dev-build/bazel/bazel-6.2.0.ebuild 
b/dev-build/bazel/bazel-6.2.0.ebuild
index 1afd007db9d4..f756db0dbc6a 100644
--- a/dev-build/bazel/bazel-6.2.0.ebuild
+++ b/dev-build/bazel/bazel-6.2.0.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit bash-completion-r1 bazel java-pkg-2 multiprocessing
+inherit bash-completion-r1 bazel java-pkg-2 multiprocessing toolchain-funcs
 
 DESCRIPTION="Fast and correct automated build system"
 HOMEPAGE="https://bazel.build/";
@@ -30,6 +30,12 @@ pkg_setup() {
ewarn "${PN} usually fails to compile with ccache, you have 
been warned"
fi
java-pkg-2_pkg_setup
+
+   if [[ ${MERGE_TYPE} != binary ]] && tc-is-gcc && ver_test 
$(gcc-version) -ge 13 ; then
+   eerror "Bazel 6 needs <=gcc-12 to compile."
+   eerror "Please run 'eselect gcc' and set correct gcc version."
+   die "GCC version is too new to compile Bazel!"
+   fi
 }
 
 src_unpack() {



[gentoo-commits] repo/gentoo:master commit in: sci-visualization/tensorboard/

2024-02-03 Thread Jason Zaman
commit: b5b098e630ea6572ee49afa06b1971283d13cb5b
Author: wangjiezhe  gmail  com>
AuthorDate: Sat Jan 20 06:40:55 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Feb  3 19:32:54 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5b098e6

sci-visualization/tensorboard: add 2.14.1

Signed-off-by: wangjiezhe  gmail.com>
Signed-off-by: Jason Zaman  gentoo.org>

 sci-visualization/tensorboard/Manifest |  1 +
 .../tensorboard/tensorboard-2.14.1.ebuild  | 71 ++
 2 files changed, 72 insertions(+)

diff --git a/sci-visualization/tensorboard/Manifest 
b/sci-visualization/tensorboard/Manifest
index e775562064f5..dd1c5fee7f69 100644
--- a/sci-visualization/tensorboard/Manifest
+++ b/sci-visualization/tensorboard/Manifest
@@ -2,3 +2,4 @@ DIST tensorboard-2.10.0.zip 5873469 BLAKE2B 
b03a804682275abd83482e6dc8e62bef4301
 DIST tensorboard-2.11.0-py3-none-any.whl.zip 5990351 BLAKE2B 
d6796fceb047abc69c84c8f30ce6b5e0739a376e110fb7e2bb78ee5b6c7dd8d1344546950d46dbdc3a47780f4ad685be186087286225dbeb9ebce558f0837d8c
 SHA512 
f1b908e13a56a86f6618ae8bf596339243642d0f00793d326ac884fd8e736bb316331728b474022936570fb6202b323d8ba2bf4908619aa1f79411b904edf209
 DIST tensorboard-2.12.0-py3-none-any.whl.zip 5638388 BLAKE2B 
617c76fa49b2aa647d7f099d8dbc7d53449e3024981f2f5858c1eff44b6a3c9369169579436562373fd2f44222e506b54d10083292352b70c400f16dcfaf1dec
 SHA512 
d7eaeeb68adf1ad121bffd15f5147564af78ee74b7f2f251f6111bc94973b4ee7c952de51eab4608126a230b4709af5c67944608f4c5c73918af82945abc63e3
 DIST tensorboard-2.13.0-py3-none-any.whl.zip 5569681 BLAKE2B 
f7c671e9a59ab50c9bf150d52826a70091908876ebd65ee39e347eef15f63d1c1e3dadd6c2748917bdd640a09e1816238b755de92c2eb82ca296a67a28be0387
 SHA512 
6d934632855431056a4b255be52312a9cb6592ca4fde97a2a563634dbbc7ff2809cac6adbffbd6ea5eb03f22cdf682593b704704ed9af208cea9a36030cd9ff1
+DIST tensorboard-2.14.1-py3-none-any.whl.zip 5508920 BLAKE2B 
b1f7afccc29ea7f1694127a02ef571bfd984be17c9a4f4e30be0fece64c94e8f3e6c4f4dfc49cb0544694a806ab09d83d56b0064aae0a226721ca47d20e7bf6a
 SHA512 
6d4f61452a99b88aef2e640a9be9324eb7c287121faff267b9fb8b114381f03c90cbcd46d38f2fd0aa54d6c7c5ed9f8123bd76675454564169ab0ccd67abaa6e

diff --git a/sci-visualization/tensorboard/tensorboard-2.14.1.ebuild 
b/sci-visualization/tensorboard/tensorboard-2.14.1.ebuild
new file mode 100644
index ..d6832313d71c
--- /dev/null
+++ b/sci-visualization/tensorboard/tensorboard-2.14.1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..11} )
+inherit python-r1 pypi
+
+DESCRIPTION="TensorFlow's Visualization Toolkit"
+HOMEPAGE="https://www.tensorflow.org/";
+SRC_URI="$(pypi_wheel_url --unpack)"
+S=${WORKDIR}
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+RDEPEND="
+   ${PYTHON_DEPS}
+   dev-python/bleach[${PYTHON_USEDEP}]
+   >=dev-python/google-auth-1.6.3[${PYTHON_USEDEP}]
+   >=dev-python/google-auth-oauthlib-0.4.1[${PYTHON_USEDEP}]
+   dev-python/grpcio[${PYTHON_USEDEP}]
+   dev-python/html5lib[${PYTHON_USEDEP}]
+   dev-python/markdown[${PYTHON_USEDEP}]
+   dev-python/numpy[${PYTHON_USEDEP}]
+   dev-python/protobuf-python[${PYTHON_USEDEP}]
+   dev-python/six[${PYTHON_USEDEP}]
+   >=dev-python/setuptools-41[${PYTHON_USEDEP}]
+   dev-python/werkzeug[${PYTHON_USEDEP}]
+   dev-python/wheel[${PYTHON_USEDEP}]
+   >=dev-python/scipy-1.4.1[${PYTHON_USEDEP}]
+"
+BDEPEND="
+   app-arch/unzip
+   ${PYTHON_DEPS}
+"
+PDEPEND="
+   =sci-libs/tensorflow-2.14*[python,${PYTHON_USEDEP}]
+"
+
+src_prepare() {
+   eapply_user
+
+   sed -i -e '/_vendor.__init__/d' -e '/_vendor.bleach/d' -e 
'/_vendor.html5lib/d' -e '/_vendor.webencodings/d' \
+   "${S}/${P}.dist-info/RECORD" || die "failed to unvendor"
+   grep -q "_vendor" "${S}/${P}.dist-info/RECORD" && die "More vendored 
deps found"
+
+   find "${S}/${PN}" -name '*.py' -exec sed -i \
+   -e 's/^from tensorboard\._vendor import /import /' \
+   -e 's/^from tensorboard\._vendor\./from /' \
+   {} + || die "failed to unvendor"
+
+   rm -rf "${S}/${PN}/_vendor" || die
+
+   sed -i -e '/tensorboard-plugin-/d' "${S}/${P}.dist-info/METADATA" || 
die "failed to remove plugin deps"
+   sed -i -e '/tensorboard-data-server/d' "${S}/${P}.dist-info/METADATA" 
|| die "failed to remove data-server deps"
+   sed -i -e 's/google-auth-oauthlib.*$/google-auth-oauthlib/' 
&q

[gentoo-commits] repo/gentoo:master commit in: dev-python/protobuf-python/files/, dev-python/protobuf-python/

2024-02-03 Thread Jason Zaman
commit: 3b21c6040943e41bcaa65dc68bf8a9badfc9eb3a
Author: wangjiezhe  gmail  com>
AuthorDate: Fri Jan 19 11:06:45 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Feb  3 19:32:47 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b21c604

dev-python/protobuf-python: add 4.22.5

Signed-off-by: wangjiezhe  gmail.com>
Signed-off-by: Jason Zaman  gentoo.org>

 dev-python/protobuf-python/Manifest|  1 +
 .../files/protobuf-python-4.22.5-c++-17.patch  | 13 
 .../protobuf-python/protobuf-python-4.22.5.ebuild  | 85 ++
 3 files changed, 99 insertions(+)

diff --git a/dev-python/protobuf-python/Manifest 
b/dev-python/protobuf-python/Manifest
index 20e1338a9868..8695f23be04a 100644
--- a/dev-python/protobuf-python/Manifest
+++ b/dev-python/protobuf-python/Manifest
@@ -1,3 +1,4 @@
 DIST protobuf-21.12.tar.gz 5141166 BLAKE2B 
33500612d103afb817062486a741e8e5503f82c42c70054d47d1899e6bb79f3fdde2666cad5b8eff6e1bc539c3b0cdf9f2b125ce7e5d3a459a69e84d67ab535e
 SHA512 
2dc8f552388438268d8b9f7a9e84c6abf1736be3d5031438c789c317410c9f4b5cedd25bf7da6d67b3ba32ca890869f9ddaab2284d6ac0e734a5b135ffbb1346
 DIST protobuf-21.9.tar.gz 5110670 BLAKE2B 
a4f5b7f58e1c5904ca990b100a72992f6f56177b28773f8de8c99e4158391d33cfb8aa8575915887fc9ae4294faf81d4ff6b470bc07b394bfd5885a09ba0fafe
 SHA512 
6954b42d21921e630173b7848c056ab95635627d8eddec960f3db2ddda13eedde00520a9b350722e76e2998649eb8ebe10758e1db938b6a91e38ff3295b1b7c1
+DIST protobuf-22.5.tar.gz 4924661 BLAKE2B 
d69c73f4ebfddf45fd94b4f5f898faf00256fe674f2cbc0443c60a88d7a0f47fb96f2f6262879927c6da88095b4ea3ee7fd4c471c100bf42a2bae9edf48c07f1
 SHA512 
058ab2fec5b11007972e6043071056d1944c3b6fe1d31246cddba8eb57686e3b5280f6ad3d58e78940ca63005e74a8de3c72237f9f7c5066548c5a2513ddc584
 DIST protobuf-23.3.tar.gz 5043803 BLAKE2B 
ee2edee230969555c9ef95069c7b1d6c23c3d1f8ea1b2249fb3e9f6fcf63312c6e10e9da65b80629fb08d5fb08d05a19bb9c752c25b892c1e3fd6f18b9279eb3
 SHA512 
646af367dbc61b42e322cf0b335f360e428b272e2b1f5361b2f17c18d3dc9615e1279436028b1a42275a0beadda37c2c934fc27d6c892131cc8d526d8b3b

diff --git 
a/dev-python/protobuf-python/files/protobuf-python-4.22.5-c++-17.patch 
b/dev-python/protobuf-python/files/protobuf-python-4.22.5-c++-17.patch
new file mode 100644
index ..3ca6a5776d04
--- /dev/null
+++ b/dev-python/protobuf-python/files/protobuf-python-4.22.5-c++-17.patch
@@ -0,0 +1,13 @@
+diff --git a/python/setup.py b/python/setup.py
+index e65631013..8a6cbe59a 100755
+--- a/python/setup.py
 b/python/setup.py
+@@ -370,7 +370,7 @@ if __name__ == '__main__':
+   extra_compile_args.append('-Wno-invalid-offsetof')
+   extra_compile_args.append('-Wno-sign-compare')
+   extra_compile_args.append('-Wno-unused-variable')
+-  extra_compile_args.append('-std=c++14')
++  extra_compile_args.append('-std=c++17')
+ 
+ if sys.platform == 'darwin':
+   extra_compile_args.append('-Wno-shorten-64-to-32')

diff --git a/dev-python/protobuf-python/protobuf-python-4.22.5.ebuild 
b/dev-python/protobuf-python/protobuf-python-4.22.5.ebuild
new file mode 100644
index ..27768732e87b
--- /dev/null
+++ b/dev-python/protobuf-python/protobuf-python-4.22.5.ebuild
@@ -0,0 +1,85 @@
+# Copyright 2008-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit distutils-r1
+
+PARENT_PN="${PN/-python/}"
+PARENT_PV="$(ver_cut 2-)"
+PARENT_P="${PARENT_PN}-${PARENT_PV}"
+
+if [[ "${PV}" == * ]]; then
+   inherit git-r3
+
+   EGIT_REPO_URI="https://github.com/protocolbuffers/protobuf.git";
+   EGIT_SUBMODULES=()
+   EGIT_CHECKOUT_DIR="${WORKDIR}/${PARENT_P}"
+else
+   SRC_URI="
+   
https://github.com/protocolbuffers/protobuf/archive/v${PARENT_PV}.tar.gz
+   -> ${PARENT_P}.tar.gz
+   "
+   KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc64 ~riscv ~sparc 
~x86 ~amd64-linux ~x86-linux ~x64-macos"
+fi
+
+DESCRIPTION="Google's Protocol Buffers - Python bindings"
+HOMEPAGE="
+   https://developers.google.com/protocol-buffers/
+   https://pypi.org/project/protobuf/
+"
+
+LICENSE="BSD"
+SLOT="0/22.5.0"
+
+S="${WORKDIR}/${PARENT_P}/python"
+
+DEPEND="
+   ${PYTHON_DEPS}
+"
+RDEPEND="
+   dev-libs/protobuf:${SLOT}
+"
+
+distutils_enable_tests setup.py
+
+# Same than PATCHES but from repository's root directory,
+# please see function `python_prepare_all` below.
+# Simplier for users IMHO.
+PARENT_PATCHES=(
+   "${FILESDIR}/${P}-c++-17.patch"
+)
+
+# Here for patches within "python/" subdirectory.
+PATCHES=

[gentoo-commits] repo/gentoo:master commit in: dev-libs/protobuf/, dev-libs/protobuf/files/

2024-02-03 Thread Jason Zaman
commit: ff18a544a0a2ab7413c4ab395b7253f5ca2ceab9
Author: wangjiezhe  gmail  com>
AuthorDate: Fri Jan 19 10:27:06 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Feb  3 19:32:45 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff18a544

dev-libs/protobuf: add 22.5

dependency tree:
- tensorflow-2.13.1
  - net-libs/grpc-1.55.1
- dev-libs/protobuf-22.5
- dev-cpp/abseil-cpp-20230125.2

Signed-off-by: wangjiezhe  gmail.com>
Signed-off-by: Jason Zaman  gentoo.org>

 dev-libs/protobuf/Manifest |   1 +
 ...e-ABI-for-static-and-shared-libraries-on-.patch |  71 +
 ...issing-PROTOBUF_EXPORT-for-public-symbols.patch |  32 ++
 dev-libs/protobuf/protobuf-22.5.ebuild | 117 +
 4 files changed, 221 insertions(+)

diff --git a/dev-libs/protobuf/Manifest b/dev-libs/protobuf/Manifest
index 20e1338a9868..8695f23be04a 100644
--- a/dev-libs/protobuf/Manifest
+++ b/dev-libs/protobuf/Manifest
@@ -1,3 +1,4 @@
 DIST protobuf-21.12.tar.gz 5141166 BLAKE2B 
33500612d103afb817062486a741e8e5503f82c42c70054d47d1899e6bb79f3fdde2666cad5b8eff6e1bc539c3b0cdf9f2b125ce7e5d3a459a69e84d67ab535e
 SHA512 
2dc8f552388438268d8b9f7a9e84c6abf1736be3d5031438c789c317410c9f4b5cedd25bf7da6d67b3ba32ca890869f9ddaab2284d6ac0e734a5b135ffbb1346
 DIST protobuf-21.9.tar.gz 5110670 BLAKE2B 
a4f5b7f58e1c5904ca990b100a72992f6f56177b28773f8de8c99e4158391d33cfb8aa8575915887fc9ae4294faf81d4ff6b470bc07b394bfd5885a09ba0fafe
 SHA512 
6954b42d21921e630173b7848c056ab95635627d8eddec960f3db2ddda13eedde00520a9b350722e76e2998649eb8ebe10758e1db938b6a91e38ff3295b1b7c1
+DIST protobuf-22.5.tar.gz 4924661 BLAKE2B 
d69c73f4ebfddf45fd94b4f5f898faf00256fe674f2cbc0443c60a88d7a0f47fb96f2f6262879927c6da88095b4ea3ee7fd4c471c100bf42a2bae9edf48c07f1
 SHA512 
058ab2fec5b11007972e6043071056d1944c3b6fe1d31246cddba8eb57686e3b5280f6ad3d58e78940ca63005e74a8de3c72237f9f7c5066548c5a2513ddc584
 DIST protobuf-23.3.tar.gz 5043803 BLAKE2B 
ee2edee230969555c9ef95069c7b1d6c23c3d1f8ea1b2249fb3e9f6fcf63312c6e10e9da65b80629fb08d5fb08d05a19bb9c752c25b892c1e3fd6f18b9279eb3
 SHA512 
646af367dbc61b42e322cf0b335f360e428b272e2b1f5361b2f17c18d3dc9615e1279436028b1a42275a0beadda37c2c934fc27d6c892131cc8d526d8b3b

diff --git 
a/dev-libs/protobuf/files/protobuf-22.5-Use-the-same-ABI-for-static-and-shared-libraries-on-.patch
 
b/dev-libs/protobuf/files/protobuf-22.5-Use-the-same-ABI-for-static-and-shared-libraries-on-.patch
new file mode 100644
index ..4bbed7ecbaf5
--- /dev/null
+++ 
b/dev-libs/protobuf/files/protobuf-22.5-Use-the-same-ABI-for-static-and-shared-libraries-on-.patch
@@ -0,0 +1,71 @@
+From 4329fde9cf3fab7d1b3a9abe0fbeee1ad8a8b111 Mon Sep 17 00:00:00 2001
+From: "Romain Geissler @ Amadeus" 
+Date: Tue, 6 Jun 2023 10:49:55 -0700
+Subject: [PATCH] Use the same ABI for static and shared libraries on
+ non-Windows platforms (#12983)
+
+Hi,
+
+It seems that until last year, the logic behind `PROTOBUF_USE_DLLS` was for 
Windows (MSCV) only. It was changed to all platforms here in 
https://github.com/protocolbuffers/protobuf/commit/5a0887fc6529596eff5c0f72febc602a9d494cc2
+
+Last month, the generated pkg config files were updated to reflect the 
protobuf build-time value of `PROTOBUF_USE_DLLS` as it was indeed noted that it 
changes the ABI. This was done in 
https://github.com/protocolbuffers/protobuf/pull/12700 In the commit message it 
is mentionned that most likely we shall rather have a stable ABI.
+
+Finally in https://github.com/protocolbuffers/protobuf/issues/12746 which at 
some point mentions https://issuetracker.google.com/issues/283987730#comment7 
where a Google employee hits the linker issue:
+```
+undefined reference to 
`google::protobuf::internal::ThreadSafeArena::thread_cache_'
+```
+which denotes a mix of some .o or libs built `PROTOBUF_USE_DLLS` defined and 
some others build with `PROTOBUF_USE_DLLS` undefined, resulting in ABI 
incompatibilities.
+
+I also hit this issue while trying to include protobuf in a corporate 
environment using it's own proprietary build system in which it is expected 
that .a and .so use a compatible ABI.
+
+From my own understanding, ideally we should always use `thread_local` 
variables, but experience has shown that:
+ - old iOS (iOS < 9) didn't seem to accept `thread_local`, leading to the 
`GOOGLE_PROTOBUF_NO_THREADLOCAL` macro later renamed `PROTOBUF_NO_THREADLOCAL` 
which allowed to disable this, but it is not set anywhere in the protobuf code 
base. Also I doubt you still want to support such old iOS now, so maybe you 
should consider removing all `PROTOBUF_NO_THREADLOCAL` related code paths (this 
pull request doesn't do this).
+  - MSVC's DLL interface doesn't seem to accept exporting thread local 
variables (at least from what I understood, I know absolutely nothing about the 
Windows ecosystem), yet we can "hide" a thread local variable in a sta

[gentoo-commits] repo/gentoo:master commit in: sci-libs/tensorflow/

2024-02-03 Thread Jason Zaman
commit: d2ed3a1af052c5886b94a37efee34574114cabbf
Author: wangjiezhe  gmail  com>
AuthorDate: Sat Jan 20 05:39:25 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Feb  3 19:32:42 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2ed3a1a

sci-libs/tensorflow: update dependencies

tensorflow 2.11 and 2.12 need abseil-cpp>=20220623 built with C++17
tensorflow-2.12 cannot compile with abseil-cpp-20230125.2
stick to version 20220623

Bug: https://bugs.gentoo.org/881445
Bug: https://bugs.gentoo.org/882617
Bug: https://bugs.gentoo.org/913731
Bug: https://bugs.gentoo.org/915621

Signed-off-by: wangjiezhe  gmail.com>
Signed-off-by: Jason Zaman  gentoo.org>

 sci-libs/tensorflow/tensorflow-2.11.0.ebuild | 3 ++-
 sci-libs/tensorflow/tensorflow-2.12.0.ebuild | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/sci-libs/tensorflow/tensorflow-2.11.0.ebuild 
b/sci-libs/tensorflow/tensorflow-2.11.0.ebuild
index f84685652a58..5a44042dcde2 100644
--- a/sci-libs/tensorflow/tensorflow-2.11.0.ebuild
+++ b/sci-libs/tensorflow/tensorflow-2.11.0.ebuild
@@ -79,7 +79,7 @@ 
SRC_URI="https://github.com/${PN}/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz
 # abseil-cpp-20211102.0-r0 does not work with NVCC
 RDEPEND="
app-arch/snappy
-   >=dev-cpp/abseil-cpp-20211102-r2:=
+   =dev-cpp/abseil-cpp-20220623*:=
dev-db/lmdb
dev-db/sqlite
dev-libs/double-conversion
@@ -138,6 +138,7 @@ PDEPEND="python? (
 BDEPEND="
app-arch/unzip
>=dev-build/bazel-5.1.1
+   =dev-libs/protobuf-3.8.0
dev-java/java-config
cuda? (

diff --git a/sci-libs/tensorflow/tensorflow-2.12.0.ebuild 
b/sci-libs/tensorflow/tensorflow-2.12.0.ebuild
index e5389e1f52a8..b2050fa13bff 100644
--- a/sci-libs/tensorflow/tensorflow-2.12.0.ebuild
+++ b/sci-libs/tensorflow/tensorflow-2.12.0.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_OPTIONAL=1
-PYTHON_COMPAT=( python3_10 python3_11 )
+PYTHON_COMPAT=( python3_{10..11} )
 MY_PV=${PV/_rc/-rc}
 MY_P=${PN}-${MY_PV}
 DEP_VER="$(ver_cut 1-2)"
@@ -82,7 +82,7 @@ 
SRC_URI="https://github.com/${PN}/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz
 # abseil-cpp-20211102.0-r0 does not work with NVCC
 RDEPEND="
app-arch/snappy
-   >=dev-cpp/abseil-cpp-20211102-r2:=
+   =dev-cpp/abseil-cpp-20220623*:=
dev-db/lmdb
dev-db/sqlite
dev-libs/double-conversion



[gentoo-commits] repo/gentoo:master commit in: dev-libs/flatbuffers/

2024-02-03 Thread Jason Zaman
commit: ee8c0d5c59319a5a939dd231c90720bd73b6016f
Author: wangjiezhe  gmail  com>
AuthorDate: Fri Jan 19 10:19:16 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Feb  3 19:32:43 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee8c0d5c

Revert "dev-libs/flatbuffers: Remove old"

flatbuffers-23.1.21 is needed for tensorflow-2.13.1
see 
https://github.com/tensorflow/tensorflow/blob/v2.13.1/tensorflow/lite/schema/schema_generated.h#L25

This reverts commit 8bede14312bbf876dd8c1e48ea10f666445ff6a6.

Signed-off-by: wangjiezhe  gmail.com>
Signed-off-by: Jason Zaman  gentoo.org>

 dev-libs/flatbuffers/Manifest   |  1 +
 dev-libs/flatbuffers/flatbuffers-23.1.21.ebuild | 35 +
 2 files changed, 36 insertions(+)

diff --git a/dev-libs/flatbuffers/Manifest b/dev-libs/flatbuffers/Manifest
index ff76ed194531..16918eaf4e7a 100644
--- a/dev-libs/flatbuffers/Manifest
+++ b/dev-libs/flatbuffers/Manifest
@@ -1 +1,2 @@
+DIST flatbuffers-23.1.21.gh.tar.gz 2181861 BLAKE2B 
6368358c21e677feb466245a746b86cebb6d6a4058bb6d593de81bf3c32ddfb9fd475e4bb225d4529ea106253456a5ed1ee6d024b1e2521e02efef171750f428
 SHA512 
fa62188f773ad044644a58caf1e25bef417dfdea47c9da8a2ea7f997154b4f3976019e32e73cc533696a3d4e45ec4a8402b6df140878dfa2ff078740d61b4b0f
 DIST flatbuffers-23.5.26.gh.tar.gz 2257271 BLAKE2B 
147425e7c018072f4ae4cdb3e034a4f434362d88d5e27b09375965993c279acfbed36064014c8f4fbe3fb81175ac0aa9b07629675e2c7ad33d59a9c85f2c3bb8
 SHA512 
cd0a5efad8016e1217d01a181d6b02e546f5693c6412361bfeaee820d5dfe5e2a424cee1963270e851c1a4f936ae8a0032a51c5bb16ee19313e0ecc77dc4ba31

diff --git a/dev-libs/flatbuffers/flatbuffers-23.1.21.ebuild 
b/dev-libs/flatbuffers/flatbuffers-23.1.21.ebuild
new file mode 100644
index ..b8bd61f6bb19
--- /dev/null
+++ b/dev-libs/flatbuffers/flatbuffers-23.1.21.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Memory efficient serialization library"
+HOMEPAGE="
+   https://google.github.io/flatbuffers/
+   https://github.com/google/flatbuffers/
+"
+SRC_URI="
+   https://github.com/google/flatbuffers/archive/v${PV}.tar.gz
+   -> ${P}.gh.tar.gz
+"
+
+LICENSE="Apache-2.0"
+SLOT="0/${PV}"
+KEYWORDS="amd64 ~arm arm64 ~riscv x86"
+IUSE="static-libs test"
+RESTRICT="!test? ( test )"
+
+DOCS=( readme.md )
+
+src_configure() {
+   local mycmakeargs=(
+   -DFLATBUFFERS_BUILD_FLATLIB=$(usex static-libs)
+   -DFLATBUFFERS_BUILD_SHAREDLIB=ON
+   -DFLATBUFFERS_BUILD_TESTS=$(usex test)
+   -DFLATBUFFERS_BUILD_BENCHMARKS=OFF
+   )
+
+   cmake_src_configure
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/gast/

2024-01-20 Thread Jason Zaman
commit: bf945f751e52129fc90112967a331f25f9b34c27
Author: Jason Zaman  gentoo  org>
AuthorDate: Sat Jan 20 21:13:43 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Jan 20 21:19:01 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf945f75

dev-python/gast: add 0.5.4

Signed-off-by: Jason Zaman  gentoo.org>

 dev-python/gast/Manifest  |  1 +
 dev-python/gast/gast-0.5.4.ebuild | 18 ++
 2 files changed, 19 insertions(+)

diff --git a/dev-python/gast/Manifest b/dev-python/gast/Manifest
index 89156d9adb0c..8a370940e9ae 100644
--- a/dev-python/gast/Manifest
+++ b/dev-python/gast/Manifest
@@ -1 +1,2 @@
 DIST gast-0.5.3.tar.gz 23455 BLAKE2B 
b7263e959178421a7ba1cdb41cb09edbe1c30680573e1ab3b4de114e0bd151d2278be799fcc1a01524bb5ee6f6d6764d9902dd0018e7cbe54ac7a3d1300bbeb1
 SHA512 
a836be76303591ca7c40596d98a29dbd53f281e277c8c23e3821b2003d4e8aaf4d806e7f532f27c0eadd4bdca5a28dc0a3902245505ab97497b9afbfee0c2e52
+DIST gast-0.5.4.tar.gz 25346 BLAKE2B 
c7161737367c2a3335d9e51af1dc09934ea16694d497cb151ed713b3372666456b5dcc2c595294c7162035af29d454bad5c8fb677030de9235c52d5ff8a3f05b
 SHA512 
a288e2ecc15af2a5d50cb34979995f936e88cdaa4427f809b69015cb6ba98eaffd7ea9eff2dc61dae6f6c2d7d9c5cc6e3e9a5565bd7b1dd308cd39f56087c67d

diff --git a/dev-python/gast/gast-0.5.4.ebuild 
b/dev-python/gast/gast-0.5.4.ebuild
new file mode 100644
index ..c7494e489742
--- /dev/null
+++ b/dev-python/gast/gast-0.5.4.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
+DISTUTILS_USE_PEP517=setuptools
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="A generic AST to represent Python2 and Python3's Abstract Syntax 
Tree (AST)"
+HOMEPAGE="https://pypi.org/project/gast/";
+
+LICENSE="BSD PSF-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 
~arm64-macos ~x64-macos"
+
+distutils_enable_tests unittest



[gentoo-commits] repo/gentoo:master commit in: dev-libs/nsync/

2024-01-20 Thread Jason Zaman
commit: 54d965019a9fadd99c44d14f1ac0d26c2dc2c11e
Author: Jason Zaman  gentoo  org>
AuthorDate: Sat Jan 20 20:53:30 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Jan 20 20:53:42 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54d96501

dev-libs/nsync: stabilize 1.25.0 for amd64, x86

Signed-off-by: Jason Zaman  gentoo.org>

 dev-libs/nsync/nsync-1.25.0.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-libs/nsync/nsync-1.25.0.ebuild 
b/dev-libs/nsync/nsync-1.25.0.ebuild
index c43efc9cedf9..6ad5dcf3244d 100644
--- a/dev-libs/nsync/nsync-1.25.0.ebuild
+++ b/dev-libs/nsync/nsync-1.25.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -11,7 +11,7 @@ SRC_URI="https://github.com/google/nsync/archive/${PV}.tar.gz 
-> ${P}.tar.gz"
 
 LICENSE="Apache-2.0"
 SLOT="0"
-KEYWORDS="~amd64 ~arm64 ~x86"
+KEYWORDS="amd64 ~arm64 x86"
 IUSE="test"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/nsync/

2024-01-20 Thread Jason Zaman
commit: be571e0a0b46d80e17046d60a8a34eed50e3b022
Author: Jason Zaman  gentoo  org>
AuthorDate: Sat Jan 20 20:47:30 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Jan 20 20:51:32 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be571e0a

dev-libs/nsync: add 1.26.0

Signed-off-by: Jason Zaman  gentoo.org>

 dev-libs/nsync/Manifest|  1 +
 dev-libs/nsync/metadata.xml|  3 +++
 dev-libs/nsync/nsync-1.26.0.ebuild | 23 +++
 3 files changed, 27 insertions(+)

diff --git a/dev-libs/nsync/Manifest b/dev-libs/nsync/Manifest
index 4779ea248761..1283218a6325 100644
--- a/dev-libs/nsync/Manifest
+++ b/dev-libs/nsync/Manifest
@@ -1,2 +1,3 @@
 DIST nsync-1.24.0.tar.gz 155132 BLAKE2B 
9a914b408faf8fff96a57fd3868c34aa96b4243ef2acd30dbdbe1fc90a1818d58ffc96bc6d016f5539c0e266fc1fb633952edba0a51b115904c9d6b06a35f7f8
 SHA512 
14dd582488072123a353c967664ed9a3f636865bb35e64d7256dcc809539129fa47c7979a4009fd45c9341cac537a4ca6b4b617ba2cae1d3995a7c251376339f
 DIST nsync-1.25.0.tar.gz 155250 BLAKE2B 
e30e9a72d999e589a1422014f81fbab29f61802b0ebeb9f08793d3a4d50fb5f66e404558cb7f46f2a2c499c1804cd013c12604038222121680988c85b7e186ff
 SHA512 
8e7a3b99237fb68bf3fd85490394e3fe2b73ff805b1bc885549856908599b98c86600c71888d19d9d36a56caa91cad176a1e9fc413686e5018cefe3908364c6b
+DIST nsync-1.26.0.tar.gz 155509 BLAKE2B 
5a445bcf44e29253f3fa8594f4921f59d3826fea01f11b4b7c4ba4b285b0344dd17be62c60dfd876e3a0d854307dfe40ed9c80de4f1da4c5b74a92f6a9a074b3
 SHA512 
8aa49997f100f161f0f32e99c9004ee845d7b16c1391e7eb62eea0897e2f91b7f9e5181055fdca637518751b6b26e16a1cd53e45adceda145285752c4b74f3bf

diff --git a/dev-libs/nsync/metadata.xml b/dev-libs/nsync/metadata.xml
index e85252a96df1..c987c5582dd3 100644
--- a/dev-libs/nsync/metadata.xml
+++ b/dev-libs/nsync/metadata.xml
@@ -5,4 +5,7 @@
perfin...@gentoo.org
        Jason Zaman

+   
+   google/nsync
+   
 

diff --git a/dev-libs/nsync/nsync-1.26.0.ebuild 
b/dev-libs/nsync/nsync-1.26.0.ebuild
new file mode 100644
index ..96bcbc528df3
--- /dev/null
+++ b/dev-libs/nsync/nsync-1.26.0.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="C library that exports various synchronization primitives, such 
as mutexes"
+HOMEPAGE="https://github.com/google/nsync";
+SRC_URI="https://github.com/google/nsync/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+src_configure() {
+   local mycmakeargs=(
+   -DNSYNC_ENABLE_TESTS=$(usex test)
+   )
+   cmake_src_configure
+}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/nsync/

2024-01-20 Thread Jason Zaman
commit: 853dcb847b0f5d2da47e5f5dbfe647d1e117b159
Author: Jason Zaman  gentoo  org>
AuthorDate: Sat Jan 20 20:54:23 2024 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Jan 20 20:57:02 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=853dcb84

dev-libs/nsync: drop 1.24.0-r1

Signed-off-by: Jason Zaman  gentoo.org>

 dev-libs/nsync/Manifest   |  1 -
 dev-libs/nsync/nsync-1.24.0-r1.ebuild | 23 ---
 2 files changed, 24 deletions(-)

diff --git a/dev-libs/nsync/Manifest b/dev-libs/nsync/Manifest
index 1283218a6325..64fd3e8bb3c6 100644
--- a/dev-libs/nsync/Manifest
+++ b/dev-libs/nsync/Manifest
@@ -1,3 +1,2 @@
-DIST nsync-1.24.0.tar.gz 155132 BLAKE2B 
9a914b408faf8fff96a57fd3868c34aa96b4243ef2acd30dbdbe1fc90a1818d58ffc96bc6d016f5539c0e266fc1fb633952edba0a51b115904c9d6b06a35f7f8
 SHA512 
14dd582488072123a353c967664ed9a3f636865bb35e64d7256dcc809539129fa47c7979a4009fd45c9341cac537a4ca6b4b617ba2cae1d3995a7c251376339f
 DIST nsync-1.25.0.tar.gz 155250 BLAKE2B 
e30e9a72d999e589a1422014f81fbab29f61802b0ebeb9f08793d3a4d50fb5f66e404558cb7f46f2a2c499c1804cd013c12604038222121680988c85b7e186ff
 SHA512 
8e7a3b99237fb68bf3fd85490394e3fe2b73ff805b1bc885549856908599b98c86600c71888d19d9d36a56caa91cad176a1e9fc413686e5018cefe3908364c6b
 DIST nsync-1.26.0.tar.gz 155509 BLAKE2B 
5a445bcf44e29253f3fa8594f4921f59d3826fea01f11b4b7c4ba4b285b0344dd17be62c60dfd876e3a0d854307dfe40ed9c80de4f1da4c5b74a92f6a9a074b3
 SHA512 
8aa49997f100f161f0f32e99c9004ee845d7b16c1391e7eb62eea0897e2f91b7f9e5181055fdca637518751b6b26e16a1cd53e45adceda145285752c4b74f3bf

diff --git a/dev-libs/nsync/nsync-1.24.0-r1.ebuild 
b/dev-libs/nsync/nsync-1.24.0-r1.ebuild
deleted file mode 100644
index b707bd898d59..
--- a/dev-libs/nsync/nsync-1.24.0-r1.ebuild
+++ /dev/null
@@ -1,23 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit cmake
-
-DESCRIPTION="C library that exports various synchronization primitives, such 
as mutexes"
-HOMEPAGE="https://github.com/google/nsync";
-SRC_URI="https://github.com/google/nsync/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-src_configure() {
-   local mycmakeargs=(
-   -DNSYNC_ENABLE_TESTS=$(usex test)
-   )
-   cmake_src_configure
-}



[gentoo-commits] repo/gentoo:master commit in: sci-libs/tensorflow-estimator/

2023-06-05 Thread Jason Zaman
commit: 6f665af97a2f0f2e1d29e8c6c157f78e8334e33b
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Jun  4 23:13:26 2023 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Mon Jun  5 16:37:13 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f665af9

sci-libs/tensorflow-estimator: add 2.12.0

Signed-off-by: Jason Zaman  gentoo.org>

 sci-libs/tensorflow-estimator/Manifest |  1 +
 .../tensorflow-estimator-2.12.0.ebuild | 75 ++
 2 files changed, 76 insertions(+)

diff --git a/sci-libs/tensorflow-estimator/Manifest 
b/sci-libs/tensorflow-estimator/Manifest
index c208fabb6300..f908a8805972 100644
--- a/sci-libs/tensorflow-estimator/Manifest
+++ b/sci-libs/tensorflow-estimator/Manifest
@@ -2,3 +2,4 @@ DIST 
bazelbuild-rules_cc-b1c40e1de81913a3c40e5948f78719c28152486d.zip 201360 BLA
 DIST bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip 9422 
BLAKE2B 
bbc45c97551ee8126335b611ffca6574dac843d4db9b3221b10d26487f8eecfe38ba0cd67a4039a3ad921c25fea6294c43e4f4e7a57a060a30791acd6c4f9d39
 SHA512 
ba06242feb711e7fb6e821fd9ac029248b4f3e466fb1acf971d0db8196f3efe4d114ef137acbe4913073f8cbe8ccab4d47d8bafa21b867b2d6a6d57f5a647f0c
 DIST tensorflow-estimator-2.10.tar.gz 655011 BLAKE2B 
465b405bfc5b776bc9722407f0d475b4ce8a520bded4b6f0db4c9fc771b9486a4ef08ae460f2e1c8c4be1d2882b942fff79f7f08a458eaa444f1bb44eb66e91c
 SHA512 
63cdc97d9abf3551a931372ab91e86b1cab761ea7476182ed82ac7c56884d315107b1873376385bcdfc531465c11fe0273aefe8b88e8b333d8e7b54e7d0a09eb
 DIST tensorflow-estimator-2.11.0-rc0.tar.gz 655514 BLAKE2B 
cc73f282a32f657bf507d948210aa981f0867c4898574c61fb5654204fa573ac7bdef16635d202ed3d202ccc9c8915f5613e4149ce6839d59281a38cfd6953f7
 SHA512 
c473a6db62a0a55f25f8fd5fd7ffb2f2a473261c5a7b3217bd1d8a21a02ab4871793ea57917c6eb9dc9012bd030faf8030702caf3f764983ce526d201866204f
+DIST tensorflow-estimator-2.12.0.tar.gz 656763 BLAKE2B 
a67c81487b7765f3195f7567b66455a4be390bff8d6dec751d054a26b654b1aac96982f6fa55d0488a8e6414e7d4b58d1ae59680a1c694615f82718c77478872
 SHA512 
d86bfde67c97988beeb5abc8042c1847c6d0081d54e21e35424d463895e95a5d0adc74d7d2bb006a617748da3b9a8bbb8979d6a842f024ab3a4d08a2e806147b

diff --git a/sci-libs/tensorflow-estimator/tensorflow-estimator-2.12.0.ebuild 
b/sci-libs/tensorflow-estimator/tensorflow-estimator-2.12.0.ebuild
new file mode 100644
index ..fbe71a0d54d6
--- /dev/null
+++ b/sci-libs/tensorflow-estimator/tensorflow-estimator-2.12.0.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_10 python3_11 )
+MY_PN="estimator"
+MY_PV=${PV/_rc/-rc}
+MY_P=${MY_PN}-${MY_PV}
+
+inherit bazel distutils-r1
+
+DESCRIPTION="A high-level TensorFlow API that greatly simplifies machine 
learning programming"
+HOMEPAGE="https://www.tensorflow.org/";
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+bazel_external_uris="
+   
https://github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip
 -> bazelbuild-rules_cc-b1c40e1de81913a3c40e5948f78719c28152486d.zip
+   
https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip
 -> bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip"
+
+SRC_URI="https://github.com/tensorflow/${MY_PN}/archive/v${MY_PV}.tar.gz -> 
${P}.tar.gz
+   ${bazel_external_uris}"
+
+RDEPEND="
+   sci-libs/tensorflow[python,${PYTHON_USEDEP}]
+   sci-libs/keras[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}"
+BDEPEND="
+   app-arch/unzip
+   dev-java/java-config
+   >=dev-util/bazel-5.3.0"
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS=( CONTRIBUTING.md README.md )
+
+src_unpack() {
+   unpack "${P}.tar.gz"
+   bazel_load_distfiles "${bazel_external_uris}"
+}
+
+src_prepare() {
+   bazel_setup_bazelrc
+   default
+   python_copy_sources
+}
+
+python_compile() {
+   pushd "${BUILD_DIR}" >/dev/null || die
+
+   ebazel build //tensorflow_estimator/tools/pip_package:build_pip_package
+   ebazel shutdown
+
+   local srcdir="${T}/src-${EPYTHON/./_}"
+   mkdir -p "${srcdir}" || die
+   bazel-bin/tensorflow_estimator/tools/pip_package/build_pip_package 
--src "${srcdir}" || die
+
+   popd >/dev/null || die
+}
+
+src_compile() {
+   export JAVA_HOME=$(java-config --jre-home)
+   distutils-r1_src_compile
+}
+
+python_install() {
+   pushd "${T}/src-${EPYTHON/./_}" >/dev/null || die
+   esetup.py install
+   python_optimize
+   popd >/dev/null || die
+}



[gentoo-commits] repo/gentoo:master commit in: sci-libs/tensorflow/

2023-06-05 Thread Jason Zaman
commit: 1c9f318a448295ef5218c3c54118f243faddd26b
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Jun  4 23:12:49 2023 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Mon Jun  5 16:37:11 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c9f318a

sci-libs/tensorflow: add 2.12.0

Signed-off-by: Jason Zaman  gentoo.org>

 sci-libs/tensorflow/Manifest |  17 ++
 sci-libs/tensorflow/tensorflow-2.12.0.ebuild | 422 +++
 2 files changed, 439 insertions(+)

diff --git a/sci-libs/tensorflow/Manifest b/sci-libs/tensorflow/Manifest
index 6a244654528d..27527617bdd3 100644
--- a/sci-libs/tensorflow/Manifest
+++ b/sci-libs/tensorflow/Manifest
@@ -3,6 +3,7 @@ DIST 
ARM_NEON_2_x86_SSE-a15b489e1222b2087007546b4912e21293ea86ff.tar.gz 103972 B
 DIST FP16-4dfe081cf6bcd15db339cf2680b9281b8451eeb3.zip 91462 BLAKE2B 
dc40d6129c009fc28b40d58b81b89e96a2deeeda3ea19c680b66073f02f955cc5dfc379d7843ec8aeed9fedeae6a70594b45752014526deee5c6226ec4b952e9
 SHA512 
15ae434977209a938739691eb91150556bac75a4a5449a9b4f135424f42beabd67ede4cf12c3a5594dea5028cc4aadaf989d0b42c2bb6f741db55ebd34717e24
 DIST FXdiv-63058eff77e11aa15bf531df5dd34395ec3017c8.zip 16646 BLAKE2B 
8f6ca6feee16cb57d9b4504e7615703c2c7ea86fa8ea3f814668478cc13b8cb3cb1429200359be5521ca11f77e1c3d575bd123d3ac03586faab88a131ac2
 SHA512 
6b4830a56137e226d51ba8166fe1a31c51256f1666cc0a683abfb154fbe313d415ce15e362756865a1dd91510cf581c619604b29e8a5288c328c85da57d53308
 DIST OouraFFT-v1.0.tar.gz 110531 BLAKE2B 
de0e280407e21118e2bc6ca93a7caf3c4a49d0a13eda018b1497f98851af73dda4cef56460dba310336c7ed958e34feef4784ca2575a13287dec2c1ac9a5af6d
 SHA512 
89c6e8fd57abf26351b3efb792008a1bbe62d404a4225dcae8aa666b3782a421be071bdc9760ebb0c95b5336ee5ea517d2fa43ab915045f7cf6fd76e73578079
+DIST XNNPACK-659147817805d17c7be2d60bd7bbca7e780f9c82.zip 20341886 BLAKE2B 
9aa37b3622e62e554b9021fca88f9f8d274989d4799d942c27a6d13ebb59409b130423a23f60f4e42042b8894457d8d691e17e3f2162c8e9d1f97bb1ae13
 SHA512 
13c87064ec57adb29320c4d061ce0ae6cdb42b5e7584fbb758e3703f7f0a96d47e618b7ef584bf10d5b11d3658c43c6822e3b13748b6e659a5820ef534652ebf
 DIST XNNPACK-6b409ac0a3090ebe74d0cdfb494c4cd91485ad39.zip 18406583 BLAKE2B 
ea038b5470aa806c960c07833bae30b304a1e5dd5beae392ec3e871315c7fee9c12103c50e89bec3a76bc69eb98d9bbc050bd9eb1339077edbdde758aa5123f9
 SHA512 
5d7fe170869c39bea8183b618158a8557a4e4ea13bd7cc8dff63ea2e70cc23f63f98e493473f6f105dfe58f0220c15472eb34fa5ceb0ba547131af90cd8d85c8
 DIST XNNPACK-e8f74a9763aa36559980a0c2f37f587794995622.zip 18756888 BLAKE2B 
0a1787166e8bbfda4aa6010075d92573112a21f3f9d3b1c13bc931fae6fa4cafb71685e4c57e86d7a662912bb6431c2d39a24378bf82361b50e5855d1b62f524
 SHA512 
a6802f0995742af0ca82de010cbd42da230b36cc884612d4ba2de20ba0ca56da6a11209bfb01ee1a5ddc31dc891a69438fa4836ec9d62d56e32c6aa144c6e7aa
 DIST apple_support.0.12.1.tar.gz 26708 BLAKE2B 
ed14e5d3b93797d6ecbf2dfe2cbba32c4e6468ece25b0d8e5f07c02f4218a988cb8b963db4e4a98c70f6586b12eb77a46f1dec832256fb0a4b54cc9b87524e61
 SHA512 
b4d3850787c0aa43fb4443dc306642b8db1ed8423ca7a4bd56e9cc27b4b3254e2c4efbf86126e5352e4d4b1a1fe93cb8662614daafce48263e6f239ecb721d54
@@ -12,12 +13,15 @@ DIST bazel-skylib-1.3.0.tar.gz 36103 BLAKE2B 
a58142b9d2a5da9f137705105aa735c8489
 DIST bazel-toolchains-8c717f8258cd5f6c7a45b97d974292755852b658.tar.gz 80728 
BLAKE2B 
340a295d8998d01eba6bdd3a97efae869c5dde93dee9bd9266af8ad92a00a5c84cafbc6dd1f5d20f78dfdaa59f7585cefc7af4b87df712489db7f76bfa1d5210
 SHA512 
cf391a756d2520c65423f991bd0afdf3aed1785b91481c55c5d3182e54b137fc7922fd179e758af2868e11f9f10ce9903409015a2fb0f18e67d14a3b073c6d72
 DIST bazel-toolchains-ea243d43269df23de03a797cff2347e1fc3d02bb.tar.gz 80704 
BLAKE2B 
baf17ce1384b10d9bced2c67a3215bb8b515e8ac7bc09c98ba76395a53d02a93e520f736ebadbd8dd7ae46584089d6279f8877381442177e3bdab3afee7cd607
 SHA512 
2e08f3acf7f09dc9b9b9425f6dcb6fb9c241a38f2abd55899a49763321aba81fdfcd3722861682493b3c4b086788c3d2f14995d424bfcc59f6207c12869fd872
 DIST bazelbuild-platforms-0.0.5.tar.gz 5399 BLAKE2B 
d53aa2dbbd526d15aef24914053a5fa7c7402e1201d94a603c8148281a933292e4815f01aae7f7f166d5325f40b14d2810d6d8e03e0780329c25299c3d8ebffe
 SHA512 
332d5954c349a7d0b801d6338bc42193a730e8ba6c75866ccef17c5053f8f29e1d185cd33a73fe5758e96e57de0c2631974f45d18bdd58c825f9a5fc231ad8b6
+DIST bazelbuild-platforms-0.0.6.tar.gz 5537 BLAKE2B 
0712516f5ea0683054c1127a173a6af933278130c36eb0bf96cbc7a30050f551608bc2ea5451aec2d4b91dc117e16b21a78a1cc289064ac4ffd2adfb698208fe
 SHA512 
372a722ebe04a1f13c348d37e3994450647762f3366bb6982ed6c6b4703684bc7960643cab2f6b51d5112086c7864f4d6b1c586de275c2353dbf1c9ed1a3e5d0
 DIST bazelbuild-rules_android-v0.1.1.zip 14654 BLAKE2B 
1cfd5af08c6eab9602883f62d85ef1b9eb02383f73dcc31ae84af880c9ba228ae349ac6b017c550286e248347193e2c56eba30c86174432429809447dd940ed2
 SHA512 
80628a5e2ca9806ab031cd0c2f2999bd67f5621a83e8300a51fe6233373bdaf7c90ff8fa9551c81e60fc904c4d7b24554327ac8ed2ee101e92c4ab9319c53f4a
 DIST bazelbuild

[gentoo-commits] repo/gentoo:master commit in: sci-libs/keras/files/, sci-libs/keras/

2023-06-05 Thread Jason Zaman
commit: c3ab7903a10d70d277e588dd1d5f7811233582f4
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Jun  4 23:13:10 2023 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Mon Jun  5 16:37:12 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3ab7903

sci-libs/keras: add 2.12.0

Signed-off-by: Jason Zaman  gentoo.org>

 sci-libs/keras/Manifest|   1 +
 ...ras-2.12.0-0001-bazel-Use-system-protobuf.patch | 330 +
 sci-libs/keras/keras-2.12.0.ebuild |  85 ++
 3 files changed, 416 insertions(+)

diff --git a/sci-libs/keras/Manifest b/sci-libs/keras/Manifest
index 495367cc87b0..d5c590e7cbd2 100644
--- a/sci-libs/keras/Manifest
+++ b/sci-libs/keras/Manifest
@@ -2,3 +2,4 @@ DIST 
bazelbuild-rules_cc-b1c40e1de81913a3c40e5948f78719c28152486d.zip 201360 BLA
 DIST bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip 9422 
BLAKE2B 
bbc45c97551ee8126335b611ffca6574dac843d4db9b3221b10d26487f8eecfe38ba0cd67a4039a3ad921c25fea6294c43e4f4e7a57a060a30791acd6c4f9d39
 SHA512 
ba06242feb711e7fb6e821fd9ac029248b4f3e466fb1acf971d0db8196f3efe4d114ef137acbe4913073f8cbe8ccab4d47d8bafa21b867b2d6a6d57f5a647f0c
 DIST keras-2.10.0.tar.gz 2250425 BLAKE2B 
eb05537739cdc81e279b5c400e2e2b77d46f4085e8530fef565bde12414ddccedb44c0b13265106a3353e67c367106e1d341412dc25b32e2221f144a31d76079
 SHA512 
8682110495a045c2ebc61f31a98d646b88fd9608d5169be78701cf528457ff0d2e39669d885854c14c1e6bebb380b14968957f2a8a34a8a023f8860efc7aeecd
 DIST keras-2.11.0.tar.gz 2260857 BLAKE2B 
9c85e0f64176848886509fbf269b85732f8ad98e7be3ec186e71870e453454b9b81516ef2ca4e67fb8906bc0ca1241d61ae94db6b58c7483527d33519f7c38fb
 SHA512 
17c773e1f9c592676d56a8b3eed707d52240800b33e85db80f206e8459c8c18485f0bcb6d5775ce1ef0625dc5ebe699574b8599dd98dbb73620da4301968
+DIST keras-2.12.0.tar.gz 2319287 BLAKE2B 
332b2b02eecac2da7c87c1f051c56d495027630e2e0254d543897e462f7f44a282bff6cf3cbe2602663cae2e2c76ab45c9b3b53cadbc3317b3e2dd366bdf7ace
 SHA512 
10d034abc9b159a0945610dcfb2fc58d8143267629b8f59496b4e5f097b1220bdb02a269f135f05b8abed56c2d5237b3e0c2b74882cd3f321850fc7f47694dbb

diff --git 
a/sci-libs/keras/files/keras-2.12.0-0001-bazel-Use-system-protobuf.patch 
b/sci-libs/keras/files/keras-2.12.0-0001-bazel-Use-system-protobuf.patch
new file mode 100644
index ..6870d534cf75
--- /dev/null
+++ b/sci-libs/keras/files/keras-2.12.0-0001-bazel-Use-system-protobuf.patch
@@ -0,0 +1,330 @@
+From ac16152a7709f90c1dedac63157655c836c257bb Mon Sep 17 00:00:00 2001
+From: Jason Zaman 
+Date: Sun, 14 Nov 2021 17:59:39 -0800
+Subject: [PATCH] bazel: Use system protobuf
+
+---
+ WORKSPACE|  52 --
+ keras/protobuf/BUILD |   2 +-
+ third_party/BUILD|   8 +-
+ third_party/protobuf.bzl | 216 +++
+ 4 files changed, 224 insertions(+), 54 deletions(-)
+ create mode 100644 third_party/protobuf.bzl
+
+diff --git a/WORKSPACE b/WORKSPACE
+index c0ebc4e52..61282aead 100644
+--- a/WORKSPACE
 b/WORKSPACE
+@@ -1,53 +1 @@
+ workspace(name = "org_keras")
+-
+-load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
+-
+-# Needed by protobuf
+-load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
+-http_archive(
+-name = "bazel_skylib",
+-urls = [
+-
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz";,
+-
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz";,
+-],
+-sha256 = 
"74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506",
+-)
+-load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
+-bazel_skylib_workspace()
+-
+-# Needed by protobuf
+-http_archive(
+-name = "six_archive",
+-build_file = "//third_party:six.BUILD",
+-sha256 = 
"1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926",
+-strip_prefix = "six-1.16.0",
+-urls = 
["https://pypi.python.org/packages/source/s/six/six-1.16.0.tar.gz";],
+-)
+-
+-bind(
+-name = "six",
+-actual = "@six_archive//:six",
+-)
+-
+-http_archive(
+-name = "com_google_protobuf",
+-sha256 = 
"f66073dee0bc159157b0bd7f502d7d1ee0bc76b3c1eac9836927511bdc4b3fc1",
+-strip_prefix = "protobuf-3.21.9",
+-urls = 
["https://github.com/protocolbuffers/protobuf/archive/v3.21.9.zip";],
+-)
+-
+-# ZLIB. Need by com_google_protobuf.
+-http_archive(
+-name = "zlib",
+-build_file = "@com_google_protobuf//:third_party/zlib.BUILD",
+-sha256 = 
"b3a24de97a8fdbc835b9833169501030b8977031bcb54b3b3ac13740f846ab30",
+-strip_prefix = "zlib-1.2.13",
+-urls = [
+-  
"https://storage.

[gentoo-commits] repo/gentoo:master commit in: sci-visualization/tensorboard/

2023-06-05 Thread Jason Zaman
commit: afa3949deabbf99a4a1df351f660a4cc1345735d
Author: Jason Zaman  gentoo  org>
AuthorDate: Sun Jun  4 23:13:47 2023 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Mon Jun  5 16:37:14 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afa3949d

sci-visualization/tensorboard: add 2.12.0

Signed-off-by: Jason Zaman  gentoo.org>

 sci-visualization/tensorboard/Manifest |  1 +
 .../tensorboard/tensorboard-2.12.0.ebuild  | 72 ++
 2 files changed, 73 insertions(+)

diff --git a/sci-visualization/tensorboard/Manifest 
b/sci-visualization/tensorboard/Manifest
index d38029880fbe..520d06a75624 100644
--- a/sci-visualization/tensorboard/Manifest
+++ b/sci-visualization/tensorboard/Manifest
@@ -1,2 +1,3 @@
 DIST tensorboard-2.10.0.zip 5873469 BLAKE2B 
b03a804682275abd83482e6dc8e62bef4301d796ef5bd2b02bed8d15ab16ff4bd19f1b9e3488e12ea6c03e1b7a85fd69a6a226f0a5378da2067c661b7f1f2f7e
 SHA512 
04da20089d7e24e2c519da24bb8ad32f622386799e28403e036d40c29bc99011cc374480176776b0801df0e37eb2b0e93a987d2a97cd7406eabb75bfd649a311
 DIST tensorboard-2.11.0-py3-none-any.whl.zip 5990351 BLAKE2B 
d6796fceb047abc69c84c8f30ce6b5e0739a376e110fb7e2bb78ee5b6c7dd8d1344546950d46dbdc3a47780f4ad685be186087286225dbeb9ebce558f0837d8c
 SHA512 
f1b908e13a56a86f6618ae8bf596339243642d0f00793d326ac884fd8e736bb316331728b474022936570fb6202b323d8ba2bf4908619aa1f79411b904edf209
+DIST tensorboard-2.12.0-py3-none-any.whl.zip 5638388 BLAKE2B 
617c76fa49b2aa647d7f099d8dbc7d53449e3024981f2f5858c1eff44b6a3c9369169579436562373fd2f44222e506b54d10083292352b70c400f16dcfaf1dec
 SHA512 
d7eaeeb68adf1ad121bffd15f5147564af78ee74b7f2f251f6111bc94973b4ee7c952de51eab4608126a230b4709af5c67944608f4c5c73918af82945abc63e3

diff --git a/sci-visualization/tensorboard/tensorboard-2.12.0.ebuild 
b/sci-visualization/tensorboard/tensorboard-2.12.0.ebuild
new file mode 100644
index ..c85363899451
--- /dev/null
+++ b/sci-visualization/tensorboard/tensorboard-2.12.0.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_10 python3_11 )
+inherit python-r1 pypi
+
+DESCRIPTION="TensorFlow's Visualization Toolkit"
+HOMEPAGE="https://www.tensorflow.org/";
+SRC_URI="$(pypi_wheel_url --unpack)"
+S=${WORKDIR}
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+RDEPEND="
+   ${PYTHON_DEPS}
+   dev-python/bleach[${PYTHON_USEDEP}]
+   >=dev-python/google-auth-1.6.3[${PYTHON_USEDEP}]
+   >=dev-python/google-auth-oauthlib-0.4.1[${PYTHON_USEDEP}]
+   dev-python/grpcio[${PYTHON_USEDEP}]
+   dev-python/html5lib[${PYTHON_USEDEP}]
+   dev-python/markdown[${PYTHON_USEDEP}]
+   dev-python/numpy[${PYTHON_USEDEP}]
+   dev-python/protobuf-python[${PYTHON_USEDEP}]
+   dev-python/six[${PYTHON_USEDEP}]
+   >=dev-python/setuptools-41[${PYTHON_USEDEP}]
+   dev-python/werkzeug[${PYTHON_USEDEP}]
+   dev-python/wheel[${PYTHON_USEDEP}]
+   >=dev-python/scipy-1.4.1[${PYTHON_USEDEP}]
+"
+BDEPEND="
+   app-arch/unzip
+   ${PYTHON_DEPS}
+"
+PDEPEND="
+   sci-libs/tensorflow[python,${PYTHON_USEDEP}]
+"
+
+src_prepare() {
+   eapply_user
+
+   sed -i -e '/_vendor.__init__/d' -e '/_vendor.bleach/d' -e 
'/_vendor.html5lib/d' -e '/_vendor.webencodings/d' \
+   "${S}/${P}.dist-info/RECORD" || die "failed to unvendor"
+   grep -q "_vendor" "${S}/${P}.dist-info/RECORD" && die "More vendored 
deps found"
+
+   find "${S}/${PN}" -name '*.py' -exec sed -i \
+   -e 's/^from tensorboard\._vendor import /import /' \
+   -e 's/^from tensorboard\._vendor\./from /' \
+   {} + || die "failed to unvendor"
+
+   rm -rf "${S}/${PN}/_vendor" || die
+
+   sed -i -e '/tensorboard-plugin-/d' "${S}/${P}.dist-info/METADATA" || 
die "failed to remove plugin deps"
+   sed -i -e '/tensorboard-data-server/d' "${S}/${P}.dist-info/METADATA" 
|| die "failed to remove data-server deps"
+   sed -i -e 's/google-auth-oauthlib.*$/google-auth-oauthlib/' 
"${S}/${P}.dist-info/METADATA" \
+   || die "failed to relax oauth deps"
+   sed -i -e 's/protobuf.*$/protobuf/' "${S}/${P}.dist-info/METADATA" \
+   || die "failed to relax protobuf deps"
+}
+
+src_install() {
+   do_install() {
+   python_domodule "${PN}"
+   python_domodule "${P}.dist-info"
+   }
+   python_foreach_impl do_install
+}



[gentoo-commits] repo/gentoo:master commit in: dev-util/bazel/

2023-05-21 Thread Jason Zaman
commit: fff6e7099ea6a9cf790d54fcd5aef3105111ab97
Author: Tomas Fabrizio Orsi  fi  uba  ar>
AuthorDate: Thu May 11 18:30:39 2023 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sun May 21 19:32:37 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fff6e709

dev-util/bazel: version bump

Closes: https://bugs.gentoo.org/906160
Closes: https://github.com/gentoo/gentoo/pull/31001
Bug: https://bugs.gentoo.org/906065

Signed-off-by: Tomas Fabrizio Orsi  fi.uba.ar>
Signed-off-by: Jason Zaman  gentoo.org>

 dev-util/bazel/Manifest   |  1 +
 dev-util/bazel/bazel-6.2.0.ebuild | 96 +++
 2 files changed, 97 insertions(+)

diff --git a/dev-util/bazel/Manifest b/dev-util/bazel/Manifest
index 1a96cdd89dff..a1316accb541 100644
--- a/dev-util/bazel/Manifest
+++ b/dev-util/bazel/Manifest
@@ -3,3 +3,4 @@ DIST bazel-4.2.2-dist.zip 279304631 BLAKE2B 
2a32838e50b63c4b6400aced10085c6c9aac
 DIST bazel-5.0.0-dist.zip 235894565 BLAKE2B 
3798eb9111772809f0345e0c74bef38d8f9d44a7f20844f20aad187a2e177f4999ffa0e1cc1719e4284cdc7c72295bb903d32ce56821c72ee2908f4d939d0769
 SHA512 
2a9a972d1cce6b50f959fec3d37506914208169c8aa36e5ec5f9a27942e9beff1080a544a18e9bd5eb13dc434c1864cda0594e6da5b78c2f41085abf808c22d7
 DIST bazel-5.1.1-dist.zip 236073335 BLAKE2B 
dacc98db99a4877bcda743058f8d34c276d893bec14a595155587f9d0a2716caf106e1d08917f8103b9c15c45433285cce2063f15a2653d3d1a4a6b67242876f
 SHA512 
84e2f72df1838fc88a39853afc510bca835fea28590e9aac2138b5416d2f8d9aefd082c81012a2066194fdc440b00b44f9f188b5c896461acebfeb9cd40efc7c
 DIST bazel-5.3.0-dist.zip 235314819 BLAKE2B 
771a940e083d569b0297d37877e6d52c16f698bc5141e2c9c895d5d6cdd9e93203fbc941eca7daa4b40026551c25a5bf45d0862b8b13993bc40434aa6bb99dd3
 SHA512 
6c98e904596764a309e98ea2453c751dc0bf27c683462c5654b72076f8537bccf6c5103ccea60fa3a3dffeaa76b07db80a594feb96ed566282d10bb04f0e1455
+DIST bazel-6.2.0-dist.zip 196992916 BLAKE2B 
9516deae60f4193e68687909e3dff0539030d55ee220973890c41c82bb390f04327411fc2a4f0f6782279ae3c2d127498283a86ecc86c2fcdf424b3bd10bad93
 SHA512 
c2ff9cafd07553bf7e6f4ed2b561bd217f5ec6dda173269cc5a1885f5ec2fea09855cc09f63b62e653135b9babbedbf280e928bf0f3a1404b7066ba5bbecf18f

diff --git a/dev-util/bazel/bazel-6.2.0.ebuild 
b/dev-util/bazel/bazel-6.2.0.ebuild
new file mode 100644
index ..36ee3e954ac0
--- /dev/null
+++ b/dev-util/bazel/bazel-6.2.0.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit bash-completion-r1 bazel java-pkg-2 multiprocessing
+
+DESCRIPTION="Fast and correct automated build system"
+HOMEPAGE="https://bazel.build/";
+
+SRC_URI="https://github.com/bazelbuild/bazel/releases/download/${PV}/${P}-dist.zip";
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="examples tools"
+# strip corrupts the bazel binary
+# test fails with network-sandbox: An error occurred during the fetch of 
repository 'io_bazel_skydoc' (bug 690794)
+RESTRICT="strip test"
+RDEPEND=">=virtual/jre-11:*"
+DEPEND="
+   virtual/jdk:11
+   app-arch/unzip
+   app-arch/zip"
+
+S="${WORKDIR}"
+
+pkg_setup() {
+   if has ccache ${FEATURES}; then
+   ewarn "${PN} usually fails to compile with ccache, you have 
been warned"
+   fi
+   java-pkg-2_pkg_setup
+}
+
+src_unpack() {
+   # Only unpack the main distfile
+   unpack ${P}-dist.zip
+}
+
+src_prepare() {
+   default
+
+   # F: fopen_wr
+   # S: deny
+   # P: /proc/self/setgroups
+   # A: /proc/self/setgroups
+   # R: /proc/24939/setgroups
+   # C: /usr/lib/systemd/systemd
+   addpredict /proc
+}
+
+src_compile() {
+   export JAVA_HOME=$(java-config --jre-home) # so keepwork works
+   export EXTRA_BAZEL_ARGS="--jobs=$(makeopts_jobs) $(bazel_get_flags)
+   --java_runtime_version=local_jdk
+   --tool_java_runtime_version=local_jdk"
+   VERBOSE=yes ./compile.sh || die "Failed compiling bazel"
+
+   ./scripts/generate_bash_completion.sh \
+   --bazel=output/bazel \
+   --output=bazel-complete.bash \
+   --prepend=scripts/bazel-complete-header.bash \
+   --prepend=scripts/bazel-complete-template.bash || die "Failed 
to generate bash completions"
+}
+
+src_test() {
+   output/bazel test \
+   --verbose_failures \
+   --spawn_strategy=standalone \
+   --genrule_strategy=standalone \
+   --verbose_test_summary \
+   examples/cpp:hello-success_test || die
+   output/bazel shutdown
+}
+
+src_install() {
+   dobin output/bazel
+   newbashcomp bazel-complete.bash ${PN}
+   bashcomp_alias ${PN} ibazel
+   insinto /usr/share/zsh/site-functions
+   do

[gentoo-commits] repo/gentoo:master commit in: sci-libs/keras/files/, sci-libs/keras/

2022-11-25 Thread Jason Zaman
commit: b8be5a0b368e0cef3e7dbf0a59cee2b8c314fa50
Author: Jason Zaman  gentoo  org>
AuthorDate: Tue Nov 22 22:03:33 2022 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Fri Nov 25 18:22:03 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8be5a0b

sci-libs/keras: add 2.11.0

Signed-off-by: Jason Zaman  gentoo.org>

 sci-libs/keras/Manifest|   1 +
 ...ras-2.11.0-0001-bazel-Use-system-protobuf.patch | 330 +
 sci-libs/keras/keras-2.11.0.ebuild |  85 ++
 3 files changed, 416 insertions(+)

diff --git a/sci-libs/keras/Manifest b/sci-libs/keras/Manifest
index 3ac4fb7500a7..495367cc87b0 100644
--- a/sci-libs/keras/Manifest
+++ b/sci-libs/keras/Manifest
@@ -1,3 +1,4 @@
 DIST bazelbuild-rules_cc-b1c40e1de81913a3c40e5948f78719c28152486d.zip 201360 
BLAKE2B 
0173a8edb17f344b18e42026e2f8a62a1909d4694ab0be83562b6437a3f1ef38889f069269ddd2308b41062e5f375f791be0d2631a8e52ede668203779813b56
 SHA512 
2ba1dc316d88947c1d17ec67154c052700e3571b8d03370a9f204cf9fe94a1bd58f93a2c4a3c0b02233ee3250053a4c30a4133b5b38745858c1d04be8c9d973f
 DIST bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip 9422 
BLAKE2B 
bbc45c97551ee8126335b611ffca6574dac843d4db9b3221b10d26487f8eecfe38ba0cd67a4039a3ad921c25fea6294c43e4f4e7a57a060a30791acd6c4f9d39
 SHA512 
ba06242feb711e7fb6e821fd9ac029248b4f3e466fb1acf971d0db8196f3efe4d114ef137acbe4913073f8cbe8ccab4d47d8bafa21b867b2d6a6d57f5a647f0c
 DIST keras-2.10.0.tar.gz 2250425 BLAKE2B 
eb05537739cdc81e279b5c400e2e2b77d46f4085e8530fef565bde12414ddccedb44c0b13265106a3353e67c367106e1d341412dc25b32e2221f144a31d76079
 SHA512 
8682110495a045c2ebc61f31a98d646b88fd9608d5169be78701cf528457ff0d2e39669d885854c14c1e6bebb380b14968957f2a8a34a8a023f8860efc7aeecd
+DIST keras-2.11.0.tar.gz 2260857 BLAKE2B 
9c85e0f64176848886509fbf269b85732f8ad98e7be3ec186e71870e453454b9b81516ef2ca4e67fb8906bc0ca1241d61ae94db6b58c7483527d33519f7c38fb
 SHA512 
17c773e1f9c592676d56a8b3eed707d52240800b33e85db80f206e8459c8c18485f0bcb6d5775ce1ef0625dc5ebe699574b8599dd98dbb73620da4301968

diff --git 
a/sci-libs/keras/files/keras-2.11.0-0001-bazel-Use-system-protobuf.patch 
b/sci-libs/keras/files/keras-2.11.0-0001-bazel-Use-system-protobuf.patch
new file mode 100644
index ..9d8f645970d2
--- /dev/null
+++ b/sci-libs/keras/files/keras-2.11.0-0001-bazel-Use-system-protobuf.patch
@@ -0,0 +1,330 @@
+From 439f4ece698f90796b42d8627a52deccce8efc97 Mon Sep 17 00:00:00 2001
+From: Jason Zaman 
+Date: Sun, 14 Nov 2021 17:59:39 -0800
+Subject: [PATCH] bazel: Use system protobuf
+
+---
+ WORKSPACE|  52 --
+ keras/protobuf/BUILD |   2 +-
+ third_party/BUILD|   8 +-
+ third_party/protobuf.bzl | 216 +++
+ 4 files changed, 224 insertions(+), 54 deletions(-)
+ create mode 100644 third_party/protobuf.bzl
+
+diff --git a/WORKSPACE b/WORKSPACE
+index e7d7c8f5..61282aea 100644
+--- a/WORKSPACE
 b/WORKSPACE
+@@ -1,53 +1 @@
+ workspace(name = "org_keras")
+-
+-load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
+-
+-# Needed by protobuf
+-load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
+-http_archive(
+-name = "bazel_skylib",
+-url = 
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.1/bazel-skylib-1.0.1.tar.gz";,
+-sha256 = 
"f1c8360c01fcf276778d3519394805dc2a71a64274a3a0908bc9edff7b5aebc8",
+-)
+-load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
+-bazel_skylib_workspace()
+-
+-# Needed by protobuf
+-http_archive(
+-name = "six_archive",
+-build_file = "//third_party:six.BUILD",
+-sha256 = 
"d16a0141ec1a18405cd4ce8b4613101da75da0e9a7aec5bdd4fa804d0e0eba73",
+-strip_prefix = "six-1.12.0",
+-urls = [
+-
"http://mirror.bazel.build/pypi.python.org/packages/source/s/six/six-1.12.0.tar.gz";,
+-"https://pypi.python.org/packages/source/s/six/six-1.12.0.tar.gz";,  # 
2018-12-10
+-],
+-)
+-
+-bind(
+-name = "six",
+-actual = "@six_archive//:six",
+-)
+-
+-http_archive(
+-name = "com_google_protobuf",
+-sha256 = 
"1fbf1c2962af287607232b2eddeaec9b4f4a7a6f5934e1a9276e9af76952f7e0",
+-strip_prefix = "protobuf-3.9.2",
+-urls = 
["https://github.com/protocolbuffers/protobuf/archive/v3.9.2.tar.gz";],
+-)
+-
+-# ZLIB. Need by com_google_protobuf.
+-http_archive(
+-name = "zlib",
+-build_file = "@com_google_protobuf//:third_party/zlib.BUILD",
+-sha256 = 
"b3a24de97a8fdbc835b9833169501030b8977031bcb54b3b3ac13740f846ab30",
+-strip_prefix = "zlib-1.2.13",
+-urls = [
+-  
"https://storage.googleapis.com/mirror.tensorflow.org/zlib.net/zlib-1

[gentoo-commits] repo/gentoo:master commit in: sci-libs/tensorflow/

2022-11-25 Thread Jason Zaman
commit: 81f5198c799120202649632fc6862978c18f5156
Author: Jason Zaman  gentoo  org>
AuthorDate: Tue Nov 22 22:04:01 2022 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Fri Nov 25 18:22:04 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81f5198c

sci-libs/tensorflow: add 2.11.0

Signed-off-by: Jason Zaman  gentoo.org>

 sci-libs/tensorflow/Manifest |  16 +
 sci-libs/tensorflow/tensorflow-2.11.0.ebuild | 419 +++
 2 files changed, 435 insertions(+)

diff --git a/sci-libs/tensorflow/Manifest b/sci-libs/tensorflow/Manifest
index 595a250685e3..6a244654528d 100644
--- a/sci-libs/tensorflow/Manifest
+++ b/sci-libs/tensorflow/Manifest
@@ -1,10 +1,15 @@
 DIST ARM_NEON_2_x86_SSE-1200fe90bb174a6224a525ee60148671a786a71f.tar.gz 100612 
BLAKE2B 
84f81072d3298dde613b4c1ebabf852c67e04b5882a4ca0ed6f218b42e8fa3ea9598140b0c0009e8d6b62d08902622a6d57ee005ec3ad8a808c9fb21aa53430c
 SHA512 
03a289d8099a5c4a5298cba8f516d2edb41220935d8db750970113ca7513372c78241c2c948d0ffcd60e84686e50ba1d7fd0b46efea6881dd320435eca92a7b9
+DIST ARM_NEON_2_x86_SSE-a15b489e1222b2087007546b4912e21293ea86ff.tar.gz 103972 
BLAKE2B 
77d843aae7d471f7bb916caa40f66ec66322c11bab18ac338360c1a1faeb51a54fb394a35bee7ad3095ba34835e51441416d0c09ecc627769d9181678494eada
 SHA512 
1d9a4192baf05be8cd36ffa55b9bf97e09ab6f714b303bd2ca7b16bbffbb661475c11b130437cafe234fce66d046d7b041f7daf9c25263c5921584412a5c1c12
 DIST FP16-4dfe081cf6bcd15db339cf2680b9281b8451eeb3.zip 91462 BLAKE2B 
dc40d6129c009fc28b40d58b81b89e96a2deeeda3ea19c680b66073f02f955cc5dfc379d7843ec8aeed9fedeae6a70594b45752014526deee5c6226ec4b952e9
 SHA512 
15ae434977209a938739691eb91150556bac75a4a5449a9b4f135424f42beabd67ede4cf12c3a5594dea5028cc4aadaf989d0b42c2bb6f741db55ebd34717e24
 DIST FXdiv-63058eff77e11aa15bf531df5dd34395ec3017c8.zip 16646 BLAKE2B 
8f6ca6feee16cb57d9b4504e7615703c2c7ea86fa8ea3f814668478cc13b8cb3cb1429200359be5521ca11f77e1c3d575bd123d3ac03586faab88a131ac2
 SHA512 
6b4830a56137e226d51ba8166fe1a31c51256f1666cc0a683abfb154fbe313d415ce15e362756865a1dd91510cf581c619604b29e8a5288c328c85da57d53308
 DIST OouraFFT-v1.0.tar.gz 110531 BLAKE2B 
de0e280407e21118e2bc6ca93a7caf3c4a49d0a13eda018b1497f98851af73dda4cef56460dba310336c7ed958e34feef4784ca2575a13287dec2c1ac9a5af6d
 SHA512 
89c6e8fd57abf26351b3efb792008a1bbe62d404a4225dcae8aa666b3782a421be071bdc9760ebb0c95b5336ee5ea517d2fa43ab915045f7cf6fd76e73578079
 DIST XNNPACK-6b409ac0a3090ebe74d0cdfb494c4cd91485ad39.zip 18406583 BLAKE2B 
ea038b5470aa806c960c07833bae30b304a1e5dd5beae392ec3e871315c7fee9c12103c50e89bec3a76bc69eb98d9bbc050bd9eb1339077edbdde758aa5123f9
 SHA512 
5d7fe170869c39bea8183b618158a8557a4e4ea13bd7cc8dff63ea2e70cc23f63f98e493473f6f105dfe58f0220c15472eb34fa5ceb0ba547131af90cd8d85c8
+DIST XNNPACK-e8f74a9763aa36559980a0c2f37f587794995622.zip 18756888 BLAKE2B 
0a1787166e8bbfda4aa6010075d92573112a21f3f9d3b1c13bc931fae6fa4cafb71685e4c57e86d7a662912bb6431c2d39a24378bf82361b50e5855d1b62f524
 SHA512 
a6802f0995742af0ca82de010cbd42da230b36cc884612d4ba2de20ba0ca56da6a11209bfb01ee1a5ddc31dc891a69438fa4836ec9d62d56e32c6aa144c6e7aa
 DIST apple_support.0.12.1.tar.gz 26708 BLAKE2B 
ed14e5d3b93797d6ecbf2dfe2cbba32c4e6468ece25b0d8e5f07c02f4218a988cb8b963db4e4a98c70f6586b12eb77a46f1dec832256fb0a4b54cc9b87524e61
 SHA512 
b4d3850787c0aa43fb4443dc306642b8db1ed8423ca7a4bd56e9cc27b4b3254e2c4efbf86126e5352e4d4b1a1fe93cb8662614daafce48263e6f239ecb721d54
+DIST apple_support.1.1.0.tar.gz 27105 BLAKE2B 
6982ed0188760caeb6951dd28d211449d37a3192fa75e22f5ea86b599a5a92bf8efcfe5a549146533b725aa0fd41584c4d12db3fab41ffbcbca60f657e9590f5
 SHA512 
db291209ab9a54238b244e02abbca749a695ca3b9b9dc2e207227d3ea32f13144f3236fa921df4c6ba954850635db56584582d8916bdf4c90a2adc55dc90cd3a
 DIST bazel-skylib-1.2.1.tar.gz 32000 BLAKE2B 
fc21b333689ff4da164540b6dde18809247f032a387da49ace5d1ddfce6dc83497f5fe1c9f91633c55b2afbe8f7517f8bcb05a7de8fd6208ea224c6827791fdd
 SHA512 
b2c8e2b71d67de4fb6af34c672c8380ad295acbc788e3dd0a62b3dbfabe7d0254c67a6afcc13957509033b692ec82a21fbfce31b5b936e643e9c0ca694e411f5
+DIST bazel-skylib-1.3.0.tar.gz 36103 BLAKE2B 
a58142b9d2a5da9f137705105aa735c8489519989ca7e633968114309f23074a56cd03b5fed70e284da63751d666904c2573940ad9a0feb2be689d695f0f07ae
 SHA512 
ab3a0b465ebbfe07c139b92f1e8b2c0bcede66d6366d184891e3c0ccd6619164bc299777e7d7236cb463834b98426f6fb6890409e0ce94b75446dbd85854944f
+DIST bazel-toolchains-8c717f8258cd5f6c7a45b97d974292755852b658.tar.gz 80728 
BLAKE2B 
340a295d8998d01eba6bdd3a97efae869c5dde93dee9bd9266af8ad92a00a5c84cafbc6dd1f5d20f78dfdaa59f7585cefc7af4b87df712489db7f76bfa1d5210
 SHA512 
cf391a756d2520c65423f991bd0afdf3aed1785b91481c55c5d3182e54b137fc7922fd179e758af2868e11f9f10ce9903409015a2fb0f18e67d14a3b073c6d72
 DIST bazel-toolchains-ea243d43269df23de03a797cff2347e1fc3d02bb.tar.gz 80704 
BLAKE2B 
baf17ce1384b10d9bced2c67a3215bb8b515e8ac7bc09c98ba76395a53d02a93e520f736ebadbd8dd7ae46584089d6279f8877381442177e3bdab3afee7cd60

[gentoo-commits] repo/gentoo:master commit in: sci-visualization/tensorboard/

2022-11-25 Thread Jason Zaman
commit: 103c963ca6967f41134f66269f53d94169e9fd3c
Author: Jason Zaman  gentoo  org>
AuthorDate: Tue Nov 22 21:58:25 2022 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Fri Nov 25 18:22:01 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=103c963c

sci-visualization/tensorboard: add 2.11.0

Signed-off-by: Jason Zaman  gentoo.org>

 sci-visualization/tensorboard/Manifest |  1 +
 .../tensorboard/tensorboard-2.11.0.ebuild  | 68 ++
 2 files changed, 69 insertions(+)

diff --git a/sci-visualization/tensorboard/Manifest 
b/sci-visualization/tensorboard/Manifest
index 472537c49964..5562b5598f8d 100644
--- a/sci-visualization/tensorboard/Manifest
+++ b/sci-visualization/tensorboard/Manifest
@@ -1 +1,2 @@
 DIST tensorboard-2.10.0.zip 5873469 BLAKE2B 
b03a804682275abd83482e6dc8e62bef4301d796ef5bd2b02bed8d15ab16ff4bd19f1b9e3488e12ea6c03e1b7a85fd69a6a226f0a5378da2067c661b7f1f2f7e
 SHA512 
04da20089d7e24e2c519da24bb8ad32f622386799e28403e036d40c29bc99011cc374480176776b0801df0e37eb2b0e93a987d2a97cd7406eabb75bfd649a311
+DIST tensorboard-2.11.0.zip 5990351 BLAKE2B 
d6796fceb047abc69c84c8f30ce6b5e0739a376e110fb7e2bb78ee5b6c7dd8d1344546950d46dbdc3a47780f4ad685be186087286225dbeb9ebce558f0837d8c
 SHA512 
f1b908e13a56a86f6618ae8bf596339243642d0f00793d326ac884fd8e736bb316331728b474022936570fb6202b323d8ba2bf4908619aa1f79411b904edf209

diff --git a/sci-visualization/tensorboard/tensorboard-2.11.0.ebuild 
b/sci-visualization/tensorboard/tensorboard-2.11.0.ebuild
new file mode 100644
index ..f9f4786e1e1e
--- /dev/null
+++ b/sci-visualization/tensorboard/tensorboard-2.11.0.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8,9,10} )
+inherit python-r1
+
+DESCRIPTION="TensorFlow's Visualization Toolkit"
+HOMEPAGE="https://www.tensorflow.org/";
+SRC_URI="https://files.pythonhosted.org/packages/py3/${PN::1}/${PN}/${P}-py3-none-any.whl
 -> ${P}.zip"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+RDEPEND="
+   ${PYTHON_DEPS}
+   dev-python/bleach[${PYTHON_USEDEP}]
+   >=dev-python/google-auth-1.6.3[${PYTHON_USEDEP}]
+   >=dev-python/google-auth-oauthlib-0.4.1[${PYTHON_USEDEP}]
+   dev-python/grpcio[${PYTHON_USEDEP}]
+   dev-python/html5lib[${PYTHON_USEDEP}]
+   dev-python/markdown[${PYTHON_USEDEP}]
+   dev-python/numpy[${PYTHON_USEDEP}]
+   dev-python/protobuf-python[${PYTHON_USEDEP}]
+   dev-python/six[${PYTHON_USEDEP}]
+   >=dev-python/setuptools-41[${PYTHON_USEDEP}]
+   dev-python/werkzeug[${PYTHON_USEDEP}]
+   dev-python/wheel[${PYTHON_USEDEP}]
+   >=dev-python/scipy-1.4.1[${PYTHON_USEDEP}]"
+BDEPEND="app-arch/unzip
+   ${PYTHON_DEPS}"
+PDEPEND="sci-libs/tensorflow[python,${PYTHON_USEDEP}]"
+
+S="${WORKDIR}"
+
+src_prepare() {
+   eapply_user
+
+   sed -i -e '/_vendor.__init__/d' -e '/_vendor.bleach/d' -e 
'/_vendor.html5lib/d' -e '/_vendor.webencodings/d' \
+   "${S}/${P}.dist-info/RECORD" || die "failed to unvendor"
+   grep -q "_vendor" "${S}/${P}.dist-info/RECORD" && die "More vendored 
deps found"
+
+   find "${S}/${PN}" -name '*.py' -exec sed -i \
+   -e 's/^from tensorboard\._vendor import /import /' \
+   -e 's/^from tensorboard\._vendor\./from /' \
+   {} + || die "failed to unvendor"
+
+   rm -rf "${S}/${PN}/_vendor" || die
+
+   sed -i -e '/tensorboard-plugin-/d' "${S}/${P}.dist-info/METADATA" || 
die "failed to remove plugin deps"
+   sed -i -e '/tensorboard-data-server/d' "${S}/${P}.dist-info/METADATA" 
|| die "failed to remove data-server deps"
+   sed -i -e 's/google-auth-oauthlib.*$/google-auth-oauthlib/' 
"${S}/${P}.dist-info/METADATA" \
+   || die "failed to relax oauth deps"
+   sed -i -e 's/protobuf.*$/protobuf/' "${S}/${P}.dist-info/METADATA" \
+   || die "failed to relax protobuf deps"
+}
+
+src_install() {
+   do_install() {
+   python_domodule "${PN}"
+   python_domodule "${P}.dist-info"
+   }
+   python_foreach_impl do_install
+}



[gentoo-commits] repo/gentoo:master commit in: sci-libs/tensorflow-estimator/, sci-libs/tensorflow-estimator/files/

2022-11-25 Thread Jason Zaman
commit: 5037a2db45fc8531516a792fb30a60eab3f2d320
Author: Jason Zaman  gentoo  org>
AuthorDate: Tue Nov 22 22:00:09 2022 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Fri Nov 25 18:22:02 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5037a2db

sci-libs/tensorflow-estimator: add 2.11.0

Signed-off-by: Jason Zaman  gentoo.org>

 sci-libs/tensorflow-estimator/Manifest |  1 +
 ...-Update-setup.py-for-2.11.0-final-release.patch | 25 +++
 .../tensorflow-estimator-2.11.0.ebuild | 79 ++
 3 files changed, 105 insertions(+)

diff --git a/sci-libs/tensorflow-estimator/Manifest 
b/sci-libs/tensorflow-estimator/Manifest
index 7ca0a51f3836..c208fabb6300 100644
--- a/sci-libs/tensorflow-estimator/Manifest
+++ b/sci-libs/tensorflow-estimator/Manifest
@@ -1,3 +1,4 @@
 DIST bazelbuild-rules_cc-b1c40e1de81913a3c40e5948f78719c28152486d.zip 201360 
BLAKE2B 
0173a8edb17f344b18e42026e2f8a62a1909d4694ab0be83562b6437a3f1ef38889f069269ddd2308b41062e5f375f791be0d2631a8e52ede668203779813b56
 SHA512 
2ba1dc316d88947c1d17ec67154c052700e3571b8d03370a9f204cf9fe94a1bd58f93a2c4a3c0b02233ee3250053a4c30a4133b5b38745858c1d04be8c9d973f
 DIST bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip 9422 
BLAKE2B 
bbc45c97551ee8126335b611ffca6574dac843d4db9b3221b10d26487f8eecfe38ba0cd67a4039a3ad921c25fea6294c43e4f4e7a57a060a30791acd6c4f9d39
 SHA512 
ba06242feb711e7fb6e821fd9ac029248b4f3e466fb1acf971d0db8196f3efe4d114ef137acbe4913073f8cbe8ccab4d47d8bafa21b867b2d6a6d57f5a647f0c
 DIST tensorflow-estimator-2.10.tar.gz 655011 BLAKE2B 
465b405bfc5b776bc9722407f0d475b4ce8a520bded4b6f0db4c9fc771b9486a4ef08ae460f2e1c8c4be1d2882b942fff79f7f08a458eaa444f1bb44eb66e91c
 SHA512 
63cdc97d9abf3551a931372ab91e86b1cab761ea7476182ed82ac7c56884d315107b1873376385bcdfc531465c11fe0273aefe8b88e8b333d8e7b54e7d0a09eb
+DIST tensorflow-estimator-2.11.0-rc0.tar.gz 655514 BLAKE2B 
cc73f282a32f657bf507d948210aa981f0867c4898574c61fb5654204fa573ac7bdef16635d202ed3d202ccc9c8915f5613e4149ce6839d59281a38cfd6953f7
 SHA512 
c473a6db62a0a55f25f8fd5fd7ffb2f2a473261c5a7b3217bd1d8a21a02ab4871793ea57917c6eb9dc9012bd030faf8030702caf3f764983ce526d201866204f

diff --git 
a/sci-libs/tensorflow-estimator/files/0001-Update-setup.py-for-2.11.0-final-release.patch
 
b/sci-libs/tensorflow-estimator/files/0001-Update-setup.py-for-2.11.0-final-release.patch
new file mode 100644
index ..3a22052e9845
--- /dev/null
+++ 
b/sci-libs/tensorflow-estimator/files/0001-Update-setup.py-for-2.11.0-final-release.patch
@@ -0,0 +1,25 @@
+From bfc826cf6ab1a65c3cf2e28cf9c6300ced56e9f8 Mon Sep 17 00:00:00 2001
+From: Vinila S <106367904+vinil...@users.noreply.github.com>
+Date: Fri, 11 Nov 2022 16:55:11 -0800
+Subject: [PATCH] Update setup.py for 2.11.0 final release.
+
+---
+ tensorflow_estimator/tools/pip_package/setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tensorflow_estimator/tools/pip_package/setup.py 
b/tensorflow_estimator/tools/pip_package/setup.py
+index b49eff2..fe35b4b 100644
+--- a/tensorflow_estimator/tools/pip_package/setup.py
 b/tensorflow_estimator/tools/pip_package/setup.py
+@@ -30,7 +30,7 @@ DOCLINES = __doc__.split('\n')
+ # This version string is semver compatible, but incompatible with pip.
+ # For pip, we will remove all '-' characters from this string, and use the
+ # result for pip.
+-_VERSION = '2.11.0-rc0'
++_VERSION = '2.11.0'
+ 
+ REQUIRED_PACKAGES = [
+ # We depend on TensorFlow's declared pip dependencies.
+-- 
+2.37.4
+

diff --git a/sci-libs/tensorflow-estimator/tensorflow-estimator-2.11.0.ebuild 
b/sci-libs/tensorflow-estimator/tensorflow-estimator-2.11.0.ebuild
new file mode 100644
index ..fdf1ef3c5276
--- /dev/null
+++ b/sci-libs/tensorflow-estimator/tensorflow-estimator-2.11.0.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8,9,10} )
+MY_PN="estimator"
+MY_PV=${PV}-rc0
+MY_P=${MY_PN}-${MY_PV}
+
+inherit bazel distutils-r1
+
+DESCRIPTION="A high-level TensorFlow API that greatly simplifies machine 
learning programming"
+HOMEPAGE="https://www.tensorflow.org/";
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+bazel_external_uris="
+   
https://github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip
 -> bazelbuild-rules_cc-b1c40e1de81913a3c40e5948f78719c28152486d.zip
+   
https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip
 -> bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip"
+
+SRC_URI="https://github.com/tensorflow/${MY_PN}/archive/v${MY_PV}.tar.gz -> 
${P}-rc0.tar.gz
+   ${bazel_external_uris}"
+
+RDEPEND="
+  

[gentoo-commits] repo/gentoo:master commit in: dev-util/bazel/

2022-11-22 Thread Jason Zaman
commit: 41ef1d30ef70ab00f98d25670a77ab2875e34888
Author: Jason Zaman  gentoo  org>
AuthorDate: Tue Nov 22 17:55:43 2022 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Tue Nov 22 17:59:42 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41ef1d30

dev-util/bazel: add 5.3.0

Signed-off-by: Jason Zaman  gentoo.org>

 dev-util/bazel/Manifest   |  1 +
 dev-util/bazel/bazel-5.3.0.ebuild | 96 +++
 2 files changed, 97 insertions(+)

diff --git a/dev-util/bazel/Manifest b/dev-util/bazel/Manifest
index 4182cf2b0f1e..1a96cdd89dff 100644
--- a/dev-util/bazel/Manifest
+++ b/dev-util/bazel/Manifest
@@ -2,3 +2,4 @@ DIST bazel-3.7.2-dist.zip 313677756 BLAKE2B 
cd6363762c68d25739a6bf6c13f10e191302
 DIST bazel-4.2.2-dist.zip 279304631 BLAKE2B 
2a32838e50b63c4b6400aced10085c6c9aacf28641ea555a44b9c4ed8991fc29658b4d420b26179e8eed0e00cfe7391e8eec84c7851f17493c74d1c5682427af
 SHA512 
123f73dc87053e37705bb729f82bd722d6d2799fe106f79c51cf5566fb2771d824108cbe275aad55ae590b970c549008b433704cbf1245394769e950796eb8db
 DIST bazel-5.0.0-dist.zip 235894565 BLAKE2B 
3798eb9111772809f0345e0c74bef38d8f9d44a7f20844f20aad187a2e177f4999ffa0e1cc1719e4284cdc7c72295bb903d32ce56821c72ee2908f4d939d0769
 SHA512 
2a9a972d1cce6b50f959fec3d37506914208169c8aa36e5ec5f9a27942e9beff1080a544a18e9bd5eb13dc434c1864cda0594e6da5b78c2f41085abf808c22d7
 DIST bazel-5.1.1-dist.zip 236073335 BLAKE2B 
dacc98db99a4877bcda743058f8d34c276d893bec14a595155587f9d0a2716caf106e1d08917f8103b9c15c45433285cce2063f15a2653d3d1a4a6b67242876f
 SHA512 
84e2f72df1838fc88a39853afc510bca835fea28590e9aac2138b5416d2f8d9aefd082c81012a2066194fdc440b00b44f9f188b5c896461acebfeb9cd40efc7c
+DIST bazel-5.3.0-dist.zip 235314819 BLAKE2B 
771a940e083d569b0297d37877e6d52c16f698bc5141e2c9c895d5d6cdd9e93203fbc941eca7daa4b40026551c25a5bf45d0862b8b13993bc40434aa6bb99dd3
 SHA512 
6c98e904596764a309e98ea2453c751dc0bf27c683462c5654b72076f8537bccf6c5103ccea60fa3a3dffeaa76b07db80a594feb96ed566282d10bb04f0e1455

diff --git a/dev-util/bazel/bazel-5.3.0.ebuild 
b/dev-util/bazel/bazel-5.3.0.ebuild
new file mode 100644
index ..36ee3e954ac0
--- /dev/null
+++ b/dev-util/bazel/bazel-5.3.0.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit bash-completion-r1 bazel java-pkg-2 multiprocessing
+
+DESCRIPTION="Fast and correct automated build system"
+HOMEPAGE="https://bazel.build/";
+
+SRC_URI="https://github.com/bazelbuild/bazel/releases/download/${PV}/${P}-dist.zip";
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="examples tools"
+# strip corrupts the bazel binary
+# test fails with network-sandbox: An error occurred during the fetch of 
repository 'io_bazel_skydoc' (bug 690794)
+RESTRICT="strip test"
+RDEPEND=">=virtual/jre-11:*"
+DEPEND="
+   virtual/jdk:11
+   app-arch/unzip
+   app-arch/zip"
+
+S="${WORKDIR}"
+
+pkg_setup() {
+   if has ccache ${FEATURES}; then
+   ewarn "${PN} usually fails to compile with ccache, you have 
been warned"
+   fi
+   java-pkg-2_pkg_setup
+}
+
+src_unpack() {
+   # Only unpack the main distfile
+   unpack ${P}-dist.zip
+}
+
+src_prepare() {
+   default
+
+   # F: fopen_wr
+   # S: deny
+   # P: /proc/self/setgroups
+   # A: /proc/self/setgroups
+   # R: /proc/24939/setgroups
+   # C: /usr/lib/systemd/systemd
+   addpredict /proc
+}
+
+src_compile() {
+   export JAVA_HOME=$(java-config --jre-home) # so keepwork works
+   export EXTRA_BAZEL_ARGS="--jobs=$(makeopts_jobs) $(bazel_get_flags)
+   --java_runtime_version=local_jdk
+   --tool_java_runtime_version=local_jdk"
+   VERBOSE=yes ./compile.sh || die "Failed compiling bazel"
+
+   ./scripts/generate_bash_completion.sh \
+   --bazel=output/bazel \
+   --output=bazel-complete.bash \
+   --prepend=scripts/bazel-complete-header.bash \
+   --prepend=scripts/bazel-complete-template.bash || die "Failed 
to generate bash completions"
+}
+
+src_test() {
+   output/bazel test \
+   --verbose_failures \
+   --spawn_strategy=standalone \
+   --genrule_strategy=standalone \
+   --verbose_test_summary \
+   examples/cpp:hello-success_test || die
+   output/bazel shutdown
+}
+
+src_install() {
+   dobin output/bazel
+   newbashcomp bazel-complete.bash ${PN}
+   bashcomp_alias ${PN} ibazel
+   insinto /usr/share/zsh/site-functions
+   doins scripts/zsh_completion/_bazel
+
+   if use examples; then
+   docinto examples
+   dodoc -r examples/*
+   docompress -x /usr/share/doc/$

[gentoo-commits] repo/gentoo:master commit in: sci-visualization/tensorboard/

2022-11-19 Thread Jason Zaman
commit: 9e64b84c2b5bf0dfe077b6f0257374d3d8d40d40
Author: Jason Zaman  gentoo  org>
AuthorDate: Sat Nov 19 18:12:36 2022 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Nov 19 18:23:24 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e64b84c

sci-visualization/tensorboard: drop 2.8.0, 2.9.0

Signed-off-by: Jason Zaman  gentoo.org>

 sci-visualization/tensorboard/Manifest |  2 -
 .../tensorboard/tensorboard-2.8.0.ebuild   | 64 -
 .../tensorboard/tensorboard-2.9.0.ebuild   | 66 --
 3 files changed, 132 deletions(-)

diff --git a/sci-visualization/tensorboard/Manifest 
b/sci-visualization/tensorboard/Manifest
index 15c3f7786956..472537c49964 100644
--- a/sci-visualization/tensorboard/Manifest
+++ b/sci-visualization/tensorboard/Manifest
@@ -1,3 +1 @@
 DIST tensorboard-2.10.0.zip 5873469 BLAKE2B 
b03a804682275abd83482e6dc8e62bef4301d796ef5bd2b02bed8d15ab16ff4bd19f1b9e3488e12ea6c03e1b7a85fd69a6a226f0a5378da2067c661b7f1f2f7e
 SHA512 
04da20089d7e24e2c519da24bb8ad32f622386799e28403e036d40c29bc99011cc374480176776b0801df0e37eb2b0e93a987d2a97cd7406eabb75bfd649a311
-DIST tensorboard-2.8.0.zip 5776309 BLAKE2B 
b06c740fbe01c707e937018184e286fb7221391715c5ca6d843a89c9dd3a364b8693e748ccbde735d074b0abdbca65d4e2dd9a6e57b4ede61f78a661bd16e702
 SHA512 
3d937e41ac0abfe44cfab12f0b5269de45615c512499107a239bb348df7f3ccaabf283afcea2a7bac4a34d7b9318947c709a84154d0d2e61912138c31c86673f
-DIST tensorboard-2.9.0.zip 5797045 BLAKE2B 
e91988637a0e30fcd6341f02bc5e83ba92ae1f6e65a2aa5ddb1626ec4bb95a97d1306984b899279281e5d5f5ac70be76669ddc87524910861429e02259269b79
 SHA512 
244e117de989a56efc4120b6374d5cc6c31bb233e234cf95df9ddf7cbd0ec494b925dae238c59f3663087136bbf789284096f20b300f0b4c56c9de7faddc520b

diff --git a/sci-visualization/tensorboard/tensorboard-2.8.0.ebuild 
b/sci-visualization/tensorboard/tensorboard-2.8.0.ebuild
deleted file mode 100644
index 8923ebaec0e7..
--- a/sci-visualization/tensorboard/tensorboard-2.8.0.ebuild
+++ /dev/null
@@ -1,64 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{8,9} )
-inherit python-r1
-
-DESCRIPTION="TensorFlow's Visualization Toolkit"
-HOMEPAGE="https://www.tensorflow.org/";
-SRC_URI="https://files.pythonhosted.org/packages/py3/${PN::1}/${PN}/${P}-py3-none-any.whl
 -> ${P}.zip"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE=""
-REQUIRED_USE=${PYTHON_REQUIRED_USE}
-
-RDEPEND="
-   ${PYTHON_DEPS}
-   dev-python/bleach[${PYTHON_USEDEP}]
-   >=dev-python/google-auth-1.6.3[${PYTHON_USEDEP}]
-   >=dev-python/google-auth-oauthlib-0.4.1[${PYTHON_USEDEP}]
-   dev-python/grpcio[${PYTHON_USEDEP}]
-   dev-python/html5lib[${PYTHON_USEDEP}]
-   dev-python/markdown[${PYTHON_USEDEP}]
-   dev-python/numpy[${PYTHON_USEDEP}]
-   dev-python/protobuf-python[${PYTHON_USEDEP}]
-   dev-python/six[${PYTHON_USEDEP}]
-   >=dev-python/setuptools-41[${PYTHON_USEDEP}]
-   dev-python/werkzeug[${PYTHON_USEDEP}]
-   dev-python/wheel[${PYTHON_USEDEP}]
-   >=dev-python/scipy-1.4.1[${PYTHON_USEDEP}]"
-BDEPEND="app-arch/unzip
-   ${PYTHON_DEPS}"
-PDEPEND="sci-libs/tensorflow[python,${PYTHON_USEDEP}]"
-
-S="${WORKDIR}"
-
-src_prepare() {
-   eapply_user
-
-   sed -i -e '/_vendor.__init__/d' -e '/_vendor.bleach/d' -e 
'/_vendor.html5lib/d' -e '/_vendor.webencodings/d' \
-   "${S}/${P}.dist-info/RECORD" || die "failed to unvendor"
-   grep -q "_vendor" "${S}/${P}.dist-info/RECORD" && die "More vendored 
deps found"
-
-   find "${S}/${PN}" -name '*.py' -exec sed -i \
-   -e 's/^from tensorboard\._vendor import /import /' \
-   -e 's/^from tensorboard\._vendor\./from /' \
-   {} + || die "failed to unvendor"
-
-   rm -rf "${S}/${PN}/_vendor" || die
-
-   sed -i -e '/tensorboard-plugin-/d' "${S}/${P}.dist-info/METADATA" || 
die "failed to remove plugin deps"
-   sed -i -e '/tensorboard-data-server/d' "${S}/${P}.dist-info/METADATA" 
|| die "failed to remove data-server deps"
-}
-
-src_install() {
-   do_install() {
-   python_domodule "${PN}"
-   python_domodule "${P}.dist-info"
-   }
-   python_foreach_impl do_install
-}

diff --git a/sci-visualization/tensorboard/tensorboard-2.9.0.ebuild 
b/sci-visualization/tensorboard/tensorboard-2.9.0.ebuild
deleted file mode 100644
index 33cd44742483..
--- a/sci-visualization/tensorboard/tensorboard-2.9.0.ebui

[gentoo-commits] repo/gentoo:master commit in: sci-libs/keras/files/, sci-libs/keras/

2022-11-19 Thread Jason Zaman
commit: 5c4cdb22be1eca00e340facdaec28f65b551076f
Author: Jason Zaman  gentoo  org>
AuthorDate: Sat Nov 19 18:11:32 2022 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Nov 19 18:23:23 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c4cdb22

sci-libs/keras: drop 2.8.0, 2.9.0

Signed-off-by: Jason Zaman  gentoo.org>

 sci-libs/keras/Manifest|   2 -
 ...eras-2.7.0-0001-bazel-Use-system-protobuf.patch | 316 
 ...eras-2.9.0-0001-bazel-Use-system-protobuf.patch | 331 -
 sci-libs/keras/keras-2.8.0.ebuild  |  87 --
 sci-libs/keras/keras-2.9.0.ebuild  |  85 --
 5 files changed, 821 deletions(-)

diff --git a/sci-libs/keras/Manifest b/sci-libs/keras/Manifest
index c8a8659e2e4b..3ac4fb7500a7 100644
--- a/sci-libs/keras/Manifest
+++ b/sci-libs/keras/Manifest
@@ -1,5 +1,3 @@
 DIST bazelbuild-rules_cc-b1c40e1de81913a3c40e5948f78719c28152486d.zip 201360 
BLAKE2B 
0173a8edb17f344b18e42026e2f8a62a1909d4694ab0be83562b6437a3f1ef38889f069269ddd2308b41062e5f375f791be0d2631a8e52ede668203779813b56
 SHA512 
2ba1dc316d88947c1d17ec67154c052700e3571b8d03370a9f204cf9fe94a1bd58f93a2c4a3c0b02233ee3250053a4c30a4133b5b38745858c1d04be8c9d973f
 DIST bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip 9422 
BLAKE2B 
bbc45c97551ee8126335b611ffca6574dac843d4db9b3221b10d26487f8eecfe38ba0cd67a4039a3ad921c25fea6294c43e4f4e7a57a060a30791acd6c4f9d39
 SHA512 
ba06242feb711e7fb6e821fd9ac029248b4f3e466fb1acf971d0db8196f3efe4d114ef137acbe4913073f8cbe8ccab4d47d8bafa21b867b2d6a6d57f5a647f0c
 DIST keras-2.10.0.tar.gz 2250425 BLAKE2B 
eb05537739cdc81e279b5c400e2e2b77d46f4085e8530fef565bde12414ddccedb44c0b13265106a3353e67c367106e1d341412dc25b32e2221f144a31d76079
 SHA512 
8682110495a045c2ebc61f31a98d646b88fd9608d5169be78701cf528457ff0d2e39669d885854c14c1e6bebb380b14968957f2a8a34a8a023f8860efc7aeecd
-DIST keras-2.8.0.tar.gz 2001168 BLAKE2B 
64e756da102369bd41b176245f7f8184b2376b6fb714485627e30107af552035931c9fcff18d82def5f4e1b83f2eae2fa3d0c18b030986f8d3a53dffbdbb2963
 SHA512 
a70ae1409761211f3b59d358df4d5abf6bb76b915f5dde90ada5a867aef2831581836d38876bd2e962f3c345f59373bf76a7c21247cef8aeaec45ba1301f787b
-DIST keras-2.9.0.tar.gz 2142884 BLAKE2B 
9d90ad998ef7215f9a3ab0f0ac9d035f81023f7049e5c73823a0aa8561ead2f697ff762c225f668f3d9fe376d69a2bfbdf8b137128c915a711cee53d809093d6
 SHA512 
779828aff9aa31970e7f68b32423e47b81f47d2284d9e9734428c3bc3789e6b0e9ef151315e1cae666b14b1cdc387828ddaf520811250f9ad4fa73cf5c98781d

diff --git 
a/sci-libs/keras/files/keras-2.7.0-0001-bazel-Use-system-protobuf.patch 
b/sci-libs/keras/files/keras-2.7.0-0001-bazel-Use-system-protobuf.patch
deleted file mode 100644
index 60736ebb16e9..
--- a/sci-libs/keras/files/keras-2.7.0-0001-bazel-Use-system-protobuf.patch
+++ /dev/null
@@ -1,316 +0,0 @@
-From 71f50c026a4b7658596ab4209cc63520710f02b5 Mon Sep 17 00:00:00 2001
-From: Jason Zaman 
-Date: Sun, 14 Nov 2021 17:59:39 -0800
-Subject: [PATCH] bazel: Use system protobuf
-

- WORKSPACE|  38 ---
- keras/protobuf/BUILD |   2 +-
- third_party/BUILD|   8 +-
- third_party/protobuf.bzl | 216 +++
- 4 files changed, 224 insertions(+), 40 deletions(-)
- create mode 100644 third_party/protobuf.bzl
-
-diff --git a/WORKSPACE b/WORKSPACE
-index 2c03ebba..61282aea 100644
 a/WORKSPACE
-+++ b/WORKSPACE
-@@ -1,39 +1 @@
- workspace(name = "org_keras")
--
--load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
--
--# Needed by protobuf
--load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
--http_archive(
--name = "bazel_skylib",
--url = 
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.1/bazel-skylib-1.0.1.tar.gz";,
--sha256 = 
"f1c8360c01fcf276778d3519394805dc2a71a64274a3a0908bc9edff7b5aebc8",
--)
--load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
--bazel_skylib_workspace()
--
--# Needed by protobuf
--http_archive(
--name = "six_archive",
--build_file = "//third_party:six.BUILD",
--sha256 = 
"d16a0141ec1a18405cd4ce8b4613101da75da0e9a7aec5bdd4fa804d0e0eba73",
--strip_prefix = "six-1.12.0",
--urls = [
--
"http://mirror.bazel.build/pypi.python.org/packages/source/s/six/six-1.12.0.tar.gz";,
--"https://pypi.python.org/packages/source/s/six/six-1.12.0.tar.gz";,  # 
2018-12-10
--],
--)
--
--bind(
--name = "six",
--actual = "@six_archive//:six",
--)
--
--http_archive(
--name = "com_google_protobuf",
--sha256 = 
"1fbf1c2962af287607232b2eddeaec9b4f4a7a6f5934e1a9276e9af76952f7e0",
--strip_prefix = "protobuf-3.9.2",
--urls = 
["https://github.com/protocolbuffer

[gentoo-commits] repo/gentoo:master commit in: sci-libs/tensorflow-estimator/

2022-11-19 Thread Jason Zaman
commit: d10d9f815649859c06af433a45124f9f7f86dc77
Author: Jason Zaman  gentoo  org>
AuthorDate: Sat Nov 19 18:15:49 2022 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Nov 19 18:23:25 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d10d9f81

sci-libs/tensorflow-estimator: drop 2.8.0, 2.9.0

Signed-off-by: Jason Zaman  gentoo.org>

 sci-libs/tensorflow-estimator/Manifest |  2 -
 .../tensorflow-estimator-2.8.0.ebuild  | 77 --
 .../tensorflow-estimator-2.9.0.ebuild  | 75 -
 3 files changed, 154 deletions(-)

diff --git a/sci-libs/tensorflow-estimator/Manifest 
b/sci-libs/tensorflow-estimator/Manifest
index 6e57a118cf8d..7ca0a51f3836 100644
--- a/sci-libs/tensorflow-estimator/Manifest
+++ b/sci-libs/tensorflow-estimator/Manifest
@@ -1,5 +1,3 @@
 DIST bazelbuild-rules_cc-b1c40e1de81913a3c40e5948f78719c28152486d.zip 201360 
BLAKE2B 
0173a8edb17f344b18e42026e2f8a62a1909d4694ab0be83562b6437a3f1ef38889f069269ddd2308b41062e5f375f791be0d2631a8e52ede668203779813b56
 SHA512 
2ba1dc316d88947c1d17ec67154c052700e3571b8d03370a9f204cf9fe94a1bd58f93a2c4a3c0b02233ee3250053a4c30a4133b5b38745858c1d04be8c9d973f
 DIST bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip 9422 
BLAKE2B 
bbc45c97551ee8126335b611ffca6574dac843d4db9b3221b10d26487f8eecfe38ba0cd67a4039a3ad921c25fea6294c43e4f4e7a57a060a30791acd6c4f9d39
 SHA512 
ba06242feb711e7fb6e821fd9ac029248b4f3e466fb1acf971d0db8196f3efe4d114ef137acbe4913073f8cbe8ccab4d47d8bafa21b867b2d6a6d57f5a647f0c
 DIST tensorflow-estimator-2.10.tar.gz 655011 BLAKE2B 
465b405bfc5b776bc9722407f0d475b4ce8a520bded4b6f0db4c9fc771b9486a4ef08ae460f2e1c8c4be1d2882b942fff79f7f08a458eaa444f1bb44eb66e91c
 SHA512 
63cdc97d9abf3551a931372ab91e86b1cab761ea7476182ed82ac7c56884d315107b1873376385bcdfc531465c11fe0273aefe8b88e8b333d8e7b54e7d0a09eb
-DIST tensorflow-estimator-2.8.0.tar.gz 691913 BLAKE2B 
7c8059ec3c5e94f67b7fbb49b508e313f0a12eac0627b04471fe1ac82c26aaae2a120a834ce3dc5a16931119ffc31a9d96935b8f727d851885fa132eb08fa2ea
 SHA512 
02a3009fd8f9f560dea6190989af7c58402777a414cd4bf036d24546fc4a747bb8a5515a5d6fea3bdb848cb9604239b19d43096c5f125a1fa434ae8fee44cf0a
-DIST tensorflow-estimator-2.9.0.tar.gz 654755 BLAKE2B 
24cd6fc0b78144f8b529ef5b502cdbf9702dc630ac28256a99d68b98b51518b65af533897e837ced6a6da11e1260847aa0e4ebdf90d37aa22bb3bcd2841bd3ea
 SHA512 
277e398104ac92a48e481e0ee4d3bbc607ae79d0a03c6685723a2430117461c1f17090f56ab88b2ae1c86c8dfc6ec1b44a478a1b606b4432bd68d79ac0720475

diff --git a/sci-libs/tensorflow-estimator/tensorflow-estimator-2.8.0.ebuild 
b/sci-libs/tensorflow-estimator/tensorflow-estimator-2.8.0.ebuild
deleted file mode 100644
index fcc862dd41a7..
--- a/sci-libs/tensorflow-estimator/tensorflow-estimator-2.8.0.ebuild
+++ /dev/null
@@ -1,77 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{8,9} )
-MY_PN="estimator"
-MY_PV=${PV/_rc/-rc}
-MY_P=${MY_PN}-${MY_PV}
-
-inherit bazel distutils-r1
-
-DESCRIPTION="A high-level TensorFlow API that greatly simplifies machine 
learning programming"
-HOMEPAGE="https://www.tensorflow.org/";
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE=""
-
-bazel_external_uris="
-   
https://github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip
 -> bazelbuild-rules_cc-b1c40e1de81913a3c40e5948f78719c28152486d.zip
-   
https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip
 -> bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip"
-
-SRC_URI="https://github.com/tensorflow/${MY_PN}/archive/v${MY_PV}.tar.gz -> 
${P}.tar.gz
-   ${bazel_external_uris}"
-
-RDEPEND="
-   sci-libs/tensorflow[python,${PYTHON_USEDEP}]
-   sci-libs/keras[${PYTHON_USEDEP}]"
-DEPEND="${RDEPEND}"
-BDEPEND="
-   app-arch/unzip
-   dev-java/java-config
-   >=dev-util/bazel-4.2.2"
-
-S="${WORKDIR}/${MY_P}"
-
-DOCS=( CONTRIBUTING.md README.md )
-
-src_unpack() {
-   unpack "${P}.tar.gz"
-   bazel_load_distfiles "${bazel_external_uris}"
-}
-
-src_prepare() {
-   bazel_setup_bazelrc
-   default
-   python_copy_sources
-}
-
-src_compile() {
-   export JAVA_HOME=$(java-config --jre-home)
-
-   do_compile() {
-   ebazel build 
//tensorflow_estimator/tools/pip_package:build_pip_package
-   ebazel shutdown
-
-   local srcdir="${T}/src-${EPYTHON/./_}"
-   mkdir -p "${srcdir}" || die
-   
bazel-bin/tensorflow_estimator/tools/pip_package/build_pip_package --src 
"${srcdir}" || die
-   }
-
-   python_foreach_impl run_in_build_dir do_compile
-}
-
-src_

[gentoo-commits] repo/gentoo:master commit in: sci-astronomy/stellarium/files/, sci-astronomy/stellarium/

2022-11-04 Thread Jason Zaman
commit: 28410219672502497f887670ae4fc9eda6cd13ff
Author: Alexey Sokolov  asokolov  org>
AuthorDate: Fri Nov  4 23:11:05 2022 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Nov  5 01:32:24 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28410219

sci-astronomy/stellarium: add 1.1

Signed-off-by: Alexey Sokolov  asokolov.org>
Closes: https://bugs.gentoo.org/862249
Bug: https://bugs.gentoo.org/745234
Signed-off-by: Jason Zaman  gentoo.org>

 sci-astronomy/stellarium/Manifest  |   3 +
 .../stellarium/files/stellarium-1.1-qxlsx.patch|  11 ++
 sci-astronomy/stellarium/metadata.xml  |   3 +
 sci-astronomy/stellarium/stellarium-1.1.ebuild | 172 +
 4 files changed, 189 insertions(+)

diff --git a/sci-astronomy/stellarium/Manifest 
b/sci-astronomy/stellarium/Manifest
index beecdeb0e8ee..2fcaef527f78 100644
--- a/sci-astronomy/stellarium/Manifest
+++ b/sci-astronomy/stellarium/Manifest
@@ -4,5 +4,8 @@ DIST stars_6_2v0_1.cat 148352404 BLAKE2B 
c605b284b3d768cb1619ada3f58d406fa7737f0
 DIST stars_7_2v0_1.cat 305710678 BLAKE2B 
1cc9b4a6bc35a9339e495f7e0da4f7e90a0e92b05b5de8599be1bbdd2a8053cbcec44b0e58bc9248364666db9cdf23449edf236e3f21fdc0e8f1a4a706afc919
 SHA512 
43b866eb793e8812c9d5502101a6c985d2055fb88bdbda274726bcd51e1527ecf342b22acd673318c9c8e88cac68eace18de8f27d29ffe64933fd32a5b84c5e3
 DIST stars_8_2v0_1.cat 559068934 BLAKE2B 
c040a369cdf6885759998e1315b554d21a5e2b9b149a67967a8af45606aebf57bec407fab5ce1904978af0dc529aa6bddd267331ca45f58617bbf56d5ca99dee
 SHA512 
06d4fa298b9dff8452f550377df99fcaa5e7107cfc7b75c9a4769b3cb6d97a822a54213c706102c1d7ef2dabc16df32a85f46b2f6d6c6f76a4e919353b739de4
 DIST stellarium-0.22.2.tar.gz 409151525 BLAKE2B 
c49abfb17a8bf7b120d8a0dffbe58b83e18f86b7ef2764cddc946e0cbaad9bf01adaf8d008557108f6354ed11d79e56d94c92c2a07befbd955aed8d201b68292
 SHA512 
ed905f58e1ff8b257b1e054ca76c83470915b00a04f7925b63784aa62b74e972f332e0b7dc605ffc17bb6516ef4f045943cb564d9637238726b9d7ceb2d44dda
+DIST stellarium-1.1.1.tar.gz 413806998 BLAKE2B 
bd5679aa32edfa44807e941d0febcb1c1749eada6c2834cb16de4cc9850735c3033122fd1e4afc8b8550441b8a8f70865f6a7b3eb178bf906c8b64d7829ea3f6
 SHA512 
4564b8df21afb5d266c21e4d59a5df52a0695f102dc68d59d37ea29e520495132c7fb01235ceac5d68b0812fc05d35b5f8c7a5c337c55007ce562f770e3a3612
 DIST stellarium-dso-catalog-3.16.dat 28678822 BLAKE2B 
130513b5dcb0d06dd605ed62d6bdf12bfd636a5e5f5c33f02c7adb77a6712245a98ce3d56332fce6fea0f18c9b7915af4bb3d9812b1fd09bfc036d4135cef4f5
 SHA512 
9320d2a3c9af93d19cc4414f371991993793b78315448cafcd83b82de6dc16715b0cab2ddeafca667af31a9086420cbe758708333e5b95215de8a46305324c41
+DIST stellarium-dso-catalog-3.17.dat 28678790 BLAKE2B 
8ec14dd34c749a5bea19cc5567b2d703a7e5d4192eda6636fcec9fb2ef0301fd654aefdf4b33db70210da73eb9e385ace2265a57199f5660ec7034887fdcc80f
 SHA512 
c0c679bd9de9e7ac000be5902d3a1e863853e8f9c382186253dd2d77a658fe93a9e2e206ecd1396f64b7b6cd4e738ecc2e11ea43bc6f71a098a44eb77875978a
 DIST stellarium_user_guide-0.22.2-1.pdf 35082446 BLAKE2B 
c9bb7f344a9377fe86b714904aa713c7e6cda59d31f8e547b571da0a057d141fa1b998b4adb3dbdcee0bb7a152b6f6e18b58a4a08c345dc0e77efca6ffb5a801
 SHA512 
45adfe53fa9c7432952152d95ab96a446a6459348fa6724fff83aababb0c967d9467cc0ca3bd24b834fd189fb69c782e521d94528a60a704062aa445e749a4a5
+DIST stellarium_user_guide-1.1-1.pdf 36567672 BLAKE2B 
d1b7f9c8d8974aeabe92e3127c84a79b92dd9c3a0057b7831a1851c7fc88c13ec456375847e90576448a5dbe655846142637c91067cc10df20ae2b9373190e8e
 SHA512 
2dbcf4100c1f24770fa23b2995103b94f0736eacca76031cecac582364948a4cb0e32aabdb554a30a7a64ed53eaa3538d59d7af2434eb74a04d562f1453bc89d

diff --git a/sci-astronomy/stellarium/files/stellarium-1.1-qxlsx.patch 
b/sci-astronomy/stellarium/files/stellarium-1.1-qxlsx.patch
new file mode 100644
index ..f3e4c9c38ab7
--- /dev/null
+++ b/sci-astronomy/stellarium/files/stellarium-1.1-qxlsx.patch
@@ -0,0 +1,11 @@
+--- a/CMakeLists.txt
 b/CMakeLists.txt
+@@ -815,7 +815,7 @@ IF(ENABLE_XLSX)
+  # TODO: switch to something like vcpkg or conan, and plain find_package,
+  # without the fallback of cmake downloading the dep itself.
+  # But some libraries are not available there yet.
+- CPMFindPackage(NAME QXlsx
++ CPMFindPackage(NAME QXlsxQt${QT_VERSION_MAJOR}
+URL https://github.com/QtExcel/QXlsx/archive/refs/tags/v1.4.4.zip
+URL_HASH 
SHA256=3efbd6f63a1ffd521c535dce7b5a5a7e9ebd23db51e6ae8e3e2eb89796e57675
+DOWNLOAD_ONLY yes

diff --git a/sci-astronomy/stellarium/metadata.xml 
b/sci-astronomy/stellarium/metadata.xml
index a164ddaabccc..d4860f0597dd 100644
--- a/sci-astronomy/stellarium/metadata.xml
+++ b/sci-astronomy/stellarium/metadata.xml
@@ -22,9 +22,12 @@

Install extra deep sky objects catalog 
(may affect performance)
Enable sound and video support
+   Enable JS scripting via 
dev-qt/qtscript in Qt5 or using Qml via 
dev-qt/qtdeclarative in Qt6
+   

[gentoo-commits] repo/gentoo:master commit in: sci-astronomy/calcmysky/

2022-11-04 Thread Jason Zaman
commit: 3f8c2e83358874c6537eb37488e289c3d0e3284b
Author: Alexey Sokolov  asokolov  org>
AuthorDate: Sun Oct  9 10:13:49 2022 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Nov  5 01:32:23 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f8c2e83

sci-astronomy/calcmysky: new package, add 0.2.1

Signed-off-by: Alexey Sokolov  asokolov.org>
Signed-off-by: Jason Zaman  gentoo.org>

 sci-astronomy/calcmysky/Manifest   |  1 +
 sci-astronomy/calcmysky/calcmysky-0.2.1.ebuild | 65 ++
 sci-astronomy/calcmysky/metadata.xml   | 19 
 3 files changed, 85 insertions(+)

diff --git a/sci-astronomy/calcmysky/Manifest b/sci-astronomy/calcmysky/Manifest
new file mode 100644
index ..90a19e9a9852
--- /dev/null
+++ b/sci-astronomy/calcmysky/Manifest
@@ -0,0 +1 @@
+DIST calcmysky-0.2.1.tar.gz 2161314 BLAKE2B 
b0aa1abc75f59c9c16429749bb8669e49e17e3dc7716bb78f472a9181c7d77a2c82c2f3800529f620604f233f88855908b0b55d824bf259d0912e157b9537faf
 SHA512 
3915b965ee656b259ce7f158dfdd3c9c11a6c3ff907307899ae55e88ad6c1ccfbec8e0a1f784f5232fb0cb2c8300422fa25b8b1d4d11639d3ebb8c76d67059e5

diff --git a/sci-astronomy/calcmysky/calcmysky-0.2.1.ebuild 
b/sci-astronomy/calcmysky/calcmysky-0.2.1.ebuild
new file mode 100644
index ..47c8b4a34689
--- /dev/null
+++ b/sci-astronomy/calcmysky/calcmysky-0.2.1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit multibuild cmake
+
+DESCRIPTION="Simulator of light scattering by planetary atmospheres"
+HOMEPAGE="https://github.com/10110111/CalcMySky";
+SRC_URI="
+   https://github.com/10110111/CalcMySky/archive/refs/tags/v${PV}.tar.gz 
-> ${P}.tar.gz
+"
+
+LICENSE="GPL-3"
+# subslot is soversion
+SLOT="0/14"
+KEYWORDS="~amd64"
+
+IUSE="qt5 qt6"
+REQUIRED_USE="|| ( qt5 qt6 )"
+
+DEPEND="
+   dev-cpp/eigen:3
+   media-libs/glm
+   qt5? (
+   dev-qt/qtcore:5
+   dev-qt/qtgui:5[-gles2-only]
+   dev-qt/qtopengl:5[-gles2-only]
+   dev-qt/qtwidgets:5[-gles2-only]
+   )
+   qt6? (
+   dev-qt/qtbase:6[gui,opengl,widgets,-gles2-only]
+   )
+"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/CalcMySky-${PV}"
+
+pkg_setup() {
+   MULTIBUILD_VARIANTS=( $(usev qt5) $(usev qt6) )
+}
+
+src_configure() {
+   my_src_configure() {
+   local mycmakeargs=(
+   -DQT_VERSION="${MULTIBUILD_VARIANT/qt/}"
+   )
+
+   cmake_src_configure
+   }
+
+   multibuild_foreach_variant my_src_configure
+}
+
+src_compile() {
+   multibuild_foreach_variant cmake_src_compile
+}
+
+src_test() {
+   multibuild_foreach_variant cmake_build check
+}
+
+src_install() {
+   multibuild_foreach_variant cmake_src_install
+}

diff --git a/sci-astronomy/calcmysky/metadata.xml 
b/sci-astronomy/calcmysky/metadata.xml
new file mode 100644
index ..ef26156cdf6d
--- /dev/null
+++ b/sci-astronomy/calcmysky/metadata.xml
@@ -0,0 +1,19 @@
+
+http://www.gentoo.org/dtd/metadata.dtd";>
+
+   
+   alexey+gen...@asokolov.org
+   Alexey Sokolov
+   
+   
+   proxy-ma...@gentoo.org
+   Proxy Maintainers
+   
+   
+   sci-astron...@gentoo.org
+   Gentoo Astronomy Project
+   
+   
+   10110111/CalcMySky
+   
+



[gentoo-commits] repo/gentoo:master commit in: dev-libs/qxlsx/, dev-libs/qxlsx/files/

2022-11-04 Thread Jason Zaman
commit: 345537cf13b319747ab5b42fbec5831409721aed
Author: Alexey Sokolov  asokolov  org>
AuthorDate: Thu Aug 25 23:30:55 2022 +
Commit:     Jason Zaman  gentoo  org>
CommitDate: Sat Nov  5 01:32:22 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=345537cf

dev-libs/qxlsx: new package, add 1.4.4

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Alexey Sokolov  asokolov.org>
Signed-off-by: Jason Zaman  gentoo.org>

 dev-libs/qxlsx/Manifest  |  1 +
 dev-libs/qxlsx/files/qxlsx-1.4.4-libdir.patch| 26 +++
 dev-libs/qxlsx/files/qxlsx-1.4.4-qtdefs.patch| 24 +++
 dev-libs/qxlsx/files/qxlsx-1.4.4-qtversion.patch | 92 
 dev-libs/qxlsx/files/qxlsx-1.4.4-soversion.patch | 23 ++
 dev-libs/qxlsx/metadata.xml  | 15 
 dev-libs/qxlsx/qxlsx-1.4.4.ebuild| 62 
 7 files changed, 243 insertions(+)

diff --git a/dev-libs/qxlsx/Manifest b/dev-libs/qxlsx/Manifest
new file mode 100644
index ..5ff17575c7b0
--- /dev/null
+++ b/dev-libs/qxlsx/Manifest
@@ -0,0 +1 @@
+DIST qxlsx-1.4.4.tar.gz 4703732 BLAKE2B 
0acf5e708f4dc981723a34b524c820a53a66cb13bf1ce5a1086106230e45dcac2ea6587b3c4ca039de491565ac886a2e5bd1225ee39437ee89a2ff7560da6fd7
 SHA512 
e6c3dd8822f2a8ab8bcd1a7434db7b202291e3d8de407e4629bdfc1afef507b57da4bc4a715d57b8d75915ce4b623189269083824c35d8e02d49d3e8909cceee

diff --git a/dev-libs/qxlsx/files/qxlsx-1.4.4-libdir.patch 
b/dev-libs/qxlsx/files/qxlsx-1.4.4-libdir.patch
new file mode 100644
index ..ffdf8483f41a
--- /dev/null
+++ b/dev-libs/qxlsx/files/qxlsx-1.4.4-libdir.patch
@@ -0,0 +1,26 @@
+From 5d1059941f85365019ed08254e79abdb4ba80ee5 Mon Sep 17 00:00:00 2001
+From: Alexey Sokolov 
+Date: Sun, 4 Sep 2022 01:22:30 +0100
+Subject: [PATCH] Install library to the correct lib dir
+
+---
+ QXlsx/CMakeLists.txt | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/QXlsx/CMakeLists.txt b/QXlsx/CMakeLists.txt
+index a6b1944..fc32918 100644
+--- a/CMakeLists.txt
 b/CMakeLists.txt
+@@ -181,9 +181,9 @@ set_target_properties(QXlsx PROPERTIES
+ 
+ install(TARGETS QXlsx
+ EXPORT QXlsxTargets DESTINATION ${CMAKE_INSTALL_LIBDIR}
+-RUNTIME DESTINATION bin COMPONENT runtime
+-ARCHIVE DESTINATION lib COMPONENT devel
+-PUBLIC_HEADER DESTINATION include/QXlsx COMPONENT devel
++RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime
++ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT devel
++PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/QXlsx COMPONENT 
devel
+ )
+ 
+ install(EXPORT QXlsxTargets

diff --git a/dev-libs/qxlsx/files/qxlsx-1.4.4-qtdefs.patch 
b/dev-libs/qxlsx/files/qxlsx-1.4.4-qtdefs.patch
new file mode 100644
index ..15795c645d47
--- /dev/null
+++ b/dev-libs/qxlsx/files/qxlsx-1.4.4-qtdefs.patch
@@ -0,0 +1,24 @@
+From 8e83402db866ae7a67582da28aa68c83545f13c8 Mon Sep 17 00:00:00 2001
+From: Alexey Sokolov 
+Date: Fri, 26 Aug 2022 01:36:53 +0100
+Subject: [PATCH] Don't force Qt definitions onto users
+
+It breaks users who use "signals" keyword and convert const char* to
+QString.
+---
+ QXlsx/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/QXlsx/CMakeLists.txt b/QXlsx/CMakeLists.txt
+index aa774b1..a6b1944 100644
+--- a/CMakeLists.txt
 b/CMakeLists.txt
+@@ -140,7 +140,7 @@ add_library(QXlsx
+ 
+ add_library(QXlsx::QXlsx ALIAS QXlsx)
+ 
+-target_compile_definitions(QXlsx PUBLIC
++target_compile_definitions(QXlsx PRIVATE
+ -DQT_NO_KEYWORDS
+ -DQT_NO_CAST_TO_ASCII
+ -DQT_NO_CAST_FROM_ASCII

diff --git a/dev-libs/qxlsx/files/qxlsx-1.4.4-qtversion.patch 
b/dev-libs/qxlsx/files/qxlsx-1.4.4-qtversion.patch
new file mode 100644
index ..f94aa6e46414
--- /dev/null
+++ b/dev-libs/qxlsx/files/qxlsx-1.4.4-qtversion.patch
@@ -0,0 +1,92 @@
+commit e3565f2b3999ead739066b33fa0fd346eb072d87
+Author: Alexey Sokolov 
+Date:   Sun Oct 2 22:46:03 2022 +0100
+
+Support installing qt5 and qt6 versions in parallel
+
+diff --git a/QXlsx/CMakeLists.txt b/QXlsx/CMakeLists.txt
+index 5640d8a..8d34020 100644
+--- a/CMakeLists.txt
 b/CMakeLists.txt
+@@ -15,8 +15,8 @@ include(GNUInstallDirs)
+ 
+-find_package(QT NAMES Qt6 Qt5 COMPONENTS Core Gui REQUIRED)
+ find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Gui REQUIRED)
++set(EXPORT_NAME QXlsxQt${QT_VERSION_MAJOR})
+ 
+-if (QT_MAJOR_VERSION EQUAL 6)
++if (QT_VERSION_MAJOR EQUAL 6)
+ set(CMAKE_CXX_STANDARD 17 CACHE STRING "")
+ else()
+ set(CMAKE_CXX_STANDARD 11 CACHE STRING "")
+@@ -166,7 +167,7 @@ if (BUILD_SHARED_LIBS)
+ target_compile_definitions(QXlsx PUBLIC QXlsx_SHAREDLIB)
+ endif()
+ 
+-target_link_libraries(${PROJECT_NAME}
++target_link_libraries(QXlsx
+Qt${QT_VERSION_MAJOR}::Core
+Qt${QT_VERSION_MAJOR}::GuiPrivate
+ )
+@@ -180,39 +181,38 @@ PUBLIC
+ )
+ 
+ set_target_properties(QXlsx PROPE

  1   2   3   4   5   6   7   8   9   10   >