#59 Replace dependency ttf-unifont with fonts-unifont on Debian 10+ and Ubuntu 21.04+

Lezárt
megnyitva ekkor: 3 éve happysnake által · 5 hozzászólás
happysnake hozzászólt 3 éve

Problem

sudo make install-dependencies-ubuntu fails on Debian Testing/Bookworm.

Why this happens

Debian is replacing ttf-unifont with fonts-unifont.

In Debian Bullseye (current stable), ttf-unifont is just a dummy package to pull in fonts-unifont. (This appears to be the case for Ubuntu 21.04 as well.)

In Debian Bookworm (current testing), ttf-unifont has apparently been removed altogether.

sudo make install-dependencies-ubuntu tries to install ttf-unifont, causing it to fail on Debian Testing.

Proposed solution

Modify https://notabug.org/libreboot/lbmk/src/master/resources/scripts/build/dependencies/ubuntu2004 to install the correct package.

  • Is there a way to specify to apt "I want package X OR package Y"? If so, specify to install ttf-unifont or fonts-unifont, whichever is available.
  • Check Debian/Ubuntu version and install the correct package accordingly.
  • Add a separate dependencies file for newer Debian/Ubuntu versions.

Sorry for not just submitting a patch. This should be a very simple fix, but I don't know which is the best way to go about it.

Additional information

As of 2021-11-12, I have confirmed that after replacing "ttf-unifont" with "fonts-unifont" in resources/scripts/build/dependencies/ubuntu2004, Libreboot builds successfully on Debian Testing.

## Problem `sudo make install-dependencies-ubuntu` fails on Debian Testing/Bookworm. ## Why this happens Debian is replacing ttf-unifont with fonts-unifont. In Debian Bullseye (current stable), [ttf-unifont](https://packages.debian.org/bullseye/ttf-unifont) is just a dummy package to pull in fonts-unifont. (This appears to be the case for [Ubuntu 21.04](https://packages.ubuntu.com/hirsute/x11/ttf-unifont) as well.) In Debian Bookworm (current testing), ttf-unifont has apparently been removed altogether. `sudo make install-dependencies-ubuntu` tries to install ttf-unifont, causing it to fail on Debian Testing. ## Proposed solution Modify https://notabug.org/libreboot/lbmk/src/master/resources/scripts/build/dependencies/ubuntu2004 to install the correct package. - Is there a way to specify to apt "I want package X **OR** package Y"? If so, specify to install ttf-unifont or fonts-unifont, whichever is available. - Check Debian/Ubuntu version and install the correct package accordingly. - Add a separate dependencies file for newer Debian/Ubuntu versions. Sorry for not just submitting a patch. This should be a very simple fix, but I don't know which is the best way to go about it. ## Additional information As of 2021-11-12, I have confirmed that after replacing "ttf-unifont" with "fonts-unifont" in resources/scripts/build/dependencies/ubuntu2004, Libreboot builds successfully on Debian Testing.
happysnake hozzászólt 3 éve
Bejelentő

(Sorry, I forgot to say that the bullet list in "Proposed solution" is 3 different possible solutions, not 3 parts of the same solution.)

(Sorry, I forgot to say that the bullet list in "Proposed solution" is 3 different possible solutions, not 3 parts of the same solution.)
Leah Rowe hozzászólt 3 éve
Tulajdonos

I prefer: Add a separate dependencies file for newer Debian/Ubuntu versions.

the ubuntu2004 script can just be deleted after ubuntu 20.04 is no longer supported by canonical, or ensuring that lbmk builds on that distro is no longer viable, whichever happens sooner

simply name the new file: debian

please submit a patch

EDIT:

please also update lbwww.git accordingly, on pages that reference the ubuntu2004 script

PS:

i've recently had someone test artix, which is based on arch, so parabola should also be fine

I prefer: Add a separate dependencies file for newer Debian/Ubuntu versions. the ubuntu2004 script can just be deleted after ubuntu 20.04 is no longer supported by canonical, or ensuring that lbmk builds on that distro is no longer viable, whichever happens sooner simply name the new file: debian please submit a patch EDIT: please also update lbwww.git accordingly, on pages that reference the ubuntu2004 script PS: i've recently had someone test artix, which is based on arch, so parabola should also be fine
Leah Rowe hozzászólt 3 éve
Tulajdonos

fixed.

fixed.
vimuser lezárta ekkor: 3 éve
Leah Rowe hozzászólt 3 éve
Tulajdonos

i ended up just doing it myself. thank you for bringing this to my attention

i ended up just doing it myself. thank you for bringing this to my attention
Leah Rowe hozzászólt 3 éve
Tulajdonos

btw

make install-dependencies-debian

this is now a thing. as is:

make install-dependencies-arch

btw make install-dependencies-debian this is now a thing. as is: make install-dependencies-arch
Jelentkezzen be hogy csatlakozhasson a beszélgetéshez.
Nincs címke
Nincs mérföldkő
Nincs megbízott
2 Résztvevő
Töltés...
Mégse
Mentés
Még nincs tartalom.