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

feat(24.04): add less #484

Merged
merged 8 commits into from
Feb 13, 2025
Merged

Conversation

zhijie-yang
Copy link
Collaborator

Proposed changes

Add less

Related issues/PRs

Dependent by #331

Forward porting

Will open once approved.

Checklist

Copy link

github-actions bot commented Feb 5, 2025

Diff of dependencies:
None found.


Copy link

@clay-lake clay-lake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good except the scripts slice.

Copy link

@clay-lake clay-lake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed in 1:1, Looks good to me! 👍

@clay-lake clay-lake marked this pull request as ready for review February 5, 2025 15:20
@norrisjeremy
Copy link

norrisjeremy commented Feb 10, 2025

Hi @zhijie-yang,

We also put together PRs independently to add less to 24.04 & 24.10 (see #486 & #487).
Our versions also include more extensive integration tests, and also includes SDFs for terminfo data needed to make less actually functional.
How would you like to proceed?

Thanks,
Jeremy

@zhijie-yang
Copy link
Collaborator Author

Hi @norrisjeremy ,

Yes, we are pushing this for Ubuntu 24.04 now. However, for less, the scripts in the package contain many unlisted dependencies (if you read the script), which makes writing the tests cumbersome. We are leaning a bit towards holding the _scripts slices back as comments since they are just "scripts" combined with other commands, and the binaries are still the major components of this package. If you have a specific use case for the scripts, please point it out, and we can find a way to add proper tests for them. There are some reviews pending for this PR now. Once this once gets merged, we can continues on the other slices that depends on less (e.g., gzip.)

@norrisjeremy
Copy link

Hi @zhijie-yang,

We don't feel strongly about the scripts slice, so those can be left out.
However, have you actually tested that the less utility itself works?
We found that we needed to create an SDF for ncurses-base to get basic terminfo definitions in place in order for it to actually function (which we also included in our PRs).
We also constructed a simple integration test for less itself.
I'm not sure if you want to incorporate those pieces from our PRs?

Thanks,
Jeremy

zhijie-yang and others added 2 commits February 13, 2025 14:38
Co-authored-by: Rafid Bin Mostofa <rafid.mostofa@canonical.com>
Copy link
Member

@rebornplusplus rebornplusplus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Let's merge this first, and @norrisjeremy @eunufe, if you guys want to include the scripts slices in #486, then we might need to add some more package slices. Because, the script invokes quite a number of binaries not from this package. Let us know what you think!

@rebornplusplus rebornplusplus merged commit 97dc9cd into canonical:ubuntu-24.04 Feb 13, 2025
14 checks passed
@zhijie-yang zhijie-yang mentioned this pull request Feb 13, 2025
3 tasks
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.

5 participants