diff options
author | Zac Medico <zmedico@gentoo.org> | 2019-05-01 19:50:37 -0700 |
---|---|---|
committer | Ben Kohler <bkohler@gentoo.org> | 2019-05-24 09:39:51 -0500 |
commit | 91eb3317ee581f7d1eeacc68ebe88de5a1cdfd1a (patch) | |
tree | 0fe39a6f5871482a3459631a0ad69e099bfceae8 | |
parent | Add builder for riscv64-unknown-linux-gnu (diff) | |
download | catalyst-91eb3317ee581f7d1eeacc68ebe88de5a1cdfd1a.tar.gz catalyst-91eb3317ee581f7d1eeacc68ebe88de5a1cdfd1a.tar.bz2 catalyst-91eb3317ee581f7d1eeacc68ebe88de5a1cdfd1a.zip |
New default PORTDIR, PKGDIR, and DISTDIR settings approved by council
The locations approved by the council:
DISTDIR="/var/cache/distfiles"
PKGDIR="/var/cache/binpkgs"
PORTDIR="/var/db/repos/gentoo"
Bug: https://bugs.gentoo.org/684908
Signed-off-by: Zac Medico <zmedico@gentoo.org>
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | catalyst/base/stagebase.py | 2 | ||||
-rw-r--r-- | doc/catalyst-config.5.txt | 25 | ||||
-rw-r--r-- | etc/catalyst.conf | 14 | ||||
-rw-r--r-- | examples/generic_stage_template.spec | 2 | ||||
-rw-r--r-- | examples/grp_template.spec | 2 | ||||
-rw-r--r-- | examples/livecd-stage1_template.spec | 2 | ||||
-rw-r--r-- | examples/livecd-stage2_template.spec | 4 | ||||
-rw-r--r-- | examples/netboot_template.spec | 2 | ||||
-rw-r--r-- | examples/stage4_template.spec | 4 | ||||
-rw-r--r-- | examples/tinderbox_template.spec | 2 | ||||
-rw-r--r-- | livecd/files/livecd-local.start | 4 |
12 files changed, 32 insertions, 33 deletions
@@ -52,7 +52,7 @@ distribution tarball's files directory. Example catalyst.conf: -distdir="/usr/portage/distfiles" +distdir="/var/cache/distfiles" options="pkgcache kerncache" sharedir="/usr/share/catalyst" diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py index 54a1f389..4e81a9b1 100644 --- a/catalyst/base/stagebase.py +++ b/catalyst/base/stagebase.py @@ -1020,7 +1020,7 @@ class StageBase(TargetBase, ClearBase, GenBase): ouch = 1 log.warning("Couldn't umount bind mount: %s", target) - if "snapcache" in self.settings["options"] and x == "/usr/portage": + if "snapcache" in self.settings["options"] and x == "/var/db/repos/gentoo": try: # It's possible the snapshot lock object isn't created yet. # This is because mount safety check calls unbind before the diff --git a/doc/catalyst-config.5.txt b/doc/catalyst-config.5.txt index 957ab0e6..76ac4a29 100644 --- a/doc/catalyst-config.5.txt +++ b/doc/catalyst-config.5.txt @@ -31,14 +31,14 @@ envscript="/etc/catalyst/catalystrc" options="autoresume bindist kerncache pkgcache seedcache snapcache" # source repo settings -distdir="/usr/portage/distfiles" -portdir="/usr/portage" +distdir="/var/cache/distfiles" +portdir="/var/db/repos/gentoo" # target repo info -repo_basedir="/usr" -repo_name="portage" -target_distdir="/usr/portage/distfiles" -target_pkgdir="/usr/portage/packages" +repo_basedir="/var/db/repos" +repo_name="gentoo" +target_distdir="/var/cache/distfiles" +target_pkgdir="/var/cache/binpkgs" # other catalyst settings sharedir="/usr/share/catalyst" @@ -156,17 +156,16 @@ Repository settings *distdir*:: Source distfiles location used in generation of the stages. This is usually the -hosts distfiles location. `/usr/portage/distfiles` should work for most +hosts distfiles location. `/var/cache/distfiles` should work for most default installations, but it should be set to match your hosts configuration. *portdir*:: -Source Gentoo tree location (primary repo). `/usr/portage/` should work for most +Source Gentoo tree location (primary repo). `/var/db/repos/gentoo/` should work for most default installations. *repo_basedir*:: -The target repository directory to contain the rimary repo (gentoo repo) and -any overlays. `/usr` is the historical location. But that is in the process of -changing. `/var/gentoo/repos` is an option. +The target repository directory to contain the primary repo (gentoo repo) and +any overlays. The default location is `/var/db/repos`. *repo_name*:: The name of the main repository (ie: gentoo). This has had a directory name @@ -180,12 +179,12 @@ internal repo_name value should be the same. This is the target distfiles directory location for the stage being created. This is important because this value will be stored in the stage's make.conf and will become the default location used if it is not edited by users. -The default location is `/usr/portage/distfiles`. +The default location is `/var/cache/distfiles`. *target_pkgdir*:: This is the target packages directory for storing binpkgs in the stage being built. This location is stored in the make.conf of the stage being built. -The default location for this has typically been `/usr/portage/packages` +The default location for this has typically been `/var/cache/binpkgs` Other settings ~~~~~~~~~~~~~~ diff --git a/etc/catalyst.conf b/etc/catalyst.conf index 7d7f7aba..5a5eedba 100644 --- a/etc/catalyst.conf +++ b/etc/catalyst.conf @@ -28,7 +28,7 @@ contents="auto" # distdir specifies where your distfiles are located. This setting should # work fine for most default installations. -distdir="/usr/portage/distfiles" +distdir="/var/cache/distfiles" # envscript allows users to set options such as http proxies, MAKEOPTS, # GENTOO_MIRRORS, or any other environment variables needed for building. @@ -84,18 +84,18 @@ hash_function="crc32" options="autoresume bindist kerncache pkgcache seedcache snapcache" # Source portdir specifies the source portage tree used by the snapshot target. -portdir="/usr/portage" +portdir="/var/db/repos/gentoo" # Target portdir setting. It needs to be in 2 parts. # They will be used separately, then added together where needed. # eg: -# repo_basedir="/var/lib/repos" +# repo_basedir="/var/db/repos" # repo_name="gentoo" # -repo_basedir="/usr" -repo_name="portage" -target_distdir="/usr/portage/distfiles" -target_pkgdir="/usr/portage/packages" +repo_basedir="/var/db/repos" +repo_name="gentoo" +target_distdir="/var/cache/distfiles" +target_pkgdir="/var/cache/binpkgs" # sharedir specifies where all of the catalyst runtime executables # and other shared lib objects are. diff --git a/examples/generic_stage_template.spec b/examples/generic_stage_template.spec index 40a3d5c0..01c37789 100644 --- a/examples/generic_stage_template.spec +++ b/examples/generic_stage_template.spec @@ -28,7 +28,7 @@ target: rel_type: # This is the system profile to be used by catalyst to build this target. It is -# specified as a relative path from /usr/portage/profiles. +# specified as a relative path from /var/db/repos/gentoo/profiles. # example: # profile: default-linux/x86/2006.1 profile: diff --git a/examples/grp_template.spec b/examples/grp_template.spec index 71160266..3a0e15a8 100644 --- a/examples/grp_template.spec +++ b/examples/grp_template.spec @@ -28,7 +28,7 @@ target: grp rel_type: # This is the system profile to be used by catalyst to build this target. It is -# specified as a relative path from /usr/portage/profiles. +# specified as a relative path from /var/db/repos/gentoo/profiles. # example: # profile: default-linux/x86/2006.1 profile: diff --git a/examples/livecd-stage1_template.spec b/examples/livecd-stage1_template.spec index 90ae1990..c7086c91 100644 --- a/examples/livecd-stage1_template.spec +++ b/examples/livecd-stage1_template.spec @@ -28,7 +28,7 @@ target: rel_type: # This is the system profile to be used by catalyst to build this target. It is -# specified as a relative path from /usr/portage/profiles. +# specified as a relative path from /var/db/repos/gentoo/profiles. # example: # profile: default-linux/x86/2006.1 profile: diff --git a/examples/livecd-stage2_template.spec b/examples/livecd-stage2_template.spec index 8aa454c9..cc5cf00e 100644 --- a/examples/livecd-stage2_template.spec +++ b/examples/livecd-stage2_template.spec @@ -28,7 +28,7 @@ target: rel_type: # This is the system profile to be used by catalyst to build this target. It is -# specified as a relative path from /usr/portage/profiles. +# specified as a relative path from /var/db/repos/gentoo/profiles. # example: # profile: default-linux/x86/2006.1 profile: @@ -354,7 +354,7 @@ livecd/unmerge: # rid of files that don't belong to a particular package, or removing files from # a package that you wish to keep, but won't need the full functionality. # example: -# livecd/empty: /var/tmp /var/cache /var/db /var/empty /var/lock /var/log /var/run /var/spool /var/state /tmp /usr/portage /usr/share/man /usr/share/info /usr/share/unimaps /usr/include /usr/share/zoneinfo /usr/share/dict /usr/share/doc /usr/share/ss /usr/share/state /usr/share/texinfo /usr/lib/python2.2 /usr/lib/portage /usr/share/gettext /usr/share/i18n /usr/share/rfc /usr/lib/X11/config /usr/lib/X11/etc /usr/lib/X11/doc /usr/src /usr/share/doc /usr/share/man /etc/cron.daily /etc/cron.hourly /etc/cron.monthly /etc/cron.weekly /etc/logrotate.d /etc/rsync /usr/lib/awk /usr/lib/ccache /usr/lib/gcc-config /usr/lib/nfs /usr/local /usr/diet/include /usr/diet/man /usr/share/consolefonts/partialfonts /usr/share/consoletrans /usr/share/emacs /usr/share/gcc-data /usr/share/genkernel /etc/bootsplash/gentoo /etc/bootsplash/gentoo-highquality /etc/splash/gentoo /etc/splash/emergence /usr/share/gnuconfig /usr/share/lcms /usr/share/locale /etc/skel +# livecd/empty: /var/tmp /var/cache /var/db /var/empty /var/lock /var/log /var/run /var/spool /var/state /tmp /var/db/repos/gentoo /usr/share/man /usr/share/info /usr/share/unimaps /usr/include /usr/share/zoneinfo /usr/share/dict /usr/share/doc /usr/share/ss /usr/share/state /usr/share/texinfo /usr/lib/python2.2 /usr/lib/portage /usr/share/gettext /usr/share/i18n /usr/share/rfc /usr/lib/X11/config /usr/lib/X11/etc /usr/lib/X11/doc /usr/src /usr/share/doc /usr/share/man /etc/cron.daily /etc/cron.hourly /etc/cron.monthly /etc/cron.weekly /etc/logrotate.d /etc/rsync /usr/lib/awk /usr/lib/ccache /usr/lib/gcc-config /usr/lib/nfs /usr/local /usr/diet/include /usr/diet/man /usr/share/consolefonts/partialfonts /usr/share/consoletrans /usr/share/emacs /usr/share/gcc-data /usr/share/genkernel /etc/bootsplash/gentoo /etc/bootsplash/gentoo-highquality /etc/splash/gentoo /etc/splash/emergence /usr/share/gnuconfig /usr/share/lcms /usr/share/locale /etc/skel livecd/empty: # This option tells catalyst to clean specific files from the filesystem and is diff --git a/examples/netboot_template.spec b/examples/netboot_template.spec index 0cffc661..c1726103 100644 --- a/examples/netboot_template.spec +++ b/examples/netboot_template.spec @@ -28,7 +28,7 @@ target: rel_type: # This is the system profile to be used by catalyst to build this target. It is -# specified as a relative path from /usr/portage/profiles. +# specified as a relative path from /var/db/repos/gentoo/profiles. # example: # profile: default-linux/x86/2006.1 profile: diff --git a/examples/stage4_template.spec b/examples/stage4_template.spec index 4066bf5b..fe394f3e 100644 --- a/examples/stage4_template.spec +++ b/examples/stage4_template.spec @@ -28,7 +28,7 @@ target: rel_type: # This is the system profile to be used by catalyst to build this target. It is -# specified as a relative path from /usr/portage/profiles. +# specified as a relative path from /var/db/repos/gentoo/profiles. # example: # profile: default-linux/x86/2006.1 profile: @@ -252,7 +252,7 @@ stage4/unmerge: # rid of files that don't belong to a particular package, or removing files from # a package that you wish to keep, but won't need the full functionality. # example: -# stage4/empty: /var/tmp /var/cache /var/db /var/empty /var/lock /var/log /var/run /var/spool /var/state /tmp /usr/portage /usr/share/man /usr/share/info /usr/share/unimaps /usr/include /usr/share/zoneinfo /usr/share/dict /usr/share/doc /usr/share/ss /usr/share/state /usr/share/texinfo /usr/lib/python2.2 /usr/lib/portage /usr/share/gettext /usr/share/i18n /usr/share/rfc /usr/lib/X11/config /usr/lib/X11/etc /usr/lib/X11/doc /usr/src /usr/share/doc /usr/share/man /etc/cron.daily /etc/cron.hourly /etc/cron.monthly /etc/cron.weekly /etc/logrotate.d /etc/rsync /usr/lib/awk /usr/lib/ccache /usr/lib/gcc-config /usr/lib/nfs /usr/local /usr/diet/include /usr/diet/man /usr/share/consolefonts/partialfonts /usr/share/consoletrans /usr/share/emacs /usr/share/gcc-data /usr/share/genkernel /etc/splash/gentoo /etc/splash/emergence /usr/share/gnuconfig /usr/share/lcms /usr/share/locale /etc/skel +# stage4/empty: /var/tmp /var/cache /var/db /var/empty /var/lock /var/log /var/run /var/spool /var/state /tmp /var/db/repos/gentoo /usr/share/man /usr/share/info /usr/share/unimaps /usr/include /usr/share/zoneinfo /usr/share/dict /usr/share/doc /usr/share/ss /usr/share/state /usr/share/texinfo /usr/lib/python2.2 /usr/lib/portage /usr/share/gettext /usr/share/i18n /usr/share/rfc /usr/lib/X11/config /usr/lib/X11/etc /usr/lib/X11/doc /usr/src /usr/share/doc /usr/share/man /etc/cron.daily /etc/cron.hourly /etc/cron.monthly /etc/cron.weekly /etc/logrotate.d /etc/rsync /usr/lib/awk /usr/lib/ccache /usr/lib/gcc-config /usr/lib/nfs /usr/local /usr/diet/include /usr/diet/man /usr/share/consolefonts/partialfonts /usr/share/consoletrans /usr/share/emacs /usr/share/gcc-data /usr/share/genkernel /etc/splash/gentoo /etc/splash/emergence /usr/share/gnuconfig /usr/share/lcms /usr/share/locale /etc/skel stage4/empty: # This option tells catalyst to clean specific files from the filesystem and is diff --git a/examples/tinderbox_template.spec b/examples/tinderbox_template.spec index f1af09c8..d5575b4a 100644 --- a/examples/tinderbox_template.spec +++ b/examples/tinderbox_template.spec @@ -26,7 +26,7 @@ target: tinderbox rel_type: # This is the system profile to be used by catalyst to build this target. It is -# specified as a relative path from /usr/portage/profiles. +# specified as a relative path from /var/db/repos/gentoo/profiles. # example: # profile: default-linux/x86/2006.1 profile: diff --git a/livecd/files/livecd-local.start b/livecd/files/livecd-local.start index 11a7d28a..3615569c 100644 --- a/livecd/files/livecd-local.start +++ b/livecd/files/livecd-local.start @@ -16,10 +16,10 @@ if [ -d /usr/livecd/profiles ] then - ln -sf /usr/livecd/profiles /usr/portage/profiles + ln -sf /usr/livecd/profiles /var/db/repos/gentoo/profiles fi if [ -d /usr/livecd/eclass ] then - ln -sf /usr/livecd/eclass /usr/portage/eclass + ln -sf /usr/livecd/eclass /var/db/repos/gentoo/eclass fi |