Commit 24c83a936e for openssl.org

commit 24c83a936ee26ebabe7dfc50c203c5d33d52e3ff
Author: Mounir IDRASSI <mounir.idrassi@idrix.fr>
Date:   Mon Apr 20 15:45:03 2026 +0900

    Configure: fix generated Perl module dependencies

    When a generated file already exists in the source tree, its dependency
    destination can resolve to the source path even though the corresponding
    GENERATE entry is keyed by the build.info target name. In that case,
    dependencies using the dir|Module.pm Perl include syntax were not
    recognized and the literal pipe could be treated as part of a path.

    Check the original GENERATE target as well so dependencies such as
    util/perl|OpenSSL/paramnames.pm are normalized consistently for
    source-distribution-style and out-of-tree builds.

    Reviewed-by: Milan Broz <gmazyland@gmail.com>
    Reviewed-by: Bob Beck <beck@openssl.org>
    Merge-date: Mon Nov 23 17:00:25 2026
    Merged-from: https://github.com/openssl/openssl/pull/30900

diff --git a/Configure b/Configure
index 7996c92d05..b9a71b33e8 100755
--- a/Configure
+++ b/Configure
@@ -2794,7 +2794,7 @@ if ($builder eq "unified") {
                 # $i = full module path in source directory
                 # $i2 = full module path in build directory
                 my $i; my $i2; my $m; my $d; my $d2;
-                if ($unified_info{generate}->{$ddest}
+                if (($unified_info{generate}->{$ddest} || $generate{$dest})
                     && $f =~ m/^(.*?)\|(.*)$/) {
                     $i = $1;
                     $m = $2;