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

pacman: Build with PrettyProgressBar #377

Merged
merged 2 commits into from
Oct 10, 2024

Conversation

1Naim
Copy link
Member

@1Naim 1Naim commented Oct 9, 2024

Builds pacman with PrettyProgressBar functionality. This option, when enabled, will render the progress bar using
specifing unicode characters so it looks "pretty". It is disabled by default for compatibility reasons (some terminals
cannot render unicode characters nicely, and not all fonts have those specific unicode characters).

Currently, I have just flipped ``$_staging` to true for easy disabling of the patch, but this may change later.

To complement PrettyProgressBar enablement in pacman. I have also added pacutils package that adds PrettyProgressBar as a valid config option so it doesn't spam warnings.

@1Naim 1Naim requested a review from vnepogodin October 9, 2024 10:12
@1Naim 1Naim force-pushed the feat/pacutils-prettyprogressbar branch from 897a9fd to def37fb Compare October 9, 2024 10:16
@1Naim 1Naim changed the title pacman Build with PrettyProgressBar pacman: Build with PrettyProgressBar Oct 9, 2024
@1Naim 1Naim force-pushed the feat/pacutils-prettyprogressbar branch from def37fb to 032ed7d Compare October 9, 2024 10:19
@vnepogodin
Copy link
Member

we use staging flag for building against staging branch. Currently its the same and doesnt build from staging.

Regarding patch the "disabling" of it can be done via commenting it out, because its automatically patched if present in source array

The pacman PKGBUILD we provide has a patch that enables a unicode progress bar when built with the
necessary options. When used with upstream pacutils however, pacconf will print out warnings about
"PrettyProgressBar" config option not existing because of the way it parses configs manually.

For QoL reasons, I have made a patch to add that config option to pacconf directly so it doesn't complain
when used with PrettyProgressBar'ed pacman

Signed-off-by: Eric Naim <[email protected]>
Builds pacman with PrettyProgressBar functionality. This option, when enabled, will render the progress bar using
specifing unicode characters so it looks "pretty". It is disabled by default for compatibility reasons (some terminals
cannot render unicode characters nicely, and not all fonts have those specific unicode characters). I've moved relevant
patch to the main source array to facilitate this change.

Signed-off-by: Eric Naim <[email protected]>
@1Naim 1Naim force-pushed the feat/pacutils-prettyprogressbar branch from 032ed7d to fa1f66c Compare October 9, 2024 10:55
@1Naim
Copy link
Member Author

1Naim commented Oct 9, 2024

Regarding patch the "disabling" of it can be done via commenting it out, because its automatically patched if present in source array

That's a good point. I also wasn't aware about building from staging part as that wasn't apparent with the current state of the PKGBUILD. I've updated the PR accordingly tho, thanks for the pointers ^^

@vnepogodin vnepogodin merged commit d2ebcb9 into master Oct 10, 2024
@vnepogodin vnepogodin deleted the feat/pacutils-prettyprogressbar branch October 10, 2024 16:24
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