tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

osabi



Hi,

currently the osabi-NetBSD package is versioned with the full OS
version, e.g.

  osabi-NetBSD-10.0

However, we try to maintain full compatibility between 10.0,
10.1, 10.2 etc.  So ... would it make sense to use just the major
version of the OS to number the package, so that we instead just
have

  osabi-NetBSD-10

?  My local diffs has an implementation of this:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/osabi/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile    26 Jan 2020 17:31:59 -0000      1.4
+++ Makefile    12 Feb 2023 20:17:02 -0000
@@ -1,7 +1,14 @@
 # $NetBSD: Makefile,v 1.4 2020/01/26 17:31:59 rillig Exp $
 #
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+# Only depend on major version
+PKGNAME=       osabi-${OPSYS}-${OS_VERSION:C/([0-9][0-9]*)\..*/\1/}
+.else
 PKGNAME=       osabi-${OPSYS}-${OS_VERSION}
+.endif
 CATEGORIES=    pkgtools
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
@@ -11,4 +18,9 @@
 META_PACKAGE=  yes
 FILES_SUBST+=  UNAME=${UNAME:Q} PKG_ADMIN=${PKG_ADMIN:Q}
 
+PLIST_SRC=     # empty
+
+do-build:      # empty
+do-install:    # empty
+
 .include "../../mk/bsd.pkg.mk"

Opinions?

- Havard


Home | Main Index | Thread Index | Old Index