WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
76702
[GTK] Detect cross-compilation in webkitdirs.pm to not generate gtkdoc
https://bugs.webkit.org/show_bug.cgi?id=76702
Summary
[GTK] Detect cross-compilation in webkitdirs.pm to not generate gtkdoc
Gabor Rapcsanyi
Reported
2012-01-20 05:29:23 PST
It would be good if we can avoid the gtkdoc generating if it doesn't need for us. For example it would make easier the cross-compilation.
Attachments
proposed patch
(1.16 KB, patch)
2012-01-20 06:10 PST
,
Gabor Rapcsanyi
no flags
Details
Formatted Diff
Diff
proposed patch v2
(1.71 KB, patch)
2012-01-25 07:06 PST
,
Gabor Rapcsanyi
gyuyoung.kim
: commit-queue-
Details
Formatted Diff
Diff
proposed patch v3
(1.72 KB, patch)
2012-01-25 07:27 PST
,
Gabor Rapcsanyi
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Gabor Rapcsanyi
Comment 1
2012-01-20 06:10:39 PST
Created
attachment 123302
[details]
proposed patch
Martin Robinson
Comment 2
2012-01-20 08:03:38 PST
Comment on
attachment 123302
[details]
proposed patch Perhaps it should be a command-line option instead? Out of curiosity, why do you want to avoid it?
Gabor Rapcsanyi
Comment 3
2012-01-20 10:44:02 PST
(In reply to
comment #2
)
> (From update of
attachment 123302
[details]
) > Perhaps it should be a command-line option instead? Out of curiosity, why do you want to avoid it?
I've just checked webkitdirs.pm and saw a lot environment variables thats why I chose this way, but if you prefer a command-line option for build-webkit then I can make it as well. Anyway its need for GtkWebKit cross-compilation for ARM, and if you want to compile on x86 you can't run the ARM binaries for gtkdoc. Thats why we want to avoid this.
Martin Robinson
Comment 4
2012-01-20 10:49:41 PST
(In reply to
comment #3
)
> I've just checked webkitdirs.pm and saw a lot environment variables thats why I chose this way, but if you prefer a command-line option for build-webkit then I can make it as well. > Anyway its need for GtkWebKit cross-compilation for ARM, and if you want to compile on x86 you can't run the ARM binaries for gtkdoc. Thats why we want to avoid this.
In that case it might be better just to detect situations in which we are cross-compiling and avoid gtkdoc there.
Gabor Rapcsanyi
Comment 5
2012-01-23 07:51:44 PST
(In reply to
comment #4
)
> (In reply to
comment #3
) > > > I've just checked webkitdirs.pm and saw a lot environment variables thats why I chose this way, but if you prefer a command-line option for build-webkit then I can make it as well. > > Anyway its need for GtkWebKit cross-compilation for ARM, and if you want to compile on x86 you can't run the ARM binaries for gtkdoc. Thats why we want to avoid this. > > In that case it might be better just to detect situations in which we are cross-compiling and avoid gtkdoc there.
But what if somebody don't want gtkdoc, why don't we give an option or something to avoid this? For example we don't need it on our bot we just need the binaries. In other hand I think its simpler than detect if somebody trying to cross-compile.
Martin Robinson
Comment 6
2012-01-23 08:21:55 PST
(In reply to
comment #5
)
> But what if somebody don't want gtkdoc, why don't we give an option or something to avoid this? For example we don't need it on our bot we just need the binaries. In other hand I think its simpler than detect if somebody trying to cross-compile.
I think it's good that build-webkit just does the right thing with minimal intervention.
Martin Robinson
Comment 7
2012-01-23 09:13:51 PST
(In reply to
comment #6
)
> (In reply to
comment #5
) > > > But what if somebody don't want gtkdoc, why don't we give an option or something to avoid this? For example we don't need it on our bot we just need the binaries. In other hand I think its simpler than detect if somebody trying to cross-compile. > > I think it's good that build-webkit just does the right thing with minimal intervention.
I should also mention that documentation build failures are now considered build failures. That's why we are building documentation while building the library.
Gabor Rapcsanyi
Comment 8
2012-01-25 07:06:42 PST
Created
attachment 123932
[details]
proposed patch v2 I have made an isCrossCompilation() method to webkitdirs.pm. It detects whether the compiler is configured with different host and target options. So now the script can determine to generate gtkdoc or not.
Gyuyoung Kim
Comment 9
2012-01-25 07:10:34 PST
Comment on
attachment 123932
[details]
proposed patch v2
Attachment 123932
[details]
did not pass efl-ews (efl): Output:
http://queues.webkit.org/results/11159528
Early Warning System Bot
Comment 10
2012-01-25 07:10:54 PST
Comment on
attachment 123932
[details]
proposed patch v2
Attachment 123932
[details]
did not pass qt-ews (qt): Output:
http://queues.webkit.org/results/11342523
Gabor Rapcsanyi
Comment 11
2012-01-25 07:27:19 PST
Created
attachment 123934
[details]
proposed patch v3
Martin Robinson
Comment 12
2012-01-25 08:20:51 PST
Comment on
attachment 123934
[details]
proposed patch v3 Thanks!
WebKit Review Bot
Comment 13
2012-01-25 09:07:49 PST
Comment on
attachment 123934
[details]
proposed patch v3 Rejecting
attachment 123934
[details]
from commit-queue. New failing tests: media/audio-garbage-collect.html Full output:
http://queues.webkit.org/results/11294581
Gabor Rapcsanyi
Comment 14
2012-01-26 01:03:29 PST
Landed by:
http://trac.webkit.org/changeset/105974
thouraya
Comment 15
2012-11-08 02:31:37 PST
Hi, It is causing build issue for sh4 platforms due to the check for "--host" in compiler_options. the "--host" flags is not needed for a cross-compiler? Regards, Thouraya. (In reply to
comment #14
)
> Landed by:
http://trac.webkit.org/changeset/105974
Gabor Rapcsanyi
Comment 16
2012-11-08 02:45:31 PST
(In reply to
comment #15
)
> > Hi, > > It is causing build issue for sh4 platforms due to the check for "--host" in compiler_options. > > the "--host" flags is not needed for a cross-compiler? > > > Regards, > Thouraya. > > > > (In reply to
comment #14
) > > Landed by:
http://trac.webkit.org/changeset/105974
This isCrossCompilation() function is just checking the --target and --host flags of the compiler. If they are set and differ then we return true. Any other case we return with false. So they need to be set.
thouraya
Comment 17
2012-11-08 04:32:18 PST
> This isCrossCompilation() function is just checking the --target and --host >flags of the compiler. If they are set and differ then we return true. Any other >case we return with false. So they need to be set.
Is it possible to check only the --target flag?
Gabor Rapcsanyi
Comment 18
2012-11-08 04:44:55 PST
(In reply to
comment #17
)
> > This isCrossCompilation() function is just checking the --target and --host >flags of the compiler. If they are set and differ then we return true. Any other >case we return with false. So they need to be set. > > > Is it possible to check only the --target flag?
Unfortunately it's not enough because if the target is ARM you can't just say that now we detected a cross compiler because if the host is ARM as well but there is no --host flag then it is native building not cross compilation. What is the exact problem on your side?
thouraya
Comment 19
2012-11-08 05:07:38 PST
Hi,
> What is the exact problem on your side?
The compiler I'm using is not configured with the option (--host) and recompiling it with the option --host may impact other tools. Regards, Thouraya.
Gabor Rapcsanyi
Comment 20
2012-11-09 00:18:40 PST
(In reply to
comment #19
)
> Hi, > > > What is the exact problem on your side? > > The compiler I'm using is not configured with the option (--host) > > and recompiling it with the option --host may impact other tools. > > Regards, > Thouraya.
Hmm, then maybe you can make a bug for this problem and add some extra check to this function. For example the 'arch' command could helps you out or just introduce an environment variable for that.
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