This is an automated email from the git hooks/post-receive script. jreyer-guest pushed a commit to branch master in repository wine.
commit b217a434308d97b88da951ee4c1cbda36d379f4d Author: Jens Reyer <[email protected]> Date: Thu Jul 28 22:25:35 2016 +0200 Add Debian alternatives system for wine. Master is wine (/usr/bin/wine). Slaves in other packages are handled with file triggers (see /usr/share/doc/dpkg-dev/triggers.txt.gz). Priority wine (stable): 70 Priority wine-development: 50 Closes: #758291. --- debian/changelog | 2 +- debian/wineVERSION.postinst | 76 +++++++++++++++++++++++++++++++++++++++++++++ debian/wineVERSION.prerm | 13 ++++++++ debian/wineVERSION.triggers | 10 ++++++ 4 files changed, 100 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index ffda129..3e92f69 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,7 +2,7 @@ wine-development (1.9.15-2) UNRELEASED; urgency=medium * Add removal instructions for binfmt support to README.debian. * Add Recommends g++ or g++-multilib to the -tools (see: #832041). - * Implement the Debian alternatives system. + * Implement the Debian alternatives system (closes: #758291). - Drop now obsolete development/winegcc.patch. - Add breaks older src:wine packages before the alternatives system. - Let the -tools packages recommend wineVERSION. diff --git a/debian/wineVERSION.postinst b/debian/wineVERSION.postinst new file mode 100644 index 0000000..36b5530 --- /dev/null +++ b/debian/wineVERSION.postinst @@ -0,0 +1,76 @@ +#!/bin/sh + +set -e + +case "$1" in + configure) + dpkg-trigger wineVERSION + ;; + triggered) + # debian alternatives system + case DEBSUFFIX in + -stable) + PRIORITY=70;; + -development) + PRIORITY=50;; + *) + echo "DEBSUFFIX unknown"; exit 1;; + esac + + apps="wineserver + msiexec + regedit + winecfg + winedbg + wineboot + winefile + winepath + regsvr32 + wineconsole + + wine64 + + wmc + wrc + widl + winecpp + winegcc + wineg++ + winedump + winebuild + winemaker" + + slaves= + for app in $apps; do + slaves="$slaves + --slave /usr/bin/$app $app + /usr/bin/${app}DEBSUFFIX + --slave /usr/share/man/man1/${app}.1.gz ${app}.1.gz + /usr/share/man/man1/${app}DEBSUFFIX.1.gz" + done + + update-alternatives --quiet \ + --install /usr/bin/wine wine /usr/bin/wineDEBSUFFIX $PRIORITY \ + $slaves \ + --slave /usr/share/man/man1/wine.1.gz wine.1.gz \ + /usr/share/man/man1/wineDEBSUFFIX.1.gz \ + --slave /usr/share/man/de/man1/wine.1.gz wine.de.1.gz \ + /usr/share/man/de/man1/wineDEBSUFFIX.1.gz \ + --slave /usr/share/man/fr/man1/wine.1.gz wine.fr.1.gz \ + /usr/share/man/fr/man1/wineDEBSUFFIX.1.gz \ + --slave /usr/share/man/pl/man1/wine.1.gz wine.pl.1.gz \ + /usr/share/man/pl/man1/wineDEBSUFFIX.1.gz \ + --slave /usr/share/man/de/man1/wineserver.1.gz wineserver.de.1.gz \ + /usr/share/man/de/man1/wineserverDEBSUFFIX.1.gz \ + --slave /usr/share/man/fr/man1/wineserver.1.gz wineserver.fr.1.gz \ + /usr/share/man/fr/man1/wineserverDEBSUFFIX.1.gz \ + --slave /usr/share/man/de/man1/winemaker.1.gz winemaker.de.1.gz \ + /usr/share/man/de/man1/winemakerDEBSUFFIX.1.gz \ + --slave /usr/share/man/fr/man1/winemaker.1.gz winemaker.fr.1.gz \ + /usr/share/man/fr/man1/winemakerDEBSUFFIX.1.gz + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/wineVERSION.prerm b/debian/wineVERSION.prerm new file mode 100644 index 0000000..5c68c07 --- /dev/null +++ b/debian/wineVERSION.prerm @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +case "$1" in + remove|deconfigure) + update-alternatives --remove wine /usr/bin/wineDEBSUFFIX + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/wineVERSION.triggers b/debian/wineVERSION.triggers new file mode 100644 index 0000000..43dad79 --- /dev/null +++ b/debian/wineVERSION.triggers @@ -0,0 +1,10 @@ +# update the wine alternatives in "wineVERSION.postinst triggered" + +# explicit trigger +interest wineVERSION + +# indicates package wine64 installation status changed +interest /usr/bin/wine64DEBSUFFIX + +# indicates package wine{32|64}-tools installation status changed +interest /usr/bin/winegccDEBSUFFIX -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wine/wine.git _______________________________________________ pkg-wine-party mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-wine-party
