Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#55307 - [winetricks] I can't open winetricks anymore (sha1sum issue?)

Attached to Project: Community Packages
Opened by Neros (Neros) - Sunday, 27 August 2017, 05:50 GMT
Last edited by Eli Schwartz (eschwartz) - Sunday, 27 August 2017, 06:25 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I want to open winetricks but nothing happen. In fact, there is an error about sha1sum then winetricks wants to delete all my /tmp then there are issues with other applications because deleting /tmp is not a good thing... It's weird because sha1sum is on my system (/usr/bin/sha1sum).


Additional info:
* package version(s): 20170823-1
* log:

------------------------------------------------------
No sha1sum utility available.
------------------------------------------------------
rm: cannot remove '/tmp/sddm-:0-leRXDe': Operation not permitted
rm: cannot remove '/tmp/sddm-auth89877e9a-3467-4071-9ea2-5213ea002ff9': Operation not permitted
rm: cannot remove '/tmp/systemd-private-a479539ddc7a48cb80c8ace0f505d8d0-systemd-timesyncd.service-P8yVfd': Operation not permitted
rm: cannot remove '/tmp/.Test-unix': Operation not permitted
rm: cannot remove '/tmp/.font-unix': Operation not permitted
rm: cannot remove '/tmp/.XIM-unix': Operation not permitted
rm: cannot remove '/tmp/.ICE-unix': Operation not permitted
rm: cannot remove '/tmp/.X11-unix/X0': Operation not permitted


Steps to reproduce:

Type "winetricks" in the terminal
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Sunday, 27 August 2017, 06:25 GMT
Reason for closing:  Not a bug
Additional comments about closing:  whatever PEBKAC causes `which mktemp` and `which sha1sum` to not return an executable file, it's definitely not a problem with winetricks
Comment by Eli Schwartz (eschwartz) - Sunday, 27 August 2017, 06:15 GMT
```
# For temp files before $WINEPREFIX is available:
if [ -x "$(which mktemp 2>/dev/null)" ] ; then
W_TMP_EARLY="$(mktemp -d "${TMPDIR:-/tmp}/winetricks.XXXXXXXX")"
elif [ -w "$TMPDIR" ] ; then
W_TMP_EARLY="$TMPDIR"
else
W_TMP_EARLY="/tmp"
fi
```

This is later rm -rf'ed unless you use `winetricks --no-clean` which is horrifying, and also the probable cause of your issue.

But it shouldn't happen unless your system has no valid mktemp command in addition to your apparent sha1sum error.
Which is not a problem with winetricks. ;) You need to find out why shellscripts are throwing errors about your coreutils executables being completely invalid.

Loading...