diff options
Diffstat (limited to 'meta/recipes-devtools/autoconf/autoconf/autoreconf-exclude.patch')
-rw-r--r-- | meta/recipes-devtools/autoconf/autoconf/autoreconf-exclude.patch | 113 |
1 files changed, 48 insertions, 65 deletions
diff --git a/meta/recipes-devtools/autoconf/autoconf/autoreconf-exclude.patch b/meta/recipes-devtools/autoconf/autoconf/autoreconf-exclude.patch index d1bd3a2a31..374b939404 100644 --- a/meta/recipes-devtools/autoconf/autoconf/autoreconf-exclude.patch +++ b/meta/recipes-devtools/autoconf/autoconf/autoreconf-exclude.patch | |||
@@ -1,18 +1,25 @@ | |||
1 | Upstream-Status: Pending | 1 | From 0071d28e304745a16871561f23117fdb00dd2559 Mon Sep 17 00:00:00 2001 |
2 | From: Ross Burton <ross.burton@intel.com> | ||
3 | Date: Thu, 12 Mar 2020 17:25:23 +0000 | ||
4 | Subject: [PATCH 4/7] autoreconf-exclude.patch | ||
2 | 5 | ||
3 | Index: autoconf-2.63/bin/autoreconf.in | 6 | --- |
4 | =================================================================== | 7 | bin/autoreconf.in | 26 ++++++++++++++++++++++++++ |
5 | --- autoconf-2.63.orig/bin/autoreconf.in 2008-12-31 17:39:01.000000000 +0000 | 8 | 1 file changed, 26 insertions(+) |
6 | +++ autoconf-2.63/bin/autoreconf.in 2008-12-31 17:43:38.000000000 +0000 | 9 | |
7 | @@ -76,6 +76,7 @@ | 10 | diff --git a/bin/autoreconf.in b/bin/autoreconf.in |
8 | -i, --install copy missing auxiliary files | 11 | index bb9f316d..7da3005b 100644 |
12 | --- a/bin/autoreconf.in | ||
13 | +++ b/bin/autoreconf.in | ||
14 | @@ -82,6 +82,7 @@ Operation modes: | ||
15 | -i, --install copy missing standard auxiliary files | ||
9 | --no-recursive don't rebuild sub-packages | 16 | --no-recursive don't rebuild sub-packages |
10 | -s, --symlink with -i, install symbolic links instead of copies | 17 | -s, --symlink with -i, install symbolic links instead of copies |
11 | + -x, --exclude=STEPS steps we should not run | 18 | + -x, --exclude=STEPS steps we should not run |
12 | -m, --make when applicable, re-run ./configure && make | 19 | -m, --make when applicable, re-run ./configure && make |
13 | -W, --warnings=CATEGORY report the warnings falling in CATEGORY [syntax] | 20 | -W, --warnings=CATEGORY report the warnings falling in CATEGORY [syntax] |
14 | 21 | ||
15 | @@ -136,6 +137,13 @@ | 22 | @@ -141,6 +142,10 @@ my $run_make = 0; |
16 | # Recurse into subpackages | 23 | # Recurse into subpackages |
17 | my $recursive = 1; | 24 | my $recursive = 1; |
18 | 25 | ||
@@ -20,13 +27,10 @@ Index: autoconf-2.63/bin/autoreconf.in | |||
20 | +my @exclude; | 27 | +my @exclude; |
21 | +my @ex; | 28 | +my @ex; |
22 | + | 29 | + |
23 | +my $uses_gettext; | ||
24 | +my $configure_ac; | ||
25 | + | ||
26 | ## ---------- ## | 30 | ## ---------- ## |
27 | ## Routines. ## | 31 | ## Routines. ## |
28 | ## ---------- ## | 32 | ## ---------- ## |
29 | @@ -153,6 +161,7 @@ | 33 | @@ -161,6 +166,7 @@ sub parse_args () |
30 | 'B|prepend-include=s' => \@prepend_include, | 34 | 'B|prepend-include=s' => \@prepend_include, |
31 | 'i|install' => \$install, | 35 | 'i|install' => \$install, |
32 | 's|symlink' => \$symlink, | 36 | 's|symlink' => \$symlink, |
@@ -34,106 +38,85 @@ Index: autoconf-2.63/bin/autoreconf.in | |||
34 | 'm|make' => \$run_make, | 38 | 'm|make' => \$run_make, |
35 | 'recursive!' => \$recursive); | 39 | 'recursive!' => \$recursive); |
36 | 40 | ||
37 | @@ -162,6 +171,8 @@ | 41 | @@ -170,6 +176,8 @@ sub parse_args () |
38 | parse_WARNINGS; | 42 | parse_WARNINGS; |
39 | parse_warnings '--warnings', @warning; | 43 | parse_warnings @warning; |
40 | 44 | ||
41 | + @exclude = map { split /,/ } @exclude; | 45 | + @exclude = map { split /,/ } @exclude; |
42 | + | 46 | + |
43 | # Even if the user specified a configure.ac, trim to get the | 47 | # Even if the user specified a configure.ac, trim to get the |
44 | # directory, and look for configure.ac again. Because (i) the code | 48 | # directory, and look for configure.ac again. Because (i) the code |
45 | # is simpler, and (ii) we are still able to diagnose simultaneous | 49 | # is simpler, and (ii) we are still able to diagnose simultaneous |
46 | @@ -255,6 +266,11 @@ | 50 | @@ -493,8 +501,11 @@ sub autoreconf_current_directory ($) |
47 | { | ||
48 | my ($aclocal, $flags) = @_; | ||
49 | |||
50 | + @ex = grep (/^aclocal$/, @exclude); | ||
51 | + if ($#ex != -1) { | ||
52 | + return; | ||
53 | + } | ||
54 | + | ||
55 | # aclocal 1.8+ does all this for free. It can be recognized by its | ||
56 | # --force support. | ||
57 | if ($aclocal_supports_force) | ||
58 | @@ -368,7 +384,10 @@ | ||
59 | } | 51 | } |
60 | else | 52 | else |
61 | { | 53 | { |
62 | - xsystem_hint ("autopoint is needed because this package uses Gettext", "$autopoint"); | ||
63 | + @ex = grep (/^autopoint$/, @exclude); | 54 | + @ex = grep (/^autopoint$/, @exclude); |
64 | + if ($#ex == -1) { | 55 | + if ($#ex == -1) { |
65 | + xsystem_hint ("autopoint is needed because this package uses Gettext", "$autopoint"); | 56 | xsystem_hint ("autopoint is needed because this package uses Gettext", |
57 | $autopoint); | ||
66 | + } | 58 | + } |
67 | } | 59 | } |
68 | 60 | ||
69 | 61 | ||
70 | @@ -532,16 +551,17 @@ | 62 | @@ -687,9 +698,12 @@ sub autoreconf_current_directory ($) |
71 | { | 63 | { |
72 | $libtoolize .= " --ltdl"; | 64 | $libtoolize .= " --ltdl"; |
73 | } | 65 | } |
74 | - xsystem_hint ("libtoolize is needed because this package uses Libtool", $libtoolize); | ||
75 | - $rerun_aclocal = 1; | ||
76 | + @ex = grep (/^libtoolize$/, @exclude); | 66 | + @ex = grep (/^libtoolize$/, @exclude); |
77 | + if ($#ex == -1) { | 67 | + if ($#ex == -1) { |
78 | + xsystem_hint ("libtoolize is needed because this package uses Libtool", $libtoolize); | 68 | xsystem_hint ("libtoolize is needed because this package uses Libtool", |
79 | + $rerun_aclocal = 1; | 69 | $libtoolize); |
70 | $rerun_aclocal = 1; | ||
80 | + } | 71 | + } |
81 | } | 72 | } |
82 | else | 73 | else |
83 | { | 74 | { |
84 | verb "$configure_ac: not running libtoolize: --install not given"; | 75 | @@ -726,8 +740,11 @@ sub autoreconf_current_directory ($) |
85 | } | 76 | } |
86 | 77 | elsif ($install) | |
87 | - | 78 | { |
88 | - | 79 | + @ex = grep (/^gtkdocize$/, @exclude); |
89 | # ------------------- # | 80 | + if ($#ex == -1) { |
90 | # Rerunning aclocal. # | 81 | xsystem_hint ("gtkdocize is needed because this package uses Gtkdoc", |
91 | # ------------------- # | 82 | $gtkdocize); |
92 | @@ -572,7 +592,10 @@ | 83 | + } |
84 | } | ||
85 | else | ||
86 | { | ||
87 | @@ -765,7 +782,10 @@ sub autoreconf_current_directory ($) | ||
93 | # latter runs the former, and (ii) autoconf is stricter than | 88 | # latter runs the former, and (ii) autoconf is stricter than |
94 | # autoheader. So all in all, autoconf should give better error | 89 | # autoheader. So all in all, autoconf should give better error |
95 | # messages. | 90 | # messages. |
96 | - xsystem ($autoconf); | ||
97 | + @ex = grep (/^autoconf$/, @exclude); | 91 | + @ex = grep (/^autoconf$/, @exclude); |
98 | + if ($#ex == -1) { | 92 | + if ($#ex == -1) { |
99 | + xsystem ("$autoconf"); | 93 | xsystem ($autoconf); |
100 | + } | 94 | + } |
101 | 95 | ||
102 | 96 | ||
103 | # -------------------- # | 97 | # -------------------- # |
104 | @@ -593,7 +616,10 @@ | 98 | @@ -786,7 +806,10 @@ sub autoreconf_current_directory ($) |
105 | } | 99 | } |
106 | else | 100 | else |
107 | { | 101 | { |
108 | - xsystem ($autoheader); | ||
109 | + @ex = grep (/^autoheader$/, @exclude); | 102 | + @ex = grep (/^autoheader$/, @exclude); |
110 | + if ($#ex == -1) { | 103 | + if ($#ex == -1) { |
111 | + xsystem ("$autoheader"); | 104 | xsystem ($autoheader); |
112 | + } | 105 | + } |
113 | } | 106 | } |
114 | 107 | ||
115 | 108 | ||
116 | @@ -610,7 +636,10 @@ | 109 | @@ -803,7 +826,10 @@ sub autoreconf_current_directory ($) |
117 | # We should always run automake, and let it decide whether it shall | 110 | # We should always run automake, and let it decide whether it shall |
118 | # update the file or not. In fact, the effect of `$force' is already | 111 | # update the file or not. In fact, the effect of '$force' is already |
119 | # included in `$automake' via `--no-force'. | 112 | # included in '$automake' via '--no-force'. |
120 | - xsystem ($automake); | ||
121 | + @ex = grep (/^automake$/, @exclude); | 113 | + @ex = grep (/^automake$/, @exclude); |
122 | + if ($#ex == -1) { | 114 | + if ($#ex == -1) { |
123 | + xsystem ("$automake"); | 115 | xsystem ($automake); |
124 | + } | 116 | + } |
125 | } | 117 | } |
126 | 118 | ||
127 | 119 | # ---------------------------------------------------- # | |
128 | @@ -634,7 +663,10 @@ | 120 | -- |
129 | } | 121 | 2.25.1 |
130 | else | 122 | |
131 | { | ||
132 | - xsystem ("$make"); | ||
133 | + @ex = grep (/^make$/, @exclude); | ||
134 | + if ($#ex == -1) { | ||
135 | + xsystem ("$make"); | ||
136 | + } | ||
137 | } | ||
138 | } | ||
139 | } | ||