Bug 285122

Summary: devel/microsoft-gsl: update to 4.2.0
Product: Ports & Packages Reporter: Henry Hu <henry.hu.sh>
Component: Individual Port(s)Assignee: Vladimir Druzenko <vvd>
Status: Closed FIXED    
Severity: Affects Some People CC: vvd
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch to update to 4.2.0
none
poudriere log on 13.4-RELEASE none

Description Henry Hu 2025-03-03 04:50:45 UTC
Created attachment 258236 [details]
patch to update to 4.2.0

Changelog: https://github.com/microsoft/GSL/releases/tag/v4.2.0

New Features

    Added gsl::swap for safely swapping gsl::not_null pointers (#1160)
    Introduced element_type member type to gsl::not_null for better type trait consistency (#1196)
    Added support for strict_not_null with unique_ptr (#1179)
    Added comprehensive test suite for gsl::span including empty span, conversion, and comparison tests (#1189)

Performance Improvements

    Significantly improved span_iterator performance with Clang compiler, reducing overhead by up to 20x (#1166)

Bug Fixes

    Fixed GCC-specific bug with list initialization of const references (#1175)
    Fixed SFINAE implementation in gsl::owner (#1174)
    Fixed issues with std::enable_if usage throughout the codebase (#1177)
    Modified include directives to use explicit "gsl/" prefix to prevent header conflicts (#1184)
    Changed include directives to use relative paths to comply with CppCoreGuideline SF.12 (#1194)

Deprecated Features

    Removed deprecated string_span feature (#1185)
    Marked the following features as deprecated as they are now in the C++ standard:
        gsl::unique_ptr
        gsl::shared_ptr
        gsl::byte (since C++17)
        gsl::joining_thread
Comment 1 Henry Hu 2025-03-03 04:51:19 UTC
Created attachment 258237 [details]
poudriere log on 13.4-RELEASE
Comment 2 commit-hook freebsd_committer freebsd_triage 2025-03-03 18:09:38 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=678d9385c0b32d566e08f43915da06107743aab8

commit 678d9385c0b32d566e08f43915da06107743aab8
Author:     Henry Hu <henry.hu.sh@gmail.com>
AuthorDate: 2025-03-03 18:00:14 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-03-03 18:09:08 +0000

    devel/microsoft-gsl: Update 4.1.0 → 4.2.0

    Changelog:
    https://github.com/microsoft/GSL/releases/tag/v4.2.0

    PR:     285122

 devel/microsoft-gsl/Makefile  | 3 +--
 devel/microsoft-gsl/distinfo  | 6 +++---
 devel/microsoft-gsl/pkg-plist | 1 -
 3 files changed, 4 insertions(+), 6 deletions(-)
Comment 3 Vladimir Druzenko freebsd_committer freebsd_triage 2025-03-03 18:10:01 UTC
Thanks.