Subject: [bug#77398] [PATCH v3 1/2] gnu: xrdp: Update to 0.10.3.

From: Andy Tai <[email-masked]>
Date: Wed, 2 Apr 2025 01:19:35 -0700

* gnu/packages/rdesktop.scm (xrdp): Update to 0.10.3.
[inputs]: Replace fuse-2 with fuse.
[arguments] <#:phases>: Add phase 'set-cflags-file-offset-bit-64
after 'unpack.

Change-Id: I86596ab0d1aee9449ae5895a1ef269a10480db46
---
 gnu/packages/rdesktop.scm | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/rdesktop.scm b/gnu/packages/rdesktop.scm
index d5d49edc200..352f5ca5e1f 100644
--- a/gnu/packages/rdesktop.scm
+++ b/gnu/packages/rdesktop.scm
@@ -168,7 +168,7 @@ (define-public freerdp
 (define-public xrdp
   (package
     (name "xrdp")
-    (version "0.10.1")
+    (version "0.10.3")
     (source (origin
               (method url-fetch)
               (uri (string-append
@@ -176,10 +176,10 @@ (define-public xrdp
                     version "/xrdp-" version ".tar.gz"))
               (sha256
                (base32
-                "10rgc9bfharwj7bq5k4qp4x00w214h6c6f861zi301h84125ylx2"))))
+                "15nhfh8lxwf0jlmq6knh3851sp6njps9nhl8n2867il7mcr9gmsj"))))
     (build-system gnu-build-system)
     (inputs (list check
-                  fuse-2
+                  fuse
                   imlib2
                   lame
                   libjpeg-turbo
@@ -214,7 +214,13 @@ (define-public xrdp
                                      "--enable-pixman=yes"
                                      "--enable-imlib2=yes"
                                      "--enable-pam-config=unix"
-                                     "--enable-ipv6=yes")))
+                                     "--enable-ipv6=yes")
+     #:phases
+     #~(modify-phases %standard-phases
+       (add-after 'unpack 'set-cflags-file-offset-bit-64
+         (lambda _
+               (setenv "CFLAGS"
+                   "-D_FILE_OFFSET_BITS=64"))))))
     (home-page "https://www.xrdp.org")
     (synopsis "Remote Desktop Protocol (RDP) server")
     (description
-- 
2.43.0