Skip to content

Support architecture groups#44

Merged
MingcongBai merged 2 commits into
productionfrom
support-archgroups
Apr 6, 2026
Merged

Support architecture groups#44
MingcongBai merged 2 commits into
productionfrom
support-archgroups

Conversation

@Cyanoxygen

Copy link
Copy Markdown
Member

This allows ACBS to read fields like SRCS__RETRO, PKGDEP__RETRO and BUILDDEP__RETRO without defining the names for every architecture belonging to such group.

@what-the-diff

what-the-diff Bot commented Apr 6, 2026

Copy link
Copy Markdown

PR Summary

  • Introduction of a new constant for file path
    Incorporated a new constant, AUTOBUILD_DIR, which will be used as a unified location (/usr/lib/autobuild4/) across our codebase.

  • Implementation of simplified architecture-specific variables retrieval
    Added a new function, get_var_arch, in acbs/parser.py which is aimed to optimize the process of extracting variables specific to different system architectures (kinds). This makes the code cleaner and easier to understand.

  • Enhancements in dependency handling logic
    Updated the way our system handles dependencies, making them reliant on the new function get_var_arch. This change is intended to increase the maintainability of our code.

  • New function for fetching architecture groups
    A new function get_archgroups has been introduced in acbs/utils.py to fetch all defined groups for the host machine, adding to the adaptability of the software.

  • Improved data retrieval and error tracking
    The get_archgroups function now reads a JSON file to get group data, leading to more structured and uniform data handling. Alongside, the function features improved exception handling by logging a warning if fetching the group data fails, which ensures the robustness and stability of our system.

@Cyanoxygen

Cyanoxygen commented Apr 6, 2026

Copy link
Copy Markdown
Member Author

amd64:
image

i486:
image

@Cyanoxygen Cyanoxygen force-pushed the support-archgroups branch from acc5eea to d6edf55 Compare April 6, 2026 12:07
It returns all matching architecture groups, such as:
  retro, 32bit, without_dotnet
A new function is added to simplify the code for reading arch specific
bits, such as SRCS__*, CHKSUMS__*, PKGDEP__* and BUILDDEP__*.

The following order is used:
- PKGDEP__ARCH
- PKGDEP__ARCHGROUPS * N
- PKGDEP
@Cyanoxygen Cyanoxygen force-pushed the support-archgroups branch from d6edf55 to 4488f4d Compare April 6, 2026 12:09
@MingcongBai MingcongBai merged commit 3848cdf into production Apr 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants