Bug 82073 - [GTK] libgcrypt and p11-kit should not be in jhbuild modules
Summary: [GTK] libgcrypt and p11-kit should not be in jhbuild modules
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Gustavo Noronha (kov)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-23 11:31 PDT by Gustavo Noronha (kov)
Modified: 2012-03-27 10:52 PDT (History)
3 users (show)

See Also:


Attachments
Patch (7.21 KB, patch)
2012-03-23 11:36 PDT, Gustavo Noronha (kov)
no flags Details | Formatted Diff | Diff
Patch (8.75 KB, patch)
2012-03-23 12:55 PDT, Gustavo Noronha (kov)
no flags Details | Formatted Diff | Diff
Patch (7.47 KB, patch)
2012-03-23 16:01 PDT, Gustavo Noronha (kov)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gustavo Noronha (kov) 2012-03-23 11:31:11 PDT
[GTK] libgcrypt and p11-kit should not be in jhbuild modules
Comment 1 Gustavo Noronha (kov) 2012-03-23 11:36:09 PDT
Created attachment 133522 [details]
Patch
Comment 2 Gustavo Noronha (kov) 2012-03-23 11:38:38 PDT
For completeness sake: these libraries ended up in our jhbuild.modules file because during the hackfest we were in a hurry to make the jhbuild system go live and fix the build. There is no reason why these libraries should be included, really, they are easily installable as system packages.
Comment 3 Philippe Normand 2012-03-23 11:52:31 PDT
Comment on attachment 133522 [details]
Patch

Attachment 133522 [details] did not pass gtk-ews (gtk):
Output: http://queues.webkit.org/results/12113768
Comment 4 Gustavo Noronha (kov) 2012-03-23 12:55:43 PDT
Created attachment 133542 [details]
Patch
Comment 5 Martin Robinson 2012-03-23 14:04:27 PDT
Comment on attachment 133542 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=133542&action=review

Looks good, though if possible it'd would be nice to remove Tools/gtk/clean-jhbuild and replace it with a couple inline Perl system() calls.

> Tools/Scripts/webkitdirs.pm:1947
> +        # If the configuration changed, dependencies may have been removed.
> +        # Since we lack a granular way of uninstalling those we wipe out the
> +        # jhbuild root and start from scratch.
> +        if (system("$sourceDir/Tools/gtk/clean-jhbuild") ne 0) {
> +            die "Cleaning jhbuild failed!";
> +        }

Is it possible to do this in Perl rather than creating another script?

> Tools/Scripts/webkitdirs.pm:1953
> +    if (checkForArgumentAndRemoveFromArrayRef("--update-gtk", \@buildArgs)) {
> +        $needUpdate = 1;
> +    }

This argument is unfamiliar to me. Where is it used?
Comment 6 Gustavo Noronha (kov) 2012-03-23 15:44:40 PDT
(In reply to comment #5)
> (From update of attachment 133542 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=133542&action=review
> 
> Looks good, though if possible it'd would be nice to remove Tools/gtk/clean-jhbuild and replace it with a couple inline Perl system() calls.

Will do!

> > Tools/Scripts/webkitdirs.pm:1953
> > +    if (checkForArgumentAndRemoveFromArrayRef("--update-gtk", \@buildArgs)) {
> > +        $needUpdate = 1;
> > +    }
> 
> This argument is unfamiliar to me. Where is it used?

That was added for the EWS bots to use, it was suggested by abarth, it's similar to how the chromium port does it.
Comment 7 Gustavo Noronha (kov) 2012-03-23 16:01:23 PDT
Created attachment 133578 [details]
Patch
Comment 8 Gustavo Noronha (kov) 2012-03-23 16:32:19 PDT
Committed r111929: <http://trac.webkit.org/changeset/111929>
Comment 9 Philippe Normand 2012-03-26 04:09:08 PDT
This patch badly broke setups where the build directory is the git branch name, at least.

Here my build directory is /home/phil/gst/jhbuild/build/WebKit/WebKitBuild/branchName/Release

jhbuild clean is triggered... and fails:


/bin/sh /home/phil/gst/jhbuild/build/WebKit/WebKitBuild/Dependencies/Root/share/jhbuild/triggers/glib.trigger
*** the following modules were not built *** [16/16]
fonts
Cleaning jhbuild modules failed! at /home/phil/gst/jhbuild/build/WebKit/Tools/Scripts/webkitdirs.pm line 1951.

It seems the jhbuild.modules md5sum test always fails in that setup... investigating... :(
Comment 10 Philippe Normand 2012-03-26 04:21:02 PDT
As a side note I don't think storing the jhbuildrc.md5sum and jhbuild.modules.md5sum in the build directory is a very good idea... Why not storing it in Dependencies or in Tools/ somewhere and ignore it from the VCS POV?
Comment 11 Philippe Normand 2012-03-26 08:48:16 PDT
(In reply to comment #10)
> As a side note I don't think storing the jhbuildrc.md5sum and jhbuild.modules.md5sum in the build directory is a very good idea... Why not storing it in Dependencies or in Tools/ somewhere and ignore it from the VCS POV?

Ok let's close this, I have a follow-up patch...
Comment 12 Gustavo Noronha (kov) 2012-03-27 10:52:44 PDT
(In reply to comment #10)
> As a side note I don't think storing the jhbuildrc.md5sum and jhbuild.modules.md5sum in the build directory is a very good idea... Why not storing it in Dependencies or in Tools/ somewhere and ignore it from the VCS POV?

It's been stored in the build directory because in a way whether a rebuild is required or not for that particular build type depends on this. However, I can see how that might not be the case.