From nobody Sat Feb 7 08:35:04 2026 Received: from mx3.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 124B21DA30E for ; Tue, 2 Jul 2024 22:37:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=141.14.17.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719959867; cv=none; b=qr29otky3wU5uhNSodic71wga1Me5MSDjkeVzItLMhqGJwQYonCPQPn0bimjeWU6YrjwKlJwTuIDr87mhH9sz2yO2aaYB4GAztKfT6rz+JzAzJ8M52Jf24u0jIEUq/GAGTEnmA92yvbYDXjyWJZ5KhCtOy1lF6OamwP20pOO/a8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719959867; c=relaxed/simple; bh=YKJctcgl7ByfCeXdPczPHVb93U18kZjBDOHHQy+uPXM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=pJ92edTulHBZ1EVOXSZ6fqdL6O+47Ez2FZ1TdT0WmVNhWVojP3IZC8wJOGHMgLXbtf9Q6ZuHoN/pCI0Xi9kKZvBHRQZ7QawjKE0R8Ewdcw7fONHrDBgUtuEgm3d2aQejFPnFpygv+JecebelRqRKSm2KTzcKNqbFPewFO8mF74Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de; spf=pass smtp.mailfrom=molgen.mpg.de; arc=none smtp.client-ip=141.14.17.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=molgen.mpg.de Received: from localhost.localdomain (ip5f5af7ad.dynamic.kabel-deutschland.de [95.90.247.173]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 2D71E61E5FE0A; Wed, 3 Jul 2024 00:37:01 +0200 (CEST) From: Paul Menzel To: Andrew Morton , Nicolas Schier , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Cc: Paul Menzel , Ahmad Fatoum , Masahiro Yamada , kernel@pengutronix.de, it+linux-kconfig@molgen.mpg.de, Stephen Rothwell , linux-kernel@vger.kernel.org Subject: [PATCH v2] lib/build_OID_registry: Avoid non-destructive substitution for Perl < 5.13.2 compat Date: Wed, 3 Jul 2024 00:35:11 +0200 Message-ID: <20240702223512.8329-2-pmenzel@molgen.mpg.de> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On a system with Perl 5.12.1, commit 5ef6dc08cfde ("lib/build_OID_registry: don't mention the full path of the script in output") causes the build to fail with the error below. Bareword found where operator expected at ./lib/build_OID_registry lin= e 41, near "s#^\Q$abs_srctree/\E##r" syntax error at ./lib/build_OID_registry line 41, near "s#^\Q$abs_srct= ree/\E##r" Execution of ./lib/build_OID_registry aborted due to compilation error= s. make[3]: *** [lib/Makefile:352: lib/oid_registry_data.c] Error 255 Ahmad Fatoum analyzed that non-destructive substitution is only supported s= ince Perl 5.13.2. Instead of dropping `r` and having the side effect of modifying `$0`, introduce a dedicated variable to support older Perl versions. Fixes: 5ef6dc08cfde ("lib/build_OID_registry: don't mention the full path o= f the script in output") Link: https://lore.kernel.org/all/259f7a87-2692-480e-9073-1c1c35b52f67@molg= en.mpg.de/ Solution-by: Ahmad Fatoum Cc: Uwe Kleine-K=C3=B6nig Cc: Nicolas Schier Cc: Masahiro Yamada Cc: kernel@pengutronix.de Cc: Andrew Morton Cc: Ahmad Fatoum Cc: it+linux-kconfig@molgen.mpg.de Cc: Stephen Rothwell Signed-off-by: Paul Menzel --- v2: Do not split Fixes tags over more than one line. lib/build_OID_registry | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/build_OID_registry b/lib/build_OID_registry index 56d8bafeb848b..8267e8d71338b 100755 --- a/lib/build_OID_registry +++ b/lib/build_OID_registry @@ -38,7 +38,9 @@ close IN_FILE || die; # open C_FILE, ">$ARGV[1]" or die; print C_FILE "/*\n"; -print C_FILE " * Automatically generated by ", $0 =3D~ s#^\Q$abs_srctree/\= E##r, ". Do not edit\n"; +my $scriptname =3D $0; +$scriptname =3D~ s#^\Q$abs_srctree/\E##; +print C_FILE " * Automatically generated by ", $scriptname, ". Do not edi= t\n"; print C_FILE " */\n"; =20 # --=20 2.40.1