Skip to content

Commit

Permalink
Merge staging without python splitting for now
Browse files Browse the repository at this point in the history
The split needs more time to finish rebuilding,
but the rest seems OK and there are security fixes.
  • Loading branch information
vcunat committed Oct 14, 2016
2 parents e0210d7 + 3eec7ea commit 027efec
Show file tree
Hide file tree
Showing 29 changed files with 101 additions and 113 deletions.
9 changes: 4 additions & 5 deletions doc/stdenv.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1231,21 +1231,20 @@ echo @foo@
<term><function>stripHash</function>
<replaceable>path</replaceable></term>
<listitem><para>Strips the directory and hash part of a store
path, storing the name part in the environment variable
<literal>strippedName</literal>. For example:
path, outputting the name part to <literal>stdout</literal>.
For example:

<programlisting>
stripHash "/nix/store/9s9r019176g7cvn2nvcw41gsp862y6b4-coreutils-8.24"
# prints coreutils-8.24
echo $strippedName
stripHash "/nix/store/9s9r019176g7cvn2nvcw41gsp862y6b4-coreutils-8.24"
</programlisting>

If you wish to store the result in another variable, then the
following idiom may be useful:

<programlisting>
name="/nix/store/9s9r019176g7cvn2nvcw41gsp862y6b4-coreutils-8.24"
someVar=$(stripHash $name; echo $strippedName)
someVar=$(stripHash $name)
</programlisting>

</para></listitem>
Expand Down
9 changes: 9 additions & 0 deletions nixos/doc/manual/release-notes/rl-1703.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ following incompatible changes:</para>
but will need to start that process from gdb (so it is a child).
</para>
</listitem>

<listitem>
<para>
The <literal>stripHash</literal> bash function in <literal>stdenv</literal>
changed according to its documentation; it now outputs the stripped name to
<literal>stdout</literal> instead of putting it in the variable
<literal>strippedName</literal>.
</para>
</listitem>
</itemizedlist>


Expand Down
4 changes: 2 additions & 2 deletions nixos/modules/services/networking/ircd-hybrid/builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ for i in $scripts; do
if test "$(echo $i | cut -c1-2)" = "=>"; then
subDir=$(echo $i | cut -c3-)
else
dst=$out/$subDir/$((stripHash $i; echo $strippedName) | sed 's/\.in//')
dst=$out/$subDir/$(stripHash $i | sed 's/\.in//')
doSub $i $dst
chmod +x $dst # !!!
fi
Expand All @@ -23,7 +23,7 @@ for i in $substFiles; do
if test "$(echo $i | cut -c1-2)" = "=>"; then
subDir=$(echo $i | cut -c3-)
else
dst=$out/$subDir/$((stripHash $i; echo $strippedName) | sed 's/\.in//')
dst=$out/$subDir/$(stripHash $i | sed 's/\.in//')
doSub $i $dst
fi
done
Expand Down
3 changes: 1 addition & 2 deletions pkgs/build-support/vm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,7 @@ rec {
# Hacky: RPM looks for <basename>.spec inside the tarball, so
# strip off the hash.
stripHash "$src"
srcName="$strippedName"
srcName="$(stripHash "$src")"
cp "$src" "$srcName" # `ln' doesn't work always work: RPM requires that the file is owned by root
export HOME=/tmp/home
Expand Down
2 changes: 1 addition & 1 deletion pkgs/data/fonts/droid/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ stdenv.mkDerivation rec {
sourceRoot = "./";

unpackCmd = ''
ttfName=$(basename $(stripHash $curSrc; echo $strippedName))
ttfName=$(basename $(stripHash $curSrc))
cp $curSrc ./$ttfName
'';

Expand Down
2 changes: 1 addition & 1 deletion pkgs/data/fonts/roboto-mono/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ stdenv.mkDerivation rec {
sourceRoot = "./";

unpackCmd = ''
ttfName=$(basename $(stripHash $curSrc; echo $strippedName))
ttfName=$(basename $(stripHash $curSrc))
cp $curSrc ./$ttfName
'';

Expand Down
2 changes: 1 addition & 1 deletion pkgs/data/fonts/roboto-slab/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
sourceRoot = "./";

unpackCmd = ''
ttfName=$(basename $(stripHash $curSrc; echo $strippedName))
ttfName=$(basename $(stripHash $curSrc))
cp $curSrc ./$ttfName
'';

Expand Down
3 changes: 1 addition & 2 deletions pkgs/data/sgml+xml/schemas/xml-dtd/docbook-ebnf/builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ source $stdenv/setup
mkdir -p $out/xml/dtd/docbook-ebnf
cd $out/xml/dtd/docbook-ebnf
cp -p $dtd dbebnf.dtd
stripHash $catalog
cp -p $catalog $strippedName
cp -p $catalog $(stripHash $catalog)
4 changes: 2 additions & 2 deletions pkgs/development/libraries/clutter-gst/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

stdenv.mkDerivation rec {
major = "3.0";
minor = "18";
minor = "20";
name = "clutter-gst-${major}.${minor}";

src = fetchurl {
url = "mirror://gnome/sources/clutter-gst/${major}/${name}.tar.xz";
sha256 = "14w0pi9myvcn1yxzmk9sk8dghj17m5ji3aqdpfjikk90c060vv0a";
sha256 = "1jb6q0f6vbh8nskz88siny70pm43wbnw2wzr2klsyb9axn3if0d0";
};

propagatedBuildInputs = [ clutter gtk3 glib cogl ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/clutter-gtk/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

stdenv.mkDerivation rec {
major = "1.8";
minor = "0";
minor = "2";
name = "clutter-gtk-${major}.${minor}";

src = fetchurl {
url = "mirror://gnome/sources/clutter-gtk/${major}/${name}.tar.xz";
sha256 = "07dzvx0b3fsswxnpxgk0adjgccnrvbxsd971naqwndnfivbgjbkl";
sha256 = "da27d486325490ad3f65d2abf9413aeb8b4a8f7b559e4b2f73567a5344a26b94";
};

propagatedBuildInputs = [ clutter gtk3 ];
Expand Down
10 changes: 2 additions & 8 deletions pkgs/development/libraries/fontconfig/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,14 @@ let
configVersion = "2.11"; # bump whenever fontconfig breaks compatibility with older configurations
in
stdenv.mkDerivation rec {
name = "fontconfig-2.11.1";
name = "fontconfig-2.12.1";

src = fetchurl {
url = "http://fontconfig.org/release/${name}.tar.bz2";
sha256 = "16baa4g5lswkyjlyf1h5lwc0zjap7c4d8grw79349a5w6dsl8qnw";
sha256 = "1wy7svvp7df6bjpg1m5vizb3ngd7rhb20vpclv3x3qa71khs6jdl";
};

patches = [
(fetchpatch ({
url = "http://cgit.freedesktop.org/fontconfig/patch/?id=f44157c809d280e2a0ce87fb078fc4b278d24a67";
sha256 = "19s5irclg4irj2yxd7xw9yikbazs9263px8qbv4r21asw06nfalv";
name = "fc-cache-bug-77252.patch";
}
))
(substituteAll {
src = ./config-compat.patch;
inherit configVersion;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/gdk-pixbuf/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
, jasper, libintlOrEmpty, gobjectIntrospection, doCheck ? false }:

let
ver_maj = "2.34";
ver_maj = "2.36";
ver_min = "0";
in
stdenv.mkDerivation rec {
name = "gdk-pixbuf-${ver_maj}.${ver_min}";

src = fetchurl {
url = "mirror://gnome/sources/gdk-pixbuf/${ver_maj}/${name}.tar.xz";
sha256 = "0yc8indbl3hf18z6x6kjg59xp9sngm1d8vmz4c7bs6g27qw5npnm";
sha256 = "85ab52ce9f2c26327141b3dcf21cca3da6a3f8de84b95fa1e727d8871a23245c";
};

outputs = [ "out" "dev" "devdoc" ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/glib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ let
'';

ver_maj = "2.50";
ver_min = "0";
ver_min = "1";
in

stdenv.mkDerivation rec {
name = "glib-${ver_maj}.${ver_min}";

src = fetchurl {
url = "mirror://gnome/sources/glib/${ver_maj}/${name}.tar.xz";
sha256 = "830b551fa626bda06e12729205b3c5bb0d82b924a8cf64d948945878f01b7d70";
sha256 = "2ef87a78f37c1eb5b95f4cc95efd5b66f69afad9c9c0899918d04659cf6df7dd";
};

patches = optional stdenv.isDarwin ./darwin-compilation.patch ++ optional doCheck ./skip-timer-test.patch;
Expand Down
6 changes: 2 additions & 4 deletions pkgs/development/libraries/gtkmm/2.x.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
{ stdenv, fetchurl, pkgconfig, gtk2, glibmm, cairomm, pangomm, atkmm }:

stdenv.mkDerivation rec {
name = "gtkmm-${minVer}.4";
name = "gtkmm-${minVer}.5";
minVer = "2.24";

src = fetchurl {
url = "mirror://gnome/sources/gtkmm/${minVer}/${name}.tar.xz";
sha256 = "1vpmjqv0aqb1ds0xi6nigxnhlr0c74090xzi15b92amlzkrjyfj4";
sha256 = "0680a53b7bf90b4e4bf444d1d89e6df41c777e0bacc96e9c09fc4dd2f5fe6b72";
};

patches = [ ./gtkmm-2.24.4-missing-operator.patch ];

nativeBuildInputs = [pkgconfig];

propagatedBuildInputs = [ glibmm gtk2 atkmm cairomm pangomm ];
Expand Down

This file was deleted.

16 changes: 9 additions & 7 deletions pkgs/development/libraries/gvfs/default.nix
Original file line number Diff line number Diff line change
@@ -1,33 +1,35 @@
{ stdenv, fetchurl, pkgconfig, intltool, libtool
, glib, dbus, udev, libgudev, udisks2, libgcrypt
, glib, dbus, udev, libgudev, udisks2, libgcrypt, libcap, polkit
, libgphoto2, avahi, libarchive, fuse, libcdio
, libxml2, libxslt, docbook_xsl, samba, libmtp
, gnomeSupport ? false, gnome, libgnome_keyring, makeWrapper }:
, gnomeSupport ? false, gnome, makeWrapper }:

let
ver_maj = "1.22";
version = "${ver_maj}.4";
ver_maj = "1.30";
version = "${ver_maj}.1";
in
stdenv.mkDerivation rec {
name = "gvfs-${version}";

src = fetchurl {
url = "mirror://gnome/sources/gvfs/${ver_maj}/${name}.tar.xz";
sha256 = "57e33faad35aba72be3822099856aca847f391626cf3ec734b42e64ba31f6484";
sha256 = "e752e7bb46e64e4025f63428d4f5247e3e5c0d0b5eeb4f81dbf1cd7b75f59d7b";
};

nativeBuildInputs = [ pkgconfig intltool libtool ];

buildInputs =
[ makeWrapper glib dbus udev libgudev udisks2 libgcrypt
libgphoto2 avahi libarchive fuse libcdio
libxml2 libxslt docbook_xsl samba libmtp
libxml2 libxslt docbook_xsl samba libmtp libcap polkit
# ToDo: a ligther version of libsoup to have FTP/HTTP support?
] ++ stdenv.lib.optionals gnomeSupport (with gnome; [
gtk libsoup libgnome_keyring gconf
gtk libsoup libgnome_keyring gconf gcr
# ToDo: not working and probably useless until gnome3 from x-updates
]);

configureFlags = stdenv.lib.optional (!gnomeSupport) "--disable-gcr";

enableParallelBuilding = true;

# ToDo: one probably should specify schemas for samba and others here
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/libdrm/default.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{ stdenv, fetchurl, pkgconfig, libpthreadstubs, libpciaccess, udev, valgrind }:

stdenv.mkDerivation rec {
name = "libdrm-2.4.70";
name = "libdrm-2.4.71";

src = fetchurl {
url = "http://dri.freedesktop.org/libdrm/${name}.tar.bz2";
sha256 = "b17d4b39ed97ca0e4cffa0db06ff609e617bac94646ec38e8e0579d530540e7b";
sha256 = "c66287ddeee5f46ea8f8880b94b80acb3bbc33ba6321d17767eef145046df9b8";
};

outputs = [ "out" "dev" ];
Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/libraries/libsoup/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
, libintlOrEmpty
, intltool, python }:
let
majorVersion = "2.54";
version = "${majorVersion}.1";
majorVersion = "2.56";
version = "${majorVersion}.0";
in
stdenv.mkDerivation {
name = "libsoup-${version}";

src = fetchurl {
url = "mirror://gnome/sources/libsoup/${majorVersion}/libsoup-${version}.tar.xz";
sha256 = "0cyn5pq4xl1gb8413h2p4d5wrn558dc054zhwmk4swrl40ijrd27";
sha256 = "d8216b71de8247bc6f274ec054c08547b2e04369c1f8add713e9350c8ef81fe5";
};

prePatch = ''
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/pangomm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

let
ver_maj = "2.40";
ver_min = "0";
ver_min = "1";
in
stdenv.mkDerivation rec {
name = "pangomm-${ver_maj}.${ver_min}";

src = fetchurl {
url = "mirror://gnome/sources/pangomm/${ver_maj}/${name}.tar.xz";
sha256 = "03fpqdjp7plybf4zsgszbm8yhgl28vmajzfpmaqcsmyfvjlszl3x";
sha256 = "9762ee2a2d5781be6797448d4dd2383ce14907159b30bc12bf6b08e7227be3af";
};

nativeBuildInputs = [ pkgconfig ];
Expand Down
Loading

0 comments on commit 027efec

Please sign in to comment.