svn commit: r461844 - in head: . net-mgmt net-mgmt/prometheus net-mgmt/prometheus1 net-mgmt/prometheus2 net-mgmt/prometheus2/files
Mathieu Arnold
mat at FreeBSD.org
Thu Feb 15 08:35:53 UTC 2018
There are a few problems with this commit.
On Wed, Feb 14, 2018 at 09:58:38PM +0000, Brad Davis wrote:
> Log:
> Add net-mgmt/prometheus2
>
> Rename prometheus to prometheus1 so they can coexist since upgrading is
> non-trival:
>
> https://prometheus.io/docs/prometheus/2.0/migration/
>
> PR: 225169
> Submitted by: David O'Rourke <dor.bsd at xm0.uk>
> Reviewed by: swills
>
> Added:
> head/net-mgmt/prometheus1/
> - copied from r461843, head/net-mgmt/prometheus/
> head/net-mgmt/prometheus2/
> head/net-mgmt/prometheus2/Makefile (contents, props changed)
> head/net-mgmt/prometheus2/distinfo (contents, props changed)
> head/net-mgmt/prometheus2/files/
> head/net-mgmt/prometheus2/files/prometheus.in (contents, props changed)
> head/net-mgmt/prometheus2/pkg-descr (contents, props changed)
> head/net-mgmt/prometheus2/pkg-message (contents, props changed)
> head/net-mgmt/prometheus2/pkg-plist (contents, props changed)
So, you did copy prometheus to prometheus1 but forgot to also copy it to
prometheus2 in order to preserve history. This will have to be done
again properly.
> Modified: head/net-mgmt/prometheus1/Makefile
> ==============================================================================
> --- head/net-mgmt/prometheus/Makefile Wed Feb 14 21:43:30 2018 (r461843)
> +++ head/net-mgmt/prometheus1/Makefile Wed Feb 14 21:58:37 2018 (r461844)
> @@ -3,9 +3,10 @@
>
> PORTNAME= prometheus
> PORTVERSION= 1.8.2
> -PORTREVISION= 1
> DISTVERSIONPREFIX= v
> +PORTREVISION= 1
> CATEGORIES= net-mgmt
> +PKGNAMESUFFIX= 1
>
You added 1 to the package name, which seems ok, though renaming
packages is probably a bad idea because of the wtf moment people using
it will have :-)
> Added: head/net-mgmt/prometheus2/Makefile
> ==============================================================================
> --- /dev/null 00:00:00 1970 (empty, because file is newly added)
> +++ head/net-mgmt/prometheus2/Makefile Wed Feb 14 21:58:37 2018 (r461844)
> @@ -0,0 +1,53 @@
> +# $FreeBSD$
> +
> +PORTNAME= prometheus
> +PORTVERSION= 2.1.0
> +DISTVERSIONPREFIX= v
> +CATEGORIES= net-mgmt
>
But you did not add a 2 to this one, so people who run pkg upgrade will
go to 1.8.2 to 2.1.0 and it'll break, as, like you said, upgrading is
non trivial.
--
Mathieu Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-head/attachments/20180215/8209a01e/attachment.sig>
More information about the svn-ports-head
mailing list