branding-ubuntu should use config-package-dev

Bug #394093 reported by Evan Broder
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
branding-ubuntu (Ubuntu)
Won't Fix
Low
Scott Ritchie

Bug Description

Binary package hint: branding-ubuntu

branding-ubuntu currently uses hand-written maintainer scripts to create and remove dpkg-diversions at install and uninstall time.

config-package-dev was created to simplify packages that do exactly that (albeit with slightly different paths). We created config-package-dev at MIT in January of 2008 for the Debathena Project (http://debathena.mit.edu/), and it's currently used in 45 separate packages distributed as part of our small distribution. config-package-dev has been in the Ubuntu archives since Intrepid. The package's homepage is at <http://debathena.mit.edu/config-packages/>.

Files that are configured by packages using config-package-dev are installed to the same location as the file they replace, but with a suffix. For example, to replace /usr/share/gnome-games/gnometris/pixmaps/gnometris.svg, you could install your replacement to /usr/share/gnome-games/gnometris/pixmaps/gnometris.ubuntu.svg.

At installtime, the postinst (which is automatically generated by config-package-dev) diverts gnometris.svg to gnometris.ubuntu-orig.svg, and symlinks gnometris.svg to your gnometris.ubuntu.svg. This entire process is undone by the (similarly autogenerated) prerm script when the package is uninstalled, leaving configured files in the exact state they were in before the package was installed.

http://debathena.mit.edu/config-packages/#philosophy and http://debathena.mit.edu/config-packages/#architecture contain more background information which may be useful.

I've updated the branding-ubuntu package to use config-package-dev. My version is attached. You now only have to edit one file to add new branding files. I think this is a huge benefit for future maintainability of the package.

The Debathena team and I have extensive experience using config-package-dev, and would be glad to provide any assistance we can.

Revision history for this message
Evan Broder (broder) wrote :
Revision history for this message
Evan Broder (broder) wrote :
Evan Broder (broder)
description: updated
Revision history for this message
Scott Ritchie (scottritchie) wrote :

Thanks a lot Evan, I'll merge your changes in with some other branding updates I have coming forward. Thanks!

Changed in branding-ubuntu (Ubuntu):
assignee: nobody → Scott Ritchie (scottritchie)
importance: Undecided → Low
status: New → In Progress
Revision history for this message
mj1492 (mj1492) wrote :
Download full text (12.3 KiB)

Output in my case is (czech):

--%-

nstallArchives() failed: Nastavuji balk grub-common (1.99~rc1-8ubuntu2)

Nastavuji balk glib-networking (2.28.5-0ubuntu1)

Nastavuji balk apt-transport-https (0.8.13.2ubuntu2)

Nastavuji balk avahi-autoipd (0.6.30-0ubuntu2)

Nastavuji balk libudev0 (167-0ubuntu3)

Nastavuji balk libbonobo2-common (2.32.1-0ubuntu1)

Nastavuji balk libc-dev-bin (2.13-0ubuntu12)

Nastavuji balk libgtop2-7 (2.28.3-0ubuntu1)

Nastavuji balk libslp1 (1.2.1-7.8ubuntu1)

Nastavuji balk gconf2-common (2.32.2-0ubuntu1)

Nastavuji balk linux-libc-dev (2.6.38-8.41)

Nastavuji balk libc6-i386 (2.13-0ubuntu12)

Nastavuji balk libdecoration0 (1:0.9.4+bzr20110406-0ubuntu1)

Nastavuji balk libwebkitgtk-1.0-common (1.3.13-0ubuntu1)

Nastavuji balk xserver-xorg (1:7.6+4ubuntu3)

Nastavuji balk libbonobo2-0 (2.32.1-0ubuntu1)

Nastavuji balk gnome-doc-utils (0.20.5-0ubuntu1)

Nastavuji balk xserver-xorg-video-all (1:7.6+4ubuntu3)

Nastavuji balk linux-headers-2.6.38-8 (2.6.38-8.41)

Nastavuji balk libgirepository-1.0-1 (0.10.7-0ubuntu1)

Nastavuji balk libsmbclient (2:3.5.8~dfsg-1ubuntu2)

Nastavuji balk libbluetooth3 (4.91-0ubuntu1)

Nastavuji balk fancontrol (1:3.2.0-1ubuntu1)

 * Stopping fan speed regulator fancontrol
[ OK ]

Nastavuji balk bamfdaemon (0.2.82-0ubuntu1)

Rebuilding /usr/share/applications/bamf.index...

Nastavuji balk compiz-core (1:0.9.4+bzr20110406-0ubuntu1)

Nastavuji balk gnome-session-common (2.32.1-0ubuntu19)

Nastavuji balk gsettings-desktop-schemas (3.0.0-0ubuntu1)

Nastavuji balk libpango1.0-0 (1.28.4-0ubuntu1)

Nastavuji balk libquvi0 (0.2.11-1)

Nastavuji balk samba-common (2:3.5.8~dfsg-1ubuntu2)

Nastavuji balk libutouch-geis1 (2.0.10-0ubuntu1)

Nastavuji balk gnome-orca (3.0.0-0ubuntu1)

Nastavuji balk bluez-cups (4.91-0ubuntu1)

Nastavuji balk libclutter-1.0-common (1.6.14-0ubuntu2)

Nastavuji balk x11-common (1:7.6+4ubuntu3)

Nastavuji balk linux-headers-2.6.38-8-generic (2.6.38-8.41)

Examining /etc/kernel/header_postinst.d.

run-parts: executing /etc/kernel/header_postinst.d/nvidia-common 2.6.38-8-generic /boot/vmlinuz-2.6.38-8-generic

Nastavuji balk smbclient (2:3.5.8~dfsg-1ubuntu2)

Nastavuji balk x11-xserver-utils (7.6+2)

Nastavuji balk command-not-found-data (0.2.41ubuntu1)

Nastavuji balk bash-completion (1:1.3-1ubuntu3)

Instaluji novou verzi konfiguranho souboru /etc/bash_completion

Nastavuji balk libgstreamer0.10-0 (0.10.32-3ubuntu3)

Nastavuji balk linux-image-2.6.38-8-generic (2.6.38-8.41)

Running depmod.

update-initramfs: Generating /boot/initrd.img-2.6.38-8-generic

Examining /etc/kernel/postinst.d.

run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.38-8-generic /boot/vmlinuz-2.6.38-8-generic

run-parts: executing /etc/kernel/postinst.d/nvidia-common 2.6.38-8-generic /boot/vmlinuz-2.6.38-8-generic

run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.38-8-generic /boot/vmlinuz-2.6.38-8-generic

run-parts: executing /etc/kernel/postinst.d/update-notifier 2.6.38-8-generic /boot/vmlinuz-2.6.38-8-generic

run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.38-8-generic /boot/vmlinuz-2.6.38-8-generic

Generating grub...

Revision history for this message
Scott Ritchie (scottritchie) wrote :

Sorry for being so slow here but by the time I got to looking at this the package had already been updated in a divergent direction and the change is no longer simple to do. As it is we hardly ever update it so it's hardly worth changing the architecture at this point.

Changed in branding-ubuntu (Ubuntu):
status: In Progress → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.