unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#72922] [PATCH] gnu: wine64: Fix build.
@ 2024-08-31 19:09 Liliana Marie Prikler
  2024-09-01 16:28 ` Ian Eure
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Liliana Marie Prikler @ 2024-08-31 19:09 UTC (permalink / raw)
  To: 72922

With the core-updates merge, the handling of modify-phases makes the current
ordering a hard error.  Make it so that phases are read from top to bottom.

* gnu/packages/wine.scm (wine64)[#:phases]: Move ‘copy-wine32-binaries’
and ‘copy-wine32-libraries’ before conditional ‘wrap-executable’.
<copy-wine32-manpage>: Use “.zst” instead of “.gz” as file ending.
---
 gnu/packages/wine.scm | 34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/gnu/packages/wine.scm b/gnu/packages/wine.scm
index 35520ee03b..0e1195b6ed 100644
--- a/gnu/packages/wine.scm
+++ b/gnu/packages/wine.scm
@@ -256,6 +256,21 @@ (define-public wine64
         )
        ((#:phases phases)
         #~(modify-phases #$phases
+            (add-after 'install 'copy-wine32-binaries
+              (lambda* (#:key inputs outputs #:allow-other-keys)
+                (let ((out (assoc-ref %outputs "out")))
+                  ;; Copy the 32-bit binaries needed for WoW64.
+                  (copy-file (search-input-file inputs "/bin/wine")
+                             (string-append out "/bin/wine"))
+                  ;; Copy the real 32-bit wine-preloader instead of the wrapped
+                  ;; version.
+                  (copy-file (search-input-file inputs "/bin/.wine-preloader-real")
+                             (string-append out "/bin/wine-preloader")))))
+            (add-after 'install 'copy-wine32-libraries
+              (lambda* (#:key inputs outputs #:allow-other-keys)
+                (let* ((out (assoc-ref %outputs "out")))
+                  (copy-recursively (search-input-directory inputs "/lib/wine32")
+                                    (string-append out "/lib/wine32")))))
             ;; Explicitly set both the 64-bit and 32-bit versions of vulkan-loader
             ;; when installing to x86_64-linux so both are available.
             ;; TODO: Add more JSON files as they become available in Mesa.
@@ -281,27 +296,12 @@ (define-public wine64
                             `("VK_ICD_FILENAMES" ":" = ,icd-files)))))))
                  (_
                   `()))
-            (add-after 'install 'copy-wine32-binaries
-              (lambda* (#:key inputs outputs #:allow-other-keys)
-                (let ((out (assoc-ref %outputs "out")))
-                  ;; Copy the 32-bit binaries needed for WoW64.
-                  (copy-file (search-input-file inputs "/bin/wine")
-                             (string-append out "/bin/wine"))
-                  ;; Copy the real 32-bit wine-preloader instead of the wrapped
-                  ;; version.
-                  (copy-file (search-input-file inputs "/bin/.wine-preloader-real")
-                             (string-append out "/bin/wine-preloader")))))
-            (add-after 'install 'copy-wine32-libraries
-              (lambda* (#:key inputs outputs #:allow-other-keys)
-                (let* ((out (assoc-ref %outputs "out")))
-                  (copy-recursively (search-input-directory inputs "/lib/wine32")
-                                    (string-append out "/lib/wine32")))))
             (add-after 'compress-documentation 'copy-wine32-manpage
               (lambda* (#:key inputs outputs #:allow-other-keys)
                 (let* ((out (assoc-ref %outputs "out")))
                   ;; Copy the missing man file for the wine binary from wine.
-                  (copy-file (search-input-file inputs "/share/man/man1/wine.1.gz")
-                             (string-append out "/share/man/man1/wine.1.gz")))))))
+                  (copy-file (search-input-file inputs "/share/man/man1/wine.1.zst")
+                             (string-append out "/share/man/man1/wine.1.zst")))))))
        ((#:configure-flags configure-flags '())
         #~(cons "--enable-win64" #$configure-flags))))
     (synopsis "Implementation of the Windows API (WoW64 version)")

base-commit: 19e0b937857563e77841a4fc5433589fa98c810d
-- 
2.45.2





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#72922] [PATCH] gnu: wine64: Fix build.
  2024-08-31 19:09 [bug#72922] [PATCH] gnu: wine64: Fix build Liliana Marie Prikler
@ 2024-09-01 16:28 ` Ian Eure
  2024-09-02 19:37 ` Dr. Arne Babenhauserheide via Guix-patches via
  2024-09-08 14:03 ` bug#72922: " Liliana Marie Prikler
  2 siblings, 0 replies; 4+ messages in thread
From: Ian Eure @ 2024-09-01 16:28 UTC (permalink / raw)
  To: 72922

This looks good to me.

Thanks,

  — Ian




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#72922] [PATCH] gnu: wine64: Fix build.
  2024-08-31 19:09 [bug#72922] [PATCH] gnu: wine64: Fix build Liliana Marie Prikler
  2024-09-01 16:28 ` Ian Eure
@ 2024-09-02 19:37 ` Dr. Arne Babenhauserheide via Guix-patches via
  2024-09-08 14:03 ` bug#72922: " Liliana Marie Prikler
  2 siblings, 0 replies; 4+ messages in thread
From: Dr. Arne Babenhauserheide via Guix-patches via @ 2024-09-02 19:37 UTC (permalink / raw)
  To: 72922

[-- Attachment #1: Type: text/plain, Size: 146 bytes --]

Tested — this works for me.

Thank you!

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1125 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#72922: [PATCH] gnu: wine64: Fix build.
  2024-08-31 19:09 [bug#72922] [PATCH] gnu: wine64: Fix build Liliana Marie Prikler
  2024-09-01 16:28 ` Ian Eure
  2024-09-02 19:37 ` Dr. Arne Babenhauserheide via Guix-patches via
@ 2024-09-08 14:03 ` Liliana Marie Prikler
  2 siblings, 0 replies; 4+ messages in thread
From: Liliana Marie Prikler @ 2024-09-08 14:03 UTC (permalink / raw)
  To: 72922-done

Am Samstag, dem 31.08.2024 um 21:09 +0200 schrieb Liliana Marie
Prikler:
> With the core-updates merge, the handling of modify-phases makes the
> current ordering a hard error.  Make it so that phases are read from
> top to bottom.
> 
> * gnu/packages/wine.scm (wine64)[#:phases]: Move ‘copy-wine32-
> binaries’ and ‘copy-wine32-libraries’ before conditional ‘wrap-
> executable’.
> <copy-wine32-manpage>: Use “.zst” instead of “.gz” as file ending.
> ---
Pushed some while ago.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-09-08 14:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-31 19:09 [bug#72922] [PATCH] gnu: wine64: Fix build Liliana Marie Prikler
2024-09-01 16:28 ` Ian Eure
2024-09-02 19:37 ` Dr. Arne Babenhauserheide via Guix-patches via
2024-09-08 14:03 ` bug#72922: " Liliana Marie Prikler

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).