os_linux_pkglist и наследование профилей

Добрый день.
Есть своя сборка наследованная с CLS

#cat /var/lib/layman/test/profiles/ONE/amd64/parent
distros:CLS/amd64
..

Чрутимся -

#cl-core-variables-show --only-value main.os_linux_pkglist
calculate,desktop,CLS,ONE

Делаем вторую сборку, с наследованием от первой.

#cat /var/lib/layman/test/profiles/TWO/amd64/parent
test:ONE/amd64
..

Чрутимся -

#cl-core-variables-show --only-value main.os_linux_pkglist
TWO

Как формируется значение переменной и что я сломал?
Возможно это не единственная переменная которая “сломалась”.

Что показывает во второй сборке

emerge --info
calculate / # emerge --info 
Portage 2.3.0 (python 3.4.3-final-0, ONE/amd64, gcc-4.9.3, glibc-2.22-r4, 4.4.26-calculate x86_64)
=================================================================
System uname: Linux-4.4.26-calculate-x86_64-Intel-R-_Xeon-R-_CPU_E5-2670_0_@_2.60GHz-with-gentoo-15.17
KiB Mem:     8166904 total,   1968280 free
KiB Swap:   12283384 total,  12177048 free
Timestamp of repository gentoo: Tue, 22 Nov 2016 10:00:01 +0000
sh bash 4.3_p48
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p48::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.6.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git://git.calculate-linux.org/repo/gentoo.git
    priority: -1000

test
    location: /var/lib/layman/test
    masters: calculate gentoo
    priority: 0

distros
    location: /var/lib/layman/distros
    masters: calculate gentoo
    priority: 1

calculate
    location: /var/lib/layman/calculate
    masters: gentoo
    priority: 2

Installed sets: @custom
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=x86-64 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=x86-64 -pipe"
DISTDIR="/var/calculate/remote/distfiles"
EMERGE_DEFAULT_OPTS=" --quiet-build=n --with-bdeps=y --binpkg-respect-use=y --jobs=4 --jobs=1"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles getbinpkg merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles http://distfiles.gentoo.org"
LANG="ru_RU.utf8"
LDFLAGS="-Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/var/calculate/remote/builder/nyx"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/calculate/tmp"
USE="3dnow 3dnowext a52 aac acl acpi aes alsa amd64 amr audiofile avi avx berkdb bittorrent bluetooth bzip2 cairo cdda cddb cdparanoia cdr chm cli cpudetection cracklib crypt css cue cups cxx djvu dri dv dvd dvdr dvdread ebook encode exif faac ffmpeg flac flash fma3 fma4 foomaticdb fortran ftp gd gdbm gif gphoto2 gpm gstreamer hunspell iconv id3tag ieee1394 imagemagick imap ios ipod ipv6 irc jabber jpeg jpeg2k libnotify libwww lm_sensors logrotate lzo mad matroska mbox mikmod mmx mmxext modules mp3 mpeg mplayer multilib musepack ncurses networkmanager nfs nls nptl nsplugin ogg oggvorbis openal opencore-amr openexr openmp opus oscar padlock pam pcre pdf pm-utils png policykit popcnt portaudio ppp pulseaudio qt3support quicktime raw rdesktop readline real samba scanner sdl seccomp semantic-desktop session smp speex spell srt sse sse2 sse3 sse4_1 sse4_2 sse4a ssl ssse3 taglib tcpd tga theora threads tiff truetype udev udisks unicode usb userlocales v4l v4l2 vaapi vcd vdpau vhosts vorbis vpx wavpack webp wimax win32codecs wmf wxwindows x264 x265 xanim xattr xcomposite xinerama xmp xop xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="* ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow mmx sse sse2 * mmxext" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 efi-32 pc" INPUT_DEVICES="keyboard mouse evdev mutouch synaptics" KERNEL="linux" L10N="en en_GB ru ru_RU" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB ru ru_RU" LIRC_DEVICES="devinput" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" THEMES="CLS" USERLAND="GNU" VIDEO_CARDS="amdgpu i915 i965 intel nouveau nv nvidia r100 r200 r300 r600 radeon radeonsi vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

Этот выводе <<emerge --info>> он точно от из второй системы, где выбран TWO/amd64. emerge --info, говорит, что ONE/amd64. Вы может приложить архив test репозитория?

Точно из второй.
Пересоздал оверлей, переменная “ломаться” перестала, но после работы шаблонов во втором случае полностью чистится world. Подробности во вложении.

logs_overlay.tar.gz (17.5 KB)

Поменял родительские пути на относительные - полёт нормальный.
/var/lib/layman/test/profiles/ONE/amd64/parent

-distros:CLS/amd64
+../../../../distros/profiles/CLS/amd64
..

/var/lib/layman/test/profiles/TWO/amd64/parent

-test:ONE/amd64
+../../ONE/amd64
..