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

testdisk: Add missing ncurses-base dependency #28377

Closed
wants to merge 1 commit into from

Conversation

jarda-wien
Copy link

General

Have the results of the proposed changes been tested?

  • I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
  • [x ] I generally don't use the affected packages but briefly tested this PR

@jarda-wien
Copy link
Author

I get this error message without the ncurses package installed:

testdisk
TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
Terminfo file is missing.
Extract all files and subdirectories before running the program.
Press Enter key to quit.

@jarda-wien
Copy link
Author

I am not sure what to do about the xlint failure as this is probably my first contribution and the proposed changes are only minor.

@folliehiyuki
Copy link
Contributor

folliehiyuki commented Feb 1, 2021

You can change the license to license="GPL-2.0-or-later"

@jarda-wien
Copy link
Author

You can change the license to license="GPL-2.0-or-later"

done, thanks

@Duncaen
Copy link
Member

Duncaen commented Feb 1, 2021

The consensus is that packages shouldn't depend on ncurses-base, packages use some terminfo that can't be expressed as dependency as it depends on your TERM variable. Generally ncurses-base should be installed as part of the base system i.e. the base-system metapackage, it's deliberately not part of base-minimal as it would increase container sizes. If we would start to add ncurses-base to everything that might need it, we would effectively add it to base-minimal as i.e. util-linux's cfdisk "depends" on terminfo descriptions.

@jarda-wien
Copy link
Author

The consensus is that packages shouldn't depend on ncurses-base, packages use some terminfo that can't be expressed as dependency as it depends on your TERM variable. Generally ncurses-base should be installed as part of the base system i.e. the base-system metapackage, it's deliberately not part of base-minimal as it would increase container sizes. If we would start to add ncurses-base to everything that might need it, we would effectively add it to base-minimal as i.e. util-linux's cfdisk "depends" on terminfo descriptions.

My main use case for the testdisk package was having it in a minimal docker container, so I didn't have "base-system" installed. While I understand the reasoning behind the consensus, I am not sure if we have any means of at least warning the user that something is missing. Being mostly on archlinux systems, I am not very seasoned in metadata fields provided by void packages. I tried googling something like optional dependecies and came across this.

Please point me to some preferred possibility of informing the user that something is missing in the current environment. If there is no such tool available, I guess you can reject this PR and keep things the way they are.

@sgn
Copy link
Member

sgn commented Feb 1, 2021

For all normal user, they should use base-system. base-system is the package which users are told to install in void-docs.
IMO, anyone that choose to not install base-system should have enough experience to know what's missing.

@sgn sgn closed this Feb 2, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants