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

check-requirements: Cairo and DejaVu Fonts #295

Open
max-moser opened this issue May 31, 2022 · 3 comments
Open

check-requirements: Cairo and DejaVu Fonts #295

max-moser opened this issue May 31, 2022 · 3 comments

Comments

@max-moser
Copy link
Contributor

Is your feature request related to a problem? Please describe.

According to the InvenioRDM documentation, Cairo (e.g. libcairo2-dev) and the DejaVu fonts (e.g. fonts-dejavu) are required for a local installation.
However, they are not checked by the invenio-cli check-requirements -d command.
Because this does not produce immediately obvious errors, it is somewhat easy to miss them.

Describe the solution you'd like

The check-requirements command should check if the fonts and Cairo are installed.

Describe alternatives you've considered

Because checking for the installation of fonts and libraries is harder than simply checking for executables, the check-requirements command could also simply give out a reminder about these requirements (e.g. in yellow text).

@avivace
Copy link
Member

avivace commented Jun 29, 2022

I agree this should be notified in some way to the user, but IMO a persistent message printed by check-requirements will just be additional noise.

fc-list should be quite standard on both linux and macos.

@max-moser
Copy link
Contributor Author

nice, i didn't know that this command existed!
ldconfig -p could maybe help with libcairo, but i don't have a mac to verify it would work there

@avivace
Copy link
Member

avivace commented Jun 30, 2022

ldconfig -p

@max-moser ldconfig doesn't work on macos, I think the equivalent is update_dyld_shared_cache but requires a reboot

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

No branches or pull requests

2 participants