public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Sergei Trofimovich <slyfox@gentoo.org>
To: Ulrich Mueller <ulm@gentoo.org>
Cc: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] [PATCH 1/5] haskell-cabal.eclass: drop EAPI={0..5} support
Date: Sat, 10 Jul 2021 12:09:11 +0100	[thread overview]
Message-ID: <20210710120911.7c86edd3@zn3> (raw)
In-Reply-To: <u8s2jzyix@gentoo.org>

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

On Tue, 06 Jul 2021 09:34:14 +0200
Ulrich Mueller <ulm@gentoo.org> wrote:

> >>>>> On Tue, 06 Jul 2021, Sergei Trofimovich wrote:  
>  
> >  case "${EAPI:-0}" in  
> 
> This could be just ${EAPI} now (and quotes were never necessary).
> 
> > -	0|1) ;;
> > -	2|3|4|5|6|7) HASKELL_CABAL_EXPF+=" src_configure" ;;
> > +	6|7) ;;
> >  	*) die "EAPI ${EAPI} unsupported." ;;  
> 
> 
> I'd suggest to update to die message to what is used in other eclasses
> (see toolchain-funcs.eclass for example):
> 
> 	*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
> 
> >  esac  
> 
> Same comment for the other eclasses of this series.
> 
> Ulrich

Sounds good. Done both as:

--- a/eclass/haskell-cabal.eclass
+++ b/eclass/haskell-cabal.eclass
@@ -40,11 +40,11 @@
 #                  FEATURE can be removed once https://github.com/haskell/cabal/issues/7213
 #                  is fixed.

-case "${EAPI:-0}" in
+case ${EAPI} in
        # eutils is for eqawarn
        6|7) inherit eutils ;;
        8) ;;
-       *) die "EAPI ${EAPI} unsupported." ;;
+       *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac

 inherit ghc-package multilib toolchain-funcs


-- 

  Sergei

[-- Attachment #2: Цифровая подпись OpenPGP --]
[-- Type: application/pgp-signature, Size: 981 bytes --]

  reply	other threads:[~2021-07-10 11:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-05 22:25 [gentoo-dev] [PATCH 0/6] haskell eclass update to EAPI=8, old EAPI={0..5} removal Sergei Trofimovich
2021-07-05 22:25 ` [gentoo-dev] [PATCH 1/5] haskell-cabal.eclass: drop EAPI={0..5} support Sergei Trofimovich
2021-07-06  7:34   ` Ulrich Mueller
2021-07-10 11:09     ` Sergei Trofimovich [this message]
2021-07-05 22:25 ` [gentoo-dev] [PATCH 2/5] ghc-package.eclass: " Sergei Trofimovich
2021-07-05 22:25 ` [gentoo-dev] [PATCH 3/5] ghc-package.eclass: allow EAPI=8 Sergei Trofimovich
2021-07-05 22:25 ` [gentoo-dev] [PATCH 4/5] haskell-cabal.eclass: " Sergei Trofimovich
2021-07-05 22:25 ` [gentoo-dev] [PATCH 5/5] dev-haskell/c2hs: bump up to 0.28.8, EAPI=8 example Sergei Trofimovich
2021-07-10 11:12 ` [gentoo-dev] Re: [PATCH 0/6] haskell eclass update to EAPI=8, old EAPI={0..5} removal Sergei Trofimovich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210710120911.7c86edd3@zn3 \
    --to=slyfox@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    --cc=ulm@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox