Re: [gentoo-dev] News item for eudev deprecation

2021-09-14 Thread Joonas Niilola
On 22.8.2021 23.14, Anthony G. Basile wrote:
> Hi everyone,
> 
> Yes!  It is time to finally deprecate eudev!  sys-fs/udev now builds
> under musl!  My original purpose for maintaining eudev was because
> systemd + musl did not play well together when udev was absorbed into
> the sytemd repo.  Now thanks to patches from openembedded, they do, and
> my original reason for maintaining eudev is no longer valid.  So its
> time to retire eudev.  It has served its purpose as a stop-gap.
> 

With its new upstream, and this post serves as a PSA to the
uninititated, I guess eudev will be kept?

https://github.com/eudev-project/eudev

-- juippis



OpenPGP_signature
Description: OpenPGP digital signature


[gentoo-dev] [PATCH v2] ssl-cert.eclass: add EAPI 8 support

2021-09-14 Thread Eray Aslan
- drop support for EAPI < 6
- add guard

Signed-off-by: Eray Aslan 
---
 eclass/ssl-cert.eclass | 22 ++
 1 file changed, 10 insertions(+), 12 deletions(-)

diff --git a/eclass/ssl-cert.eclass b/eclass/ssl-cert.eclass
index 36945be3cd6..9d01fd10f50 100644
--- a/eclass/ssl-cert.eclass
+++ b/eclass/ssl-cert.eclass
@@ -6,7 +6,7 @@
 # maintainer-nee...@gentoo.org
 # @AUTHOR:
 # Max Kalika 
-# @SUPPORTED_EAPIS: 1 2 3 4 5 6 7
+# @SUPPORTED_EAPIS: 6 7 8
 # @BLURB: Eclass for SSL certificates
 # @DESCRIPTION:
 # This eclass implements a standard installation procedure for installing
@@ -14,18 +14,14 @@
 # @EXAMPLE:
 # "install_cert /foo/bar" installs ${ROOT}/foo/bar.{key,csr,crt,pem}
 
-# Guard against unsupported EAPIs.  We need EAPI >= 1 for slot dependencies.
-case "${EAPI:-0}" in
-   0)
-   die "${ECLASS}.eclass: EAPI=0 is not supported.  Please upgrade 
to EAPI >= 1."
-   ;;
-   1|2|3|4|5|6|7)
-   ;;
-   *)
-   die "${ECLASS}.eclass: EAPI=${EAPI} is not supported yet."
-   ;;
+case "${EAPI}" in
+   6|7|8) ;;
+   *) die "EAPI=${EAPI:-0} is not supported" ;;
 esac
 
+if [[ ! ${_SSL_CERT_ECLASS} ]]; then
+_SSL_CERT_ECLASS=1
+
 # @ECLASS-VARIABLE: SSL_CERT_MANDATORY
 # @PRE_INHERIT
 # @DESCRIPTION:
@@ -53,7 +49,7 @@ if [[ "${SSL_DEPS_SKIP}" == "0" ]]; then
fi
 
case "${EAPI}" in
-   1|2|3|4|5|6)
+   6)
DEPEND="${SSL_DEPEND}"
;;
*)
@@ -283,3 +279,5 @@ install_cert() {
ewarn "Some requested certificates were not generated"
fi
 }
+
+fi
-- 
2.33.0




Re: [gentoo-dev] [PATCH] ssl-cert.eclass: EAPI 8 support and add guard

2021-09-14 Thread Ulrich Mueller
> On Tue, 14 Sep 2021, Eray Aslan wrote:

> +if [[ ! ${_SSL_CERT_ECLASS} ]]; then
> +
>  # @ECLASS-VARIABLE: SSL_CERT_MANDATORY
>  # @PRE_INHERIT
>  # @DESCRIPTION:
> @@ -283,3 +285,6 @@ install_cert() {
>   ewarn "Some requested certificates were not generated"
>   fi
>  }
> +
> +_SSL_CERT_ECLASS=1

Please make this the first statement in the "if" block. (At the moment
it doesn't matter, but it's less error prone in case another eclass will
be inherited later.)


signature.asc
Description: PGP signature


Re: [gentoo-dev] [PATCH 1/2] python-utils-r1.eclass: add and use _python_check_EPYTHON

2021-09-14 Thread Florian Schmaus

On 13/09/2021 10.15, Michał Górny wrote:

On Mon, 2021-09-13 at 09:47 +0200, Florian Schmaus wrote:

Signed-off-by: Florian Schmaus 
---
  eclass/python-utils-r1.eclass | 14 --
  1 file changed, 12 insertions(+), 2 deletions(-)



Both patches LGTM.


Applied.

- Flow



[gentoo-dev] [PATCH 2/2] ssl-cert.eclass: drop support for EAPI < 6

2021-09-14 Thread Eray Aslan
Thank you for the comment. Dropped EAPI < 6 support.

Signed-off-by: Eray Aslan 
---
 eclass/ssl-cert.eclass | 17 +
 1 file changed, 5 insertions(+), 12 deletions(-)

diff --git a/eclass/ssl-cert.eclass b/eclass/ssl-cert.eclass
index e5dfbbb141c..428956a4290 100644
--- a/eclass/ssl-cert.eclass
+++ b/eclass/ssl-cert.eclass
@@ -6,7 +6,7 @@
 # maintainer-nee...@gentoo.org
 # @AUTHOR:
 # Max Kalika 
-# @SUPPORTED_EAPIS: 1 2 3 4 5 6 7 8
+# @SUPPORTED_EAPIS: 6 7 8
 # @BLURB: Eclass for SSL certificates
 # @DESCRIPTION:
 # This eclass implements a standard installation procedure for installing
@@ -14,16 +14,9 @@
 # @EXAMPLE:
 # "install_cert /foo/bar" installs ${ROOT}/foo/bar.{key,csr,crt,pem}
 
-# Guard against unsupported EAPIs.  We need EAPI >= 1 for slot dependencies.
-case "${EAPI:-0}" in
-   0)
-   die "${ECLASS}.eclass: EAPI=0 is not supported.  Please upgrade 
to EAPI >= 1."
-   ;;
-   1|2|3|4|5|6|7|8)
-   ;;
-   *)
-   die "${ECLASS}.eclass: EAPI=${EAPI} is not supported yet."
-   ;;
+case "${EAPI}" in
+   6|7|8) ;;
+   *) die "EAPI=${EAPI:-0} is not supported" ;;
 esac
 
 if [[ ! ${_SSL_CERT_ECLASS} ]]; then
@@ -55,7 +48,7 @@ if [[ "${SSL_DEPS_SKIP}" == "0" ]]; then
fi
 
case "${EAPI}" in
-   1|2|3|4|5|6)
+   6)
DEPEND="${SSL_DEPEND}"
;;
*)
-- 
2.33.0




Re: [gentoo-dev] [PATCH] ssl-cert.eclass: EAPI 8 support and add guard

2021-09-14 Thread David Seifert
On Tue, 2021-09-14 at 16:47 +0300, Eray Aslan wrote:
> ---
>  eclass/ssl-cert.eclass | 9 +++--
>  1 file changed, 7 insertions(+), 2 deletions(-)
> 
> diff --git a/eclass/ssl-cert.eclass b/eclass/ssl-cert.eclass
> index 36945be3cd6..e5dfbbb141c 100644
> --- a/eclass/ssl-cert.eclass
> +++ b/eclass/ssl-cert.eclass
> @@ -6,7 +6,7 @@
>  # maintainer-nee...@gentoo.org
>  # @AUTHOR:
>  # Max Kalika 
> -# @SUPPORTED_EAPIS: 1 2 3 4 5 6 7
> +# @SUPPORTED_EAPIS: 1 2 3 4 5 6 7 8
>  # @BLURB: Eclass for SSL certificates
>  # @DESCRIPTION:
>  # This eclass implements a standard installation procedure for
> installing
> @@ -19,13 +19,15 @@ case "${EAPI:-0}" in
> 0)
> die "${ECLASS}.eclass: EAPI=0 is not supported. 
> Please upgrade to EAPI >= 1."
> ;;
> -   1|2|3|4|5|6|7)
> +   1|2|3|4|5|6|7|8)
> ;;
> *)
> die "${ECLASS}.eclass: EAPI=${EAPI} is not supported
> yet."
> ;;
>  esac
>  
> +if [[ ! ${_SSL_CERT_ECLASS} ]]; then
> +
>  # @ECLASS-VARIABLE: SSL_CERT_MANDATORY
>  # @PRE_INHERIT
>  # @DESCRIPTION:
> @@ -283,3 +285,6 @@ install_cert() {
> ewarn "Some requested certificates were not generated"
> fi
>  }
> +
> +_SSL_CERT_ECLASS=1
> +fi

Please remove support for EAPIs < 6.




[gentoo-dev] [PATCH] ssl-cert.eclass: EAPI 8 support and add guard

2021-09-14 Thread Eray Aslan
---
 eclass/ssl-cert.eclass | 9 +++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/eclass/ssl-cert.eclass b/eclass/ssl-cert.eclass
index 36945be3cd6..e5dfbbb141c 100644
--- a/eclass/ssl-cert.eclass
+++ b/eclass/ssl-cert.eclass
@@ -6,7 +6,7 @@
 # maintainer-nee...@gentoo.org
 # @AUTHOR:
 # Max Kalika 
-# @SUPPORTED_EAPIS: 1 2 3 4 5 6 7
+# @SUPPORTED_EAPIS: 1 2 3 4 5 6 7 8
 # @BLURB: Eclass for SSL certificates
 # @DESCRIPTION:
 # This eclass implements a standard installation procedure for installing
@@ -19,13 +19,15 @@ case "${EAPI:-0}" in
0)
die "${ECLASS}.eclass: EAPI=0 is not supported.  Please upgrade 
to EAPI >= 1."
;;
-   1|2|3|4|5|6|7)
+   1|2|3|4|5|6|7|8)
;;
*)
die "${ECLASS}.eclass: EAPI=${EAPI} is not supported yet."
;;
 esac
 
+if [[ ! ${_SSL_CERT_ECLASS} ]]; then
+
 # @ECLASS-VARIABLE: SSL_CERT_MANDATORY
 # @PRE_INHERIT
 # @DESCRIPTION:
@@ -283,3 +285,6 @@ install_cert() {
ewarn "Some requested certificates were not generated"
fi
 }
+
+_SSL_CERT_ECLASS=1
+fi
-- 
2.33.0