Accepting request 283984 from GNOME:Factory

- Add gtk-doc-reproducible-html.patch from the debian
  reproducible builds project to make output reproducible.

OBS-URL: https://build.opensuse.org/request/show/283984
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gtk-doc?expand=0&rev=29
This commit is contained in:
Dominique Leuenberger 2015-02-06 09:44:56 +00:00 committed by Git OBS Bridge
commit c10f5e4789
3 changed files with 25 additions and 1 deletions

View File

@ -0,0 +1,15 @@
Description: Make HTML output deterministic
Author: Peter De Wachter <pdewacht@gmail.com>
Last-Update: 2015-01-19
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -1093,7 +1093,7 @@
# do a case insensitive sort while chopping off the prefix
foreach my $hash (
- sort { $$a{criteria} cmp $$b{criteria} }
+ sort { $$a{criteria} cmp $$b{criteria} or $$a{original} cmp $$b{original} }
map { my $x = uc($_); $x =~ s/^$NAME_SPACE\_?(.*)/$1/i; { criteria => $x, original => $_, short => $1 } }
keys %apiindex) {

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Feb 3 16:54:32 UTC 2015 - coolo@suse.com
- Add gtk-doc-reproducible-html.patch from the debian
reproducible builds project to make output reproducible.
-------------------------------------------------------------------
Thu Jul 17 19:13:43 UTC 2014 - zaitor@opensuse.org

View File

@ -1,7 +1,7 @@
#
# spec file for package gtk-doc
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -26,6 +26,8 @@ Url: http://www.gtk.org/gtk-doc/
Source: http://download.gnome.org/sources/gtk-doc/1.21/%{name}-%{version}.tar.xz
# When updating this package, please don't forget to update the gtk-doc.m4 Source
# in glib2.
# PATCH-FIX-UPSTREAM gtk-doc-reproducible-html.patch bgo#743967 coolo@suse.de -- Sort the HTML entries
Patch0: http://2k38.be/gtk-doc-reproducible-html.patch
BuildRequires: docbook-xsl-stylesheets
BuildRequires: libxml2-tools
BuildRequires: libxslt
@ -56,6 +58,7 @@ generate the documentation for GLib, Gtk+, and GNOME.
%lang_package
%prep
%setup -q
%patch0 -p1
%build
%configure --disable-scrollkeeper