maintainer-feedback requested: [Bug 226926] [PATCH] Tools/scripts/bump-revision.sh lack a safety belt

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Mar 25 20:54:53 UTC 2018


Bugzilla Automation <bugzilla at FreeBSD.org> has asked multimedia at FreeBSD.org for
maintainer-feedback:
Bug 226926: [PATCH] Tools/scripts/bump-revision.sh lack a safety belt
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226926



--- Description ---
Before my commit in revision r464215 (cf. bug #226533) 
Tools/scripts/bump-revision.sh would wreak havoc on the
multimedia/avidemux* ports.

This can hardly be blamed on bump-revision.sh, but a safety belt for
this important script would be a good idea.

My attached patch tries to accomplish that, but using `make -V PORTREVISION`
before and after the bumping and raising an error if the latter value is
lower or equal to the former.

How to reproduce:

  % cd $PORTSDIR
  % svn up -r 464036 multimedia/
  % Tools/scripts/bump-revision.sh multimedia/avidemux*

With my patch this prints:

  INFO: multimedia/avidemux PORTREVISION=	9 found, bumping it by 1.
  INFO: multimedia/avidemux-cli PORTREVISION not found, adding PORTREVISION= 1
  ERROR: multimedia/avidemux-cli PORTREVISION went backwards from 5 to 1!
  INFO: multimedia/avidemux-plugins PORTREVISION not found, adding
PORTREVISION= 1 
  ERROR: multimedia/avidemux-plugins PORTREVISION went backwards from 5 to 1!
  INFO: multimedia/avidemux-qt4 PORTREVISION not found, adding PORTREVISION= 1
  ERROR: multimedia/avidemux-qt4 PORTREVISION went backwards from 5 to 1!

The beauty of my approach is that it uses a different approach than simple
text search, and the one that the ports framework actually uses when it runs.


Happy to tweak that patch, otherwise also happy to commit this if you
approve.


More information about the freebsd-multimedia mailing list