public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] cuda.eclass EAPI-support shuffle
@ 2021-07-14 22:49 Marek Szuba
  2021-07-14 22:49 ` [gentoo-dev] [PATCH] cuda.eclass: EAPI support: add 8, drop 5 and 6 Marek Szuba
  0 siblings, 1 reply; 5+ messages in thread
From: Marek Szuba @ 2021-07-14 22:49 UTC (permalink / raw
  To: gentoo-dev

Like fortran-2 adding support for EAPI 8 appears to be trivial, unlike
fortran-2 we have no longer got any deprecated-EAPI ebuilds in the tree
inheriting it.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [gentoo-dev] [PATCH] cuda.eclass: EAPI support: add 8, drop 5 and 6
  2021-07-14 22:49 [gentoo-dev] cuda.eclass EAPI-support shuffle Marek Szuba
@ 2021-07-14 22:49 ` Marek Szuba
  2021-07-15  5:58   ` Ulrich Mueller
  0 siblings, 1 reply; 5+ messages in thread
From: Marek Szuba @ 2021-07-14 22:49 UTC (permalink / raw
  To: gentoo-dev

Signed-off-by: Marek Szuba <marecki@gentoo.org>
---
 eclass/cuda.eclass | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/eclass/cuda.eclass b/eclass/cuda.eclass
index b1da77c69dd..08d2302d55b 100644
--- a/eclass/cuda.eclass
+++ b/eclass/cuda.eclass
@@ -1,11 +1,11 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 case "${EAPI:-0}" in
-	0|1|2|3|4)
+	[0-6])
 		die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}"
 		;;
-	5|6|7)
+	7|8)
 		;;
 	*)
 		die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
@@ -15,7 +15,7 @@ esac
 # @ECLASS: cuda.eclass
 # @MAINTAINER:
 # Gentoo Science Project <sci@gentoo.org>
-# @SUPPORTED_EAPIS: 5 6 7
+# @SUPPORTED_EAPIS: 7 8
 # @BLURB: Common functions for cuda packages
 # @DESCRIPTION:
 # This eclass contains functions to be used with cuda package. Currently it is
-- 
2.31.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] [PATCH] cuda.eclass: EAPI support: add 8, drop 5 and 6
  2021-07-14 22:49 ` [gentoo-dev] [PATCH] cuda.eclass: EAPI support: add 8, drop 5 and 6 Marek Szuba
@ 2021-07-15  5:58   ` Ulrich Mueller
  2021-07-15 20:41     ` Marek Szuba
  0 siblings, 1 reply; 5+ messages in thread
From: Ulrich Mueller @ 2021-07-15  5:58 UTC (permalink / raw
  To: Marek Szuba; +Cc: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 542 bytes --]

>>>>> On Thu, 15 Jul 2021, Marek Szuba wrote:
 
>  case "${EAPI:-0}" in
> -	0|1|2|3|4)
> +	[0-6])
>  		die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}"
>  		;;
> -	5|6|7)
> +	7|8)
>  		;;
>  	*)
>  		die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"

In the latest bunch of updates, we have changed many eclasses to have
only a single error case, and also standardized the die message.
Maybe simplify this eclass as well?

case ${EAPI} in
	7|8) ;;
	*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 507 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] [PATCH] cuda.eclass: EAPI support: add 8, drop 5 and 6
  2021-07-15  5:58   ` Ulrich Mueller
@ 2021-07-15 20:41     ` Marek Szuba
  2021-07-16 21:41       ` Sam James
  0 siblings, 1 reply; 5+ messages in thread
From: Marek Szuba @ 2021-07-15 20:41 UTC (permalink / raw
  To: Ulrich Mueller; +Cc: gentoo-dev


[-- Attachment #1.1: Type: text/plain, Size: 567 bytes --]

On 2021-07-15 06:58, Ulrich Mueller wrote:

> In the latest bunch of updates, we have changed many eclasses to have
> only a single error case, and also standardized the die message.
> Maybe simplify this eclass as well?

If anyone from Sci suggests/seconds this I shall not argue, that said I 
do in fact like having both the two cases separate and the eclass name 
in the die message - so between that and the fact we have already got 
EAPI 8-compatible eclasses in the tree which do it this way, I am 
leaving this part be at present.

-- 
Marecki


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] [PATCH] cuda.eclass: EAPI support: add 8, drop 5 and 6
  2021-07-15 20:41     ` Marek Szuba
@ 2021-07-16 21:41       ` Sam James
  0 siblings, 0 replies; 5+ messages in thread
From: Sam James @ 2021-07-16 21:41 UTC (permalink / raw
  To: gentoo-dev; +Cc: Ulrich Mueller

[-- Attachment #1: Type: text/plain, Size: 718 bytes --]



> On 15 Jul 2021, at 21:41, Marek Szuba <marecki@gentoo.org> wrote:
> 
> On 2021-07-15 06:58, Ulrich Mueller wrote:
> 
>> In the latest bunch of updates, we have changed many eclasses to have
>> only a single error case, and also standardized the die message.
>> Maybe simplify this eclass as well?
> 
> If anyone from Sci suggests/seconds this I shall not argue, that said I do in fact like having both the two cases separate and the eclass name in the die message - so between that and the fact we have already got EAPI 8-compatible eclasses in the tree which do it this way, I am leaving this part be at present.
> 

I'd prefer the consistency given that's what we're moving towards, if possible.


[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 618 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-07-16 21:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-14 22:49 [gentoo-dev] cuda.eclass EAPI-support shuffle Marek Szuba
2021-07-14 22:49 ` [gentoo-dev] [PATCH] cuda.eclass: EAPI support: add 8, drop 5 and 6 Marek Szuba
2021-07-15  5:58   ` Ulrich Mueller
2021-07-15 20:41     ` Marek Szuba
2021-07-16 21:41       ` Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox