Bug#776095: wheezy-pu: package sudo/1.8.5p2-1+nmu2
Followup-For: Bug #776095
Control: tag -1 - confirmed
Hi,
further testing revealed that the fix in 1.8.7-1 (that I backported)
was insufficient for sudo-ldap since in lenny sudo and sudo-ldap
created different /etc/sudoers, but only the one from sudo/lenny was
covered so far.
An updated diff is attached, adding more md5sums.
It also contains some git adjustments.
There is not much point in fixing this in jessie, since that would only
help on this unsupported upgrade path:
lenny -> squeeze -> jessie
i.e. skipping over wheezy.
(But since there are other issues with sudo and the patch is pretty
straightforward, the fix may end up in jessie anyway.)
Regarding the version number, the following would probably work,too:
1.8.5p2-1.2+deb7u2
Andreas
diff -Nru sudo-1.8.5p2/debian/changelog sudo-1.8.5p2/debian/changelog
--- sudo-1.8.5p2/debian/changelog 2013-03-01 06:18:08.000000000 +0100
+++ sudo-1.8.5p2/debian/changelog 2015-01-28 02:10:56.000000000 +0100
@@ -1,3 +1,12 @@
+sudo (1.8.5p2-1+nmu2) wheezy; urgency=medium
+
+ * Non-maintainer upload.
+ * Backport from 1.8.7-1: "recognize lenny and squeeze unmodified sudoers" to
+ avoid dpkg questions about modified conffiles on upgrades to wheezy.
+ (Closes: #660594)
+
+ -- Andreas Beckmann <anbe@debian.org> Wed, 28 Jan 2015 02:07:46 +0100
+
sudo (1.8.5p2-1+nmu1) unstable; urgency=high
* Non-maintainer upload by the Security Team.
diff -Nru sudo-1.8.5p2/debian/control sudo-1.8.5p2/debian/control
--- sudo-1.8.5p2/debian/control 2012-06-28 20:06:35.000000000 +0200
+++ sudo-1.8.5p2/debian/control 2015-01-28 02:10:56.000000000 +0100
@@ -4,8 +4,8 @@
Maintainer: Bdale Garbee <bdale@gag.com>
Build-Depends: debhelper (>= 7), libpam0g-dev, libldap2-dev, libsasl2-dev, libselinux1-dev [linux-any], autoconf, autotools-dev, bison, flex
Standards-Version: 3.9.3
-Vcs-Git: git://git.gag.com/debian/sudo
-Vcs-Browser: http://git.gag.com/?p=debian/sudo
+Vcs-Git: git://anonscm.debian.org/collab-maint/sudo.git -b wheezy
+Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/sudo.git
Package: sudo
Architecture: any
diff -Nru sudo-1.8.5p2/debian/gbp.conf sudo-1.8.5p2/debian/gbp.conf
--- sudo-1.8.5p2/debian/gbp.conf 2012-06-28 20:06:35.000000000 +0200
+++ sudo-1.8.5p2/debian/gbp.conf 2015-01-28 02:10:56.000000000 +0100
@@ -8,7 +8,7 @@
# the default branch for upstream sources:
upstream-branch = upstream
# the default branch for the debian patch:
-debian-branch = master
+debian-branch = wheezy
# the default tag formats used:
#upstream-tag = upstream/%(version)s
#debian-tag = debian/%(version)s
diff -Nru sudo-1.8.5p2/debian/sudo-ldap.preinst sudo-1.8.5p2/debian/sudo-ldap.preinst
--- sudo-1.8.5p2/debian/sudo-ldap.preinst 2012-06-28 20:06:35.000000000 +0200
+++ sudo-1.8.5p2/debian/sudo-ldap.preinst 2015-01-28 02:10:56.000000000 +0100
@@ -8,7 +8,9 @@
if [ -e "$SUDOERS" ]; then
md5sum="$(md5sum $SUDOERS | sed -e 's/ .*//')"
- if [ "$md5sum" = "c5dab0f2771411ed7e67d6dab60a311f" ]; then
+ if [ "$md5sum" = "c310ef4892a00cca8134f6e4fcd64b6d" ] || #lenny/sudo
+ [ "$md5sum" = "4f29c034a4229544ffdd9168a14f6cde" ] || #lenny/sudo-ldap
+ [ "$md5sum" = "c5dab0f2771411ed7e67d6dab60a311f" ]; then #squeeze
# move unchanged sudoers file to avoid conffile question
mv "$SUDOERS" "$SUDOERS.pre-conffile"
fi
diff -Nru sudo-1.8.5p2/debian/sudo.preinst sudo-1.8.5p2/debian/sudo.preinst
--- sudo-1.8.5p2/debian/sudo.preinst 2012-06-28 20:06:35.000000000 +0200
+++ sudo-1.8.5p2/debian/sudo.preinst 2015-01-28 02:10:56.000000000 +0100
@@ -8,7 +8,9 @@
if [ -e "$SUDOERS" ]; then
md5sum="$(md5sum $SUDOERS | sed -e 's/ .*//')"
- if [ "$md5sum" = "c5dab0f2771411ed7e67d6dab60a311f" ]; then
+ if [ "$md5sum" = "c310ef4892a00cca8134f6e4fcd64b6d" ] || #lenny/sudo
+ [ "$md5sum" = "4f29c034a4229544ffdd9168a14f6cde" ] || #lenny/sudo-ldap
+ [ "$md5sum" = "c5dab0f2771411ed7e67d6dab60a311f" ]; then #squeeze
# move unchanged sudoers file to avoid conffile question
mv "$SUDOERS" "$SUDOERS.pre-conffile"
fi
Reply to: