Bug 259290 - emulators/wine-devel: Fails to install: pkg: Fail to create temporary file: /usr/local/lib/wine/x86_64-unix/.pkgtemp.acledit.dll.so.3AptplGWpxob:No such file or directory
Summary: emulators/wine-devel: Fails to install: pkg: Fail to create temporary file: /...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2021-10-20 00:49 UTC by Dwayne MacKinnon
Modified: 2021-11-21 17:28 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (damjan.jov)


Attachments
Poudriere build log of wine-devel-6.19,1 (163.87 KB, application/gzip)
2021-10-20 02:05 UTC, Dwayne MacKinnon
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dwayne MacKinnon 2021-10-20 00:49:22 UTC
When I attempt to install the wine-devel pkg I built (poudriere, up-to-date ports tree, wine-devel: 6.19,1, FreeBSD 13-RELEASE-p4) I get the following message:

[1/1] Fetching wine-devel-6.19,1.pkg: 100%   29 MiB  30.3MB/s    00:01    
Checking integrity... done (0 conflicting)
[1/1] Installing wine-devel-6.19,1...
[1/1] Extracting wine-devel-6.19,1:  32%
pkg: Fail to create temporary file: /usr/local/lib/wine/x86_64-unix/.pkgtemp.acledit.dll.so.3AptplGWpxob:No such file or directory
[1/1] Extracting wine-devel-6.19,1: 100%

I tried disabling MAKE_JOBS for the port; didn't seem to make any difference.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2021-10-20 00:57:12 UTC
Thank you for your report Dwayne. Could you provide additional information, 
including:

 - Full poudriere build log (as an attachment, compressed if necessary)
 - Confirmation whether the issue is or isn't reproducible using:
    a) The emulators/wine-devel port using an up to date tree
    b) The wine-devel binary package from the official pkg repository
Comment 2 Dwayne MacKinnon 2021-10-20 02:05:54 UTC
Created attachment 228852 [details]
Poudriere build log of wine-devel-6.19,1
Comment 3 Dwayne MacKinnon 2021-10-20 04:15:46 UTC
I did a manual build in /usr/ports/emulators/wine-devel, then did a make package. When I tried to install the package, I got this:

root@Chiron:/usr/ports/emulators/wine-devel # pkg add ./work/pkg/wine-devel-6.19,1.pkg 
Installing wine-devel-6.19,1...
Extracting wine-devel-6.19,1:  32%
pkg: Fail to create temporary file: /usr/local/lib/wine/x86_64-unix/.pkgtemp.acledit.dll.so.GO07CtQEzSuj:No such file or directory
Extracting wine-devel-6.19,1: 100%

Failed to install the following 1 package(s): ./work/pkg/wine-devel-6.19,1.pkg

-----------------------------------------------------------------------------
After that, I tried a straight "make install". I got this:


root@Chiron:/usr/ports/emulators/wine-devel # make install
===>  Installing for wine-devel-6.19,1
===>  Checking if wine-devel is already installed
===>   Registering installation for wine-devel-6.19,1
Installing wine-devel-6.19,1...
pkg-static: Fail to create temporary file: /usr/local/lib/wine/x86_64-unix/.pkgtemp.acledit.dll.so.iwPXvy3TRiXy:No such file or directory
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/emulators/wine-devel
*** Error code 1

Stop.
make: stopped in /usr/ports/emulators/wine-devel
root@Chiron:/usr/ports/emulators/wine-devel #
Comment 4 Dwayne MacKinnon 2021-10-20 04:26:29 UTC
I enabled the default FreeBSD repo and attempted to install wine-devel. It didn't have 6.19,1 but for comparison I tried it anyway. I got these messages:

[1/1] Fetching wine-devel-6.18,1.pkg: 100%   29 MiB  15.1MB/s    00:02    
Checking integrity... done (0 conflicting)
[1/2] Installing wine-devel-6.18,1...
[1/2] Extracting wine-devel-6.18,1:  32%
pkg: Fail to create temporary file: /usr/local/lib/wine/x86_64-unix/.pkgtemp.acledit.dll.so.6WvOEJW4Pfnm:No such file or directory
[1/2] Extracting wine-devel-6.18,1: 100%
Comment 5 Dwayne MacKinnon 2021-11-21 17:28:22 UTC
I found the problem, and it was my own system. I just rebuilt my ports last night (2021-11-20) and today I tried installing wine-devel again. After experiencing the same problem I went digging around and found that I had a /usr/local/lib/wine/ directory that had two non-functioning simlinks in it. I removed the directory, retried the pkg install and it worked.

I have marked this as closed/fixed for lack of a better option.