I made a port, a simple one, for my kernel module.
Some time ago, the build and installation ended with the registration of a new package in the system with its name and current version (v1.0):
But now I've built and installed the port and I see its name with a strange version number - the version itself and some number added to it (v1.0.1):
distinfo
Makefile
What is this number? How can I remove it again from a version number as it breaks `pkg upgrade` for the string "v1.0.1402501" is greater than "v1.0.1.1402501" ?
Some time ago, the build and installation ended with the registration of a new package in the system with its name and current version (v1.0):
Bash:
$ uname -v
FreeBSD 14.3-STABLE stable/14-n271366-5835d34761a0 RHINO
$ pkg query %n-%v | grep bh17
bh1750-kmod-v1.0
Bash:
$ uname -v
FreeBSD 14.3-STABLE stable/14-n271616-7c05f298cdcc OPI_PC
$ pkg query %n-%v | grep bh17
bh1750-kmod-v1.0.1.1402501
distinfo
Code:
TIMESTAMP = 1749637978
SHA256 (gpio/bh1750-kmod-v1.0.1.tar.bz2) = e6a47df2e70af3a904fee5f21796e58ced770bb2a703df624bfea60204988db8
SIZE (gpio/bh1750-kmod-v1.0.1.tar.bz2) = 25117
Makefile
Code:
PORTNAME= bh1750-kmod
DISTVERSION= v1.0.1
CATEGORIES= misc
DIST_SUBDIR= gpio
PKGREPOSITORY= ${PACKAGES}/${DIST_SUBDIR}/${ARCH}
MAINTAINER= user@mail
COMMENT= FreeBSD kernel driver for a BH1750FVI based light sensor
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= kmod
# gitlab variables
USE_GITLAB= yes
GL_ACCOUNT= alexandermishin13
GL_PROJECT= bh1750-kmod
GL_TAGNAME= v1.0.1
SUB_FILES= pkg-message
post-install:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/fdt-overlay && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>
What is this number? How can I remove it again from a version number as it breaks `pkg upgrade` for the string "v1.0.1402501" is greater than "v1.0.1.1402501" ?