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

recompile specific packages with aero.py flags #40

Open
YusufKhan-gamedev opened this issue Jan 20, 2022 · 7 comments
Open

recompile specific packages with aero.py flags #40

YusufKhan-gamedev opened this issue Jan 20, 2022 · 7 comments
Labels
T-documentation Improvements or additions to documentation T-question Further information is requested

Comments

@YusufKhan-gamedev
Copy link

There should be an option in aero.py to recompile specific packages, it would allow broken packages to be repaired faster.

@48cf
Copy link
Collaborator

48cf commented Jan 20, 2022

There is a script in tools directory called rebuild-sysroot.sh which allows to rebuild a package, it will remove all the sources and binaries from that package, clone it, patch it and build it all over. If you want to rebuild the package from the source that's in the bundled directory you can do this in the sysroot directory instead (substitute $PACKAGE with the actual package name):

rm -rf pkg-builds/$PACKAGE
rm -rf packages/$PACKAGE
xbstrap install $PACKAGE

@Andy-Python-Programmer Andy-Python-Programmer added T-documentation Improvements or additions to documentation T-question Further information is requested labels Jan 21, 2022
@YusufKhan-gamedev
Copy link
Author

YusufKhan-gamedev commented Jan 22, 2022

There is a script in tools directory called rebuild-sysroot.sh which allows to rebuild a package, it will remove all the sources and binaries from that package, clone it, patch it and build it all over. If you want to rebuild the package from the source that's in the bundled directory you can do this in the sysroot directory instead (substitute $PACKAGE with the actual package name):

rm -rf pkg-builds/$PACKAGE
rm -rf packages/$PACKAGE
xbstrap install $PACKAGE

This should be integrated into aero.py, thats why I put a issue up.

@Dennisbonke
Copy link

Isn't aero.py a wrapper already? And for good measure, one only has to do xbstrap install --recon $PACKAGE and it will reconfigure, rebuild and reinstall the package.

@48cf
Copy link
Collaborator

48cf commented Jan 22, 2022

Isn't aero.py a wrapper already? And for good measure, one only has to do xbstrap install --recon $PACKAGE and it will reconfigure, rebuild and reinstall the package.

We don’t shell out for xbstrap, though I’ll still look into that since it looks like xbstrap is capable of that

@YusufKhan-gamedev
Copy link
Author

Isn't aero.py a wrapper already? And for good measure, one only has to do xbstrap install --recon $PACKAGE and it will reconfigure, rebuild and reinstall the package.

We don’t shell out for xbstrap, though I’ll still look into that since it looks like xbstrap is capable of that

Anyway, we need to remove the code in uwux/bundled/

@Andy-Python-Programmer
Copy link
Owner

what

@YusufKhan-gamedev
Copy link
Author

what

You need to remove the source in aero/bundled/xxxxx as well when restoring a package just in case the source got corrupted when downloading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-documentation Improvements or additions to documentation T-question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants