You are not logged in.

#1 2012-05-26 10:06:47

guitou
Member
From: France
Registered: 2010-01-04
Posts: 9

wicd overwrites template files on upgrade

I noticed that when upgrading wicd, any changes to files in /etc/wicd/encryption/templates/ (except 'active' file) are lost since these files are overwritten with the default ones.

I could write my own custom template file and add it to active, this way on upgrade, I would not lose my changes.
However, it would be more difficult to detect changes to default files from the package when upgrading.

So, from my point of view, I think that we need to change the "backup" entry in wicd PKGBUILD to include all these files.

Does someone have an objection ?
I think I will create a bug for this.

Offline

#2 2012-05-26 12:41:05

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: wicd overwrites template files on upgrade

I don't use wicd, but typically templates are intended as a starting point for your own custom versions - you're not meant to change the template, you're meant to copy it, and then change the copy.

Offline

#3 2012-05-26 13:20:39

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,462
Website

Re: wicd overwrites template files on upgrade

I use wicd, but have never had to edit these files.  AFAIK, though, pacman is not supposed to overwrite ANY user editted files and should append ".pacnew" to the new files.

Based on that standard, this should be considered a bug in the package.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2012-05-26 13:40:08

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: wicd overwrites template files on upgrade

No... the pacnew/pacsave process only applies to files specified in the package's backup array.

Offline

#5 2012-05-26 13:52:56

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,462
Website

Re: wicd overwrites template files on upgrade

Ah, makes sense.  So I suppose the request would be just to put those templates in the backup array.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2012-05-26 18:48:52

guitou
Member
From: France
Registered: 2010-01-04
Posts: 9

Re: wicd overwrites template files on upgrade

tomk: yes, I understand that templates are ... templates :-)
That's why I started this thread and did not create a bug right away.
Ok.


Trilby: you never had to change these files because I suppose you never used eap-tls which defaults to TKIP for encryption (when I prefer CCMP).


Thinking about it, if eap-tls template had CCMP TKIP as a default, I would be happy and I would not have to change anything :-)

Offline

#7 2012-05-27 03:01:09

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,175

Re: wicd overwrites template files on upgrade

For what it is worth, the way the AUR package for setting up eduroam works (for some eduroams - doesn't work for all, I don't think) is by creating an additional template /etc/wicd/encryption/templates/eduroam. I'm assuming that stops it getting overwritten but, as you say, I guess it won't get amendments to the default templates.

[The existence of the eduroam package is essentially my reason for using wicd and not experimenting with netcfg which sounds good in almost all other ways!]


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB