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#66895 - [emscripten] can't create cache.lock

Attached to Project: Community Packages
Opened by Bernard Čupić (bercupic) - Thursday, 04 June 2020, 11:14 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Friday, 05 June 2020, 02:23 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Running emcc -v gives me a output:
Traceback (most recent call last):
File "/usr/lib/emscripten/emcc.py", line 42, in <module>
import emscripten
File "/usr/lib/emscripten/emscripten.py", line 25, in <module>
from tools import shared
File "/usr/lib/emscripten/tools/shared.py", line 3501, in <module>
check_vanilla()
File "/usr/lib/emscripten/tools/shared.py", line 660, in check_vanilla
is_vanilla_file = temp_cache.get('is_vanilla.txt', get_vanilla_file)
File "/usr/lib/emscripten/tools/cache.py", line 110, in get
self.acquire_cache_lock()
File "/usr/lib/emscripten/tools/cache.py", line 60, in acquire_cache_lock
self.filelock.acquire(60)
File "/usr/lib/emscripten/tools/filelock.py", line 240, in acquire
self._acquire()
File "/usr/lib/emscripten/tools/filelock.py", line 360, in _acquire
fd = os.open(self._lock_file, open_mode)
PermissionError: [Errno 13] Permission denied: '/usr/lib/emscripten/cache.lock'

It seems that emscripten tries to create lock file in the installation directory instead of in users home directory as it should.
Downgrading it to version 1.39.11-1 evereything works fine. I'm not sure that this is the last version that works fine, but this is the only one I have that works OK.

Additional info:
* package version: 1.39.16-2

Steps to reproduce:
Run as regular user:
emcc -v
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Friday, 05 June 2020, 02:23 GMT
Reason for closing:  Upstream
Additional comments about closing:  https://github.com/emscripten-core/emscr ipten/issues/11313
Comment by Sven-Hendrik Haase (Svenstaro) - Friday, 05 June 2020, 02:23 GMT
Yeah, it's this upstream issue: https://github.com/emscripten-core/emscripten/issues/11313

Sadly their patch doesn't apply cleanly. However, they said they'll make a new release soon so I'll consider this an upstream issue and close this. I think the problem is going to go away by itself soon enough.

For the meantime, you can set EM_CONFIG to somewhere writable. For instance, EM_CONFIG=/tmp/.emscripten emcc.

Loading...