From: heroxbd <heroxbd@gentoo.org>
To: gentoo-dev@gentoo.org
Cc: redlizard@redlizard.nl
Subject: [gentoo-dev] RFC: cartesian product extension to keyword system
Date: Mon, 29 Apr 2013 16:14:51 +0900 [thread overview]
Message-ID: <87ppxdajv8.fsf@proton.in.awa.tohoku.ac.jp> (raw)
Dear all,
In GLEP22[1], reasonable defaults has been introduced to prevent the
explosion of keywords. With the growth of Gentoo Prefix, however, a
substantial amount of keywords are introduced. Among them, duplex
information exists. For example, an ebuild keyworded x86-linux(Gentoo
Prefix on x86 linux) will certainly build on x86 (Gentoo vanilla on x86
linux). Furthermore if the ebuild has "amd64" keyword, it will certainly
build on amd64-linux too.
This duplication becomes more manifested during the development of
Gentoo Prefix on arm. Introducing an arm-linux keyword is objected by
developers because we are having too many keywords[2]. But it is far
from consensus yet, as people are already adding arm-linux to
ebuilds[2].
There were also a proposal to treat arm the same as arm-linux, but
received more objections for its vagueness.
Therefore we propose the following cartesian product extension to
keyword system.
a. introducing four more variables, in order, KEYWORDS_ARCH,
KEYWORDS_KERNEL, KEYWORDS_USERLAND, KEYWORDS_LIBC. An order relation
is defined as arch > kernel > userland > libc
b. KEYWORDS_var1 must be defined if KEYWORDS_var2 is defined and var2 <
var1. Otherwise it can be omitted.
c. KEYWORDS_PROD is defined as cartesian product of KEYWORDS_ARCH,
KEYWORDS_KERNEL, KEYWORDS_USERLAND, KEYWORDS_LIBC. Omitted variable
is interpreted as empty and not counted in the product. e.g., if
KEYWORDS_USERLAND and KEYWORDS_LIBC are not defined, KEYWORDS_PROD is
the product of KEYWORDS_ARCH and KEYWORDS_KERNEL.
c1. "~" is attached to KEYWORDS_PROD elements if any of its oprand has "~".
d. KEYWORDS is redefined as union of KEYWORDS_PROD and KEYWORDS (for
backward compatibility)
e. reasonable defaults in GLEP22 applys.
Therefore, for sys-devel/bison, the keywords proposed will be:
KEYWORDS="~hppa-hpux ~m68k-mint ~ppc-aix ~x64-solaris ~x86-interix
KEYWORDS_ARCH="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
KEYWORDS_KERNEL="~linux ~solaris ~freebsd ~fbsd ~macos"
Problems remaining:
a. how to do stablization in this case?
b. how to handle things that does not exist? e.g. sparc-macosx?
c. how to clean up confusions? e.g. x64-solaris vs amd64-solaris,
freebsd (Gentoo Prefix on FreeBSD) vs fbsd (Gentoo/FreeBSD)
Thanks,
Benda
1. http://www.gentoo.org/proj/en/glep/glep-0022.html
2. see sys-devel/bison, ~alpha ~amd64 ~amd64-fbsd ~amd64-linux ~arm ~arm-linux
~hppa ~hppa-hpux ~ia64 ~ia64-hpux ~ia64-linux ~m68k ~m68k-mint ~mips
~ppc ~ppc-aix ~ppc-macos ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd
~sparc-solaris ~sparc64-solaris ~x64-freebsd ~x64-macos ~x64-solaris
~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~x86-linux ~x86-macos
~x86-solaris
next reply other threads:[~2013-04-29 7:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-29 7:14 heroxbd [this message]
2013-04-29 7:39 ` [gentoo-dev] RFC: cartesian product extension to keyword system Fabian Groffen
2013-04-29 9:26 ` heroxbd
2013-04-29 7:53 ` Ben de Groot
2013-04-29 9:31 ` heroxbd
2013-04-29 13:43 ` Jeroen Roovers
2013-05-09 13:38 ` Alexey Shvetsov
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=87ppxdajv8.fsf@proton.in.awa.tohoku.ac.jp \
--to=heroxbd@gentoo.org \
--cc=gentoo-dev@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
--cc=redlizard@redlizard.nl \
/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