dyn_help() {
echo
echo "Portage"
- echo "Copyright 1999-2006 Gentoo Foundation"
+ echo "Copyright 1999-2008 Gentoo Foundation"
echo
echo "How to use the ebuild command:"
echo
eapi0_src_configure () { die "$FUNCNAME is not supported" ; }
eapi0_src_compile () { _eapi0_src_compile "$@" ; }
eapi0_src_test () { _eapi0_src_test "$@" ; }
- eapi0_src_install () { _eapi0_src_install "$@" ; }
+ eapi0_src_install () { die "$FUNCNAME is not supported" ; }
eapi1_pkg_nofetch () { _eapi0_pkg_nofetch "$@" ; }
eapi1_src_unpack () { _eapi0_src_unpack "$@" ; }
eapi1_src_configure () { die "$FUNCNAME is not supported" ; }
eapi1_src_compile () { _eapi1_src_compile "$@" ; }
eapi1_src_test () { _eapi0_src_test "$@" ; }
- eapi1_src_install () { _eapi0_src_install "$@" ; }
+ eapi1_src_install () { die "$FUNCNAME is not supported" ; }
eapi2_pkg_nofetch () { _eapi0_pkg_nofetch "$@" ; }
eapi2_src_unpack () { _eapi0_src_unpack "$@" ; }
eapi2_src_configure () { _eapi2_src_configure "$@" ; }
eapi2_src_compile () { _eapi2_src_compile "$@" ; }
eapi2_src_test () { _eapi0_src_test "$@" ; }
- eapi2_src_install () { _eapi0_src_install "$@" ; }
+ eapi2_src_install () { die "$FUNCNAME is not supported" ; }
for x in $default_phases ; do
eval "default_$x() { eapi2_$x \"\$@\" ; }"
deemed necessary for your system to run properly. \fBworld\fR
contains all the packages listed in \fB/var/lib/portage/world\fR. [See
\fBFILES\fR below for more information.] Other sets can exist depending
-on the current configuration. Note that a \fIset\fR
+on the current configuration. The default set configuration is located
+in \fB/usr/share/portage/config/sets.conf\fR. Note that a \fIset\fR
is generally used in conjunction with \fB\-\-update\fR. When used as
arguments to \fBemerge\fR sets have to be prefixed with \fB@\fR to be
recognized.
Here is a common list of files you will probably be interested in. For a
complete listing, please refer to the \fBportage\fR(5) man page.
.TP
+.B /usr/share/portage/config/sets.conf
+Contains the default set configuration.
+.TP
.B /var/lib/portage/world
Contains a list of all user\-specified packages. You can safely edit
this file, adding packages that you want to be considered in \fBworld\fR
except AttributeError:
all = object.__getattribute__(self, "all")
iuse_implicit = object.__getattribute__(self, "iuse_implicit")
- self.regex = re.compile("^(%s)$" % "|".join(
- chain((re.escape(x) for x in all), iuse_implicit)))
+ # Escape anything except ".*" which is supposed
+ # to pass through from _get_implicit_iuse()
+ regex = (re.escape(x) for x in chain(all, iuse_implicit))
+ regex = "^(%s)$" % "|".join(regex)
+ regex = regex.replace("\\.\\*", ".*")
+ self.regex = re.compile(regex)
return object.__getattribute__(self, name)
def _get_hash_key(self):
iuse_implicit = self._get_implicit_iuse()
iuse_implicit.update(x.lstrip("+-") for x in iuse.split())
- self.configdict["pkg"]["PORTAGE_IUSE"] = \
- "^(%s)$" % "|".join(sorted(iuse_implicit))
+ # Escape anything except ".*" which is supposed
+ # to pass through from _get_implicit_iuse()
+ regex = sorted(re.escape(x) for x in iuse_implicit)
+ regex = "^(%s)$" % "|".join(regex)
+ regex = regex.replace("\\.\\*", ".*")
+ self.configdict["pkg"]["PORTAGE_IUSE"] = regex
ebuild_force_test = self.get("EBUILD_FORCE_TEST") == "1"
if ebuild_force_test and ebuild_phase and \