Skip to content

[3.0] libjwt: add new package v1.12.1 (Fedora import) [DRAFT]#17721

Draft
sindhu-karri wants to merge 1 commit into
3.0-devfrom
sindhu/libjwt-3.0-fedora
Draft

[3.0] libjwt: add new package v1.12.1 (Fedora import) [DRAFT]#17721
sindhu-karri wants to merge 1 commit into
3.0-devfrom
sindhu/libjwt-3.0-fedora

Conversation

@sindhu-karri

Copy link
Copy Markdown

Draft / alternative to #17691 — using a real Fedora 44 spec import instead of a hand-authored spec.

Summary

Adds libjwt 1.12.1 (MPL-2.0) to SPECS-EXTENDED/ for Azure Linux 3.0, imported from Fedora 44 (src.fedoraproject.org/rpms/libjwt, Release 22 at the time of import).

Why a Fedora-import variant?

PR #17691 ships the same package as a hand-authored spec. That works, but a verbatim Fedora import gives us:

  • Battle-tested spec maintained upstream since 2020 (22 releases / mass-rebuilds — last touched Jun 2026 for the OpenSSL 4.0 rebuild)
  • Upstream patch without_examples.patch that properly disables building jwtgen/jwtauth (wires up the broken --without-examples flag in configure.ac + Makefile.am) instead of our rm workaround in %install
  • Clean classification under the Fedora license bucket in LICENSES-MAP.md (the more common case)

AZL-specific deltas vs upstream Fedora spec

  • Vendor: Microsoft Corporation + Distribution: Azure Linux tags
  • Release: 1 reset; single AZL changelog entry replacing 22 Fedora entries
  • Source0 renamed via #/%{name}-%{version}.tar.gz fragment to match blob-store convention
  • %ldconfig_scriptlets macro (AZL/RHEL convention; Fedora omits it because it's implicit)
  • Requires: jansson-devel / openssl-devel added to the devel subpackage (Fedora omits — relies on transitive)
  • %files tightened from *.so.1* to libjwt.so.*
  • %doc README.md instead of %doc *.md (more explicit)

Tracking

Package details

  • Version: 1.12.1
  • License: MPL-2.0
  • Upstream: https://github.com/benmcollins/libjwt
  • Subpackages: libjwt (runtime .so.1), libjwt-devel (headers + pkgconfig(libjwt) = 1.12.1)
  • Tier: SPECS-EXTENDED/

Dependencies

All build/runtime deps already in AZL 3.0 base, no other new packages needed:

  • autoconf, automake, libtool, gcc, make
  • jansson-devel, openssl-devel

CVE posture

NVD lists 3 CVEs in libjwt's history; none apply to 1.12.1:

  • CVE-2024-25189 (CVSS 9.8): NVD CPE scoped to 1.15.3 only.
  • CVE-2026-33996 (CVSS 5.8): affects 3.0.0 – 3.2.x.
  • CVE-2026-44699 (CVSS 9.1): affects 3.0.0 – 3.3.2.

Validation

Buddy build will be triggered next.

cc @trcooper for CycleCloud team awareness.

Imports libjwt 1.12.1 spec from Fedora rawhide (Fedora 44), with the
following AZL-specific adaptations:
  - Add Vendor / Distribution tags.
  - Restamp Release to 1, replace Fedora changelog with single AZL
    initial-import entry.
  - Use %ldconfig_scriptlets (AZL convention).
  - Pin devel Requires to jansson-devel / openssl-devel.
  - Tighten %files (libjwt.so.* instead of *.so.1*).
  - Source0 renamed to %{name}-%{version}.tar.gz via #/ fragment for
    blob-store conventions.
  - Drop Fedora-only changelog history.

The without_examples.patch (sourced verbatim from Fedora) wires up the
--without-examples configure flag that upstream ships but doesn't honor,
so the example binaries (jwtgen, jwtauth) are not built or installed.

Required by slurmrestd (Slurm REST API daemon) for JWT-based REST
authentication. Tracked via ADO #61504121.

cgmanifest.json updated for Component Governance.
LICENSES-MAP / licenses.json regenerated (libjwt classified under
Fedora bucket).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@microsoft-github-policy-service microsoft-github-policy-service Bot added Packaging specs-extended PR to fix SPECS-EXTENDED 3.0-dev PRs Destined for AzureLinux 3.0 labels Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.0-dev PRs Destined for AzureLinux 3.0 Packaging specs-extended PR to fix SPECS-EXTENDED

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant