* [bug#66601] (@ (gnu packages wm) wlroots): expose "protocol" dir
@ 2023-10-18 5:01 Grigory Shepelev
[not found] ` <handler.66601.B.169760537811312.ack@debbugs.gnu.org>
2023-11-22 14:43 ` [bug#66601] (@ (gnu packages wm) wlroots): expose "protocol" dir Ludovic Courtès
0 siblings, 2 replies; 3+ messages in thread
From: Grigory Shepelev @ 2023-10-18 5:01 UTC (permalink / raw)
To: 66601
[-- Attachment #1.1: Type: text/plain, Size: 155 bytes --]
Hi
I needed to tweak something in Sway and could not find its xml wayland
protocol files. It was hidden in the package source. Exposed them to the
build.
[-- Attachment #1.2: Type: text/html, Size: 208 bytes --]
[-- Attachment #2: wlroots-exports.patch --]
[-- Type: text/x-patch, Size: 921 bytes --]
diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index 8576d0297d..45ef9cb073 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -1648,7 +1648,15 @@ (define-public wlroots
(substitute* "backend/drm/meson.build"
(("/usr/share/hwdata/pnp.ids")
(string-append (assoc-ref (or native-inputs inputs) "hwdata")
- "/share/hwdata/pnp.ids"))))))))
+ "/share/hwdata/pnp.ids")))))
+ (add-after 'install 'copy-protocols
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (mkdir-p "protocols")
+ (copy-recursively
+ "protocol" ;; why singular?!
+ (string-append (assoc-ref outputs "out")
+ "/protocols"))
+ #t)))))
(propagated-inputs
(list ;; As required by wlroots.pc.
eudev
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [bug#66601] Acknowledgement ((@ (gnu packages wm) wlroots): expose "protocol" dir)
[not found] ` <handler.66601.B.169760537811312.ack@debbugs.gnu.org>
@ 2023-10-18 6:24 ` Grigory Shepelev
0 siblings, 0 replies; 3+ messages in thread
From: Grigory Shepelev @ 2023-10-18 6:24 UTC (permalink / raw)
To: 66601
[-- Attachment #1: Type: text/plain, Size: 913 bytes --]
Sorry, it has to be "add-before 'configure"
ср, 18 окт. 2023 г. в 08:02, GNU bug Tracking System <help-debbugs@gnu.org>:
> Thank you for filing a new bug report with debbugs.gnu.org.
>
> This is an automatically generated reply to let you know your message
> has been received.
>
> Your message is being forwarded to the package maintainers and other
> interested parties for their attention; they will reply in due course.
>
> Your message has been sent to the package maintainer(s):
> guix-patches@gnu.org
>
> If you wish to submit further information on this problem, please
> send it to 66601@debbugs.gnu.org.
>
> Please do not send mail to help-debbugs@gnu.org unless you wish
> to report a problem with the Bug-tracking system.
>
> --
> 66601: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=66601
> GNU Bug Tracking System
> Contact help-debbugs@gnu.org with problems
>
[-- Attachment #2: Type: text/html, Size: 1678 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [bug#66601] (@ (gnu packages wm) wlroots): expose "protocol" dir
2023-10-18 5:01 [bug#66601] (@ (gnu packages wm) wlroots): expose "protocol" dir Grigory Shepelev
[not found] ` <handler.66601.B.169760537811312.ack@debbugs.gnu.org>
@ 2023-11-22 14:43 ` Ludovic Courtès
1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2023-11-22 14:43 UTC (permalink / raw)
To: Grigory Shepelev; +Cc: 66601
Hi Grigory,
Grigory Shepelev <shegeley@gmail.com> skribis:
> I needed to tweak something in Sway and could not find its xml wayland
> protocol files. It was hidden in the package source. Exposed them to the
> build.
> diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
> index 8576d0297d..45ef9cb073 100644
> --- a/gnu/packages/wm.scm
> +++ b/gnu/packages/wm.scm
> @@ -1648,7 +1648,15 @@ (define-public wlroots
> (substitute* "backend/drm/meson.build"
> (("/usr/share/hwdata/pnp.ids")
> (string-append (assoc-ref (or native-inputs inputs) "hwdata")
> - "/share/hwdata/pnp.ids"))))))))
> + "/share/hwdata/pnp.ids")))))
> + (add-after 'install 'copy-protocols
> + (lambda* (#:key inputs outputs #:allow-other-keys)
> + (mkdir-p "protocols")
> + (copy-recursively
> + "protocol" ;; why singular?!
> + (string-append (assoc-ref outputs "out")
> + "/protocols"))
/protocol(s) is a non-standard directory (should it be
/share/sway/protocols?).
Also, it seems to me that this kind of change belongs upstream. Could
you check why it’s not there and/or how other distros deal with it?
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-11-22 14:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-18 5:01 [bug#66601] (@ (gnu packages wm) wlroots): expose "protocol" dir Grigory Shepelev
[not found] ` <handler.66601.B.169760537811312.ack@debbugs.gnu.org>
2023-10-18 6:24 ` [bug#66601] Acknowledgement ((@ (gnu packages wm) wlroots): expose "protocol" dir) Grigory Shepelev
2023-11-22 14:43 ` [bug#66601] (@ (gnu packages wm) wlroots): expose "protocol" dir Ludovic Courtès
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).