Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
f5c3c16
qemu: 8.0.0 -> 8.0.2
alyssais Jun 6, 2023
48c670a
cups: 2.4.2 -> 2.4.5
onny Jun 16, 2023
d8ff95e
dbus: 1.14.6 -> 1.14.8
r-ryantm Jun 9, 2023
303e281
Merge staging-next-23.05 into staging-23.05
github-actions[bot] Jun 28, 2023
a9d9368
Merge staging-next-23.05 into staging-23.05
github-actions[bot] Jun 29, 2023
25f55e6
Merge staging-next-23.05 into staging-23.05
github-actions[bot] Jun 30, 2023
d249a3b
tpm2-tss: fix CVE-2023-22745
baloo Jun 30, 2023
a57a09b
Merge staging-next-23.05 into staging-23.05
github-actions[bot] Jul 1, 2023
b422c6c
Merge pull request #240750 from baloo/baloo/release-23.05/tpm2-tss/CV…
RaitoBezarius Jul 1, 2023
8b1a1c6
Merge staging-next-23.05 into staging-23.05
github-actions[bot] Jul 2, 2023
bf9b9a7
libwebp: 1.3.0 -> 1.3.1
ajs124 Jul 1, 2023
791ac4a
Merge pull request #241036 from NixOS/backport-240893-to-staging-23.05
ajs124 Jul 2, 2023
9995344
Merge staging-next-23.05 into staging-23.05
github-actions[bot] Jul 3, 2023
2609383
Merge staging-next-23.05 into staging-23.05
github-actions[bot] Jul 4, 2023
8631967
Merge staging-next-23.05 into staging-23.05
github-actions[bot] Jul 5, 2023
f7faab9
Merge release-23.05 into staging-next-23.05
github-actions[bot] Jul 6, 2023
e5694a9
Merge staging-next-23.05 into staging-23.05
github-actions[bot] Jul 6, 2023
d304a6d
python310Packages.django_3: 3.2.19 -> 3.2.20
mweinelt Jul 3, 2023
187869d
Merge pull request #241918 from NixOS/backport-241270-to-staging-23.05
mweinelt Jul 6, 2023
b8c57a2
Merge release-23.05 into staging-next-23.05
github-actions[bot] Jul 7, 2023
adb2c6d
Merge staging-next-23.05 into staging-23.05
github-actions[bot] Jul 7, 2023
ef7b01c
Merge release-23.05 into staging-next-23.05
github-actions[bot] Jul 8, 2023
456f30a
Merge staging-next-23.05 into staging-23.05
github-actions[bot] Jul 8, 2023
ee8e97f
Merge release-23.05 into staging-next-23.05
github-actions[bot] Jul 9, 2023
a0a7528
Merge staging-next-23.05 into staging-23.05
github-actions[bot] Jul 9, 2023
1c0cdbf
Merge #236738: qemu: 8.0.0 -> 8.0.2
vcunat Jul 9, 2023
e510d7e
Merge #239101: dbus: 1.14.6 -> 1.14.8
vcunat Jul 9, 2023
7cfe8b2
Merge #238068: cups: 2.4.2 -> 2.4.5
vcunat Jul 9, 2023
d285e33
cups: 2.4.5 -> 2.4.6
r-ryantm Jul 1, 2023
32aed3c
Merge release-23.05 into staging-next-23.05
github-actions[bot] Jul 10, 2023
fce3a16
Merge staging-next-23.05 into staging-23.05
github-actions[bot] Jul 10, 2023
584ab94
fluidsynth: Fix CMake config
OPNA2608 Jul 10, 2023
664c0fe
Merge pull request #242687 from NixOS/backport-242657-to-staging-23.05
trofi Jul 10, 2023
7426dc5
Merge release-23.05 into staging-next-23.05
github-actions[bot] Jul 11, 2023
df6d9c9
Merge staging-next-23.05 into staging-23.05
github-actions[bot] Jul 11, 2023
5960c75
libde265: 1.0.11 -> 1.0.12
NickCao Jun 30, 2023
01c7566
Merge pull request #242759 from NixOS/backport-240653-to-staging-23.05
NickCao Jul 11, 2023
fc8e48a
Merge release-23.05 into staging-next-23.05
github-actions[bot] Jul 12, 2023
b4cda54
Merge staging-next-23.05 into staging-23.05
github-actions[bot] Jul 12, 2023
5f9c358
Merge release-23.05 into staging-next-23.05
github-actions[bot] Jul 13, 2023
39b1eab
Merge staging-next-23.05 into staging-23.05
github-actions[bot] Jul 13, 2023
e5a213c
go_1_20: 1.20.5 -> 1.20.6
zowoq Jul 11, 2023
85b655b
Merge #242477: cups: 2.4.5 -> 2.4.6
vcunat Jul 13, 2023
3e3caca
cups: fix build on darwin
wegank Jun 2, 2023
292c6df
Merge #243207: go_1_20: 1.20.5 -> 1.20.6
vcunat Jul 13, 2023
51517d6
Merge branch 'staging-23.05' into staging-next-23.05
vcunat Jul 13, 2023
7f2f975
Merge release-23.05 into staging-next-23.05
github-actions[bot] Jul 14, 2023
f164332
Merge staging-next-23.05 into staging-23.05
github-actions[bot] Jul 14, 2023
c05ddc6
libwebp: revert the .pc changes from 1.3.1
vcunat Jul 14, 2023
da725b1
Merge release-23.05 into staging-next-23.05
github-actions[bot] Jul 15, 2023
d5eafd0
Merge staging-next-23.05 into staging-23.05
github-actions[bot] Jul 15, 2023
6a0d898
ghostscript: 10.01.1 -> 10.01.2
Jul 13, 2023
0cc658c
Merge #243589: ghostscript: 10.01.1 -> 10.01.2
vcunat Jul 15, 2023
e91c756
Merge release-23.05 into staging-next-23.05
github-actions[bot] Jul 16, 2023
4214654
Merge release-23.05 into staging-next-23.05
github-actions[bot] Jul 17, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions pkgs/applications/audio/fluidsynth/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, lib, fetchFromGitHub, buildPackages, pkg-config, cmake
{ stdenv, lib, fetchFromGitHub, fetchpatch, buildPackages, pkg-config, cmake
, alsa-lib, glib, libjack2, libsndfile, libpulseaudio
, AppKit, AudioUnit, CoreAudio, CoreMIDI, CoreServices
}:
Expand All @@ -14,6 +14,16 @@ stdenv.mkDerivation rec {
sha256 = "sha256-BSJu3jB7b5G2ThXBUHUNnBGl55EXe3nIzdBdgfOWDSM=";
};

patches = [
# Fixes bad CMAKE_INSTALL_PREFIX + CMAKE_INSTALL_LIBDIR concatenation for Darwin install name dir
# Remove when PR merged & in release
(fetchpatch {
name = "0001-Fix-incorrect-way-of-turning-CMAKE_INSTALL_LIBDIR-absolute.patch";
url = "https://github.com/FluidSynth/fluidsynth/pull/1261/commits/03cd38dd909fc24aa39553d869afbb4024416de8.patch";
hash = "sha256-nV+MbFttnbNBO4zWnPLpnnEuoiESkV9BGFlUS9tQQfk=";
})
];

outputs = [ "out" "dev" "man" ];

nativeBuildInputs = [ buildPackages.stdenv.cc pkg-config cmake ];
Expand All @@ -24,8 +34,6 @@ stdenv.mkDerivation rec {

cmakeFlags = [
"-Denable-framework=off"
# set CMAKE_INSTALL_NAME_DIR to correct value on darwin
"-DCMAKE_INSTALL_LIBDIR=lib"
];

meta = with lib; {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/virtualization/qemu/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ stdenv.mkDerivation rec {
+ lib.optionalString xenSupport "-xen"
+ lib.optionalString hostCpuOnly "-host-cpu-only"
+ lib.optionalString nixosTestRunner "-for-vm-tests";
version = "8.0.0";
version = "8.0.2";

src = fetchurl {
url = "https://download.qemu.org/qemu-${version}.tar.xz";
sha256 = "u2DwNBUxGB1sw5ad0ZoBPQQnqH+RgZOXDZrbkRMeVtA=";
sha256 = "8GCr1DX75nlBJeLDmFaP/Dz6VABCWWkHqLGO3KNM9qU=";
};

depsBuildBuild = [ buildPackages.stdenv.cc ]
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/compilers/go/1.20.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ let
in
stdenv.mkDerivation rec {
pname = "go";
version = "1.20.5";
version = "1.20.6";

src = fetchurl {
url = "https://go.dev/dl/go${version}.src.tar.gz";
hash = "sha256-mhXBM7os+v55ZS9IFbYufPwmf2jfG5RUxqsqPKi5aog=";
hash = "sha256-Yu5bxvtVuLro9wXgy434bWRTYmtOz5MnnihnCS4Lf3A=";
};

strictDeps = true;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/dbus/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@

stdenv.mkDerivation rec {
pname = "dbus";
version = "1.14.6";
version = "1.14.8";

src = fetchurl {
url = "https://dbus.freedesktop.org/releases/dbus/dbus-${version}.tar.xz";
sha256 = "sha256-/SvfG7idw2WkZTG/9jFTbyKw0cbVzixcXlm1UmWz1ms=";
sha256 = "sha256-pr1brFzxnww8WUva4lZaCVaWmApoOg7zfLYhLgk73jU=";
};

patches = lib.optional stdenv.isSunOS ./implement-getgrouplist.patch;
Expand Down
22 changes: 4 additions & 18 deletions pkgs/development/libraries/libde265/default.nix
Original file line number Diff line number Diff line change
@@ -1,43 +1,29 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, autoreconfHook
, pkg-config

, callPackage

# for passthru.tests
# for passthru.tests
, imagemagick
, libheif
, imlib2Full
, gst_all_1
}:

stdenv.mkDerivation (finalAttrs: rec {
version = "1.0.11";
version = "1.0.12";
pname = "libde265";

src = fetchFromGitHub {
owner = "strukturag";
repo = "libde265";
rev = "v${version}";
sha256 = "sha256-0aRUh5h49fnjBjy42A5fWYHnhnQ4CFoeSIXZilZewW8=";
rev = "refs/tags/v${version}";
hash = "sha256-pl1r3n4T4FcJ4My/wCE54R2fmTdrlJOvgb2U0MZf1BI=";
};

patches = [
(fetchpatch {
name = "CVE-2023-27102.patch";
url = "https://github.com/strukturag/libde265/commit/0b1752abff97cb542941d317a0d18aa50cb199b1.patch";
sha256 = "sha256-q0NKuk2r5RQT9MJpRO3CTPj6VqYRBnffs9yZ+GM+lNc=";
})
(fetchpatch {
name = "CVE-2023-27103.patch";
url = "https://github.com/strukturag/libde265/commit/d6bf73e765b7a23627bfd7a8645c143fd9097995.patch";
sha256 = "sha256-vxciVzSuVCVDpdz+TKg2tMWp2ArubYji5GLaR9VP4F0=";
})
];

nativeBuildInputs = [ autoreconfHook pkg-config ];

enableParallelBuilding = true;
Expand Down
15 changes: 8 additions & 7 deletions pkgs/development/libraries/libwebp/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook, libtool
, fetchpatch
, threadingSupport ? true # multi-threading
, openglSupport ? false, freeglut, libGL, libGLU # OpenGL (required for vwebp)
, pngSupport ? true, libpng # PNG image format
Expand All @@ -12,6 +11,7 @@
, libwebpmuxSupport ? true # Build libwebpmux
, libwebpdemuxSupport ? true # Build libwebpdemux
, libwebpdecoderSupport ? true # Build libwebpdecoder
, fetchpatch

# for passthru.tests
, freeimage
Expand All @@ -28,21 +28,22 @@

stdenv.mkDerivation rec {
pname = "libwebp";
version = "1.3.0";
version = "1.3.1";

src = fetchFromGitHub {
owner = "webmproject";
repo = pname;
rev = "v${version}";
hash = "sha256-nhXkq+qKpaa75YQB/W/cRozslTIFPdXeqj1y6emQeHk=";
hash = "sha256-Q94avvKjPdwdGt5ADo30cf2V4T7MCTubDHJxTtbG4xQ=";
};

patches = [
# https://www.mozilla.org/en-US/security/advisories/mfsa2023-13/#MFSA-TMP-2023-0001
# Avoid unnecessary and disruptive change on stable nixpkgs.
(fetchpatch {
url = "https://github.com/webmproject/libwebp/commit/a486d800b60d0af4cc0836bf7ed8f21e12974129.patch";
name = "fix-msfa-tmp-2023-0001.patch";
hash = "sha256-TRKXpNkYVzftBw09mX+WeQRhRoOzBgXFTNZBzSdCKvc=";
name = "revert-pkgconfig-changes.patch";
url = "https://github.com/webmproject/libwebp/commit/31c28db53c6fa3be7026212fdd1526280e3f0f52.patch";
revert = true;
hash = "sha256-yy/T0IZolk5JLbVRevtLWErOSVQIZqNRg/a6J6JHDHg=";
})
];

Expand Down
113 changes: 113 additions & 0 deletions pkgs/development/libraries/tpm2-tss/CVE-2023-22745.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
diff --git a/src/tss2-rc/tss2_rc.c b/src/tss2-rc/tss2_rc.c
index 15ced567..4e146593 100644
--- a/src/tss2-rc/tss2_rc.c
+++ b/src/tss2-rc/tss2_rc.c
@@ -1,5 +1,8 @@
/* SPDX-License-Identifier: BSD-2-Clause */
-
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+#include <assert.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
@@ -834,7 +837,7 @@ tss_err_handler (TSS2_RC rc)
static struct {
char name[TSS2_ERR_LAYER_NAME_MAX];
TSS2_RC_HANDLER handler;
-} layer_handler[TPM2_ERROR_TSS2_RC_LAYER_COUNT] = {
+} layer_handler[TPM2_ERROR_TSS2_RC_LAYER_COUNT + 1] = {
ADD_HANDLER("tpm" , tpm2_ehandler),
ADD_NULL_HANDLER, /* layer 1 is unused */
ADD_NULL_HANDLER, /* layer 2 is unused */
@@ -869,7 +872,7 @@ unknown_layer_handler(TSS2_RC rc)
static __thread char buf[32];

clearbuf(buf);
- catbuf(buf, "0x%X", tpm2_error_get(rc));
+ catbuf(buf, "0x%X", rc);

return buf;
}
@@ -966,19 +969,27 @@ Tss2_RC_Decode(TSS2_RC rc)
catbuf(buf, "%u:", layer);
}

- handler = !handler ? unknown_layer_handler : handler;
-
/*
* Handlers only need the error bits. This way they don't
* need to concern themselves with masking off the layer
* bits or anything else.
*/
- UINT16 err_bits = tpm2_error_get(rc);
- const char *e = err_bits ? handler(err_bits) : "success";
- if (e) {
- catbuf(buf, "%s", e);
+ if (handler) {
+ UINT16 err_bits = tpm2_error_get(rc);
+ const char *e = err_bits ? handler(err_bits) : "success";
+ if (e) {
+ catbuf(buf, "%s", e);
+ } else {
+ catbuf(buf, "0x%X", err_bits);
+ }
} else {
- catbuf(buf, "0x%X", err_bits);
+ /*
+ * we don't want to drop any bits if we don't know what to do with it
+ * so drop the layer byte since we we already have that.
+ */
+ const char *e = unknown_layer_handler(rc >> 8);
+ assert(e);
+ catbuf(buf, "%s", e);
}

return buf;
diff --git a/test/unit/test_tss2_rc.c b/test/unit/test_tss2_rc.c
index f4249b7b..c297298d 100644
--- a/test/unit/test_tss2_rc.c
+++ b/test/unit/test_tss2_rc.c
@@ -199,7 +199,7 @@ test_custom_handler(void **state)
* Test an unknown layer
*/
e = Tss2_RC_Decode(rc);
- assert_string_equal(e, "1:0x2A");
+ assert_string_equal(e, "1:0x100");
}

static void
@@ -282,6 +282,23 @@ test_tcti(void **state)
assert_string_equal(e, "tcti:Fails to connect to next lower layer");
}

+static void
+test_all_FFs(void **state)
+{
+ (void) state;
+
+ const char *e = Tss2_RC_Decode(0xFFFFFFFF);
+ assert_string_equal(e, "255:0xFFFFFF");
+}
+
+static void
+test_all_FFs_set_handler(void **state)
+{
+ (void) state;
+ Tss2_RC_SetHandler(0xFF, "garbage", custom_err_handler);
+ Tss2_RC_SetHandler(0xFF, NULL, NULL);
+}
+
/* link required symbol, but tpm2_tool.c declares it AND main, which
* we have a main below for cmocka tests.
*/
@@ -313,6 +330,8 @@ main(int argc, char* argv[])
cmocka_unit_test(test_esys),
cmocka_unit_test(test_mu),
cmocka_unit_test(test_tcti),
+ cmocka_unit_test(test_all_FFs),
+ cmocka_unit_test(test_all_FFs_set_handler),
};

return cmocka_run_group_tests(tests, NULL, NULL);
5 changes: 4 additions & 1 deletion pkgs/development/libraries/tpm2-tss/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ stdenv.mkDerivation rec {
# Do not rely on dynamic loader path
# TCTI loader relies on dlopen(), this patch prefixes all calls with the output directory
./no-dynamic-loader-path.patch
# Backport of https://github.com/tpm2-software/tpm2-tss/commit/306490c8d848c367faa2d9df81f5e69dab46ffb5
# Does not apply cleanly because of tests
./CVE-2023-22745.patch
];

postPatch = ''
Expand Down Expand Up @@ -91,6 +94,6 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/tpm2-software/tpm2-tss";
license = licenses.bsd2;
platforms = platforms.linux;
maintainers = with maintainers; [ ];
maintainers = with maintainers; [ baloo ];
};
}
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/django/3.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@

buildPythonPackage rec {
pname = "django";
version = "3.2.19";
version = "3.2.20";

disabled = pythonOlder "3.7";

src = fetchPypi {
pname = "Django";
inherit version;
hash = "sha256-AxNluuloFNoZwQcGIYxE3/O2VMxN4gqYvS0pub3kafA=";
hash = "sha256-3sKhFnh7jhSWIBS/eOEgu6RUE1EI4a+em5Gt57KWTEA=";
};

patches = [
Expand Down
17 changes: 5 additions & 12 deletions pkgs/misc/cups/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{ lib, stdenv
, fetchurl
, fetchpatch
, pkg-config
, removeReferencesTo
, zlib
Expand All @@ -24,24 +23,15 @@

stdenv.mkDerivation rec {
pname = "cups";
version = "2.4.2";
version = "2.4.6";

src = fetchurl {
url = "https://github.com/OpenPrinting/cups/releases/download/v${version}/cups-${version}-source.tar.gz";
sha256 = "sha256-8DzLQLCH0eMJQKQOAUHcu6Jj85l0wg658lIQZsnGyQg=";
sha256 = "sha256-WOlwzxlV4cyH0IR8MlJtnCzO4zXl8OOIKygxOLoOcmI=";
};

outputs = [ "out" "lib" "dev" "man" ];

patches = [
(fetchpatch {
# https://www.openwall.com/lists/oss-security/2023/06/01/1
name = "CVE-2023-32324.patch";
url = "https://github.com/OpenPrinting/cups/commit/fd8bc2d32589d1fd91fe1c0521be2a7c0462109e.patch";
hash = "sha256-Q0Pw+MC7KE5VEiugY+GFtvPERG8x6ngNHUsWTEaDCHA=";
})
];

postPatch = ''
substituteInPlace cups/testfile.c \
--replace 'cupsFileFind("cat", "/bin' 'cupsFileFind("cat", "${coreutils}/bin'
Expand All @@ -50,6 +40,9 @@ stdenv.mkDerivation rec {
# service would stop the socket and break subsequent socket activations.
# See https://github.com/apple/cups/issues/6005
sed -i '/PartOf=cups.service/d' scheduler/cups.socket.in
'' + lib.optionalString (stdenv.isDarwin && lib.versionOlder stdenv.targetPlatform.darwinSdkVersion "12") ''
substituteInPlace backend/usb-darwin.c \
--replace "kIOMainPortDefault" "kIOMasterPortDefault"
'';

nativeBuildInputs = [ pkg-config removeReferencesTo ];
Expand Down
6 changes: 3 additions & 3 deletions pkgs/misc/ghostscript/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ let

in
stdenv.mkDerivation rec {
pname = "ghostscript${lib.optionalString (x11Support) "-with-X"}";
version = "10.01.1";
pname = "ghostscript${lib.optionalString x11Support "-with-X"}";
version = "10.01.2";

src = fetchurl {
url = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${lib.replaceStrings ["."] [""] version}/ghostscript-${version}.tar.xz";
hash = "sha512-2US+norvaNEXbWTEDbb6htVdDJ4wBH8hR8AoBqthz+msLLANTlshj/PFHMbtR87/4brE3Z1MwXYLeXTzDGwnNQ==";
hash = "sha512-7iDw4S9VOj0EV45xoNRd7+vHERfOTcLBQEOYW/5zSK1/iy/pj8m09bk17LMuUNw0C+Z9bvWBkFQuxtD52h3jgA==";
};

patches = [
Expand Down