From: Austin English Subject: tools: remove wineinstall Message-Id: Date: Tue, 28 Feb 2017 01:51:42 -0600 See, e.g.: https://www.winehq.org/pipermail/wine-devel/2017-February/116607.html https://www.winehq.org/pipermail/wine-devel/2017-February/116641.html I seem to recall hearing similar comments a few years ago, but I'm too lazy to dig them up. -- -Austin GPG: 14FB D7EA A041 937B From c732a426f835e190fbceffa29aa70bfd15456435 Mon Sep 17 00:00:00 2001 From: Austin English Date: Tue, 28 Feb 2017 00:19:10 -0600 Subject: [PATCH] tools: remove wineinstall Signed-off-by: Austin English --- README | 26 ++------ tools/wineinstall | 190 ------------------------------------------------------ 2 files changed, 6 insertions(+), 210 deletions(-) delete mode 100755 tools/wineinstall diff --git a/README b/README index 16270816bf..8014d105b4 100644 --- a/README +++ b/README @@ -11,20 +11,7 @@ Wine is free software, released under the GNU LGPL; see the file LICENSE for the details. -2. QUICK START - -Whenever you compile from source, it is recommended to use the Wine -Installer to build and install Wine. From the top-level directory -of the Wine source (which contains this file), run: - -./tools/wineinstall - -Run programs as "wine program". For more information and problem -resolution, read the rest of this file, the Wine man page, and -especially the wealth of information found at http://www.winehq.org. - - -3. REQUIREMENTS +2. REQUIREMENTS To compile and run Wine, you must have one of the following: @@ -82,10 +69,9 @@ Optional support libraries: 64-bit Wine (or a mixed 32-bit and 64-bit Wine setup), see http://wiki.winehq.org/Wine64 for details. -4. COMPILATION +3. COMPILATION -In case you chose to not use wineinstall, run the following commands -to build Wine: +Run the following commands to build Wine: ./configure make @@ -97,7 +83,7 @@ Windows source code under Unix. To see compile configuration options, do ./configure --help. -5. SETUP +4. SETUP Once Wine has been built correctly, you can do "make install"; this will install the wine executable and libraries, the Wine man page, and @@ -111,7 +97,7 @@ Once installed, you can run the "winecfg" configuration tool. See the Support area at http://www.winehq.org/ for configuration hints. -6. RUNNING PROGRAMS +5. RUNNING PROGRAMS When invoking Wine, you may specify the entire path to the executable, or a filename only. @@ -132,7 +118,7 @@ will get a crash log that you should attach to your report when filing a bug. -7. GETTING MORE INFORMATION +6. GETTING MORE INFORMATION WWW: A great deal of information about Wine is available from WineHQ at http://www.winehq.org/ : various Wine Guides, application database, diff --git a/tools/wineinstall b/tools/wineinstall deleted file mode 100755 index e8e22bfcf8..0000000000 --- a/tools/wineinstall +++ /dev/null @@ -1,190 +0,0 @@ -#!/bin/sh -# WINE Installation script -# Can do almost everything from compiling to configuring... -# -# Copyright 1999 Ove Kåven -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA -# - -#--- defaults (change these if you are a packager) -CONFARGS="" # configure args, e.g. --prefix=/usr - -std_sleep() { - sleep 1 -} - -conf_yesno_answer() { - unset ANSWER - while [ "$ANSWER" != 'yes' ] && [ "$ANSWER" != 'no' ] - do { - echo -n "$1" - read ANSWER - } - done -} - -# startup... - -echo "Wine Installer v1.0" -echo - -if [ ! -f configure ] -then - if [ -f ../configure ] - then { - cd .. - } - else { - echo "You're running this from the wrong directory." - echo "Change to the Wine source's main directory and try again." - exit 1 - } - fi -fi - -if [ -w / ] -then - echo "You are running wineinstall as root, this is not advisable. Please rerun as a user." - echo "Aborting." - exit 1 -fi - -if [ ! -w . ] -then - echo "The source directory is not writable. You probably extracted the sources as root." - echo "You should remove the source tree and extract it again as a normal user." - exit 1 -fi - -# check whether RPM installed, and if it is, remove any old wine rpm. -if [ -x `which rpm 2>/dev/null` ]; then - if [ -n "`rpm -qi wine 2>/dev/null|grep "^Name"`" ]; then - echo "Warning: Old Wine RPM install detected. Do you want to remove it first?" - conf_yesno_answer "(yes/no) " - if [ "$ANSWER" = 'yes' ]; then - echo "We need to remove the rpm as root, please enter your root password" - echo - echo Starting wine rpm removal... - su -c "rpm -e wine; RET=$?" - if [ $RET -eq 0 ]; then - echo Done. - else - echo "FAILED. Probably you aren't installing as root." - echo "Expect problems (library conflicts with existing install etc.)." - fi - else - echo "Sorry, I won't install Wine when an rpm version is still installed." - echo "(Wine support suffered from way too many conflicts between RPM" - echo "and source installs)" - echo "Have a nice day !" - exit 1 - fi - fi -fi - -# check whether wine binary still available -if [ -x `which wine 2>/dev/null` ] && [ -n "`wine --version 2>/dev/null`" ] -then - echo "Warning !! wine binary (still) found, which may indicate" - echo "a (conflicting) previous installation." - echo "You might want to abort and uninstall Wine first." - echo "(If you previously tried to install from source manually, " - echo "run 'make uninstall' from the wine root directory)" - std_sleep -fi - -# Ask the user if they want to build and install Wine: -echo -echo "We need to install Wine as the root user. Do you want us to build Wine," -echo "'su root' and install Wine? Enter 'no' to build Wine without installing:" -conf_yesno_answer "(yes/no) " -ROOTINSTALL="$ANSWER" - -if [ "$ROOTINSTALL" = "yes" ] -then sucommand="make install" -fi - -# run the configure script, if necessary - -if [ -f Makefile ] -then - echo "I see that Wine has already been configured, so I'll skip that." - std_sleep -else - echo "Running configure..." - echo - if ! ./configure $CONFARGS - then { - echo - echo "Configure failed, aborting install." - exit 1 - } - fi -fi - -# Now do the compilation and (optionally) installation - -echo -echo "Compiling Wine. Grab a lunch or two, rent a video, or whatever," -echo "in the meantime..." -echo -std_sleep - -# try to just make wine, if this fails 'make depend' and try to remake -if ! { make; } -then - if ! { make depend && make; } - then - echo - echo "Compilation failed, aborting install." - exit 1 - fi -fi - -if [ "$ROOTINSTALL" = "no" ] -then - exit 0 -fi - -echo -echo "Performing 'make install' as root to install binaries, enter root password" - -if ! su root -c "$sucommand" -then - echo - echo "Incorrect root password. If you are running Ubuntu or a similar distribution," - echo "'make install' needs to be run via the sudo wrapper, so trying that one now" - if ! sudo su root -c "$sucommand" - then - echo - echo "Either you entered an incorrect password or we failed to" - echo "run '$sucommand' correctly." - echo "If you didn't enter an incorrect password then please" - echo "report this error and any steps to possibly reproduce it to" - echo "http://bugs.winehq.org/" - echo - echo "Installation failed, aborting." - exit 1 - fi -fi - -# it's a wrap -echo -echo "Installation complete." -echo "If you have problems with Wine, please read the documentation first," -echo "as many kinds of potential problems are explained there." - -exit 0 -- 2.11.0