File: exdoc.patch

package info (click to toggle)
erlang 1%3A28.0.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 234,572 kB
  • sloc: erlang: 1,681,495; ansic: 436,053; cpp: 178,142; xml: 82,160; makefile: 15,053; sh: 14,570; lisp: 9,850; java: 8,603; asm: 6,829; perl: 5,874; python: 5,482; sed: 72
file content (81 lines) | stat: -rw-r--r-- 2,514 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
Author: Sergei Golovan
Description: Patch fixes FTBFS when using pbuilder.

--- a/make/ex_doc_wrapper.in
+++ b/make/ex_doc_wrapper.in
@@ -55,11 +55,13 @@
 
 ## Running the command where we redirect stderr to fd 1 and stdout to fd 3.
 ## We then use tee on the stderr (which is now fd 1) to print that to fd 4
-OUTPUT="$( { escript@EXEEXT@ "${EX_DOC}" "${ARGS[@]}"; } 2>&1 1>&3 | tee /dev/fd/4 )"
+OUTPUT="$( { "${EX_DOC}" "${ARGS[@]}"; } 2>&1 1>&3 )"
 
 ## Close fd 3 and 4
 exec 3>&- 4>&-
 
+echo "${OUTPUT}"
+
 ## If EX_DOC_WARNINGS_AS_ERRORS is not explicitly turned on
 ## and any .app file is missing, we turn off warnings as errors
 if [ "${EX_DOC_WARNINGS_AS_ERRORS}" != "true" ]; then
--- a/make/ex_doc.exs
+++ b/make/ex_doc.exs
@@ -206,6 +206,7 @@
     |> Enum.uniq(),
   extras: extras,
   skip_undefined_reference_warnings_on: ["notes.md"],
+  skip_code_autolink_to: ["t:fun/0"],
   groups_for_docs:
     (Access.get(local_config, :groups_for_docs, []) ++ groups_for_docs) |> Enum.uniq(),
   deps:
--- a/lib/kernel/doc/docs.exs
+++ b/lib/kernel/doc/docs.exs
@@ -66,7 +66,7 @@
       :trace
     ]
   ],
-  skip_code_autolink_to: ["t:file_descriptor/0"],
+  skip_code_autolink_to: ["t:file_descriptor/0","t:fun/0"],
   ## The order of these items determine
   ## how they are listed in the docs
   extras: [
--- a/lib/tools/doc/docs.exs
+++ b/lib/tools/doc/docs.exs
@@ -30,6 +30,7 @@
     "references/erlang.el.md"
   ],
   skip_code_autolink_to: [
+    "t:fun/0",
     "fprof:apply_start_stop/4",
     "prim_file:drv_command/4",
     "prim_file:drv_command/2",
--- a/lib/xmerl/doc/docs.exs
+++ b/lib/xmerl/doc/docs.exs
@@ -18,7 +18,7 @@
 #
 # %CopyrightEnd%
 [
-  skip_code_autolink_to: ["t:xmerl_scanner/0", "t:xsd_state/0"],
+  skip_code_autolink_to: ["t:xmerl_scanner/0", "t:xsd_state/0", "t:fun/0"],
 
   ## The order of these items determine
   ## how they are listed in the docs
--- a/lib/diameter/doc/docs.exs
+++ b/lib/diameter/doc/docs.exs
@@ -28,5 +28,5 @@
     "references/diameterc_cmd.md",
     "references/diameter_dict.md"
   ],
-  skip_code_autolink_to: ["diameter_traffic:request/1"]
+  skip_code_autolink_to: ["diameter_traffic:request/1","t:fun/0"]
 ]
--- a/erts/doc/docs.exs
+++ b/erts/doc/docs.exs
@@ -125,6 +125,7 @@
       "references/werl_cmd.md"
     ] ++ Path.wildcard("../emulator/internal_doc/*.md"),
   skip_code_autolink_to: [
+    "t:fun/0",
     "dist_util:net_ticker_spawn_options/0",
     "dist_util:handshake_we_started/1",
     "dist_util:handshake_other_started/1",