From: Philipp Riegger <lists@anderedomain.de>
To: gnap-dev@lists.gentoo.org
Subject: Re: [gnap-dev] [PATCH] Custom GNAP TEMPDIR in gnap_make
Date: Thu, 21 Jun 2007 15:40:19 +0300 [thread overview]
Message-ID: <CFFFC7C2-ECB9-47E6-8CFA-80274656DBAE@anderedomain.de> (raw)
In-Reply-To: <1182427368.15159.22.camel@supercoco>
[-- Attachment #1: Type: text/plain, Size: 1895 bytes --]
On 21.06.2007, at 15:02, josé Alberto Suárez López wrote:
> nice idea :)
>
> El jue, 21-06-2007 a las 14:48 +0300, Philipp Riegger escribió:
>> Good day.
>>
>> I though it might be nice to be able to tell gnap_make which tempdir
>> to use. I can think of 2 scenarios where this will make sense:
I'd like to discuss 2 points i'm not quite sure about.
1) keeptemp: Should this be an extra option (-K) or should this be
triggered by my introduces custom tempdir option (-T)?
2) My option is quite strange since "usually" you give a tempdir
like /var/tmp and the tool uses a subdir of that e.g. /var/tmp/gnap-
lsdfnsdf. My approach uses the given dir directly, this is kind of
not straight forward. Furthermore, if somebody uses a environment
variable TEMPDIR and -T is not used, the alternative execution path
is also used.
Some possibilities what to do:
To fix the environment thing, TEMPDIR can be set to '' before parsing
command line arguments. As an alternative we could use the GNAP*
namespace and rename it to GNAPTEMP or GNAPTEMPDIR. This would be
easier than setting all sensitive variables to '' and if somebody
messes with that namespace, it's not our fault.
To fix 2) we could use TEMPDIR/gnap or TEMPDIR/gnap-VERSIONSTAMP in
the -T case. anything against this?
Thoughts about 1): If no overlays are used, the tempdir is quite
small. If overlays are used, then it is bigger, but the data created
during the snapshot creation is simply the portage snapshot and the
overlays on top and can be found in the catalyst tempdir. So... the
big data is never really needed and it is available at another place
and the small data is the important one and does not hurt much.
Still: Should we introduce a new command like option or create some
logic when to delete what and when not? I would prefer 2.
Philipp
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 186 bytes --]
next prev parent reply other threads:[~2007-06-21 12:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-21 11:48 [gnap-dev] [PATCH] Custom GNAP TEMPDIR in gnap_make Philipp Riegger
2007-06-21 12:02 ` josé Alberto Suárez López
2007-06-21 12:40 ` Philipp Riegger [this message]
2007-06-21 13:41 ` josé Alberto Suárez López
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=CFFFC7C2-ECB9-47E6-8CFA-80274656DBAE@anderedomain.de \
--to=lists@anderedomain.de \
--cc=gnap-dev@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