public inbox for dtrace@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH 1/2] Revert "Support deeper version numbers (e.g. 2.0.4.x)"
@ 2026-01-27 16:49 Kris Van Hees
  2026-01-27 16:55 ` [DTrace-devel] " Nick Alcock
  0 siblings, 1 reply; 2+ messages in thread
From: Kris Van Hees @ 2026-01-27 16:49 UTC (permalink / raw)
  To: dtrace, dtrace-devel

This reverts commit 1898d098a582488c9de485a9b672f6b2929335ba.

The DTrace version numbering scheme only supports up to 3 digits in the
version number, and expanding this to 4 digits would require quite a lot
more changes.
---
 libdtrace/mkvers | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libdtrace/mkvers b/libdtrace/mkvers
index 087c0916..6f924032 100755
--- a/libdtrace/mkvers
+++ b/libdtrace/mkvers
@@ -10,7 +10,7 @@
 NF == 0 { next; }
 
 {
-	if (match($1, /^[1-9][0-9]*(\.[0-9]*){1,3}$/) == 0) {
+	if (match($1, /^[1-9][0-9]*(\.[0-9]*){1,2}$/) == 0) {
 		print "E: Invalid version string: " $1 >"/dev/stderr";
 		exit 1
 	}
-- 
2.51.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-01-27 16:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-27 16:49 [PATCH 1/2] Revert "Support deeper version numbers (e.g. 2.0.4.x)" Kris Van Hees
2026-01-27 16:55 ` [DTrace-devel] " Nick Alcock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox