FreeBSD – Updating Ruby

The default version of Ruby has been bumped to 3.2, which is fine, but /UPDATING no longer includes the steps needed to bump your installed version.

No problem, just scroll down to see what the instructions were for the last revision bump. And then you hit a problem. All the Ruby port bumps refer you to the 2019 entry, which is fab , stepping thru instructions of how to move from 2.4 to 2.5. , however, UPDATING no longer goes all the way back to 2019. It’s been trimmed. A bit of googling and a found the unedited version of UPGRADING which helpfully had the instructions, which for ease I have pasted below and for even easier usage, have amended the instructions for moving between 3.1 and 3.2

20190420:
  AFFECTS: users of lang/ruby24
  AUTHOR: mfechner@FreeBSD.org

The default ruby version has been updated from 2.4 to 2.5.

If you compile your own ports you may keep 2.4 as the default version by adding the following lines to your /etc/make.conf file:

#
  # Keep ruby 2.4 as default version
  #
  DEFAULT_VERSIONS+=ruby=2.4

If you wish to update to the new default version, you need to first stop any software that uses ruby. Then, you will need to follow these steps, depending upon how you manage your system.

If you use pkgng, simply upgrade:
  # pkg upgrade

If you use portmaster, install new ruby, then rebuild all ports that depend on ruby:
  # portmaster -o lang/ruby25 lang/ruby24
  # portmaster -R -r ruby-2.5

If you use portupgrade, install new ruby, then rebuild all ports that depend on ruby:

# pkg delete -f ruby portupgrade
  # make -C /usr/ports/ports-mgmt/portupgrade install clean
  # pkg set -o lang/ruby24:lang/ruby25
  # portupgrade -x ruby-2.5.\* -fr lang/ruby25

and upgraded version is

20240306:
  AFFECTS: users of lang/ruby31
  AUTHOR: me!

The default ruby version has been updated from 3.1 to 3.2.

If you compile your own ports you may keep 3.1 as the default version by  adding the following lines to your /etc/make.conf file:


  DEFAULT_VERSIONS+=ruby=3.1

If you wish to update to the new default version, you need to first stop any software that uses ruby. Then, you will need to follow these steps, depending upon how you manage your system.

If you use pkgng, simply upgrade:
  # pkg upgrade

If you use portmaster, install new ruby, then rebuild all ports that depend on ruby:
  # portmaster -o lang/ruby32 lang/ruby31
  # portmaster -R -r ruby-3.2

If you use portupgrade, install new ruby, then rebuild all ports that depend on ruby:

# pkg delete -f ruby portupgrade
  # make -C /usr/ports/ports-mgmt/portupgrade install clean
  # pkg set -o lang/ruby31:lang/ruby32
  # portupgrade -x ruby-3.2.\* -fr lang/ruby32

USB leads – What version

Stumbled on this and maybe useful in the run up to Christmas to make sure you have the rights leads or plugs in order to use what ever presents Santa leaves under the tree. Almost all new phones are USB-C these days, and smaller devices and gadgets , but there will be some stuff lingering on with Micro-USB until they refresh the designs.

The one exception will be slightly older Apple phones (iPhone 14 or below) that use the Lighting Port (not shown)

OpenSSL Hell

So FreeBSD decided to deprecate OpenSSL 1.1 and amend the base version in ports to OpenSSL 3.0 Its quite a major jump and although MySQL Server 8 is supposed to support various rebuilds from ports kept throwing up unsupported SSL versions when trying to update the various ports that rely on OpenSSL to get a fully working system.

Suffice to say after rolling back to 1.11 I have managed to get everything functioning again, but when it comes to FreeBSD 14 its probably time to do a fresh install with v3.0 as the default and install everything afresh than try and upgrade in place on what is an essential component for a networked device.

Apple and FreeBSD update

The update to PERL also managed to break SSL, with no clear culprit of what had failed. rebuilding all the of PERL dependencies did little to fix it. and oddly Apache still tried to serve up the webpages but in plain text on the internal network.

Going thru the Freebsd-update fetch and install route and rebuilding OpenSSL once the patch update had been applied allow Apache to once again happily serve up the site pages.

iOS 17 is not far away from being launched but I have been running the Beta’s on phone, iPad, Watch and AppleTV quite happily for a month now. After upgrading the AppleTV the big screen FaceTime is a bonus but watching the Apple Launch event now sure I need the finger double tap for the watch or the USB-C connections for iPhone so will wait to see how the prices pan out or if a battery replacement on each will buy another year of service and see what next September brings.

Updating Perl to 5.34

The UPDATING readme for successfully updating all the Perl modules when the default version takes a revision bump is helpful, but could be a damm site more helpful if they just re-posted the original advice, its not as its its pages and pages.

Anyway here is my link to the amended commands to effect the upgrade.

Link to Page

Apple Beta Updates

Back from holiday so have now installed the new iPhone, Watch and AppleTV beta updates, and may have found a killer feature in the WatchOS update which allows the Watch to connect to my bike Bluetooth Cadence sensor, so effectively making the cycle computer redundant as the Apple Health cycle mode will replicate all the functions the cycle computer will do. Interesting to see how this might impact battery life though on the watch given it will be much more active during rides.

Seems to be lots of little changes to iPhone in terms of widgets and messaging integration, but probably more updates for the Instagram generation rather than myself. Early days yet so will probably find more useful features as I delve and others update so the SharePlay functions come into their own.

New Offerings from Apple – Beta launches

Been looking at the new beta previews from Apple of the forthcoming iOS/TvOS/WatchOS coming out later this year.

WatchOS does not appear to have a major new killer functions, least not for me. although current Watch is 3 years old, so will probably update anyway, but the new body temperature sensor is less of a pull for me, but if it can take accurate body temperature rather than just variations in temperature I might be sold.

Of a bigger pull is the addition of FaceTime to AppleTV 4K. Using an iPhone/iPad as the local camera feed putting friends and family on the big screen is a welcome addition. Yet to see the revised controls, but have been getting annoyed with the current controls and the control panel covering the subtitles or screen text I purposely paused it to read is hopefully corrected. watch this space.

Yet to look at the iPhone iOS update changes, but will take a deeper look at when I can.

EDIT – pants – FaceTime is not available on 1st 4K Gen AppleTV boxes and not sure there is an enough change in the tech to warrant splashing out on a new box. just for FaceTime. Also requires Phone to be on iOS17 so really not worth the change today.

Who salutes who?

Always confuses me the different ranks and titles that the UK Military use, so Defence Focus created this handy guide.

Graphic from Defence Focus listing the UK military grades in order of rank, by service.
Who salutes who