Sometimes I’m too hasty with updating ported applications, and I need to roll them back to a working version. Since I use svnlite to manage my ports tree, this is relatively easy. But since it is different than I’m used to (since I mostly use git), I thought I would document it here for convenience.
Recently I had a problem after updating Xorg-server to 1.20.7. Starting an OpenGL program or firefox or mpv froze the display.
So I had to roll back the port to the previous version to get X usable again until r527097 landed in the ports tree.
Step 1: Finding the relevant change
Running svnlite log -l 500|less in /usr/ports and searching for xorg-server lead me to this change:
r526589 | zeising | 2020-02-20 22:15:44 +0100 (Thu, 20 Feb 2020) | 36 lines Update xorg x11 servers to 1.20.7
I also noted that the previous change was r526587.
Step 2: Restoring the port to a working version
# cd /usr/ports # svnlite update -r 526587 x11-servers/xorg-server
This restored version 1.18.4, which built and ran just fine. :-)
Going back to the latest version
To go back to the latest version:
# cd /usr/ports # svnlite update x11-servers/xorg-server