openwrt/tools/automake/patches/300-output-TRUE-cond-first.patch
Michael Pratt d7d0205940
Some checks are pending
Build all core packages / Build all core packages for selected target (push) Waiting to run
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Waiting to run
Build host tools / Build host tools for linux and macos based systems (push) Waiting to run
tools/automake: update to 1.18
Update to the latest stable release
with the new API versions for binaries.

The temporary patching of shebangs is no longer necessary
since the whitespace check has been changed to a warning.

Part of a patch was upstreamed and therefore removed.

Manually adjusted patch:
 - 000-relocatable.patch
 - 101-do-not-require-files.patch

All other patches are automatically refreshed.

Link: https://lists.gnu.org/archive/html/autotools-announce/2025-05/msg00001.html
Signed-off-by: Michael Pratt <mcpratt@pm.me>
Link: https://github.com/openwrt/openwrt/pull/16522
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-07-26 14:38:09 +02:00

34 lines
1 KiB
Diff

--- a/lib/Automake/Variable.pm
+++ b/lib/Automake/Variable.pm
@@ -1258,8 +1258,15 @@ sub output_variables ()
foreach my $var (@vars)
{
my $v = rvar $var;
+ # Output unconditional definitions before conditional ones.
+ if ($v->def (TRUE)) {
+ $res .= $v->output (TRUE)
+ if $v->rdef (TRUE)->owner == VAR_AUTOMAKE;
+ }
foreach my $cond ($v->conditions->conds)
{
+ # TRUE is handled already.
+ next if $cond->string eq "TRUE";
$res .= $v->output ($cond)
if $v->rdef ($cond)->owner == VAR_AUTOMAKE;
}
@@ -1269,8 +1276,15 @@ sub output_variables ()
foreach my $var (@vars)
{
my $v = rvar $var;
+ # Output unconditional definitions before conditional ones.
+ if ($v->def (TRUE)) {
+ $res .= $v->output (TRUE)
+ if $v->rdef (TRUE)->owner != VAR_AUTOMAKE;
+ }
foreach my $cond ($v->conditions->conds)
{
+ # TRUE is handled already.
+ next if $cond->string eq "TRUE";
$res .= $v->output ($cond)
if $v->rdef ($cond)->owner != VAR_AUTOMAKE;
}