Bug 287428 - Running make index leads to fatal errors: "/usr/ports/Mk/bsd.sites.mk" line 586: Comparison with '>=' requires both operands 'g20171206' and '10' to be numeric
Summary: Running make index leads to fatal errors: "/usr/ports/Mk/bsd.sites.mk" line 5...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-10 16:09 UTC by Trond Endrestøl
Modified: 2025-06-10 16:15 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Trond Endrestøl 2025-06-10 16:09:59 UTC
When running make index, I get many error messages similar to this one:

--- describe.audio ---
make[4]: "/usr/ports/Mk/bsd.sites.mk" line 586: Comparison with '>=' requires both operands 'g20171206' and '10' to be numeric
make[4]: Fatal errors encountered -- cannot continue
===> audio/GxSwitchlessWah-lv2 failed
*** [describe.audio] Error code 1

make[1]: stopped in /usr/ports

I began changing PORTVERSION to DISTVERSION, and adding DISTVERSIONPREFIX as needed, and this helps. Some ports even has the wrong value for DISTVERSIONPREFIX. It looks like many ports do need an overhaul unless it's better to change Mk/bsd.sites.mk (or some other file).

diff --git a/audio/bamp-lv2/Makefile b/audio/bamp-lv2/Makefile
index 06e1e2a40bff..e13937952a19 100644
--- a/audio/bamp-lv2/Makefile
+++ b/audio/bamp-lv2/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=      bamp
-DISTVERSION=   g20210212
+DISTVERSIONPREFIX=     g
+DISTVERSION=   20210212
 CATEGORIES=    audio
 PKGNAMESUFFIX= -lv2

diff --git a/audio/bharvestr-lv2/Makefile b/audio/bharvestr-lv2/Makefile
index 206923869152..7990ef0fab03 100644
--- a/audio/bharvestr-lv2/Makefile
+++ b/audio/bharvestr-lv2/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=      bharvestr
-DISTVERSIONPREFIX=     v
-DISTVERSION=   g20201225
+DISTVERSIONPREFIX=     g
+DISTVERSION=   20201225
 PORTREVISION=  1
 CATEGORIES=    audio
 PKGNAMESUFFIX= -lv2
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2025-06-10 16:09:59 UTC
Maintainer informed via mail
Comment 2 Trond Endrestøl 2025-06-10 16:15:47 UTC
Fixed.