Update – getting ready for Stretch

Important informations about SolydXK including releases notes, forum rules and other anouncements
Yenovk
Posts: 1
Joined: 26 Feb 2017 19:49

Re: Update – getting ready for Stretch

Postby Yenovk » 26 Feb 2017 19:52

I am no more able to obtain an update. What is wrong with my system?

User avatar
san-claudio
Posts: 209
Joined: 28 Dec 2015 20:26
Location: Paris, France

Re: Update – getting ready for Stretch

Postby san-claudio » 26 Feb 2017 20:00

@grizzler
Encore une question suite au fil sur la SolydX EE 9 64bit il faut mettre solydxk-9 ou solydxk-ee dans source.liste, j'ai depuis février 2016 la SolydX EE 9 et maintenant avec les dernières mise à jour que j'ai faite aujourd'hui si je mets solydxk-ee dans source.liste je risque de me retrouver avec un bazar dans mes paquets....

/etc/apt/sources.listsources.list
deb http://repository.solydxk.nl solydxk-9 main upstream import
deb http://httpredir.debian.org/debian testing main contrib non-free
deb http://security.debian.org testing/updates main contrib non-free

User avatar
grizzler
Posts: 2171
Joined: 04 Mar 2013 15:45
Location: The Hague, NL

Re: Update – getting ready for Stretch

Postby grizzler » 26 Feb 2017 21:15

Yes, before stretch becomes stable, we'll have to specify that further. Right now, the most important thing was to get the -8 packages out of the way.
I probably shouldn't have mentioned solydxk-ee in the other thread, because that causes more confusion. I'll make sure to update the (first posting in the) Sources/packages for Debian Testing/Enthusiast's Editions thread in time to clear things up.
Frank

SolydX EE 64 - tracking Debian Testing

User avatar
san-claudio
Posts: 209
Joined: 28 Dec 2015 20:26
Location: Paris, France

Re: Update – getting ready for Stretch

Postby san-claudio » 26 Feb 2017 21:40

OK je vais attendre que les choses s'éclaicissent sur le sujet et je garde la situation fixée ce jour sur SolydX EE 9.

User avatar
grizzler
Posts: 2171
Joined: 04 Mar 2013 15:45
Location: The Hague, NL

Re: Update – getting ready for Stretch

Postby grizzler » 27 Feb 2017 11:10

Frank

SolydX EE 64 - tracking Debian Testing

User avatar
grizzler
Posts: 2171
Joined: 04 Mar 2013 15:45
Location: The Hague, NL

Re: Update – getting ready for Stretch

Postby grizzler » 02 Mar 2017 17:49

@Arjen,
Today I upgraded my main machine for the first time in several days, and I saw a similar error as xendistar mentioned in the "Breakages and News tracking Debian Testing" thread, which is odd because the old system-adjustments package was long gone. It prompted me to take a closer look at the current system-adjustments' postinst files and I'm sorry to be blunt, but you just can't do what you're doing w.r.t. the items in the user's home directory... :shock:

I don't have the time to check Debian's Policy Manual and I'm not even sure this is mentioned in there, but packages do not change bits in the user's home directory. Ever. :ugeek:
I understand why this was done in this particular way and I realise not doing it might have caused issues for some users, but this is definitely a bad idea. Please take it out as soon as possible.

Another issue is the grep of /etc/plymouth/plymouthd.conf. I purged plymouth from my machine in November 2013, so this grep produced an error. I think a check for the presence of the conf file is in order. And while you're at it, please move the update-grub from near the bottom of the postinst to that same plymouth section, because updating grub during system-adjustments configuration only makes sense after running plymouth-set-default-theme -R.
Frank

SolydX EE 64 - tracking Debian Testing

User avatar
Zill
Posts: 1850
Joined: 13 Aug 2013 14:28
Location: Lincolnshire, UK

Re: Update – getting ready for Stretch

Postby Zill » 02 Mar 2017 18:59

grizzler wrote:... I don't have the time to check Debian's Policy Manual and I'm not even sure this is mentioned in there, but packages do not change bits in the user's home directory. Ever. :ugeek:
Possibly "Debian Policy Manual - Chapter 10 - Files"...
10.7.3 Behavior
Configuration file handling must conform to the following behavior:
local changes must be preserved during a package upgrade, and
configuration files must be preserved when the package is removed, and only deleted when the package is purged.

User avatar
Arjen Balfoort
Site Admin
Posts: 9282
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Update – getting ready for Stretch

Postby Arjen Balfoort » 02 Mar 2017 20:21

I've uploaded the packages.


SolydXK needs you!
Development | Testing | Translations

User avatar
bas_otten
Posts: 212
Joined: 19 Oct 2013 12:22
Location: Netherlands

Re: Update – getting ready for Stretch

Postby bas_otten » 02 Mar 2017 21:31

grizzler wrote: ... but packages do not change bits in the user's home directory. Ever.
On one hand, yes, I tend to agree, but it is a trade-off between evils here.
Zill wrote: <Debian policy:> local changes must be preserved during a package upgrade
Technically? (leave homedir untouched) - or - functionally? (adapt existing homedirs to changed theme path) ;-)

Anyhow, I think the root point here is that the paths of an existing theme are changed: that should not happen and would have prevented this dilemma in the first place.

User avatar
bas_otten
Posts: 212
Joined: 19 Oct 2013 12:22
Location: Netherlands

Re: Update – getting ready for Stretch

Postby bas_otten » 03 Mar 2017 00:02

Thinking about this: perhaps an idea is - instead of changing the paths in users' homedirs - to create symlinks from the old locations to the new ones in the solydk-system-adjustments-8 package

Code: Select all

ln -s solydk.png /usr/share/pixmaps/solydk-flat.png
ln -s solydk /usr/share/wallpapers/solydk-flat
That avoids both tampering with users' homedirs and impacting the user experience!

User avatar
Arjen Balfoort
Site Admin
Posts: 9282
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Update – getting ready for Stretch

Postby Arjen Balfoort » 03 Mar 2017 11:26

bas_otten wrote:Thinking about this: perhaps an idea is - instead of changing the paths in users' homedirs - to create symlinks from the old locations to the new ones in the solydk-system-adjustments-8 package

Code: Select all

ln -s solydk.png /usr/share/pixmaps/solydk-flat.png
ln -s solydk /usr/share/wallpapers/solydk-flat
That avoids both tampering with users' homedirs and impacting the user experience!
I've updated the adjustments-8 packages to do this.


SolydXK needs you!
Development | Testing | Translations

User avatar
grizzler
Posts: 2171
Joined: 04 Mar 2013 15:45
Location: The Hague, NL

Re: Update – getting ready for Stretch

Postby grizzler » 04 Mar 2017 16:46

The postinst files in solydx-system-adjustments-8 and -9 still have code that writes to the user's configuration (lines 103/104 to 114/115). It doesn't actually do anything on my machine (other than mess up the timestamps of some of the files in ~/.config/xfce4/xfconf/xfce4-perchannel.xml), but I'd still like to see it go...
Frank

SolydX EE 64 - tracking Debian Testing

User avatar
Arjen Balfoort
Site Admin
Posts: 9282
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Update – getting ready for Stretch

Postby Arjen Balfoort » 04 Mar 2017 17:33

I think it's fixed now. I also found that the postrm script didn't remove the divertions created in the postinst script. Fixed as well.


SolydXK needs you!
Development | Testing | Translations

JSladek
Posts: 142
Joined: 19 Jun 2014 23:15
Location: Suffolk VA

Re: Update – getting ready for Stretch

Postby JSladek » 08 Mar 2017 11:58

SolydK-64 .... last couple of update notifications, it downloaded the repository links, said 0 everything except for 261 not upgraded and then said I was up to date. Is there some reason why updates are being withheld?

User avatar
ilu
Posts: 2493
Joined: 09 Oct 2013 12:45

Re: Update – getting ready for Stretch

Postby ilu » 08 Mar 2017 16:20

Usually this happens when the Updatemanager updates itself. It has to be restarted manually - reboot will work too.

BUT: 261 Updates sounds like A LOT, so this should be investigated. When did you do the last update? Please open a separate thread and copy-paste the output of

Code: Select all

inxi -Frxz
apt-get update
apt-get -s upgrade

User avatar
ilu
Posts: 2493
Joined: 09 Oct 2013 12:45

Re: Update – getting ready for Stretch

Postby ilu » 08 Mar 2017 16:53

Just fyi: Todays update resulted in:

Code: Select all

...
Vorbereitung zum Entpacken von .../solydx-system-adjustments-8_2.7.2_all.deb ...
/var/lib/dpkg/info/solydx-system-adjustments-8.prerm: 18: /var/lib/dpkg/info/solydx-system-adjustments-8.prerm: function: not found
dpkg: Warnung: Unterprozess altes pre-removal-Skript gab den Fehlerwert 127 zurück
dpkg: stattdessen wird Skript aus dem neuen Paket probiert ...
dpkg: ... sieht so aus, als hätte das geklappt.
Entpacken von solydx-system-adjustments-8 (2.7.2) über (2.7.1) ...
Also UM output shows this before and after apt update which is kind of weird (other users have noticed this too:

Code: Select all

.[3;J
The first thing before [ is the symbol for 001B

User avatar
grizzler
Posts: 2171
Joined: 04 Mar 2013 15:45
Location: The Hague, NL

Re: Update – getting ready for Stretch

Postby grizzler » 08 Mar 2017 17:19

Ouch. That's a nasty one. The default sh shell doesn't know 'function'.

Fixed it here with this little script:

Code: Select all

#!/bin/bash
XSA=/var/lib/dpkg/info/solydx-system-adjustments-8.prerm
[ -e $XSA ] || XSA=/var/lib/dpkg/info/solydx-system-adjustments-9.prerm
[ -e $XSA ] || { echo "no prerm for solydx-system-adjustments-8 or -9"; exit; }
sed -i 's|^#!/bin/sh$|#!/bin/bash|g' $XSA
run as root.
Frank

SolydX EE 64 - tracking Debian Testing

User avatar
Arjen Balfoort
Site Admin
Posts: 9282
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Update – getting ready for Stretch

Postby Arjen Balfoort » 08 Mar 2017 18:05

Dpkg should just state a warning and use the postrm script in the new package I've uploafed today. The installation should continue just the same.

Btw, I've also uploaded the xksudo package. xksudo-packages is optional and changes the .desktop files of non-solydxk packages so that they use xksudo instead.


SolydXK needs you!
Development | Testing | Translations

User avatar
grizzler
Posts: 2171
Joined: 04 Mar 2013 15:45
Location: The Hague, NL

Re: Update – getting ready for Stretch

Postby grizzler » 08 Mar 2017 18:07

Schoelje wrote:Dpkg should just state a warning and use the postrm script in the new package I've uploaded today.
That's what I thought, but it didn't do it here.
Frank

SolydX EE 64 - tracking Debian Testing

User avatar
Arjen Balfoort
Site Admin
Posts: 9282
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Update – getting ready for Stretch

Postby Arjen Balfoort » 08 Mar 2017 21:04

grizzler wrote:
Schoelje wrote:Dpkg should just state a warning and use the postrm script in the new package I've uploaded today.
That's what I thought, but it didn't do it here.
Odd, the only thing I had on several occasions was the message ilu had after witch the process ended successfully. Then I reinstalled the package to verify it installed correctly and this time there were no warnings at all.


SolydXK needs you!
Development | Testing | Translations


Return to “News & Anouncements”

Who is online

Users browsing this forum: No registered users and 3 guests