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

refactor: use stubs for gdk-pixbuf dependency #34077

Merged
merged 7 commits into from Jun 20, 2022

Conversation

rzhao271
Copy link
Contributor

@rzhao271 rzhao271 commented May 4, 2022

Description of Change

Fixes #34060

While adding automatic dependency generation for Debian packages in VS Code (microsoft/vscode#147335), I learned that Electron statically links to libgdk-pixbuf. But, on some versions of Ubuntu, the package is called libgdk-pixbuf-2.0-0, and on other versions, it's called libgdk-pixbuf2.0-0. Therefore, Electron should dynamically look for libgdk-pixbuf rather than statically link to the package, since its name varies depending on the Linux distro version.

This PR is based on #33650, which does something similar for libgtk in Electron.
Also, Chromium has already done something similar for their dependency on libgdk_pixbuf: https://source.chromium.org/chromium/chromium/src/+/3a5f2968e096ebe1faeb156510193e87f07980c9

CC @deepak1556

Checklist

Release Notes

Notes: On Linux, changed the libgdk-pixbuf dependency to be dynamically linked rather than statically linked.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label May 4, 2022
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label May 11, 2022
@rzhao271 rzhao271 force-pushed the rzhao271/gdk-pixbuf-refactor branch from 4f1c058 to 6ae52e8 Compare June 13, 2022 22:11
@rzhao271 rzhao271 marked this pull request as ready for review June 14, 2022 19:23
@rzhao271 rzhao271 requested review from a team as code owners June 15, 2022 18:23
@trop
Copy link
Contributor

trop bot commented Jun 16, 2022

@rzhao271 has manually backported this PR to "18-x-y", please check out #34601

Copy link
Member

@nornagon nornagon left a comment

Choose a reason for hiding this comment

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

seems legit

@trop
Copy link
Contributor

trop bot commented Jun 16, 2022

@rzhao271 has manually backported this PR to "19-x-y", please check out #34602

@deepak1556
Copy link
Member

Failing tests are unrelated #34575, merging.

@deepak1556 deepak1556 merged commit 999a225 into electron:main Jun 20, 2022
@release-clerk
Copy link

release-clerk bot commented Jun 20, 2022

Release Notes Persisted

On Linux, changed the libgdk-pixbuf dependency to be dynamically linked rather than statically linked.

@trop
Copy link
Contributor

trop bot commented Jun 20, 2022

I have automatically backported this PR to "20-x-y", please check out #34635

khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
* refactor: use stubs for gdk-pixbuf dependency

* Adjust build file

* Add includes

* Merge gdk_pixbuf stubs into gtk stubs

* Split pixbuf sigs into own file again

* Add initialization check

* Apply PR feedback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: libgdk-pixbuf library is not dynamically linked
3 participants