Skip to content

recompile specific packages with aero.py flags #40

Open

Description

@YusufKhan-gamedev

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

Activity

  1. 48cf commented on Jan 20, 2022

    @48cf
    Collaborator

    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
  2. YusufKhan-gamedev commented on Jan 22, 2022

    @YusufKhan-gamedev
    Author

    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.

  3. Dennisbonke commented on Jan 22, 2022

    @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.

  4. 48cf commented on Jan 22, 2022

    @48cf
    Collaborator

    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

  5. YusufKhan-gamedev commented on Jan 23, 2022

    @YusufKhan-gamedev
    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/

  6. Andy-Python-Programmer commented on Jan 23, 2022

    @Andy-Python-Programmer
    Owner

    what

  7. YusufKhan-gamedev commented on Jan 27, 2022

    @YusufKhan-gamedev
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-documentationImprovements or additions to documentationT-questionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions