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

Bug#916613: marked as done ([winetricks] Don't remove upstream's manual selfupdate option)



Your message dated Sat, 22 Dec 2018 14:56:26 +0000
with message-id <E1gaihW-000Aui-3J@fasolo.debian.org>
and subject line Bug#916613: fixed in winetricks 0.0+20181203-3
has caused the Debian Bug report #916613,
regarding [winetricks] Don't remove upstream's manual selfupdate option
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.)


-- 
916613: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916613
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: winetricks
Version: 0.0+20181203-2
Severity: wishlist
Tags: pending


Hi all,

Currently we completely patch out Winetricks' selfupdate feature
(remove-self-update.patch).  Now I plan to only disable the *automatic*
winetricks version check and selfupdate, but keep the option
"--self-update" for manual updates:

The default behavior of the Debian package will still be unchanged then.

One has to execute as root "winetricks --self-update" to download and
install the upstream version in /usr/bin/winetricks.  Further my
proposed version is quite verbose about this, and also requires an
explicit confirmation before updating to the upstream version.

The complete change is at https://salsa.debian.org/wine-team/winetricks.
For easier discussion I also attached the patch with the new implementation.

Any thoughts on this, or need for more explanation?
I'd be especially happy about suggestions for better wording.

jre
>From 9413ec1be8ed1ca3c3daf5668c529ec2a1805a86 Mon Sep 17 00:00:00 2001
From: Jens Reyer <jre.winesim@gmail.com>
Date: Sun, 9 Dec 2018 22:20:43 +0100
Subject: [PATCH] Add disable-automatic-selfupdate.patch.

Disable automatic version check and selfupdate.
Warn and ask on manual selfupdate.
Document this in README.Debian.
---
 debian/README.Debian                          | 14 ++++
 .../disable-automatic-selfupdate.patch        | 79 +++++++++++++++++++
 debian/patches/series                         |  1 +
 3 files changed, 94 insertions(+)
 create mode 100644 debian/patches/disable-automatic-selfupdate.patch

diff --git a/debian/README.Debian b/debian/README.Debian
index 3d52574..3ba53b6 100644
--- a/debian/README.Debian
+++ b/debian/README.Debian
@@ -54,3 +54,17 @@ for more information:
 
   https://bugs.launchpad.net/ubuntu/+source/winetricks/+bug/1006909
 
+
+Winetricks' selfupdate
+======================
+
+Winetricks' automatic selfupdate and version check is disabled in
+Debian.  Although you may still run a manual "winetricks --selfupdate",
+be aware that this will install /usr/bin/winetricks directly from its
+developers, without any lookover from Debian.  What happens then, is out
+of Debian's control.
+Assuming the selfupdate only changed /usr/bin/winetricks, but nothing
+else was changed by this subsequently, then a future update of the
+winetricks package will bring back the regular Winetricks by Debian.
+But again: Debian cannot guarantee this.
+
diff --git a/debian/patches/disable-automatic-selfupdate.patch b/debian/patches/disable-automatic-selfupdate.patch
new file mode 100644
index 0000000..10b3a6c
--- /dev/null
+++ b/debian/patches/disable-automatic-selfupdate.patch
@@ -0,0 +1,79 @@
+Description: Disable automatic version check and selfupdate.
+  Warn and ask on manual selfupdate.
+Author: Jens Reyer <jre.winesim@gmail.com>
+Forwarded: not-needed
+Last-Update: 2018-12-16
+
+--- a/src/winetricks
++++ b/src/winetricks
+@@ -941,6 +941,18 @@ winetricks_check_update_availability()
+         w_warn "You don't have the proper permissions to run this command. Try again with sudo or as root."
+         exit
+     fi
++
++    w_warn "This will install Winetricks directly from its original developers.  Debian has no control over that version."
++    printf %s "To continue press Y or N, then Enter: "
++    read -r debresponse
++    if test "$debresponse" = Y || test "$debresponse" = y; then
++        true
++    elif test "$debresponse" = N || test "$debresponse" = n; then
++        exit
++    else
++        w_warn "Please press Y or N.  Aborting"
++        exit
++    fi
+ }
+ 
+ winetricks_selfupdate()
+@@ -982,6 +994,8 @@ winetricks_selfupdate()
+     w_try chmod +x "$0"
+ 
+     w_warn "Update finished! The current version is $($0 -V). Use 'winetricks --update-rollback' to return to the previous version."
++    w_warn "Winetricks is no more controlled by Debian but by the Winetricks project now."
++    w_warn "The next update of the winetricks package may or may not revert this change."
+ 
+     exit
+ }
+@@ -3168,10 +3182,10 @@ winetricks_latest_version_check()
+     if [ ! "$WINETRICKS_VERSION" = "${latest_version}" ] && [ ! "$WINETRICKS_VERSION" = "${latest_version}-next" ]; then
+         if [ -f "${WINETRICKS_CONFIG}/enable-auto-update" ] ; then
+             w_info "You are running winetricks-${WINETRICKS_VERSION}."
+-            w_info "New upstream release winetricks-${latest_version} is available."
+-            w_info "auto-update enabled: running winetricks_selfupdate"
+-            winetricks_selfupdate
+-        else
++            w_info "The automatic selfupdate is disabled in the Debian packages."
++            #winetricks_selfupdate
++        fi
++        #else
+             case $LANG in
+                 pl*)
+                     w_warn "Korzystasz z winetricks-${WINETRICKS_VERSION}, a najnowszÄ? wersjÄ? winetricks-${latest_version}!"
+@@ -3186,7 +3200,7 @@ winetricks_latest_version_check()
+                     w_warn "You should update using your distribution's package manager, --self-update, or manually."
+                     ;;
+             esac
+-        fi
++        #fi
+     fi
+ }
+ 
+@@ -5321,7 +5335,8 @@ winetricks_init()
+         echo "Using winetricks $(winetricks_print_version) with ${WINETRICKS_ORIG_WINE_VERSION} and WINEARCH=${W_ARCH}"
+     fi
+ 
+-    winetricks_latest_version_check
++    # In Debian during winetricks_init we don't want to automatically connect to a remote site
++    #winetricks_latest_version_check
+ }
+ 
+ winetricks_usage()
+@@ -5398,7 +5413,7 @@ Options:
+     --force           Don't check whether packages were already installed
+     --gui             Show gui diagnostics even when driven by commandline
+     --isolate         Install each app or game in its own bottle (WINEPREFIX)
+-    --self-update     Update this application to the last version
++    --self-update     Update this application to the latest version (non-Debian)
+     --update-rollback Rollback the last self update
+ -k, --keep_isos       Cache isos (allows later installation without disc)
+     --no-clean        Don't delete temp directories (useful during debugging)
diff --git a/debian/patches/series b/debian/patches/series
index b1203ff..7f6476e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
+disable-automatic-selfupdate.patch
 appdata-license.patch
 drop-bash-completion-download.patch
-- 
2.19.2


--- End Message ---
--- Begin Message ---
Source: winetricks
Source-Version: 0.0+20181203-3

We believe that the bug you reported is fixed in the latest version of
winetricks, 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 916613@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jens Reyer <jre.winesim@gmail.com> (supplier of updated winetricks 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: Sat, 22 Dec 2018 14:52:50 +0100
Source: winetricks
Binary: winetricks
Architecture: source
Version: 0.0+20181203-3
Distribution: unstable
Urgency: low
Maintainer: Debian Wine Team <debian-wine@lists.debian.org>
Changed-By: Jens Reyer <jre.winesim@gmail.com>
Description:
 winetricks - simple tool to work around common problems in Wine
Closes: 916613
Changes:
 winetricks (0.0+20181203-3) unstable; urgency=low
 .
   * Drop remove-self-update.patch.
   * Add disable-automatic-selfupdate.patch.
     Disable automatic online version check and selfupdate.
     Warn and require confirmation on manual selfupdate. (Closes: #916613)
     Document this in README.Debian.
Checksums-Sha1:
 020e4694f44a42272f8d91acd15e5b5a32b71941 2293 winetricks_0.0+20181203-3.dsc
 9a2383e93718932217c81f16d4b099f1e541f4f1 116916 winetricks_0.0+20181203-3.debian.tar.xz
 e633370abee306ee60c6fab06530a89230e778d6 5121 winetricks_0.0+20181203-3_all.buildinfo
Checksums-Sha256:
 5d885913c39c3ec21e2b73d664409e28ba230a5f6628ed024efc95ce36a384ac 2293 winetricks_0.0+20181203-3.dsc
 8d9f10a9b9168a97b51c21ee401df2400139153685e04e8b6daf4b168378cb7f 116916 winetricks_0.0+20181203-3.debian.tar.xz
 1c36b3273cb9b4b0c168be4a05264677194e3ff7887f97ccdb6cfdef11a49152 5121 winetricks_0.0+20181203-3_all.buildinfo
Files:
 9e37cd97b3cfe562fd21af697820a553 2293 contrib/otherosfs optional winetricks_0.0+20181203-3.dsc
 3f7fac5deb9868d1e6e49679e09c77fa 116916 contrib/otherosfs optional winetricks_0.0+20181203-3.debian.tar.xz
 97c61e3a7be64b0066d076425a3bf30a 5121 contrib/otherosfs optional winetricks_0.0+20181203-3_all.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEo+4EaAPA6D5jhqo9YIQSAytXMHYFAlweSQ0ACgkQYIQSAytX
MHZVpg/+IaBRO2EarBminOJAesofSo5qrdKvuvBnrJQHyjCIKI39vdKOZe1oraLV
3jhuYjot+CfQVTpiGGFISmcK66m+bDi1ODBgjvbJXs736/nLKWMXfYZNtdOAt4aG
KZhU9yS0dx9B6BtETDkfqVjUlHduWvT8htQuX7DS5kYgipLqsFCFS4urruKAYQyb
241LZBmH5DigzHjGmQTrFW5PCmVNC92cf3fFRZM3DX6PKu8IeRyHDzqk7248CtxI
yuf3bm0tTMWCzgRWoZQTK42J7OnbbpbP/4mM2Nc23SQkv/MCi8IqXddwUUfsEkxk
cVZdY37Z39ge9MrrmG1nGs/kpW54r1iwjXQcsZsZMRQftF6SjSH3LyUYRjGi0bnc
EFgVLStmVSIFo3MpUFdAmL6y0WMT/cxJy+IEbvTjO/2Y9MbY5+hovilNVDm1uagK
DoLMlTgsTwRZLqwfHU0M/cIz0QW/I7qCmyUCeHW4D1UinZWwyfgQw9cBich58Dqc
CZT7NjLZjcoNbXiXlatCsLxxDhMJ9t1n1kWtfpWYplVP8yWhzkz8m1iPOTQc4NfR
++krBE/fLOMABAXlsXHM8hSgqdMRw0dNqP+QmeU+8fo1dyAs9HXpI+FyFI575jbj
aheoJATaGi+8+mGOZ6uUwjNQZdMbj3pqKzY7kxq956cEimjdcSM=
=VsR5
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: