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

Overwrite a debian package using dpkg-prebuilt #571

Open
SCordibella opened this issue Dec 17, 2024 · 1 comment
Open

Overwrite a debian package using dpkg-prebuilt #571

SCordibella opened this issue Dec 17, 2024 · 1 comment

Comments

@SCordibella
Copy link

SCordibella commented Dec 17, 2024

Dear All, I am trying to update a package called wkhtml2pdf because the Debian 12 version doesn't work as I need and there is a version that works as expected published in deb format.

My problem is that I am not able to overwrite the "debian" version of the package.

I create a recipe called wkhtmltopdf and here is the simple content:

inherit dpkg-prebuilt

SRC_URI = "https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-3/wkhtmltox_0.12.6.1-3.bookworm_arm64.deb"
SRC_URI[sha256sum] = "b6606157b27c13e044d0abbe670301f88de4e1782afca4f9c06a5817f3e03a9c"

PV="0.12.6.1-3"

# Only needed if recipe name != package name, as in this case. Or multiple
# packages are provided by a single recipe.
PROVIDES += "wkhtmltopdf"

I change the package inclusion from IMAGE_PREINSTALL to IMAGE_INSTALL, finally I try to force "my" package with this:

local_conf_header:
  fix-wkhtmltopdf-version:
    PREFERRED_VERSION_wkhtmltopdf = "0.12.6.1-3"

Am I missing something?

Thank you for your help,
Stefano.

@jan-kiszka
Copy link
Collaborator

You probably need to replace IMAGE_PREINSTALL += "wkhtmltopdf" with IMAGE_INSTALL += "wkhtmltox", provided that prebuilt wkhtmltox is actually the same as Debian's wkhtmltopdf.

But what would be better and more sustainable is to work with Debian to update to official package to 0.12.6.1.

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