Skip to content
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

Closed
wants to merge 4 commits into from

Conversation

BratishkaErik
Copy link
Contributor

@BratishkaErik BratishkaErik commented Jan 25, 2023

Wrote and tested 3 days so there should be errors that I could't catch.
Example of eselect zig list and eselect zig show:

Available Zig versions:
  [1]   zig-0.10.1 *
  [2]   zig-9999
  [3]   zig-bin-0.10.1

That are:

/usr/lib64/zig/0.10.1/bin/zig
/usr/lib64/zig/9999/bin/zig
/opt/zig-bin-0.10.1/zig
Current Zig version:
  zig-0.10.1

@gentoo-bot
Copy link

Pull Request assignment

Submitter: @BratishkaErik
Areas affected: ebuilds
Packages affected: app-eselect/eselect-zig, dev-lang/zig, dev-lang/zig-bin, sys-fs/ncdu

app-eselect/eselect-zig: @gentoo/proxy-maint (new package)
dev-lang/zig: @BratishkaErik, @gentoo/proxy-maint
dev-lang/zig-bin: @BratishkaErik, @gentoo/proxy-maint
sys-fs/ncdu: @jsmolic

Linked bugs

Bugs linked: 890234, 885861


In order to force reassignment and/or bug reference scan, please append [please reassign] to the pull request title.

Docs: Code of ConductCopyright policy (expl.) ● DevmanualGitHub PRsProxy-maint guide

@gentoo-bot gentoo-bot added new package The PR is adding a new package. assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. labels Jan 25, 2023
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2023-01-25 08:13 UTC
Newest commit scanned: 9b5d719
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/c16ef37985/output.html

@BratishkaErik
Copy link
Contributor Author

Small fix + all tests passes so I replaced Bug: https://bugs.gentoo.org/885861 with Closes: https://bugs.gentoo.org/885861

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2023-01-25 09:53 UTC
Newest commit scanned: e55537f
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/6b26f111ac/output.html

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)"
Copy link
Member

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.

Copy link
Member

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?

Copy link
Contributor Author

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

Copy link
Contributor Author

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

@BratishkaErik
Copy link
Contributor Author

I was fixing my PC today, so I'll continue tomorrow. BTW ziglang/zig#14498 Zig's package manager is growing...

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2023-02-04 12:53 UTC
Newest commit scanned: 9fdba29
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/57bbbdb865/output.html

@BratishkaErik BratishkaErik force-pushed the zig-slooted branch 2 times, most recently from 1e6368c to 1137216 Compare February 4, 2023 14:25
@BratishkaErik
Copy link
Contributor Author

@Flowdalic again thank you very much!

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2023-02-04 14:38 UTC
Newest commit scanned: 1137216
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/57f17fc5d2/output.html

@BratishkaErik
Copy link
Contributor Author

BratishkaErik commented Feb 8, 2023

pong

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2023-02-15 16:28 UTC
Newest commit scanned: b9bb750
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/f18ab6d370/output.html

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>
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2023-02-18 13:08 UTC
Newest commit scanned: 9304e97
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/398ccdcc1b/output.html

@BratishkaErik
Copy link
Contributor Author

ping

Copy link
Member

@Flowdalic Flowdalic left a 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.

done

if [[ -z ${selected} ]]; then
die "Could not find (suitable) gradle installation in PATH"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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>
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2023-03-06 13:34 UTC
Newest commit scanned: 0e02f00
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/84d58e931b/output.html

@gentoo-bot gentoo-bot closed this in 195bde1 Mar 9, 2023
@Flowdalic
Copy link
Member

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.

@BratishkaErik
Copy link
Contributor Author

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!

@BratishkaErik
Copy link
Contributor Author

I'll make some changes in wiki too.

@BratishkaErik BratishkaErik deleted the zig-slooted branch March 9, 2023 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. new package The PR is adding a new package.
Projects
None yet
5 participants