New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dev-lang/zig{,-bin}: slotting #29257
Conversation
Pull Request assignmentSubmitter: @BratishkaErik app-eselect/eselect-zig: @gentoo/proxy-maint (new package) Linked bugsIn order to force reassignment and/or bug reference scan, please append Docs: Code of Conduct ● Copyright policy (expl.) ● Devmanual ● GitHub PRs ● Proxy-maint guide |
Pull request CI reportReport generated at: 2023-01-25 08:13 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
9b5d719
to
e55537f
Compare
Small fix + all tests passes so I replaced |
Pull request CI reportReport generated at: 2023-01-25 09:53 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
sys-fs/ncdu/ncdu-2.2.2-r1.ebuild
Outdated
src_configure() { | ||
local zig_version | ||
zig_version="$(zig version)" | ||
[[ ${zig_version} =~ 0.10.? ]] || die "You should choose Zig version 0.10.x via eselect-zig, found instead: $(zig version)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't the ebuild select automatically the correct zig version, instead of die'ing? See for example what the egradle
function does in https://github.com/gentoo/gentoo/pull/28986/files#diff-62274241513f609709470a95a2d41d24f538e496f9415b2ef45553dfabfbab50R124.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FTR, the actual logic that sets EGRADLE
is in https://github.com/gentoo/gentoo/pull/28986/files#diff-62274241513f609709470a95a2d41d24f538e496f9415b2ef45553dfabfbab50R59. Maybe this could be an inspiration for EZIG
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds very interesting. So create eclass (and send to gentoo-dev ofc), then ebuilds inherit this eclass and use ezig
and f.i. ZIG_SLOT
? Or make it only in ncdu ebuild
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made it only for ncdu
ebuild
I was fixing my PC today, so I'll continue tomorrow. BTW ziglang/zig#14498 Zig's package manager is growing... |
e55537f
to
9fdba29
Compare
Pull request CI reportReport generated at: 2023-02-04 12:53 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
1e6368c
to
1137216
Compare
@Flowdalic again thank you very much! |
Pull request CI reportReport generated at: 2023-02-04 14:38 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
pong |
1137216
to
b9bb750
Compare
Pull request CI reportReport generated at: 2023-02-15 16:28 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
* Install Zig to "/usr/$(get_libdir)/zig/${PV}", handle /usr/bin/zig via eselect-zig * Add functions for getting ZIG_TARGET and ZIG_MCPU (user-provided or defaults) and use them for building/testing * Add "doc" USE flag for installing language reference and stdlib documentation Closes: https://bugs.gentoo.org/885861 Bug: https://bugs.gentoo.org/890234 Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
* Slot Zig and handle /usr/bin/zig via eselect-zig * Add "doc" USE flag for installing language reference and stdlib documentation Followup to previous commit 6ea1aff. Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
b9bb750
to
9304e97
Compare
Pull request CI reportReport generated at: 2023-02-18 13:08 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
ping |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, only minor copy&paste issue.
sys-fs/ncdu/ncdu-2.2.2-r1.ebuild
Outdated
done | ||
|
||
if [[ -z ${selected} ]]; then | ||
die "Could not find (suitable) gradle installation in PATH" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
die "Could not find (suitable) gradle installation in PATH" | |
die "Could not find (suitable) zig installation in PATH" |
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
9304e97
to
0e02f00
Compare
Pull request CI reportReport generated at: 2023-03-06 13:34 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
Thank you very much for your contribution and sorry that it took so long to get it merged. Please note that I made some minor changes to improve zig's sollting, especially adding an 'update' action to the eselect module. See 712edec and its predecessor commits. |
Thanks, IMHO these changes are more risky (?) so it's kinda expectable to took so long? IDK. Again, huge thanks! |
I'll make some changes in wiki too. |
Wrote and tested 3 days so there should be errors that I could't catch.
Example of
eselect zig list
andeselect zig show
: