[Bug 246883] PKG REVISIONS limited with two characters not number

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat May 30 21:50:55 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246883

            Bug ID: 246883
           Summary: PKG REVISIONS limited with two characters not number
           Product: Base System
           Version: Unspecified
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: please at forget.me.uk

I am producing packages in the format:
${PORTNAME}-${PORTVERSION}[_${PORTREVISION}][,${PORTEPOCH}]. 

When PORTREVISION is 99+ pkg manager does not respect packages. Maximum
revision 99. 

'pkg upgrade' thinks it is 99 is the latest package revision in the repository
even repository has a definition of higher numbers of 99. 

It might be in this part of the code:
https://github.com/freebsd/pkg/blob/16207928cbdbd8e950071e6067f8bc5a0a621856/libpkg/pkg_version.c#L72 

Documentation does not state 99 limits:
PORTREVISION is a monotonically increasing value which is reset to 0 with every
increase of DISTVERSION, typically every time there is a new official vendor
release. If PORTREVISION is non-zero, the value is appended to the package
name. [...]
https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/book.html#5.2.3.1

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list