public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Ondrej Holy <oholy@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/freerdp] f44: Enable the XDG AAD authentication helper
Date: Fri, 06 Nov 2026 09:53:16 GMT	[thread overview]
Message-ID: <179395879662.1.9454065266598037860.rpms-freerdp-4e8c0fd27b09@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/freerdp
            Branch : f44
            Commit : 4e8c0fd27b0974606bdd62c498cb5232d09bf0a3
            Author : Ondrej Holy <oholy@redhat.com>
            Date   : 2026-11-06T10:50:25+01:00
            Stats  : +14/-6 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/freerdp/c/4e8c0fd27b0974606bdd62c498cb5232d09bf0a3?branch=f44

            Log:
            Enable the XDG AAD authentication helper

Currently, AAD login requires manually copying the browser redirect URL.
Let's enable `WITH_XDG_AAD_AUTH_HELPER`, package its scripts and runtime
dependencies, and normalize their Python shebangs to automate this flow.
Also remove `WITH_WEBVIEW`, its spec toggle and the WebKitGTK dependency:
upstream replaced the in-process webview with separate authentication
helpers, so the old CMake option is no longer used.

Resolves: rhbz#2520877

Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>

---
diff --git a/freerdp.spec b/freerdp.spec
index 5cb489b..39dc457 100644
--- a/freerdp.spec
+++ b/freerdp.spec
@@ -21,13 +21,10 @@
 %global _with_uriparser 1
 %endif
 
-# Disable support for AAD WebView popup since it uses webkit2gtk-4.0
-#global _with_webview 1
-
 Name:           freerdp
 Epoch:          2
 Version:        3.33.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Free implementation of the Remote Desktop Protocol (RDP)
 
 # The effective license is Apache-2.0 but:
@@ -73,6 +70,7 @@ BuildRequires:  libXv-devel
 %{?_with_openh264:BuildRequires:  pkgconfig(openh264)}
 %{?_with_x264:BuildRequires:  x264-devel}
 BuildRequires:  pam-devel
+BuildRequires:  python3-devel
 BuildRequires:  zlib-devel
 %{!?rhel:BuildRequires:  multilib-rpm-config}
 
@@ -103,7 +101,6 @@ BuildRequires:  pkgconfig(opus)
 BuildRequires:  pkgconfig(sso-mib)
 BuildRequires:  pkgconfig(wayland-client)
 BuildRequires:  pkgconfig(wayland-scanner)
-%{?_with_webview:BuildRequires:  pkgconfig(webkit2gtk-4.0)}
 BuildRequires:  pkgconfig(xkbcommon)
 
 %{?_with_ffmpeg:
@@ -115,6 +112,9 @@ BuildRequires:  pkgconfig(libswscale)
 Provides:       xfreerdp = %{?epoch}:%{version}-%{release}
 Requires:       %{name}-libs%{?_isa} = %{?epoch}:%{version}-%{release}
 Requires:       libwinpr%{?_isa} = %{?epoch}:%{version}-%{release}
+Requires:       python3
+Requires:       xdg-utils
+Requires:       desktop-file-utils
 
 %description
 The xfreerdp & wlfreerdp Remote Desktop Protocol (RDP) clients from the FreeRDP
@@ -178,6 +178,8 @@ developing applications that use %{name}-libwinpr.
 %prep
 %autosetup -p1 -n FreeRDP-%{version}
 
+%py3_shebang_fix client/common/xdg-aad-helper/xdg-aad-helper.py client/common/xdg-aad-helper/freerdp_aad_handler.py
+
 # Rpmlint fixes
 find . -name "*.h" -exec chmod 664 {} \;
 find . -name "*.c" -exec chmod 664 {} \;
@@ -235,9 +237,9 @@ find . -name "*.c" -exec chmod 664 {} \;
     -DWITH_VERBOSE_WINPR_ASSERT=OFF \
     -DWITH_VIDEO_FFMPEG=%{?_with_ffmpeg:ON}%{?!_with_ffmpeg:OFF} \
     -DWITH_WAYLAND=ON \
-    -DWITH_WEBVIEW=%{?_with_webview:ON}%{?!_with_webview:OFF} \
     -DWITH_X11=ON \
     -DWITH_XCURSOR=ON \
+    -DWITH_XDG_AAD_AUTH_HELPER=ON \
     -DWITH_XEXT=ON \
     -DWITH_XKBFILE=ON \
     -DWITH_XI=ON \
@@ -294,6 +296,8 @@ find %{buildroot} -name "*.a" -delete
 %{_bindir}/winpr-makecert
 %{_bindir}/wlfreerdp
 %{_bindir}/xfreerdp
+%{_libexecdir}/freerdp-aad-handler
+%{_libexecdir}/freerdp-xdg-aad-helper
 %{?_with_sdl_client:
 %{_mandir}/man1/sdl-freerdp.1*
 }
@@ -378,6 +382,10 @@ find %{buildroot} -name "*.a" -delete
 %{_libdir}/pkgconfig/winpr-tools3.pc
 
 %changelog
+* Thu Nov 05 2026 Ondrej Holy <oholy@redhat.com> - 2:3.33.0-2
+- Enable the XDG AAD authentication helper
+  Resolves: rhbz#2520877
+
 * Mon Nov 02 2026 Ondrej Holy <oholy@redhat.com> - 2:3.33.0-1
 - Update to 3.33.0
   Resolves: rhbz#2565203

                 reply	other threads:[~2026-11-06  9:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179395879662.1.9454065266598037860.rpms-freerdp-4e8c0fd27b09@fedoraproject.org \
    --to=oholy@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox