This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to branch sort_podify_signals
in repository libglib-perl.

commit 799f0889145cd3034227d439e5a305d6975ea5a8
Author: intrigeri <intrig...@boum.org>
Date:   Sat May 2 12:45:36 2015 +0000

    Sort the output of podify_signals in a deterministic way.
    
    The output of Glib::Type->list_signals is unsorted. This results in the
    generated pod files to be in random order which makes packages using signals
    compile not reproducibly [1].
    
    It was suggested to Glib upstream [2] to sort the output of 
g_signal_list_ids
    but it got rejected. Thus the change has to be made here.
    
    [1] https://wiki.debian.org/ReproducibleBuilds/About
    [2] https://bugzilla.gnome.org/show_bug.cgi?id=743863
    
    Author: akira <marival...@gmail.com>
---
 lib/Glib/GenPod.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Glib/GenPod.pm b/lib/Glib/GenPod.pm
index 3d7128f..5dad8bb 100644
--- a/lib/Glib/GenPod.pm
+++ b/lib/Glib/GenPod.pm
@@ -710,7 +710,7 @@ sub podify_signals {
        my @sigs = Glib::Type->list_signals (shift);
        return undef unless @sigs;
        $str = "=over\n\n";
-       foreach (@sigs) {
+       foreach (sort {$a->{signal_name} cmp $b->{signal_name} } @sigs) {
                $str .= '=item ';
                $str .= convert_type ($_->{return_type}).' = '
                        if exists $_->{return_type};

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-perl/packages/libglib-perl.git

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to