Bug 137148 - [GTK] Don't include full path names in WebKitEnumTypes.h
Summary: [GTK] Don't include full path names in WebKitEnumTypes.h
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-26 09:22 PDT by Alberto Garcia
Modified: 2014-09-26 09:57 PDT (History)
4 users (show)

See Also:


Attachments
Patch (1.14 KB, patch)
2014-09-26 09:27 PDT, Alberto Garcia
cgarcia: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alberto Garcia 2014-09-26 09:22:55 PDT
In short, we should replace @filename@ with @basename@ here:

/*** BEGIN file-production ***/
/* Enumerations from @filename@. */
/*** END file-production ***/

The former puts the full path of the compilation directory in the generated file,
which should not be there, which among other things makes it more difficult to
have a multiarch-compliant header.
Comment 1 Alberto Garcia 2014-09-26 09:27:03 PDT
Created attachment 238722 [details]
Patch
Comment 2 WebKit Commit Bot 2014-09-26 09:28:22 PDT
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Comment 3 Carlos Garcia Campos 2014-09-26 09:30:58 PDT
(In reply to comment #0)
> In short, we should replace @filename@ with @basename@ here:
> 
> /*** BEGIN file-production ***/
> /* Enumerations from @filename@. */
> /*** END file-production ***/
> 
> The former puts the full path of the compilation directory in the generated file,
> which should not be there, which among other things makes it more difficult to
> have a multiarch-compliant header.

How does affect that multi-arch if it's just a comment?
Comment 4 Alberto Garcia 2014-09-26 09:48:22 PDT
(In reply to comment #3)
> How does affect that multi-arch if it's just a comment?

Multi-arch requires that all architecture-independent files are
identical among different architectures.

This file is architecture-indepent however it will be different among
builds if those builds are made in different directories.
Comment 5 Carlos Garcia Campos 2014-09-26 09:51:20 PDT
(In reply to comment #4)
> (In reply to comment #3)
> > How does affect that multi-arch if it's just a comment?
> 
> Multi-arch requires that all architecture-independent files are
> identical among different architectures.
> 
> This file is architecture-indepent however it will be different among
> builds if those builds are made in different directories.

Ah, I see, thanks!
Comment 6 Alberto Garcia 2014-09-26 09:57:59 PDT
Committed r174008: <http://trac.webkit.org/changeset/174008>