[Nix-dev] chrome broken by libpng upgrade

Arie Middelkoop amiddelk at gmail.com
Wed Mar 7 13:03:36 CET 2012


I've an update of the chrome expression here. The current version is 
more than a year old. I'll commit this at some point soon:

> Index: /etc/nixos/nixpkgs/pkgs/applications/networking/browsers/chromium/default.nix
> ===================================================================
> --- /etc/nixos/nixpkgs/pkgs/applications/networking/browsers/chromium/default.nix       (revision 32848)
> +++ /etc/nixos/nixpkgs/pkgs/applications/networking/browsers/chromium/default.nix       (working copy)
> @@ -1,29 +1,29 @@
>  { GConf, alsaLib, bzip2, cairo, cups, dbus, dbus_glib, expat
>  , fetchurl, ffmpeg, fontconfig, freetype, gtkLibs, libX11, libXfixes
> -, libXScrnSaver, libXdamage, libXext, libXrender, libXt, libXtst
> +, libXScrnSaver, libXdamage, libXext, libXrender, libXt, libXtst, libXcomposite
>  , libgcrypt, libjpeg, libpng, makeWrapper, nspr, nss, patchelf
> -, stdenv, unzip, zlib, pam, pcre }:
> +, stdenv, unzip, zlib, pam, pcre, udev }:
>
>  assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux" ;
>
>  stdenv.mkDerivation rec {
> -  name = "chromium-18.0.975.0-pre${version}";
> +  name = "chromium-19.0.1061.0-pre${version}";
>
>    # To determine the latest revision, get
>    # ‘http://commondatastorage.googleapis.com/chromium-browser-continuous/Linux/LAST_CHANGE’.
>    # For the version number, see ‘about:version’.
> -  version = "114925";
> +  version = "124950";
>
>    src =
>      if stdenv.system == "x86_64-linux" then
>        fetchurl {
>          url = "http://commondatastorage.googleapis.com/chromium-browser-continuous/Linux_x64/${version}/chrome-linux.zip";
> -        sha256 = "19ayrcz1vw7nqr3bbas5f414n3kibf7knd285azrk29f7a7dnpd6";
> +        sha256 = "4472bf584a96e477e2c17f96d4452dd41f4f34ac3d6a9bb4c845cf15d8db0c73";
>        }
>      else if stdenv.system == "i686-linux" then
>        fetchurl {
>          url = "http://commondatastorage.googleapis.com/chromium-browser-continuous/Linux/${version}/chrome-linux.zip";
> -        sha256 = "1bhcd3plw3r62bfysc9nszn07xv3gamf5lkwd6ardwyxanclc7x6";
> +        sha256 = "6e8a49d9917ee26b67d14cd10b85711c3b9382864197ba02b3cfe8e636d3d69c";
>        }
>      else throw "Chromium is not supported on this platform.";
>
> @@ -34,11 +34,11 @@
>    libPath =
>      stdenv.lib.makeLibraryPath
>         [ GConf alsaLib bzip2 cairo cups dbus dbus_glib expat
> -         ffmpeg fontconfig freetype libX11 libXScrnSaver libXfixes
> +         ffmpeg fontconfig freetype libX11 libXScrnSaver libXfixes libXcomposite
>           libXdamage libXext libXrender libXt libXtst libgcrypt libjpeg
>           libpng nspr stdenv.gcc.gcc zlib stdenv.gcc.libc
>           gtkLibs.glib gtkLibs.gtk gtkLibs.gdk_pixbuf gtkLibs.pango
> -         pam
> +         pam udev
>         ];
>
>    installPhase = ''

Arie

On 05-03-12 07:47, Mathijs Kwik wrote:
> On Mon, Mar 5, 2012 at 6:03 AM, Yury G.  Kudryashov
> <urkud.urkud at gmail.com>  wrote:
>> Mathijs Kwik wrote:
>>
>>> Hi all,
>>>
>>> Today's merge of the libpng upgrade branch broke my browser (chrome).
>>>
>>> /nix/store/iczjj9rwgp91nqkykpb0gi3khiw4xf99-chromium-18.0.975.0-
>> pre114925/libexec/chrome/chrome:
>>> error while loading shared libraries: libpng12.so.0: cannot open shared
>>> object file: No such file or directory
>> Possible fixes:
>> * pass "libpng = pkgs.libpng12" to chrome in all-packages.nix;
>
> This one worked, committed
>
>> * start building chromium from sources instead of downloading a binary.
>
> I might look into this one someday soonish.
> Building from sources has my preference when they are available.
> But I'm afraid chrome uses a lot of dlopen at runtime and other nasty tricks :)
>
> Thanks for your help,
> Mathijs
>
>> --
>> Yury G. Kudryashov,
>> mailto: urkud at mccme.ru
>>
>> _______________________________________________
>> nix-dev mailing list
>> nix-dev at lists.science.uu.nl
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev



More information about the nix-dev mailing list