1 |
mrpouet 10/02/16 20:06:53 |
2 |
|
3 |
Added: gtk-doc-1.13-scan-touch-module-overrides.patch |
4 |
gtk-doc-1.13-fixxref-compat.patch |
5 |
Log: |
6 |
Import two patches from upstream: touch MODULE-overrides.txt when missing in gtkdoc-scan, be compatible with old versions of gtk-doc in fixxref. Per bug #305191, thanks to Kacper Kowalik. |
7 |
(Portage version: 2.2_rc62/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-util/gtk-doc/files/gtk-doc-1.13-scan-touch-module-overrides.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/gtk-doc/files/gtk-doc-1.13-scan-touch-module-overrides.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/gtk-doc/files/gtk-doc-1.13-scan-touch-module-overrides.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: gtk-doc-1.13-scan-touch-module-overrides.patch |
16 |
=================================================================== |
17 |
From d1a042fbd75b7f8d44293fbee01e783be79d884c Mon Sep 17 00:00:00 2001 |
18 |
From: Nicola Fontana <ntd@××××××.it> |
19 |
Date: Mon, 03 Aug 2009 13:32:36 +0000 |
20 |
Subject: gtkdoc-scan: touch MODULE-overrides.txt when missing. Fixes #590625 |
21 |
|
22 |
gtk-doc.make puts $(DOC_MODULE)-overrides.txt in EXTRA_DIST, so this |
23 |
file must exist to be able to "make dist". |
24 |
--- |
25 |
diff --git a/gtkdoc-scan.in b/gtkdoc-scan.in |
26 |
index ece8d99..c986f36 100755 |
27 |
--- a/gtkdoc-scan.in |
28 |
+++ b/gtkdoc-scan.in |
29 |
@@ -185,12 +185,12 @@ if ($REBUILD_SECTIONS || ! -e $sections_file) { |
30 |
`cp $old_decl_list $sections_file`; |
31 |
} |
32 |
|
33 |
-# If there is no MODULE-overrides.txt file we create an empty one. |
34 |
-# FIXME: why? |
35 |
-#my $overrides_file = "${OUTPUT_DIR}/$MODULE-overrides.txt"; |
36 |
-#if (! -e $overrides_file) { |
37 |
-# `touch $overrides_file`; |
38 |
-#} |
39 |
+# If there is no MODULE-overrides.txt file we create an empty one |
40 |
+# because EXTRA_DIST in gtk-doc.make requires it. |
41 |
+my $overrides_file = "${OUTPUT_DIR}/$MODULE-overrides.txt"; |
42 |
+if (! -e $overrides_file) { |
43 |
+ `touch $overrides_file`; |
44 |
+} |
45 |
|
46 |
|
47 |
|
48 |
-- |
49 |
cgit v0.8.3.1 |
50 |
|
51 |
|
52 |
|
53 |
1.1 dev-util/gtk-doc/files/gtk-doc-1.13-fixxref-compat.patch |
54 |
|
55 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/gtk-doc/files/gtk-doc-1.13-fixxref-compat.patch?rev=1.1&view=markup |
56 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/gtk-doc/files/gtk-doc-1.13-fixxref-compat.patch?rev=1.1&content-type=text/plain |
57 |
|
58 |
Index: gtk-doc-1.13-fixxref-compat.patch |
59 |
=================================================================== |
60 |
From b39bb84dfb5f16c8b2977105bd5876b7b8d58a11 Mon Sep 17 00:00:00 2001 |
61 |
From: Vincent Untz <vuntz@×××××.org> |
62 |
Date: Tue, 22 Dec 2009 11:54:31 +0000 |
63 |
Subject: fixxref: make it work again without --module argument, Fixes #605211 |
64 |
|
65 |
This restores a compatible behavior with previous versions of gtk-doc, |
66 |
which is required by many tarballs. |
67 |
--- |
68 |
diff --git a/gtkdoc-fixxref.in b/gtkdoc-fixxref.in |
69 |
index 8f166ef..5a703ad 100755 |
70 |
--- a/gtkdoc-fixxref.in |
71 |
+++ b/gtkdoc-fixxref.in |
72 |
@@ -168,36 +168,38 @@ foreach my $dir (@EXTRA_DIRS) { |
73 |
} |
74 |
} |
75 |
|
76 |
-open (INPUT, "$MODULE-sections.txt") |
77 |
- || die "Can't open $MODULE-sections.txt: $!"; |
78 |
-my $subsection = ""; |
79 |
-while (<INPUT>) { |
80 |
- if (m/^#/) { |
81 |
- next; |
82 |
- |
83 |
- } elsif (m/^<SECTION>/) { |
84 |
- $subsection = ""; |
85 |
- } elsif (m/^<SUBSECTION\s*(.*)>/i) { |
86 |
- $subsection = $1; |
87 |
- } elsif (m/^<SUBSECTION>/) { |
88 |
- next; |
89 |
- } elsif (m/^<TITLE>(.*)<\/TITLE>/) { |
90 |
- next; |
91 |
- } elsif (m/^<FILE>(.*)<\/FILE>/) { |
92 |
- next; |
93 |
- } elsif (m/^<INCLUDE>(.*)<\/INCLUDE>/) { |
94 |
- next; |
95 |
- } elsif (m/^<\/SECTION>/) { |
96 |
- next; |
97 |
- } elsif (m/^(\S+)/) { |
98 |
- my $symbol=CreateValidSGMLID($1); |
99 |
- |
100 |
- if ($subsection eq "Standard" || $subsection eq "Private") { |
101 |
- $NoLinks{$symbol} = 1; |
102 |
+if (defined($MODULE)) { |
103 |
+ open (INPUT, "$MODULE-sections.txt") |
104 |
+ || die "Can't open $MODULE-sections.txt: $!"; |
105 |
+ my $subsection = ""; |
106 |
+ while (<INPUT>) { |
107 |
+ if (m/^#/) { |
108 |
+ next; |
109 |
+ |
110 |
+ } elsif (m/^<SECTION>/) { |
111 |
+ $subsection = ""; |
112 |
+ } elsif (m/^<SUBSECTION\s*(.*)>/i) { |
113 |
+ $subsection = $1; |
114 |
+ } elsif (m/^<SUBSECTION>/) { |
115 |
+ next; |
116 |
+ } elsif (m/^<TITLE>(.*)<\/TITLE>/) { |
117 |
+ next; |
118 |
+ } elsif (m/^<FILE>(.*)<\/FILE>/) { |
119 |
+ next; |
120 |
+ } elsif (m/^<INCLUDE>(.*)<\/INCLUDE>/) { |
121 |
+ next; |
122 |
+ } elsif (m/^<\/SECTION>/) { |
123 |
+ next; |
124 |
+ } elsif (m/^(\S+)/) { |
125 |
+ my $symbol=CreateValidSGMLID($1); |
126 |
+ |
127 |
+ if ($subsection eq "Standard" || $subsection eq "Private") { |
128 |
+ $NoLinks{$symbol} = 1; |
129 |
+ } |
130 |
} |
131 |
} |
132 |
+ close (INPUT); |
133 |
} |
134 |
-close (INPUT); |
135 |
|
136 |
&FixCrossReferences ($MODULE_DIR); |
137 |
|
138 |
-- |
139 |
cgit v0.8.3.1 |