#1148245 linux-entra-sso doesn't seem to work at all, LINUX_ENTRA_SSO_VERSION=""

Package:
linux-entra-sso
Source:
linux-entra-sso
Submitter:
Benjamin Herrenschmidt
Date:
2026-09-18 14:37:04 UTC
Severity:
normal
Tags:
#1148245#5
Date:
2026-09-18 10:58:12 UTC
From:
To:
Hi !

I've been getting error

Failed to load data from broker: {"context":"msalCppVersion is NULL orEMPTY","diagnostics":{"raw_error_code":"illegal_argument_exception","exception_type":"com.microsoft.identity.common.exception.ArgumentException","illegal_argument_name":"msalCppVersion"},"errorCode":0,"status":6,"subStatus":0,"tag":0}".

when trying to use the extension. It looks like the cause is that
/usr/libexec/linux-entra-sso/linux-entra-sso.py contains:

      LINUX_ENTRA_SSO_VERSION = ""

Which makes the M$ broker rather unhappy.

I confirmed this happens with the current sid package
(linux-entra-sso_1.8.1-1_all.deb).

The reason is that the version is "patched" into the script by the
Makefile, and it derives the version solely from git describe:

      RELEASE_TAG ?= $(shell git describe --match "v[0-9].[0-9]*" --dirty)
      WEBEXT_VERSION=$(RELEASE_TAG:v%=%)
      UPDATE_VERSION_PY='s|0.0.0-dev|$(WEBEXT_VERSION)|g'   # used in install:

When building from the release tarball there is no git repository, so
git describe outputs nothing, WEBEXT_VERSION is empty, and the install
target's sed rewrites the "0.0.0-dev" placeholder in linux-entra-sso.py
to an empty string. debian/rules calls "dh_auto_install -- prefix=/usr"
with no version override, so nothing repairs it.

A fix is to pass the upstream version from the changelog to the Makefile
so it is never empty:

      DEB_VERSION_UPSTREAM := $(shell dpkg-parsechangelog -SVersion | sed 's/-[^-]*$$//')

      override_dh_auto_install:
        dh_auto_install -- prefix=/usr RELEASE_TAG=v$(DEB_VERSION_UPSTREAM)

Attached is an AI generated patch (thanks Claude) as I am not familiar
with Debian build system.

#1148245#10
Date:
2026-09-18 14:35:14 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
linux-entra-sso, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1148245@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Luca Boccassi <bluca@debian.org> (supplier of updated linux-entra-sso package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 18 Sep 2026 15:56:45 +0200
Source: linux-entra-sso
Architecture: source
Version: 1.11.0-1
Distribution: unstable
Urgency: medium
Maintainer: Luca Boccassi <bluca@debian.org>
Changed-By: Luca Boccassi <bluca@debian.org>
Closes: 1148245
Changes:
 linux-entra-sso (1.11.0-1) unstable; urgency=medium
 .
   * Update upstream source from tag 'upstream/1.11.0'
   * Switch to dh-compat 14
   * d/rules: set RELEASE_TAG with upstream version (Closes: #1148245)
   * Disable unit tests
Checksums-Sha1:
 f8e66176fc04ea614644a7593e6f3838c0bb7b9e 1957 linux-entra-sso_1.11.0-1.dsc
 4a542d4eb023f59e6c3d74c344ef33c7de5a72e9 58482 linux-entra-sso_1.11.0.orig.tar.gz
 e1baa8555a2a5c70aee9f0a6b53474bb5f3a4433 2680 linux-entra-sso_1.11.0-1.debian.tar.xz
 52e33c61c0cab2038ca70a6ebfa3422dde4953aa 6961 linux-entra-sso_1.11.0-1_source.buildinfo
Checksums-Sha256:
 f373041bd692479a9d5ada12e7430f970288b13c60d4b727b2945b4347a941b1 1957 linux-entra-sso_1.11.0-1.dsc
 153cbdf1608508cff65a37852cb3d8579b0c13b267198d86e602cb31b475bc68 58482 linux-entra-sso_1.11.0.orig.tar.gz
 9271cb2e71402f454f8ab8c32b8524ae93a566b59523d3c725c8fd23de628b34 2680 linux-entra-sso_1.11.0-1.debian.tar.xz
 da04770971d913926b8411e6ec9f648e9d85ef8afc69a3f5e6bd464066c84d3c 6961 linux-entra-sso_1.11.0-1_source.buildinfo
Files:
 565c3cbb62ee741bbb898248e9a08240 1957 contrib/web optional linux-entra-sso_1.11.0-1.dsc
 1eaccfb9d4d91c4ddd5153e075a5d90b 58482 contrib/web optional linux-entra-sso_1.11.0.orig.tar.gz
 018e17b1ef56cf390cc105303f29b427 2680 contrib/web optional linux-entra-sso_1.11.0-1.debian.tar.xz
 f4f81d4eb98808c6d86737ae4c2f8da3 6961 contrib/web optional linux-entra-sso_1.11.0-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEErCSqx93EIPGOymuRKGv37813JB4FAmqtRrsRHGJsdWNhQGRl
Ymlhbi5vcmcACgkQKGv37813JB4SJg/+PQD569nrR0D/NaBqaGzHGeKyQl29sNSm
0NlfWvwqBR4PINxAX3KKTHk+eKn18AbDHqX2SOIcgn7LHCh+Dj5aHWQxEK1e/OvD
IoakOmkDDp3Igc96I5F6Hz5o/5L81Hh7RBsqrHLLbAd3qlyJt/pw4b6e3mmA+qm8
0hI77nnTjk6eZbpMLH9PctiK2dLV4KXDfT/Ev3BZ+Qek+ex1rtaIi0qFkQeKWcQi
B06keHaPSqLJEJVDiZPb7YDA3mumLJELblyW3I2d4Z00WCd62ahzrzitG7/4LlWR
dP/aYpXTnyNGCEp3pLb/O5UtCcYol8uFiMJz2ZbQeDCekZF7ijVyNz4HJDLCiRLe
4anwIalnOeDaA2mIsQt4jg/g4+n7vaJ/oa8QsOvzQ9HzKuDbGypLLNVwiM3uh8oy
hikthJBUEHmHjaE5uxiR7zpWMZn91JfoGF0PZ9opFj2tcL3SiOc5KYpO8R16z2cC
RBfwDNFZuBfyPnLjrOtizVqJHiG9QOGPmAbMRON8jso6u8O9TdHpuKjAKLOp68fZ
TKoTlNd/byTCCIhX4IWoYAd3Fw434eVES2eXAM6PzsuVT4QMTMWh/+r5Gwhp3aZk
cA4vqxQ0Zc6DddY8/plJfD7eBR5pBEbpsLC7LYPJHGvV1NyvW7oLH3Qyu+ATVw1G
19LwD5vlRms=
=RXQQ
-----END PGP SIGNATURE-----