[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#789084: marked as done (debian-edu-artwork-lines, debian-edu-artwork-spacefun: using manual alternatives makes system state dependent on configuration order)



Your message dated Mon, 14 Nov 2016 11:48:37 +0000
with message-id <E1c6Fkb-000AQ8-Cw@fasolo.debian.org>
and subject line Bug#789084: fixed in debian-edu-artwork 0.901-1
has caused the Debian Bug report #789084,
regarding debian-edu-artwork-lines, debian-edu-artwork-spacefun: using manual alternatives makes system state dependent on configuration order
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
789084: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=789084
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: debian-edu-artwork-lines,debian-edu-artwork-spacefun
Version: 0.52-2
Severity: important
User: debian-qa@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts and DOSE tools I noticed your package causes
changes to the settings of alternatives solely depending on the order
of package configuration.

The installation sequence to reproduce this problem is

  apt-get install debian-edu-artwork-lines
  # (1)
  apt-get install debian-edu-artwork-spacefun
  apt-get remove debian-edu-artwork-spacefun
  # (2)

(or swap the two packages, result is similar)

The system state at points (1) and (2) should be identical, but some
alternatives have changed (from the attached log, scroll to the end):

0m20.8s DEBUG: Modified(uid, gid, mode, size, target): /etc/alternatives/desktop-background (0, 0, l 120777, 71, /usr/share/images/desktop-base/debian-edu-lines-wallpaper_1920x1080.svg) != (0, 0, l 120777, 60, /usr/share/images/desktop-base/lines-wallpaper_1920x1080.svg)
0m20.8s DEBUG: Modified(uid, gid, mode, size, target): /usr/share/images/desktop-base/login-background.svg (0, 0, l 120777, 62, /usr/share/images/desktop-base/debian-edu-lines-login+grub.svg) != (0, 0, l 120777, 76, /usr/share/images/desktop-base/debian-edu-spacefun-wallpaper01_1600x1200.svg)
### read these as properties_of(expected file) != properties_of(actual file)
### and why is this still referencing spacefun after the package got purged?

0m20.8s ERROR: FAIL: After purging files have disappeared:
  /usr/share/kde4/apps/plasma-desktop/init/20-desktop-base-edu.js -> /usr/share/debian-edu-artwork-lines/kde4/apps/plasma-desktop/init/20-desktop-base-edu.js    not owned
  /usr/share/pixmaps/splash/debian-edu-splash.png -> debian-edu-lines-splash.png         not owned
### OUCH!

0m20.8s ERROR: FAIL: After purging files have been modified:
  /etc/alternatives/desktop-background -> /usr/share/images/desktop-base/debian-edu-lines-wallpaper_1920x1080.svg        not owned
  /usr/share/images/desktop-base/login-background.svg -> /usr/share/images/desktop-base/debian-edu-lines-login+grub.svg  owned by: debian-edu-artwork, desktop-base
### see above for the actual modifications

The problem is caused by the update-debian-edu-artwork-{lines,spacefun} scripts
that use 'update-alternatives --set' (which in turn switches alternatives to
manual mode - I'm not sure whether this is allowed by policy, since it overrides
any local configuration of these alternatives (on installation, upgrades
or reconfiguration) - maybe the severity should be raised to serious for this)
instead of using proper priorities that
  a) are high enough to override the defaults from desktop-base and
  b) provide a clear ordering between the different debian-edu-artwork-* alternatives


Also the desktop-background alternative 
  /usr/share/images/desktop-base/debian-edu-lines-wallpaper_1920x1080.svg
is installed twice by the update-debian-edu-artwork-lines script:
* once with priority 75 (which would be highest and therefore default) and
* once with priority 50 (overriding the previous priority)


Just think about upgrades (assuming this is done at some point in the
future whereversion(stretch) != version(jessie) ):

# setup jessie system
apt-get install debian-edu-artwork-spacefun
apt-get install debian-edu-artwork-lines
# currently set to "lines" (deterministic install order)
sed -i s/jessie/stretch/ /etc/apt/sources.list
apt-get update
apt-get dist-upgrade
# what's the setting afterwards? what's the configuration order?
# e.g. alphabetic? so setting is "spacefun" aftwerwards ...


Andreas

Attachment: debian-edu-artwork-lines=0.52-2_debian-edu-artwork-spacefun=0.52-2.log.gz
Description: application/gzip


--- End Message ---
--- Begin Message ---
Source: debian-edu-artwork
Source-Version: 0.901-1

We believe that the bug you reported is fixed in the latest version of
debian-edu-artwork, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 789084@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Holger Levsen <holger@debian.org> (supplier of updated debian-edu-artwork package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 14 Nov 2016 12:16:10 +0100
Source: debian-edu-artwork
Binary: debian-edu-artwork debian-edu-artwork-lines debian-edu-artwork-softwaves debian-edu-artwork-spacefun
Architecture: source
Version: 0.901-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Edu Developers <debian-edu@lists.debian.org>
Changed-By: Holger Levsen <holger@debian.org>
Description:
 debian-edu-artwork - Debian Edu themes and artwork
 debian-edu-artwork-lines - Debian Edu Lines (jessie) themes and artwork
 debian-edu-artwork-softwaves - Debian Edu Softwaves (stretch) themes and artwork
 debian-edu-artwork-spacefun - Debian Edu Spacefun (squeeze) themes and artwork
Closes: 766088 789084
Changes:
 debian-edu-artwork (0.901-1) unstable; urgency=medium
 .
   [ Wolfgang Schweer ]
   * playground/stretch: Improve (lightdm|gdm3) login SVG files.
   * Add triggers d/debian-edu-artwork-(lines|softwaves|spacefun) to fix
     the d-e-artwork configuration in case d-e-a-(lines|softwaves|spacefun)
     has been installed before plasma-desktop-data.
   * Fix update-d-e-a-(lines|softwaves|spacefun) (Closes: #766088, #789084).
     - Remove manual alternatives configuration, use only priorities.
     - Add function to unlink login-background.svg and use it upon removal.
     - Ensure that a theme is activated after theme package installation.
     - Remove wrong second entry for spacefun desktop-background.
     (The problem of non-determinism after upgrades if two or all three theme
     packages are installed has still to be solved.)
   * update-d-e-a-(lines|softwaves|spacefun): Replace update-grub2 with
     update-grub.
   * Use variables in d-e-a-(lines|softwaves|spacefun).postinst to ease adding
     of new themes.
Checksums-Sha1:
 36b7b9c2829ad93916c5317d82cd7d77fcc25968 2496 debian-edu-artwork_0.901-1.dsc
 e15653808b78d1d45f34db88248371bcff5e5a4f 15391644 debian-edu-artwork_0.901.orig.tar.xz
 8199d910406a8bafe4d380042b15982b3610913f 19736 debian-edu-artwork_0.901-1.debian.tar.xz
Checksums-Sha256:
 12a9810f5933582e83080d2aad019d6809946ebacb1e048f6d71fdac096e03cd 2496 debian-edu-artwork_0.901-1.dsc
 7abf068179405ebde7fcfa3def4830e458ed3fe49d18608def094153b64419b8 15391644 debian-edu-artwork_0.901.orig.tar.xz
 85c379d4df7faddab8fac80254442ee917f7d7e6f75e3942ab745bfdef05c709 19736 debian-edu-artwork_0.901-1.debian.tar.xz
Files:
 cce283aa70d358218b33afbf00eda033 2496 graphics extra debian-edu-artwork_0.901-1.dsc
 c36843df28915f1ccf9f4629d6036893 15391644 graphics extra debian-edu-artwork_0.901.orig.tar.xz
 27a6415175e9505903c586470d780430 19736 graphics extra debian-edu-artwork_0.901-1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIVAwUBWCme0AkauFYGmqocAQoG8w//e85m18FRKtLCuvTNMhnl9iDv9fcjQP1w
1yjQjG39konNxrn1uvdkoq/ELkRfxvlpFoSct1oOP3H/J1HdiCUhsiKU4K9j9uLR
yEH0YZk5tO6QOeMqEdtJlOUS0q4Jhnnn5NxvhE6PW37r4Va5v6dUsC4TmrNjsO4a
+8HaA9bjhwPwbNp544hYvIpxr8alE2ym5E8EwVcJmwrFckjpTKWM/24WxjHDdIzB
Zd2MRF2ZwCryOapSGwtPL1n1DwazcHKBnvuW5reYv1YfKWxq5sLXFBTt28VNeGrF
QshvN+p3D4FPXedt6x9KHQdlj60wgC19apAuckniXwu1Eav0NN3ruVje9FSJ/RDe
Z5CrCS8hjQanvTsTUQkuZCE9o1ftKnRhCur1q0Rf3lBKyVt+6lqfCX4ZmpGnp+Ix
ozmzOsS8s7kU7N5Vx6i78OCHwXmJHo2cUecYOz94n7dHRtwjYpF1InLRGaNFQpk3
wIk/PlkFwKyS9a8jIJJy3ijQyAV9YzxIsVdXtt0xjMEGDN3dO5k+mqOjK6Lzqo6R
Vc+WRmBrqfpQvj4cE7QIMszrgCu8Bm40aEkHj6NG4ra5tHyRaJTVJKgOnoFZxRvh
Er+aHg+VYf2/470vhKPGPqc1zUAZwb98lCJc5DrCne2umKIp21m0x/jMxwboFp0X
+ByT+1SU3Ww=
=F+YN
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: