Bug 173801

Summary: [GTK+] Homebrew is not allowed to run any script under sudo.
Product: WebKit Reporter: YuHang <yhorg>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: agomez, ashvayka, clopez, commit-queue, dhaval, ews-watchlist, lforschler, ltilve, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
URL: https://github.com/WebKit/webkit/blob/master/Tools/gtk/install-dependencies#L3
Attachments:
Description Flags
Patch none

YuHang
Reported 2017-06-23 18:29:10 PDT
/Tools/gtk/install-dependencies ... line 3 # This script needs to be run with root rights. if [ $UID -ne 0 ]; then sudo $0 exit 0 fi These code snippet will cause error while installing dependencies.
Attachments
Patch (1.12 KB, patch)
2019-06-10 19:48 PDT, Alexey Shvayka
no flags
overclockedllama
Comment 1 2019-02-02 11:20:28 PST
Alexey Shvayka
Comment 2 2019-06-10 19:48:24 PDT
Alexey Shvayka
Comment 3 2019-06-10 19:52:52 PDT
Tools/gtk/install-dependencies works fine for me w/o root privileges. Homebrew 2.1.4 macOS 10.14.4
overclockedllama
Comment 4 2019-06-11 12:00:41 PDT
Yeah that patch makes more sense. Brew should not run as root.
WebKit Commit Bot
Comment 5 2019-08-12 17:52:55 PDT
Comment on attachment 371812 [details] Patch Clearing flags on attachment: 371812 Committed r248584: <https://trac.webkit.org/changeset/248584>
WebKit Commit Bot
Comment 6 2019-08-12 17:52:57 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7 2019-08-12 17:53:20 PDT
Note You need to log in before you can comment on or make changes to this bug.