[opensuse-packaging] /etc/sysconfig/foo is not allowed .. not even as %ghost ?
Hi: When you remove a package that adds sysconfig files, /etc/sysconfig/foo are kept on the system, even i9f you didnt modified them. I am missing something of the respective packages should own those files but mark them as %ghost ? Cheers. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Am 26.10.2010 16:13, schrieb Cristian Rodríguez:
Hi:
When you remove a package that adds sysconfig files, /etc/sysconfig/foo are kept on the system, even i9f you didnt modified them.
I am missing something of the respective packages should own those files but mark them as %ghost ?
Those files are usually only created with fillup and its respective macros, aren't they? They are not owned by any package. Wolfgang -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
El 26/10/10 11:17, Wolfgang Rosenauer escribió:
Those files are usually only created with fillup and its respective macros, aren't they?
Have I said otherwise ? ;) I know how they are created, Im just saying they should be gone when the package that uses them is removed from the system. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Tue, Oct 26, 2010 at 9:22 AM, Cristian Rodríguez <crrodriguez@opensuse.org> wrote:
El 26/10/10 11:17, Wolfgang Rosenauer escribió:
Those files are usually only created with fillup and its respective macros, aren't they?
Have I said otherwise ? ;) I know how they are created, Im just saying they should be gone when the package that uses them is removed from the system.
Actually, I happen to agree. Over time, /etc/sysconfig gets polluted with lots of bits from packages that have come-and-gone. Would marking them as %ghost get them removed when the package is erased? -- Jon -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
El 26/10/10 11:24, Jon Nelson escribió:
Would marking them as %ghost get them removed when the package is erased?
Yes, but the buildsystem barfs if you do so atm ;) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Am 26.10.2010 16:28, schrieb Cristian Rodríguez:
El 26/10/10 11:24, Jon Nelson escribió:
Would marking them as %ghost get them removed when the package is erased?
Yes, but the buildsystem barfs if you do so atm ;)
Ok, so I didn't get your initial post. Hmm, problem probably is the fillup and rpm are not really a good combination. I don't want to lose sysconfig files when I remove a package. I might need the config later again. %ghost would remove them though. IMHO the status quo is not too bad. Wolfgang -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Le mardi 26 octobre 2010, à 09:24 -0500, Jon Nelson a écrit :
On Tue, Oct 26, 2010 at 9:22 AM, Cristian Rodríguez <crrodriguez@opensuse.org> wrote:
El 26/10/10 11:17, Wolfgang Rosenauer escribió:
Those files are usually only created with fillup and its respective macros, aren't they?
Have I said otherwise ? ;) I know how they are created, Im just saying they should be gone when the package that uses them is removed from the system.
Actually, I happen to agree. Over time, /etc/sysconfig gets polluted with lots of bits from packages that have come-and-gone. Would marking them as %ghost get them removed when the package is erased?
If the configuration was changed by the user, then the files should possibly stay, in case the user reinstall the package later. Vincent -- Les gens heureux ne sont pas pressés. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
El 26/10/10 11:38, Vincent Untz escribió:
If the configuration was changed by the user, then the files should possibly stay, in case the user reinstall the package later.
Sure .. %config(noreplace) %ghost ... -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Am 26.10.2010 16:41, schrieb Cristian Rodríguez:
El 26/10/10 11:38, Vincent Untz escribió:
If the configuration was changed by the user, then the files should possibly stay, in case the user reinstall the package later.
Sure .. %config(noreplace) %ghost ...
That works? As RPM doesn't create that file it has no metadata I guess. So it would _always_ unconditionally create an rpmsave? Wolfgang -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
* Vincent Untz <vuntz@opensuse.org> [10-26-10 10:40]:
If the configuration was changed by the user, then the files should possibly stay, in case the user reinstall the package later.
Why not mark changed config files as xxx.unused similarily to rpm marking xxx.rpmnew and if the package is later reinstalled, remove the "unused" flag? Would introduce some complexity but the present situation causes the same :^) -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Cristian Rodríguez wrote:
When you remove a package that adds sysconfig files, /etc/sysconfig/foo are kept on the system, even i9f you didnt modified them.
I am missing something of the respective packages should own those files but mark them as %ghost ?
IMO it would be good if sysconfig files are owned by packages. I'd also question the general usefulness of the fillup mechanism for /etc/sysconfig. It breaks more often that it helps IMHO. cu Ludwig -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.de/ SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
El 27/10/10 09:34, Ludwig Nussel escribió:
Cristian Rodríguez wrote:
When you remove a package that adds sysconfig files, /etc/sysconfig/foo are kept on the system, even i9f you didnt modified them.
I am missing something of the respective packages should own those files but mark them as %ghost ?
IMO it would be good if sysconfig files are owned by packages.
Yes, but the build system should continue to complain if the file is installed for real.. that is, not a %ghost.
I'd also question the general usefulness of the fillup mechanism for /etc/sysconfig. It breaks more often that it helps IMHO.
And is open to all sort of creative abuses of it. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 2010-10-27 15:51:47 -0300, Cristian Rodríguez wrote:
El 27/10/10 09:34, Ludwig Nussel escribió:
Cristian Rodríguez wrote:
When you remove a package that adds sysconfig files, /etc/sysconfig/foo are kept on the system, even i9f you didnt modified them.
I am missing something of the respective packages should own those files but mark them as %ghost ?
IMO it would be good if sysconfig files are owned by packages.
Yes, but the build system should continue to complain if the file is installed for real.. that is, not a %ghost.
I'd also question the general usefulness of the fillup mechanism for /etc/sysconfig. It breaks more often that it helps IMHO.
And is open to all sort of creative abuses of it.
the biggest fun is adding new variables without having the user to merge them manually. but it might be such a rare case that we dont have to care about it.... darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Wednesday 27 October 2010, Cristian Rodríguez wrote:
IMO it would be good if sysconfig files are owned by packages. Yes, but the build system should continue to complain if the file is installed for real.. that is, not a %ghost.
I agree, that seems to be a simple rpmlint bug. did you file a bugreport? Thanks, Dirk -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
El 11/11/10 13:22, Dirk Müller escribió:
On Wednesday 27 October 2010, Cristian Rodríguez wrote:
IMO it would be good if sysconfig files are owned by packages. Yes, but the build system should continue to complain if the file is installed for real.. that is, not a %ghost.
I agree, that seems to be a simple rpmlint bug. did you file a bugreport?
I have not filled a bug report, I mean two bugs a) Complain if /etc/sysconfig/foo is not a %ghost b) complain if packages installing /var/adm/fillup-templates/sysconfig.%{name} do not own /etc/sysconfig/%{name}. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Cristian Rodríguez wrote:
El 11/11/10 13:22, Dirk Müller escribió:
On Wednesday 27 October 2010, Cristian Rodríguez wrote:
IMO it would be good if sysconfig files are owned by packages. Yes, but the build system should continue to complain if the file is installed for real.. that is, not a %ghost.
I agree, that seems to be a simple rpmlint bug. did you file a bugreport?
I have not filled a bug report, I mean two bugs
a) Complain if /etc/sysconfig/foo is not a %ghost b) complain if packages installing /var/adm/fillup-templates/sysconfig.%{name} do not own /etc/sysconfig/%{name}.
Keep in mind that several files from /var/adm/fillup-templates may be combined into one /etc/sysconfig file. cu Ludwig -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.de/ SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (8)
-
Cristian Rodríguez
-
Dirk Müller
-
Jon Nelson
-
Ludwig Nussel
-
Marcus Rueckert
-
Patrick Shanahan
-
Vincent Untz
-
Wolfgang Rosenauer