Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: Andrew Savchenko <bircoph@g.o>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH v2] fortran-2.eclass: support EAPI 7
Date: Fri, 02 Nov 2018 10:27:50
Message-Id: w6gy3ab3hbi.fsf@kph.uni-mainz.de
In Reply to: Re: [gentoo-dev] [PATCH v2] fortran-2.eclass: support EAPI 7 by Andrew Savchenko
1 >>>>> On Thu, 01 Nov 2018, Andrew Savchenko wrote:
2
3 > -inherit eutils toolchain-funcs
4 > +inherit toolchain-funcs
5 > +case ${EAPI:-0} in
6 > + # not used in the eclass, but left for backward compatibility with legacy users
7 > + 4|5|6) inherit eutils ;;
8 > + 7) ;;
9 > + *) die "EAPI=${EAPI} is not supported" ;;
10 > +esac
11 >
12 > case ${EAPI:-0} in
13 > - 4|5|6) EXPORT_FUNCTIONS pkg_setup ;;
14 > + 4|5|6|7) EXPORT_FUNCTIONS pkg_setup ;;
15 > *) die "EAPI=${EAPI} is not supported" ;;
16 > esac
17
18 Why is the second case statement needed? Program flow can only reach it
19 if the EAPI is 4, 5, 6, or 7.
20
21 Ulrich

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] [PATCH v2] fortran-2.eclass: support EAPI 7 Andrew Savchenko <bircoph@g.o>