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

[WIP] Chromium OS fork's Portage Ebuild changes #2704

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Commits on Aug 4, 2023

  1. Configuration menu
    Copy the full SHA
    e3d8483 View commit details
    Browse the repository at this point in the history
  2. New IO interface to scan for Gentoo eclass vars

    Uses the `portageq` command to scan for repositories, which in turn are
    scanned for eclasses, which are then scanned for eclass variables.
    
    The variables are scanned using a heuristic which looks for
    
        "# @ECLASS_VARIABLE: "
    
    at the start of each line, which means only properly documented
    variables will be found.
    
    Signed-off-by: hololeap <hololeap@users.noreply.github.com>
    hololeap committed Aug 4, 2023
    Configuration menu
    Copy the full SHA
    08ae7ef View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2023

  1. Scan for Gentoo eclass variables

    Creates a Map of eclass names to eclass variables by scanning the
    system for repositories and their respective eclasses. Runs `portageq`
    to determine repository names and locations. Emits a warning if an
    IOException is caught when attempting to run `portageq`.
    
    This Map is passed via CheckSpec to AnalysisSpec and finally to
    Parameters, where it is read by `checkUnusedAssignments` in order to
    determine which variables can be safely ignored by this check.
    
    Signed-off-by: hololeap <hololeap@users.noreply.github.com>
    hololeap committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    272ef81 View commit details
    Browse the repository at this point in the history
  2. Remove PortageAutoInternalVariables and python

    The Gentoo eclass list is now populated using pure Haskell. The old
    python generators and generated module are no longer needed.
    
    Signed-off-by: hololeap <hololeap@users.noreply.github.com>
    hololeap committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    fc9b63f View commit details
    Browse the repository at this point in the history
  3. Switch to attoparsec for gentoo scan

    Signed-off-by: hololeap <hololeap@users.noreply.github.com>
    hololeap committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    dfa920c View commit details
    Browse the repository at this point in the history