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

gdk-pixbuf: move xlib into separate package #88086

Merged
merged 3 commits into from May 25, 2020

Conversation

jtojnar
Copy link
Contributor

@jtojnar jtojnar commented May 18, 2020

Motivation for this change

gdk-pixbuf-xlib library is deprecated and will be removed:

https://mail.gnome.org/archives/desktop-devel-list/2019-November/msg00009.html

#74272

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

* format with nixpkgs-fmt
* reorder the attributes
* replace aliases
* inline pname & version
* add GNOME maintainers
* update homepage from devdocs to repo
It is deprecated and will be removed:

https://mail.gnome.org/archives/desktop-devel-list/2019-November/msg00009.html

Until then, you can use gdk-pixbuf-xlib package.
@jtojnar jtojnar changed the base branch from master to staging May 18, 2020 19:08
@jtojnar jtojnar changed the base branch from staging to master May 18, 2020 19:10
@jtojnar jtojnar changed the base branch from master to staging May 18, 2020 19:10
@jtojnar jtojnar added this to To do in Picking up garbage via automation May 18, 2020
@jtojnar jtojnar moved this from To do to In progress in Picking up garbage May 18, 2020
@ofborg ofborg bot requested a review from edolstra May 18, 2020 19:14
@jtojnar
Copy link
Contributor Author

jtojnar commented May 18, 2020

I suggest we merge this and look for breakage in the next staging cycle. There should not be too many packages depending on this.

Copy link
Contributor

@hedning hedning left a comment

Choose a reason for hiding this comment

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

Sounds good to me.

@jtojnar
Copy link
Contributor Author

jtojnar commented May 25, 2020

@GrahamcOfBorg eval

@ofborg ofborg bot requested a review from hedning May 25, 2020 11:43
@jtojnar jtojnar merged commit 38acc39 into NixOS:staging May 25, 2020
Picking up garbage automation moved this from In progress to Done May 25, 2020
@jtojnar jtojnar deleted the gdk-pixbuf-xlib-drop branch May 25, 2020 11:51
@vcunat
Copy link
Member

vcunat commented Jun 11, 2020

Uh, icewm build broke down completely (channel blocker). I only tried for a while so far, but apparently even multiple changes aren't enough

--- a/pkgs/applications/window-managers/icewm/default.nix
+++ b/pkgs/applications/window-managers/icewm/default.nix
@@ -1,6 +1,6 @@
 { stdenv, fetchFromGitHub, cmake, gettext, perl, asciidoc
 , libjpeg, libtiff, libungif, libpng, imlib, expat
-, freetype, fontconfig, pkgconfig, gdk-pixbuf
+, freetype, fontconfig, pkgconfig, gdk-pixbuf, gdk-pixbuf-xlib, glib
 , mkfontdir, libX11, libXft, libXext, libXinerama
 , libXrandr, libICE, libSM, libXpm, libXdmcp, libxcb
 , libpthreadstubs, pcre, libXdamage, libXcomposite, libXfixes
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
 
   buildInputs = [
     gettext libjpeg libtiff libungif libpng imlib expat
-    freetype fontconfig gdk-pixbuf mkfontdir libX11
+    freetype fontconfig gdk-pixbuf gdk-pixbuf-xlib glib mkfontdir libX11
     libXft libXext libXinerama libXrandr libICE libSM libXpm
     libXdmcp libxcb libpthreadstubs pcre libsndfile fribidi
     libXdamage libXcomposite libXfixes
@@ -30,6 +30,12 @@ stdenv.mkDerivation rec {
 
   cmakeFlags = [ "-DPREFIX=$out" "-DCFGDIR=/etc/icewm" ];
 
+  NIX_CFLAGS_COMPILE = [
+    "-I${stdenv.lib.getDev gdk-pixbuf-xlib}/include/gdk-pixbuf-2.0"
+    "-I${stdenv.lib.getDev gdk-pixbuf     }/include/gdk-pixbuf-2.0"
+    "-I${stdenv.lib.getDev glib           }/include/glib-2.0"
+  ];
+
   # install legacy themes
   postInstall = ''
     cp -r ../lib/themes/{gtk2,Natural,nice,nice2,warp3,warp4,yellowmotif} $out/share/icewm/themes/

@jtojnar
Copy link
Contributor Author

jtojnar commented Jun 11, 2020

It was an issue with the split-out library. Fixed in 4bb1995.

@vcunat
Copy link
Member

vcunat commented Jun 11, 2020

Thanks! I was surprised at first, then I noticed the parent commit :-)

ryneeverett added a commit to ryneeverett/nixpkgs that referenced this pull request Sep 9, 2020
The build has been broken since gdk-pixbuf-xlib was broken out into a
separate package in NixOS#88086.

For some reason if I just add gdk-pixbuf-xlib.dev the headers don't make it
into CFLAGS.
ryneeverett added a commit to ryneeverett/nixpkgs that referenced this pull request Sep 10, 2020
The build has been broken since gdk-pixbuf-xlib was broken out into a
separate package in NixOS#88086.

For some reason if I just add gdk-pixbuf-xlib.dev the headers don't make it
into CFLAGS.

(cherry picked from commit 5b49a74)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants