WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
195977
Add support for more platforms to generate-xcfilelists
https://bugs.webkit.org/show_bug.cgi?id=195977
Summary
Add support for more platforms to generate-xcfilelists
Keith Rollin
Reported
2019-03-19 16:26:47 PDT
generate-xcfilelists incorrectly complains when involved with building WebKit for iphonesimulator: $ make debug SDKROOT=iphonesimulator.internal -C Internal/ … PhaseScriptExecution Check\ .xcfilelists /Volumes/Data/Safari/OpenSource/WebKitBuild/JavaScriptCore.build/Debug-iphonesimulator/JavaScriptCore.build/Script-53609F9021DFFA9C008FA60A.sh cd /Volumes/Data/Safari/OpenSource/Source/JavaScriptCore /bin/sh -c /Volumes/Data/Safari/OpenSource/WebKitBuild/JavaScriptCore.build/Debug-iphonesimulator/JavaScriptCore.build/Script-53609F9021DFFA9C008FA60A.sh ### (die get_canonical_platform_name main main) Unrecognized platform name: iphonesimulator GXCF: === Generating .xcfilelists for JavaScriptCore/iphonesimulator/Debug === GXCF: === Merging .xcfilelists for JavaScriptCore === Address this by teaching generate-xcfilelists about more platforms.
rdar://problem/48616075
Attachments
Patch
(2.43 KB, patch)
2019-03-19 16:33 PDT
,
Keith Rollin
no flags
Details
Formatted Diff
Diff
Fix the location of the 'Reviewed by' statement in the changelog.
(2.43 KB, patch)
2019-03-19 16:38 PDT
,
Keith Rollin
no flags
Details
Formatted Diff
Diff
Fixed tvos-related aliases.
(2.64 KB, patch)
2019-03-19 18:34 PDT
,
Keith Rollin
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Keith Rollin
Comment 1
2019-03-19 16:33:03 PDT
Created
attachment 365257
[details]
Patch
Keith Rollin
Comment 2
2019-03-19 16:38:29 PDT
Created
attachment 365260
[details]
Fix the location of the 'Reviewed by' statement in the changelog.
Alexey Proskuryakov
Comment 3
2019-03-19 16:47:06 PDT
Comment on
attachment 365260
[details]
Fix the location of the 'Reviewed by' statement in the changelog. View in context:
https://bugs.webkit.org/attachment.cgi?id=365260&action=review
Conditional r=me assuming that you either tested tvOS simulator code path, or will test it and fix as necessary.
> Tools/Scripts/generate-xcfilelists:642 > + [[ "${GX_PROVISIONAL_PLATFORM_NAME}" == "tvsimulator" ]] && { echo "tvsimulator"; return; }
I'm not quite sure where this string goes in the end, but my guess is that it should be appletvsimulator, not tvsimulator.
Keith Rollin
Comment 4
2019-03-19 18:34:11 PDT
Created
attachment 365283
[details]
Fixed tvos-related aliases.
WebKit Commit Bot
Comment 5
2019-03-19 20:56:21 PDT
Comment on
attachment 365283
[details]
Fixed tvos-related aliases. Clearing flags on attachment: 365283 Committed
r243188
: <
https://trac.webkit.org/changeset/243188
>
WebKit Commit Bot
Comment 6
2019-03-19 20:56:23 PDT
All reviewed patches have been landed. Closing bug.
Alexey Proskuryakov
Comment 7
2019-03-20 10:21:55 PDT
Can GX_PROVISIONAL_PLATFORM_NAME actually be "tvsimulator"? It seems undesirable to be lax with input unless there is a specific string reason to accept multiple variants.
Keith Rollin
Comment 8
2019-03-20 12:32:53 PDT
I accept variants on the command line when executing the script by hand. I didn't want people to have to remember that it's "macosx" as opposed to "osx" or "macos", or "iphoneos" as opposed to "ios". What you're seeing with "tvsimulator" is that thought extended to tvOS and friends. Since I made the mistake of omitting the "apple" prefix in an earlier version of the patch, this seems like it might be a common mistake for people to make. This system of aliases is in-line with the Robustness Principle / Postel's Law: "Be conservative in what you do, be liberal in what you accept from others" (though, admittedly, this principle is not without its critics).
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug