Andy-Python-Programmer / aero

Aero is a new modern, experimental, UNIX-like operating system following the monolithic kernel design. Supporting modern PC features such as long mode, 5-level paging, and SMP (multicore), to name a few.

Home Page:https://aero.andypy.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

recompile specific packages with aero.py flags

YusufKhan-gamedev opened this issue · comments

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

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

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.

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.

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

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/

what

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