WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
74373
Don't create empty file if gperf fails
https://bugs.webkit.org/show_bug.cgi?id=74373
Summary
Don't create empty file if gperf fails
Rafael Ávila de Espíndola
Reported
2011-12-12 17:18:53 PST
Currently makeprop.pl, makevalues.pl and make-hash-tools.pl run gperf with: system("gperf .... > $file") == || die ... This creates an empty $file if gperf fails, which doesn't play very well with most build systems. This patch changes them to use system("gperf .... --output-file=$file")
Attachments
fix the gperf invocation
(2.17 KB, patch)
2011-12-12 17:21 PST
,
Rafael Ávila de Espíndola
no flags
Details
Formatted Diff
Diff
fix the gperf invocation
(2.22 KB, patch)
2011-12-12 18:01 PST
,
Rafael Ávila de Espíndola
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Rafael Ávila de Espíndola
Comment 1
2011-12-12 17:21:15 PST
Created
attachment 118919
[details]
fix the gperf invocation
WebKit Review Bot
Comment 2
2011-12-12 17:26:12 PST
Attachment 118919
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/ChangeLog:1: ChangeLog entry has no bug number [changelog/bugnumber] [5] Total errors found: 1 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
Rafael Ávila de Espíndola
Comment 3
2011-12-12 18:01:44 PST
Created
attachment 118927
[details]
fix the gperf invocation
WebKit Review Bot
Comment 4
2011-12-15 23:18:20 PST
Comment on
attachment 118927
[details]
fix the gperf invocation Clearing flags on attachment: 118927 Committed
r103031
: <
http://trac.webkit.org/changeset/103031
>
WebKit Review Bot
Comment 5
2011-12-15 23:18:24 PST
All reviewed patches have been landed. Closing bug.
Myles C. Maxfield
Comment 6
2012-04-14 12:28:40 PDT
Some systems' version of gperf doesn't have the --output-file flag. Is it possible to detect if the file is empty and delete it instead?
Rafael Ávila de Espíndola
Comment 7
2012-04-15 05:07:48 PDT
(In reply to
comment #6
)
> Some systems' version of gperf doesn't have the --output-file flag. Is it possible to detect if the file is empty and delete it instead?
That would create a race condition, no? What I think can be done is gperf > foo.tmp && mv foo.tmp foo
Myles C. Maxfield
Comment 8
2012-04-16 10:43:57 PDT
I'm not sure it matters that much. It's probably reasonable to just say that building WebKit depends on gperf version >= 3.x (instead of 2.7.x, which doesn't have this flag). Because gperf 3.0.1 was released 6 years ago, I think it's reasonable to require people to have the newer version. To solve this problem, I just upgraded gperf on the machine I was building on.
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