public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] About some settings to auto-replace with dispatch-conf
@ 2012-05-15 11:15 Pacho Ramos
  2012-05-15 15:31 ` Zac Medico
  0 siblings, 1 reply; 4+ messages in thread
From: Pacho Ramos @ 2012-05-15 11:15 UTC (permalink / raw
  To: gentoo-portage-dev

[-- Attachment #1: Type: text/plain, Size: 984 bytes --]

Hello

I recently installed Gentoo on my uncle's laptop and he was a bit
annoyed about needing to run "dispatch-conf" and merge a lot of changes
on files nobody ever touched.

Looking to /etc/dispatch-conf.conf I noticed options to improve this
situation exist, but they are disabled by default. I would want to
confirm if they are safe enough or could cause problems. Options are:

# Automerge files comprising only whitespace and/or comments
# (yes or no)
replace-wscomments=no

# Automerge files that the user hasn't modified
# (yes or no)
replace-unmodified=no

Looks really surprising to me that "replace-wscomments" is not enabled
by default as merging that changes shouldn't hurt at all. About
"replace-unmodified", if it works as intended, it should also be safer
to get it enabled by default as would prevent breakage if people forgets
to run dispatch-conf, reboot and, for example, sees some init.d script
fail to start.

Thanks a lot for the info

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-portage-dev] About some settings to auto-replace with dispatch-conf
  2012-05-15 11:15 [gentoo-portage-dev] About some settings to auto-replace with dispatch-conf Pacho Ramos
@ 2012-05-15 15:31 ` Zac Medico
  2012-05-15 19:43   ` Pacho Ramos
  0 siblings, 1 reply; 4+ messages in thread
From: Zac Medico @ 2012-05-15 15:31 UTC (permalink / raw
  To: gentoo-portage-dev

On 05/15/2012 04:15 AM, Pacho Ramos wrote:
> Hello
> 
> I recently installed Gentoo on my uncle's laptop and he was a bit
> annoyed about needing to run "dispatch-conf" and merge a lot of changes
> on files nobody ever touched.
> 
> Looking to /etc/dispatch-conf.conf I noticed options to improve this
> situation exist, but they are disabled by default. I would want to
> confirm if they are safe enough or could cause problems. Options are:
> 
> # Automerge files comprising only whitespace and/or comments
> # (yes or no)
> replace-wscomments=no
> 
> # Automerge files that the user hasn't modified
> # (yes or no)
> replace-unmodified=no
> 
> Looks really surprising to me that "replace-wscomments" is not enabled
> by default as merging that changes shouldn't hurt at all. About
> "replace-unmodified", if it works as intended, it should also be safer
> to get it enabled by default as would prevent breakage if people forgets
> to run dispatch-conf, reboot and, for example, sees some init.d script
> fail to start.
> 
> Thanks a lot for the info

FEATURES=config-protect-if-modified is what you really want. We could
probably enable it by default, but we should ask for comment on the
gentoo-dev mailing list before doing that.
-- 
Thanks,
Zac



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-portage-dev] About some settings to auto-replace with dispatch-conf
  2012-05-15 15:31 ` Zac Medico
@ 2012-05-15 19:43   ` Pacho Ramos
  2012-05-15 19:46     ` Pacho Ramos
  0 siblings, 1 reply; 4+ messages in thread
From: Pacho Ramos @ 2012-05-15 19:43 UTC (permalink / raw
  To: gentoo-portage-dev

[-- Attachment #1: Type: text/plain, Size: 1675 bytes --]

El mar, 15-05-2012 a las 08:31 -0700, Zac Medico escribió:
> On 05/15/2012 04:15 AM, Pacho Ramos wrote:
> > Hello
> > 
> > I recently installed Gentoo on my uncle's laptop and he was a bit
> > annoyed about needing to run "dispatch-conf" and merge a lot of changes
> > on files nobody ever touched.
> > 
> > Looking to /etc/dispatch-conf.conf I noticed options to improve this
> > situation exist, but they are disabled by default. I would want to
> > confirm if they are safe enough or could cause problems. Options are:
> > 
> > # Automerge files comprising only whitespace and/or comments
> > # (yes or no)
> > replace-wscomments=no
> > 
> > # Automerge files that the user hasn't modified
> > # (yes or no)
> > replace-unmodified=no
> > 
> > Looks really surprising to me that "replace-wscomments" is not enabled
> > by default as merging that changes shouldn't hurt at all. About
> > "replace-unmodified", if it works as intended, it should also be safer
> > to get it enabled by default as would prevent breakage if people forgets
> > to run dispatch-conf, reboot and, for example, sees some init.d script
> > fail to start.
> > 
> > Thanks a lot for the info
> 
> FEATURES=config-protect-if-modified is what you really want. We could
> probably enable it by default, but we should ask for comment on the
> gentoo-dev mailing list before doing that.

Didn't know about that option, thanks for pointing it :D

About trying to enable it by default, I think would make sense per
previous exposed reasons (and I am sure there are more examples that
could show that behavior is better than keeping obsolete config files by
default)


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-portage-dev] About some settings to auto-replace with dispatch-conf
  2012-05-15 19:43   ` Pacho Ramos
@ 2012-05-15 19:46     ` Pacho Ramos
  0 siblings, 0 replies; 4+ messages in thread
From: Pacho Ramos @ 2012-05-15 19:46 UTC (permalink / raw
  To: gentoo-portage-dev

[-- Attachment #1: Type: text/plain, Size: 2049 bytes --]

El mar, 15-05-2012 a las 21:43 +0200, Pacho Ramos escribió:
> El mar, 15-05-2012 a las 08:31 -0700, Zac Medico escribió:
> > On 05/15/2012 04:15 AM, Pacho Ramos wrote:
> > > Hello
> > > 
> > > I recently installed Gentoo on my uncle's laptop and he was a bit
> > > annoyed about needing to run "dispatch-conf" and merge a lot of changes
> > > on files nobody ever touched.
> > > 
> > > Looking to /etc/dispatch-conf.conf I noticed options to improve this
> > > situation exist, but they are disabled by default. I would want to
> > > confirm if they are safe enough or could cause problems. Options are:
> > > 
> > > # Automerge files comprising only whitespace and/or comments
> > > # (yes or no)
> > > replace-wscomments=no
> > > 
> > > # Automerge files that the user hasn't modified
> > > # (yes or no)
> > > replace-unmodified=no
> > > 
> > > Looks really surprising to me that "replace-wscomments" is not enabled
> > > by default as merging that changes shouldn't hurt at all. About
> > > "replace-unmodified", if it works as intended, it should also be safer
> > > to get it enabled by default as would prevent breakage if people forgets
> > > to run dispatch-conf, reboot and, for example, sees some init.d script
> > > fail to start.
> > > 
> > > Thanks a lot for the info
> > 
> > FEATURES=config-protect-if-modified is what you really want. We could
> > probably enable it by default, but we should ask for comment on the
> > gentoo-dev mailing list before doing that.
> 
> Didn't know about that option, thanks for pointing it :D
> 
> About trying to enable it by default, I think would make sense per
> previous exposed reasons (and I am sure there are more examples that
> could show that behavior is better than keeping obsolete config files by
> default)
> 

Just noticed the problem of current behavior after updating my chroot to
generate emul packages and needing to review 40 files with
dispatch-conf, all of them never touched and all of them needing to be
updated to new version

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-05-15 21:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-15 11:15 [gentoo-portage-dev] About some settings to auto-replace with dispatch-conf Pacho Ramos
2012-05-15 15:31 ` Zac Medico
2012-05-15 19:43   ` Pacho Ramos
2012-05-15 19:46     ` Pacho Ramos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox