aero icon indicating copy to clipboard operation
aero copied to clipboard

recompile specific packages with aero.py flags

Open YusufKhan-gamedev opened this issue 2 years ago • 7 comments

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

YusufKhan-gamedev avatar Jan 20 '22 07:01 YusufKhan-gamedev

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

48cf avatar Jan 20 '22 07:01 48cf

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.

YusufKhan-gamedev avatar Jan 22 '22 01:01 YusufKhan-gamedev

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.

Dennisbonke avatar Jan 22 '22 01:01 Dennisbonke

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

48cf avatar Jan 22 '22 07:01 48cf

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/

YusufKhan-gamedev avatar Jan 23 '22 09:01 YusufKhan-gamedev

what

Andy-Python-Programmer avatar Jan 23 '22 09:01 Andy-Python-Programmer

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

YusufKhan-gamedev avatar Jan 27 '22 07:01 YusufKhan-gamedev