[Midnightbsd-cvs] [MidnightBSD/mports] 9b51ec: devel/microsoft-gsl: update to 4.2.2 (#860)

Lucas Holt noreply at github.com
Mon Sep 7 11:56:20 EDT 2026


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/mports
  Commit: 9b51ecdfa41ede212cebb1270755d15d742b4f2d
      https://github.com/MidnightBSD/mports/commit/9b51ecdfa41ede212cebb1270755d15d742b4f2d
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-09-07 (Mon, 07 Sep 2026)

  Changed paths:
    M devel/microsoft-gsl/Makefile
    M devel/microsoft-gsl/distinfo
    M devel/microsoft-gsl/pkg-plist

  Log Message:
  -----------
  devel/microsoft-gsl: update to 4.2.2 (#860)

Updates `devel/microsoft-gsl` from 4.0.0 to 4.2.2, matching the FreeBSD
port.

## Why

`net-im/telegram-desktop` requires Microsoft.GSL 4.1.0 or newer:

```cmake
# cmake/external/gsl/CMakeLists.txt:11
find_package(Microsoft.GSL 4.1.0 QUIET)
```

With 4.0.0 installed that `find_package` fails *quietly*, and the build
falls
through to the bundled-copy branch — which the port deletes — producing
a
confusing error that looks like a missing dependency:

```
CMake Error at cmake/external/gsl/CMakeLists.txt:20 (message):
  Guidelines Support Library is not found
```

`devel/microsoft-gsl` was installed the whole time; it was simply too
old.

## Changes

- `DISTVERSION` 4.0.0 → 4.2.2. `distinfo` matches the FreeBSD port byte
for
  byte.
- `pkg-plist`: the legacy `gsl_algorithm`, `gsl_assert`, `gsl_byte`,
`gsl_narrow`, `gsl_util` aliases and `string_span` are removed upstream;
  `zstring` and `share/cmake/Microsoft.GSL/GSL.natvis` are added.
- `PORTREVISION` bumps for both consumers, `cad/freecad` and
`net-im/telegram-desktop`. This is a header-only library and headers
were
  *removed*, so dependents genuinely need rebuilding.

## Testing

MidnightBSD 4.2 amd64: `bmake makesum` / `build` / `fake` / `package`
clean,
`microsoft-gsl-4.2.2.mport` created and installed.

Verified against `net-im/telegram-desktop`: the GSL error is gone and it
now
reaches `Configuring done` / `Generating done` and starts compiling.

## What this does *not* fix

`net-im/telegram-desktop` still fails to build, on a further and
unrelated
problem — clang 19.1.7 crashes (exit 138, with a stack dump) while
parsing the
generated GObject-introspection headers such as
`gen/gio/tlsinteraction_impl.hpp`. Filed separately.

`cad/freecad` could **not** be rebuilt to confirm it still compiles
against
4.2.2, because it currently fails at the patch stage for an unrelated
reason
(#856). The bump is correct regardless — its headers changed — but treat
freecad's compatibility with 4.2.2 as unverified.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01XkHF8bn8Ehit2aSoWjCshm

## Summary by Sourcery

Update Microsoft GSL to 4.2.2 and refresh dependent ports for the
changed headers.

Bug Fixes:
- Update Microsoft GSL to a version compatible with consumers requiring
4.1.0 or newer, allowing Telegram Desktop to detect the installed
dependency.

Enhancements:
- Refresh the Microsoft GSL package contents for upstream 4.2.2,
including removed legacy headers and newly provided files.

Chores:
- Bump dependent port revisions for FreeCAD and Telegram Desktop after
the header-only library update.

Signed-off-by: Lucas Holt <luke at foolishgames.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply at anthropic.com>



To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/mports/settings/notifications



More information about the Midnightbsd-cvs mailing list