Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 904299 - gui-wm/hyprland-0.24.1: fail to build for inexistent files
Summary: gui-wm/hyprland-0.24.1: fail to build for inexistent files
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: GURU project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-14 04:21 UTC by ignamartinoli
Modified: 2023-04-17 09:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
hyprland-0.24.1-r1.ebuild (hyprland-0.24.1-r1.ebuild,2.35 KB, text/plain)
2023-04-16 01:44 UTC, Julien Roy
Details
hyprland-0.24.1-r1.ebuild (2) (file_904299.txt,2.38 KB, text/plain)
2023-04-16 16:45 UTC, Julien Roy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ignamartinoli 2023-04-14 04:21:39 UTC
The continuation from https://bugs.gentoo.org/904142.
Comment 1 ignamartinoli 2023-04-14 04:28:16 UTC
Alright, so to recap

To fix this the PR needs to create the file files/0.24.1-meson.patch with content:


diff --git a/protocols/meson.build b/protocols/meson.build
index 458de86..294d9ee 100644
--- a/protocols/meson.build
+++ b/protocols/meson.build
@@ -31,8 +31,8 @@ protocols = [
   ['pointer-constraints-unstable-v1.xml'],
   ['tablet-unstable-v2.xml'],
   ['idle.xml'],
-  [hl_protocol_dir, 'protocols/hyprland-toplevel-export-v1.xml'],
-  [hl_protocol_dir, 'protocols/hyprland-global-shortcuts-v1.xml']
+  ['/usr/share', 'protocols/hyprland-toplevel-export-v1.xml'],
+  ['/usr/share', 'protocols/hyprland-global-shortcuts-v1.xml']
 ]
 wl_protos_src = []
 wl_protos_headers = []

And it has to add a line under 84 with the content:

	cp "${S}/subprojects/hyprland-protocols/protocols/hyprland-global-shortcuts-v1.xml" "${S}/protocols" || die

(And obviously bumping to version to hyprland-0.24.1-r1)

Am I right?
Comment 2 Julien Roy 2023-04-14 04:29:43 UTC
Yes, exactly! :)
Comment 3 ignamartinoli 2023-04-14 04:45:03 UTC
This is the PR: https://github.com/gentoo-mirror/guru/pull/11
Comment 4 Julien Roy 2023-04-14 04:47:15 UTC
Please file it at https://github.com/gentoo/guru
Comment 5 ignamartinoli 2023-04-14 04:49:14 UTC
I just realized that all this time I was using the mirror ahahah
Comment 6 ignamartinoli 2023-04-14 04:54:58 UTC
Alright, it's this now: https://github.com/gentoo/guru/pull/93
Comment 7 Julien Roy 2023-04-16 01:44:27 UTC
Created attachment 860173 [details]
hyprland-0.24.1-r1.ebuild

Can you try to merge this ebuild? I changed the source of the tarball to use upstream's "dist tarballs" which includes sources for submodules, instead of fetching it manually.
I'm curious to see if you can replicate the issue with this ebuild.

If it still doesn't work, we'll get back to your PR, but it would be easier to help you through IM instead of comments on the PR. If you use Matrix, IRC, Telegram or Discord, I can be reached on any of those.
Comment 8 Julien Roy 2023-04-16 16:45:46 UTC
Created attachment 860191 [details]
hyprland-0.24.1-r1.ebuild (2)

If the above ebuild works for you, try to emerge it twice to make sure the issue isn't reproducible.

If it doesn't work, try the attached ebuild instead (and again, if it works, emerge it twice)

Let me know if either ebuild worked for you (and if so, which one).
Comment 9 ignamartinoli 2023-04-16 22:10:02 UTC
Alright, my Discord is sicro#5550 hit me up there.

So, to emerge the ebuild you gave me I have to just put them in the `gui-wm/hyprland` directory and run `ebuild clean->manifest->merge`, right?
Comment 10 Julien Roy 2023-04-16 22:12:06 UTC
(In reply to ignamartinoli from comment #9)
> Alright, my Discord is sicro#5550 hit me up there.
> 
> So, to emerge the ebuild you gave me I have to just put them in the
> `gui-wm/hyprland` directory and run `ebuild clean->manifest->merge`, right?

Yes exactly
Comment 11 Larry the Git Cow gentoo-dev 2023-04-17 09:22:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e8576ffbcd6f5a330c9e136fb403839ebc5c166f

commit e8576ffbcd6f5a330c9e136fb403839ebc5c166f
Author:     Julien Roy <julien@jroy.ca>
AuthorDate: 2023-04-17 01:58:07 +0000
Commit:     Julien Roy <julien@jroy.ca>
CommitDate: 2023-04-17 01:58:07 +0000

    gui-wm/hyprland: add 0.24.1-r1
    
    Drop workaround for meson issue
    Add dependency for hyprland-protocols
    
    Closes: https://bugs.gentoo.org/904299
    Thanks to: Tano <ignamartinoli@proton.me>
    Signed-off-by: Julien Roy <julien@jroy.ca>

 gui-wm/hyprland/Manifest                  |  1 +
 gui-wm/hyprland/hyprland-0.24.1-r1.ebuild | 93 +++++++++++++++++++++++++++++++
 2 files changed, 94 insertions(+)