[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-000AQ3-C4@fasolo.debian.org>
and subject line Bug#766088: fixed in debian-edu-artwork 0.901-1
has caused the Debian Bug report #766088,
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

766088: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=766088
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


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 
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 ...


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

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

Debian distribution maintenance software
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)

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>
 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
 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
   * Use variables in d-e-a-(lines|softwaves|spacefun).postinst to ease adding
     of new themes.
 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
 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
 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

Version: GnuPG v1


--- End Message ---

Reply to: