warning: wineserver not found!

Does it work if you export the variable right before running the script?
Bash:
export WINESERVER=wineserver32
sh winetricks corefonts
 
Code:
$ echo $WINESERVER
wineserver32
$ sh winetricks corefonts
------------------------------------------------------
warning: wineserver not found!
------------------------------------------------------
$
 
Maybe the idea that winetricks uses the environment variable is not right and it's hardcoded in the script?
Can you do a grep -i wineserver winetricks?
 
That's why I always advice people not to program in shell. This whole check is somehow botched and only works with a full path. That is, WINESERVER=/usr/local/bin/wineserver32.
 
Code:
$  grep -i wineserver winetricks
    w_wineserver -w
# wrapper around wineserver, to let users know that it will wait indefinitely/kill stuff
w_wineserver()
        *-k) w_warn "Running ${WINESERVER} -k. This will kill all running wine processes in prefix=${WINEPREFIX}";;
        *-w) w_warn "Running ${WINESERVER} -w. This will hang until all wine processes in prefix=${WINEPREFIX} terminate";;
        *)   w_warn "Invoking wineserver with '$*'";;
    "${WINESERVER}" $@
    w_wineserver -w
        "${WINESERVER}" -w
            WINESERVER=""
            # Find wineserver.
                "${WINESERVER}" \
                "$(command -v wineserver 2> /dev/null)" \
                "$(dirname "${WINE}")/server/wineserver" \
                /usr/bin/wineserver-development \
                /usr/lib/wine/wineserver \
                /usr/lib/i386-kfreebsd-gnu/wine/wineserver \
                /usr/lib/i386-linux-gnu/wine/wineserver \
                /usr/lib/powerpc-linux-gnu/wine/wineserver \
                /usr/lib/i386-kfreebsd-gnu/wine/bin/wineserver \
                /usr/lib/i386-linux-gnu/wine/bin/wineserver \
                /usr/lib/powerpc-linux-gnu/wine/bin/wineserver \
                /usr/lib/x86_64-linux-gnu/wine/bin/wineserver \
                /usr/lib/i386-kfreebsd-gnu/wine-development/wineserver \
                /usr/lib/i386-linux-gnu/wine-development/wineserver \
                /usr/lib/powerpc-linux-gnu/wine-development/wineserver \
                /usr/lib/x86_64-linux-gnu/wine-development/wineserver \
                        /usr/lib/*/wine-development/wineserver|/usr/bin/wineserver-development)
                    file-not-found) w_die "wineserver not found!" ;;
                    *) WINESERVER="${x}" ;;
    w_wineserver -w
    w_wineserver -w
    w_wineserver -w
    w_wineserver -w
    w_wineserver -w
        # or should we just do w_wineserver -k, like fable_tlc does?
        w_wineserver -k
 
elimelech007 outputs from these three commands, please:
  1. freebsd-version -kru ; uname -aKU
  2. pkg -vv | grep -e url -e enabled
  3. pkg info -x wine
Code:
% pkg provides /usr/local/bin/wineserver32
% pkg provides /usr/local/bin/wineserver
Name    : wine-devel-7.1,1
Desc    : Microsoft Windows compatibility environment
Repo    : FreeBSD
Filename: usr/local/bin/wineserver

Name    : wine-6.0.2_1,1
Desc    : Microsoft Windows compatibility environment
Repo    : FreeBSD
Filename: usr/local/bin/wineserver
% pkg info -x wine
wine-6.0.2_1,1
wine-proton-6.3.2_3
winetricks-20210825
% uname -KU
1400051 1400051
% pkg -vv | grep -e url -e enabled
    url             : "http://pkg0.bme.freebsd.org/FreeBSD:14:amd64/latest",
    enabled         : yes,
    url             : "https://alpha.pkgbase.live/current/FreeBSD:14:amd64/latest",
    enabled         : no,
    url             : "file:///usr/local/poudriere/data/packages/main-default",
    enabled         : yes,
%

Postscript eternal_noob ports-mgmt/pkg-provides, and if you have not previously used pkg provides, NB <https://www.freshports.org/ports-mgmt/pkg-provides/#message>.
 
Sorry, I mean, do you get the same (nothing) in response to the command? I'll add to my spoiler a link to the relevant port.

PS to avoid misunderstanding: that stuff is not hidden in a spoiler because there's a problem with FreeBSD 14.0-CURRENT. On 14.0-CURRENT, this alone runs without error:

winetricks corefonts
  • in my preferred shell (csh)
  • without a sh prefix to the command.
 
I installed ports-mgmt/pkg-provides and commented out the stuff in /usr/local/etc/pkg.conf.

pkg plugins finds the provides plugin:
Code:
root@xxx:~ # pkg plugins
NAME       DESC                                          VERSION 
provides   A plugin for querying which package provides a particular file 0.7.1
but pkg provides /usr/local/bin/wineserver32 says
Code:
root@xxx:~ # pkg provides /usr/local/bin/wineserver32
usage: pkg provides [-uf] [-r repo] pattern

A plugin for querying which package provides a particular file
 
Code:
root@A9t:/home/luba # freebsd-version -kru ; uname -aKU
13.0-RELEASE-p6
13.0-RELEASE-p6
13.0-RELEASE-p7
FreeBSD A9t 13.0-RELEASE-p6 FreeBSD 13.0-RELEASE-p6 #0: Mon Jan 10 06:26:40 UTC 2022     root@amd64-builder.daemonology.net:/usr/obj/usr/src/i386.i386/sys/GENERIC  i386 1300139 1300139
root@A9t:/home/luba # pkg -vv | grep -e url -e enabled
    url             : "pkg+http://pkg.FreeBSD.org/FreeBSD:13:i386/latest",
    enabled         : yes,
root@A9t:/home/luba # pkg info -x wine
wine-6.0.2_1,1
winetricks-20210825


Code:
root@A9t:/home/luba # pkg provides /usr/local/bin/wineserver32
Provides database not found, please update first.
root@A9t:/home/luba # pkg provides -u
Fetching provides database: 100%   14 MiB   1.7MB/s    00:09   
Extracting database....success
root@A9t:/home/luba # pkg provides /usr/local/bin/wineserver32
Name    : wine-devel-7.1,1
Desc    : Microsoft Windows compatibility environment
Repo    : FreeBSD
Filename: usr/local/bin/wineserver32

Name    : wine-6.0.2_1,1
Desc    : Microsoft Windows compatibility environment
Repo    : FreeBSD
 
Maybe using a soft link helps?

As root:
ln -sf /usr/local/bin/wineserver32 /usr/local/bin/wineserver

Or use an other target (last parameter) . See the script for a list of directories it searches.
 
(Not a constructive comment)

I can't find my wine server either. If I want a glass of wine, I have to go to the kitchen, find a glass, find the open bottle, and pour it. At least at dinner, that effort gets amortized over serving 3 people.

What happened to drinking beer while fixing the car? How about an after-dinner liqueur? A cocktail in the afternoon? Mimosa with brunch?

Sorry to disrupt the discussion, but I've been seeing this headline "wineserver" for several days now, and I can't get the image out of my brain.
 
Back
Top