From: andrea ferraris <andrea_ferraris@libero.it>
To: gentoo-portage-dev@lists.gentoo.org
Subject: Re: [gentoo-portage-dev] Conary
Date: Sun, 24 Oct 2004 13:27:52 +0200 [thread overview]
Message-ID: <417B91B8.5060704@libero.it> (raw)
In-Reply-To: <200410241115.21029.pauldv@gentoo.org>
Paul de Vrieze wrote:
> On Sunday 24 October 2004 05:18, Ed Grimm wrote:
>
>>Excluding program directories (for example, /etc/init.d), all changes to
>>existing /etc files should compensate for changes that the local
>>administrator has made. For example, when upgrading a configuration
>>file, the new version should, as much as possible, retain the changes
>>that the local administrator has made. When the ext3 filesystem tools
>>add a new option, any attempts to update /etc/fstab should ignore any
>>partitions that aren't ext3. It should not add any partitions that it
>>feels are missing, either due to having ignored a reiserfs partition or
>>due to that partition not being there. It should not alter any swap
>>partitions that haven't been modified according to a change the ext3
>>maintainer previously saw - it's possible it may have not been installed
>>here, it's possible the administrator backed it out. It should NEVER
>>try to change the partition type (for example, from ext3 to xfs, like it
>>currently wants to do.)
>
>
> This is what dispatch-conf will do if you give it time to work. For
> dispatch-conf to work you need to initialise it first. It works with
> three-way diffs, so without a reference (which gets created the first time a
> config file is updated with dispatch-conf) it doesn't work. For the rest, I
> suggest you write up a patch to dispatch-conf to allow it to ignore certain
> files. However it normally works quite well with fstab as the default one
> hardly changes, and you'd want to know about those changes anyway.
Thx to you and other kind replying people >
I don't made yet my homeworks (studying dispatch-conf), so I was
replying to Ed (with congrats), saying that was needed a 3 time diff.
I think that could be more convenient the dispatch-conf way, but
conceptually the creation of a reference is not mandatory. It's enough a
diff between the actually installed and modified file and the original
one of that version, since the system know which is the version of the
original one. Then it knows which are the original lines that
disappeared or changed and at that point it could delete such lines (or
those that substitute them) from the new standard cfg file and merge
only the remaining diffs and in any case it shouldn't never substitute
custom changes with standard in cfg files. Then it could not be bad one
comment line at the beginning of new std cfg file where is written what
changed and why (I know that for the developers could be annoying, but
it should not take more than 1-2 minutes).
>>If people are interested, I could potentially write a tutorial on
>>methods one could utilize to perform such functions. Note that this
>>would be written to writing the code in perl, as I don't know python
>>well, and it doesn't feel natural to me.
>
>
> Well, go ahead
>
There are no problem, I know neither python neither perl, so I'm the
perfect candidate to translate your perl script in python ;-) because
I'd like to learn python.
Anyway I know awk.
Andrea
P.S.: I'd like that someone for curiosity studied Conary to see what and
how can be ported to gentoo portage, but I seen that my attempt has not
been a very big success ;-), so maybe in my spare time, I'll try to do
such thing myself and report here the results in the hope that you can
teach me some about portage.
--
gentoo-portage-dev@gentoo.org mailing list
next prev parent reply other threads:[~2004-10-24 11:29 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-20 22:02 [gentoo-portage-dev] Conary andrea ferraris
2004-10-21 8:30 ` Paul de Vrieze
2004-10-21 9:52 ` Sven Vermeulen
2004-10-21 11:46 ` Roman Gaufman
2004-10-21 12:44 ` Sven Vermeulen
2004-10-21 13:20 ` Roman Gaufman
2004-10-21 13:52 ` Jason Stubbs
2004-10-24 17:44 ` andrea ferraris
2004-10-24 21:47 ` Roman Gaufman
2004-10-25 21:06 ` andrea ferraris
2004-10-21 19:00 ` Nathaniel McCallum
2004-10-21 19:19 ` Luke-Jr
2004-10-22 8:07 ` Paul de Vrieze
2004-10-22 11:24 ` Jason Stubbs
2004-10-22 13:11 ` John Nilsson
2004-10-22 13:21 ` Jason Stubbs
2004-10-22 13:31 ` Paul de Vrieze
2004-10-22 19:33 ` John Nilsson
2004-10-24 3:18 ` Ed Grimm
2004-10-24 9:15 ` Paul de Vrieze
2004-10-24 11:27 ` andrea ferraris [this message]
2004-10-24 20:52 ` Paul de Vrieze
2004-10-24 9:33 ` Sven Vermeulen
2004-10-24 11:28 ` andrea ferraris
2004-10-25 18:47 ` [gentoo-portage-dev] Conary - dispatch-conf LinuxGuy
2004-10-28 2:55 ` Ed Grimm
2004-10-28 17:18 ` LinuxGuy
2004-11-12 9:23 ` Ed Grimm
2004-11-28 20:15 ` LinuxGuy
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=417B91B8.5060704@libero.it \
--to=andrea_ferraris@libero.it \
--cc=gentoo-portage-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