From: Brian Dolbec <dolsen@gentoo.org>
To: gentoo-catalyst@lists.gentoo.org
Subject: Re: [gentoo-catalyst] [PATCH] New default PORTDIR, PKGDIR, and DISTDIR settings approved by council
Date: Thu, 2 May 2019 20:17:42 -0700 [thread overview]
Message-ID: <20190502201742.7db1673b@professor-x> (raw)
In-Reply-To: <20190502030052.14672-1-zmedico@gentoo.org>
On Wed, 1 May 2019 20:00:52 -0700
Zac Medico <zmedico@gentoo.org> wrote:
> 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>
> ---
> README | 2 +-
> catalyst/base/stagebase.py | 2 +-
> doc/catalyst-config.5.txt | 25 ++++++++++++-------------
> etc/catalyst.conf | 14 +++++++-------
> examples/generic_stage_template.spec | 2 +-
> examples/grp_template.spec | 2 +-
> examples/livecd-stage1_template.spec | 2 +-
> examples/livecd-stage2_template.spec | 4 ++--
> examples/netboot_template.spec | 2 +-
> examples/stage4_template.spec | 4 ++--
> examples/tinderbox_template.spec | 2 +-
> livecd/files/livecd-local.start | 4 ++--
> 12 files changed, 32 insertions(+), 33 deletions(-)
>
> diff --git a/README b/README
> index 7be176c3..63156373 100644
> --- a/README
> +++ b/README
> @@ -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:
>
Damn, I missed seeing this one when converting to a single source
global variable definition. easy fix...
> # 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
prev parent reply other threads:[~2019-05-03 3:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-02 3:00 [gentoo-catalyst] [PATCH] New default PORTDIR, PKGDIR, and DISTDIR settings approved by council Zac Medico
2019-05-03 3:17 ` Brian Dolbec [this message]
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=20190502201742.7db1673b@professor-x \
--to=dolsen@gentoo.org \
--cc=gentoo-catalyst@lists.gentoo.org \
/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