Hi guys,

I read just now post on IRC about migration to Gentoo Profile Version
17.0. About this, as introduces in some post to IRC I'm currently try
to review work done about Docker build image process.

On review process I tried to rebuild docker layers without replace
directly /etc/portage directory with /opt/sabayon-build/conf/${ARCH}
but with creation of sabayon profile.

# eselect profile list
Available profile symlink targets:
  [1]   default/linux/amd64/13.0
...
  [12]  default/linux/amd64/13.0/sabayon *

On my experiment I create an hook on portage sync that use directly
directory /usr/portage/profiles but I see that these changes could be
done directly to sabayon-distro overlay.

In this way, users that would be create custom repository with few
changes could be configure sabayon profile and use classic /etc/portage
directory for customize useflag, etc. or also Gentoo users that want
use Sabayon base environment (use flags, keywords, etc.) could be
configure it simply with some steps after dowload correct layman.

However, currently there are some problems on this solution that
doesn't permit a clean migration to Gentoo Profiles:

* set PYTHON_TARGETS / USE_PYTHON configured on make.deafults under
profile seems doesn't catch correctly, must be set on
/etc/portage/make.conf

* current PMS engine doesn't support package.mask with repos. Example:
sys-devel/gcc::gentoo, for this masking is required push file under
/etc/portage/package.mask/. Some things (at least seems) for .env
files.

So, also with these limitations I think that could be a fine solutions
and probably could be take opportunity for migrate to gentoo profile 17
for test this.

If are present these variables:

GENTOO_PROFILE_NAME="/sabayon"
SABAYON_PROFILE_TARGETS="/systemd /sabayon/amd64"

Code for create targets and file under /etc/portage (from build
project) is here:
https://github.com/geaaru/sabayon-reload/blob/master/sabayon-stuff/comm
ons.sh#L218

I'm currently testing this solution with sabayon-stage3 docker image
and with some fix it seems works fine.

WDYT?

G.


Reply via email to