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

Feature request: parallel package building #28711

Closed
RossComputerGuy opened this issue Feb 12, 2021 · 4 comments
Closed

Feature request: parallel package building #28711

RossComputerGuy opened this issue Feb 12, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@RossComputerGuy
Copy link
Contributor

I've noticed xbps-src has no parallel package building. I think it would be beneficial to support a method to build packages in parallel instead of sequentially. This with parallel compiling and distcc could bring compile times down by a lot on large packages when multiple packages are rebuilt. Maybe a -pJ flag (package-jobs) would set how many packages to build at once. Since xbps-src is written as a shell script, there's most likely a way to figure this out.

@ericonr ericonr added the enhancement New feature or request label Feb 12, 2021
@ericonr
Copy link
Member

ericonr commented Feb 12, 2021

Sticking this inside xbps-src doesn't really make sense to me. There's a lot of complexity and decisions to take on how to build packages in parallel: overlays with the same masterdir or multiple masterdirs? How to control/monitor all the jobs? And others.

Imo, writing something that can drive xbps-src is more feasible and more flexible. Could be an extension of xbulk or maybe (and probably better) something based on what already runs in the official builders.

@RossComputerGuy
Copy link
Contributor Author

I think implementing this into xbulk would be the best. Then the flag can be -j.

@the-maldridge
Copy link
Member

xbulk can do this today, and other projects are focused on doing this on distributed fleets. Closing as out of scope but feel free to continue the discussion.

@RossComputerGuy
Copy link
Contributor Author

I couldn't find other projects that does this with xbps-src, I don't know if they just don't exist or DuckDuckGo is having a hard time finding them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants