Bug 217064

Summary: configure-xcode-for-embedded-development bad error message when not using sudo
Product: WebKit Reporter: James Darpinian <jdarpinian>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: jbedard, krollin, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   

James Darpinian
Reported 2020-09-28 14:43:28 PDT
I used the official Python installer from python.org to install Python 3.8.5. configure-xcode-for-embedded-development fails with the message: Traceback (most recent call last): File "Tools/Scripts/configure-xcode-for-embedded-development", line 333, in <module> main() File "Tools/Scripts/configure-xcode-for-embedded-development", line 320, in main if not os.geteuid() == 0 and not os.access(xcode_developer_dir(), os.R_OK | os.W_OK | os.X_OK, effective_ids=True): NotImplementedError: access: effective_ids unavailable on this platform
Attachments
James Darpinian
Comment 1 2020-09-28 14:45:41 PDT
Ah, the error message is misleading, the real problem was I forgot to use sudo. Perhaps the script should check for that.
Jonathan Bedard
Comment 2 2020-09-29 10:30:22 PDT
(In reply to James Darpinian from comment #1) > Ah, the error message is misleading, the real problem was I forgot to use > sudo. Perhaps the script should check for that. That's exactly what that line is doing....is os.geteuid() not implemented on Python 3.8.5?
James Darpinian
Comment 3 2020-09-29 10:50:45 PDT
os.geteuid() is working as intended. Looks like when the root check fails this line runs this os.access call which throws. Is the os.access call just broken or do Python implementations differ in whether they support effective_ids on macOS?
Jonathan Bedard
Comment 4 2020-09-29 11:09:52 PDT
(In reply to James Darpinian from comment #3) > os.geteuid() is working as intended. Looks like when the root check fails > this line runs this os.access call which throws. Is the os.access call just > broken or do Python implementations differ in whether they support > effective_ids on macOS? I think that the os.access call might be broken in Python 3.8.5, because Python 3.8.2 seems fine with it. In any case, we can probably just remove the os.access(...) line
Radar WebKit Bug Importer
Comment 5 2020-10-05 14:44:15 PDT
Note You need to log in before you can comment on or make changes to this bug.