Compare commits

..

46 Commits

Author SHA1 Message Date
github-actions[bot]
8af15d94de Merge staging-next into staging 2023-05-16 00:03:08 +00:00
Martin Weinelt
54fba9982e Merge pull request #231899 from NixOS/please-no-openssl1-for-ruby-3
ruby_3_0: make it use OpenSSL 3
2023-05-15 20:26:28 +02:00
github-actions[bot]
798441cd4e Merge staging-next into staging 2023-05-15 18:01:51 +00:00
Artturi
759a96cd3c Merge pull request #231664 from Artturin/libxcvtupd 2023-05-15 20:37:34 +03:00
Raito Bezarius
73df46ee77 ruby_3_0: make it use OpenSSL 3
Ruby 3.0 pretend they don't support OpenSSL3 out of the box (https://bugs.ruby-lang.org/issues/18658).
Actually, they suggest to install a OpenSSL 3.x gem. This is what we are doing.

Our Ruby 3.0 will probably exhibit slight incompatibilities, in exchange, we get nice security.
2023-05-15 14:36:02 +02:00
github-actions[bot]
a14ecf777d Merge staging-next into staging 2023-05-15 12:01:56 +00:00
Ryan Lahfa
b94e59925e Merge pull request #231768 from delroth/pahole-btf-repro
pahole: patch to force single-threaded mode if reproducibility is desired
2023-05-15 08:51:17 +02:00
github-actions[bot]
0386407375 Merge staging-next into staging 2023-05-15 06:01:52 +00:00
github-actions[bot]
50d7d6fe56 Merge staging-next into staging 2023-05-15 00:03:03 +00:00
github-actions[bot]
798fe41101 Merge staging-next into staging 2023-05-14 18:01:51 +00:00
github-actions[bot]
d7c25ce768 Merge staging-next into staging 2023-05-14 12:02:08 +00:00
github-actions[bot]
faf50dfee3 Merge staging-next into staging 2023-05-14 06:01:43 +00:00
Pierre Bourdon
e1daacf987 pahole: patch to force single-threaded mode if reproducibility is desired
pahole's processes DWARF -> BTF in a pseudo-random order if multi
threading is enabled (default in the Linux kernel). This can be fixed in dependent
derivation by making sure users don't ever pass "-j" or "-j N", but it
seems easier and safer to just detect whether reprodubility is desired
(by proxy: if SOURCE_DATE_EPOCH is set) and ignore the multi-threading
flag.
2023-05-14 06:36:04 +02:00
Mario Rodas
b6b5f5c61b Merge pull request #231737 from marsam/update-bundler
bundler: 2.4.12 -> 2.4.13
2023-05-13 20:50:07 -05:00
Mario Rodas
3d57f0a188 Merge pull request #231643 from marsam/update-grpc
grpc: 1.54.0 -> 1.54.2
2023-05-13 20:48:36 -05:00
github-actions[bot]
2015f29c32 Merge staging-next into staging 2023-05-14 00:03:13 +00:00
github-actions[bot]
c1bb974df7 Merge staging-next into staging 2023-05-13 18:01:45 +00:00
Artturin
7212cbc712 xorg.libxcvt: 0.1.1 -> 0.1.2 2023-05-13 16:21:52 +03:00
Dmitry Bogatov
27ce8eb0d1 python3.pkgs.wrapt: build offline documentation
X-Reverse-Dependencies: python3.pkgs.aiobotocore
2023-05-13 09:05:35 -04:00
github-actions[bot]
3270c13879 Merge staging-next into staging 2023-05-13 12:01:36 +00:00
github-actions[bot]
2c02b17076 Merge staging-next into staging 2023-05-13 06:01:58 +00:00
Mario Rodas
a9610a4dde ruby.rubygems: 3.4.12 -> 3.4.13
Diff: https://github.com/rubygems/rubygems/compare/v3.4.12...v3.4.13

Changelog: https://github.com/rubygems/rubygems/releases/tag/v3.4.13
2023-05-13 04:20:00 +00:00
Mario Rodas
2093048e1d python310Packages.grpcio-status: 1.54.0 -> 1.54.2 2023-05-13 04:20:00 +00:00
Mario Rodas
26f6badb14 bundler: 2.4.12 -> 2.4.13
Diff: https://github.com/rubygems/rubygems/compare/bundler-v2.4.12...bundler-v2.4.13

Changelog: https://github.com/rubygems/rubygems/releases/tag/bundler-v2.4.13
2023-05-13 04:20:00 +00:00
Mario Rodas
d4cc1658d9 python310Packages.grpcio-tools: 1.54.0 -> 1.54.2 2023-05-13 04:20:00 +00:00
Mario Rodas
813f263511 grpc: 1.54.0 -> 1.54.2
https://github.com/grpc/grpc/releases/tag/v1.54.1
https://github.com/grpc/grpc/releases/tag/v1.54.2
2023-05-13 04:20:00 +00:00
github-actions[bot]
3632297264 Merge staging-next into staging 2023-05-13 00:02:42 +00:00
github-actions[bot]
a0ba80a626 Merge staging-next into staging 2023-05-12 18:01:54 +00:00
Mario Rodas
1bf361e6a0 Merge pull request #231306 from helsinki-systems/upd/postgresql
postgresql: 15.3, 14.8, 13.11, 12.15 and 11.20
2023-05-12 07:48:37 -05:00
github-actions[bot]
f3883073ad Merge staging-next into staging 2023-05-12 12:01:57 +00:00
ajs124
3abafec08f postgresql_15: 15.2 -> 15.3
https://www.postgresql.org/docs/release/15.3/
2023-05-12 13:40:01 +02:00
ajs124
08b8054366 postgresql_14: 14.7 -> 14.8
https://www.postgresql.org/docs/release/14.8/
2023-05-12 13:40:01 +02:00
ajs124
370e6c896d postgresql_13: 13.10 -> 13.11
https://www.postgresql.org/docs/release/13.11/
2023-05-12 13:40:01 +02:00
ajs124
b201c295c7 postgresql_12: 12.14 -> 12.15
https://www.postgresql.org/docs/release/12.15/
2023-05-12 13:40:01 +02:00
ajs124
c56299151c postgresql_11: 11.19 -> 11.20
https://www.postgresql.org/docs/release/11.20/
2023-05-12 13:40:01 +02:00
github-actions[bot]
d1c4b927cb Merge staging-next into staging 2023-05-12 08:49:44 +00:00
github-actions[bot]
c7c0b86359 Merge staging-next into staging 2023-05-12 06:01:49 +00:00
github-actions[bot]
87d5afae56 Merge staging-next into staging 2023-05-12 00:02:35 +00:00
github-actions[bot]
0e5b6eaeea Merge staging-next into staging 2023-05-11 18:01:45 +00:00
github-actions[bot]
57efe13bc2 Merge staging-next into staging 2023-05-11 12:02:16 +00:00
Jairo Llopis
bff6c67911 python.pipInstallHook: avoid producing wrong direct_url.json file
When installing many python packages, a `direct_url.json` file appeared in the lib directory. Example:

```sh
➤ nix build nixpkgs/29755fec55e58a315b517d431b2be261772f2b80#python3Packages.flask

➤ cat result/lib/python3.10/site-packages/Flask-2.2.3.dist-info/direct_url.json
{"archive_info": {}, "url": "file:///build/Flask-2.2.3/dist/Flask-2.2.3-py3-none-any.whl"}⏎
```

As you can see, that file contains a wrong reference to `/build`.

In https://discuss.python.org/t/pep-610-usage-guidelines-for-linux-distributions/4012/4 there's an explanation on how to avoid this. Here, I'm implementing that change for nixpkgs.

@moduon MT-1075
2023-05-11 09:15:48 +02:00
github-actions[bot]
e6a40d6f7c Merge staging-next into staging 2023-05-11 06:02:10 +00:00
github-actions[bot]
43c0368934 Merge staging-next into staging 2023-05-11 00:02:52 +00:00
Martin Weinelt
c1d3b14b63 Merge pull request #231181 from mweinelt/sqlalchemy-2.0.13
python310Packages.sqlalchemy: 2.0.9 -> 2.0.13
2023-05-11 01:47:24 +02:00
Martin Weinelt
dda789409e python310Packages.sqlalchemy: 2.0.9 -> 2.0.13
https://github.com/sqlalchemy/sqlalchemy/releases/tag/rel_2_0_10
https://github.com/sqlalchemy/sqlalchemy/releases/tag/rel_2_0_11
https://github.com/sqlalchemy/sqlalchemy/releases/tag/rel_2_0_12
https://github.com/sqlalchemy/sqlalchemy/releases/tag/rel_2_0_13
2023-05-11 00:49:05 +02:00
github-actions[bot]
f269012289 Merge staging-next into staging 2023-05-10 12:01:49 +00:00
14 changed files with 71 additions and 32 deletions

View File

@@ -10,9 +10,7 @@ pipInstallPhase() {
mkdir -p "$out/@pythonSitePackages@"
export PYTHONPATH="$out/@pythonSitePackages@:$PYTHONPATH"
pushd dist || return 1
@pythonInterpreter@ -m pip install ./*.whl --no-index --no-warn-script-location --prefix="$out" --no-cache $pipInstallFlags
popd || return 1
@pythonInterpreter@ -m pip install $pname --find-links dist --no-index --no-warn-script-location --prefix="$out" --no-cache $pipInstallFlags
runHook postInstall
echo "Finished executing pipInstallPhase"

View File

@@ -15,6 +15,13 @@ let
config = import ./config.nix { inherit fetchFromSavannah; };
rubygems = import ./rubygems { inherit stdenv lib fetchurl; };
openssl3Gem = fetchFromGitHub {
owner = "ruby";
repo = "openssl";
rev = "v3.0.2";
hash = "sha256-KhuKRP1JkMJv7CagGRQ0KKGOd5Oh0FP0fbj0VZ4utGo=";
};
# Contains the ruby version heuristics
rubyVersion = import ./ruby-version.nix { inherit lib; };
@@ -84,8 +91,8 @@ let
++ (op fiddleSupport libffi)
++ (ops cursesSupport [ ncurses readline ])
++ (op zlibSupport zlib)
++ (op (!atLeast31 && opensslSupport) openssl_1_1)
++ (op (atLeast31 && opensslSupport) openssl)
++ (op (atLeast30 && opensslSupport) openssl)
++ (op (!atLeast30 && opensslSupport) openssl_1_1)
++ (op gdbmSupport gdbm)
++ (op yamlSupport libyaml)
# Looks like ruby fails to build on darwin without readline even if curses
@@ -113,7 +120,7 @@ let
url = "https://github.com/ruby/ruby/commit/0acc05caf7518cd0d63ab02bfa036455add02346.patch";
sha256 = "sha256-43hI9L6bXfeujgmgKFVmiWhg7OXvshPCCtQ4TxqK1zk=";
})
]
]
++ ops (!atLeast30 && rubygemsSupport) [
# We upgrade rubygems to a version that isn't compatible with the
# ruby 2.7 installer. Backport the upstream fix.
@@ -149,6 +156,12 @@ let
rm -rf $sourceRoot/{lib,test}/rubygems*
cp -r ${rubygems}/lib/rubygems* $sourceRoot/lib
cp -r ${rubygems}/test/rubygems $sourceRoot/test
'' + opString (ver.majMin == "3.0" && opensslSupport) ''
# Replace the Gem by a OpenSSL3-compatible one.
echo "Hotpatching the OpenSSL gem with a 3.x series for OpenSSL 3 support..."
cp -vr ${openssl3Gem}/ext/openssl $sourceRoot/ext/
cp -vr ${openssl3Gem}/lib/ $sourceRoot/ext/openssl/
cp -vr ${openssl3Gem}/{History.md,openssl.gemspec} $sourceRoot/ext/openssl/
'';
postPatch = ''

View File

@@ -2,11 +2,11 @@
stdenv.mkDerivation rec {
pname = "rubygems";
version = "3.4.12";
version = "3.4.13";
src = fetchurl {
url = "https://rubygems.org/rubygems/rubygems-${version}.tgz";
sha256 = "sha256-WFCnwvw4DN09pwShznuwSNQtSACTPfULiSAmW1hF4Vs=";
sha256 = "sha256-s/7KCbf07zezuASA7E03t83UDY6W/fFw9bljOprXWls=";
};
patches = [

View File

@@ -21,7 +21,7 @@
stdenv.mkDerivation rec {
pname = "grpc";
version = "1.54.0"; # N.B: if you change this, please update:
version = "1.54.2"; # N.B: if you change this, please update:
# pythonPackages.grpcio-tools
# pythonPackages.grpcio-status
@@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
owner = "grpc";
repo = "grpc";
rev = "v${version}";
hash = "sha256-WVH7rYyFx2LyAnctnNbX4KevoJ5KKZujN+SmL0Y6wvw=";
hash = "sha256-OIRqH+h8Kjbw3X5slpdCfNN0f027WuvHG3q7KUuSWo8=";
fetchSubmodules = true;
};

View File

@@ -9,14 +9,14 @@
buildPythonPackage rec {
pname = "grpcio-status";
version = "1.54.0";
version = "1.54.2";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-tQMF1SwN9haUk8yl8uObm013Oz8w1Kemtt18GMuJAHw=";
hash = "sha256-MlXL7Ft8cGyqPU3VhGBsCA5kFeFWMbsvYhXitwBVg20=";
};
postPatch = ''

View File

@@ -2,12 +2,12 @@
buildPythonPackage rec {
pname = "grpcio-tools";
version = "1.54.0";
version = "1.54.2";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-33msv1mZcBjhMXE7cWov3bVVbhhA6fud5MpzvyBZWQ4=";
hash = "sha256-4RwsKu5T80CZLo5NalkXLLu9AZPxNR3pjE+BClBB1co=";
};
postPatch = ''

View File

@@ -41,7 +41,7 @@
buildPythonPackage rec {
pname = "SQLAlchemy";
version = "2.0.9";
version = "2.0.13";
format = "pyproject";
disabled = pythonOlder "3.7";
@@ -50,7 +50,7 @@ buildPythonPackage rec {
owner = "sqlalchemy";
repo = "sqlalchemy";
rev = "refs/tags/rel_${lib.replaceStrings [ "." ] [ "_" ] version}";
hash = "sha256-0WlRZ7Kv6owtZB+PDFKk+8dxEL4p3QQrRPq8eQd2PqM=";
hash = "sha256-tKxzKv0Ng0saybeFJNleCN5D8gOFw4z9m858OeddJH0=";
};
nativeBuildInputs =[

View File

@@ -2,11 +2,14 @@
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, sphinxHook
, sphinx-rtd-theme
}:
buildPythonPackage rec {
pname = "wrapt";
version = "1.14.1";
outputs = [ "out" "doc" ];
format = "setuptools";
src = fetchFromGitHub {
@@ -20,6 +23,11 @@ buildPythonPackage rec {
pytestCheckHook
];
nativeBuildInputs = [
sphinxHook
sphinx-rtd-theme
];
pythonImportsCheck = [
"wrapt"
];

View File

@@ -4,8 +4,8 @@ buildRubyGem rec {
inherit ruby;
name = "${gemName}-${version}";
gemName = "bundler";
version = "2.4.12";
source.sha256 = "sha256-y1VM1Pi/Rx0XeTff5vUv7mCtcLtKr3ENcnD6SiTezk0=";
version = "2.4.13";
source.sha256 = "sha256-EWU6pa5QfG29Vb9+m+iSbZmvrJtsDAjToZOK/rPnWos=";
dontPatchShebangs = true;
postFixup = ''

View File

@@ -26,6 +26,8 @@ stdenv.mkDerivation rec {
musl-obstack
];
patches = [ ./threading-reproducibility.patch ];
# Put libraries in "lib" subdirectory, not top level of $out
cmakeFlags = [ "-D__LIB=lib" "-DLIBBPF_EMBEDDED=OFF" ];

View File

@@ -0,0 +1,18 @@
diff --git a/pahole.c b/pahole.c
index 6fc4ed6..a4e306f 100644
--- a/pahole.c
+++ b/pahole.c
@@ -1687,8 +1687,11 @@ static error_t pahole__options_parser(int key, char *arg,
class_name = arg; break;
case 'j':
#if _ELFUTILS_PREREQ(0, 178)
- conf_load.nr_jobs = arg ? atoi(arg) :
- sysconf(_SC_NPROCESSORS_ONLN) * 1.1;
+ // Force single thread if reproducibility is desirable.
+ if (!getenv("SOURCE_DATE_EPOCH")) {
+ conf_load.nr_jobs = arg ? atoi(arg) :
+ sysconf(_SC_NPROCESSORS_ONLN) * 1.1;
+ }
#else
fputs("pahole: Multithreading requires elfutils >= 0.178. Continuing with a single thread...\n", stderr);
#endif

View File

@@ -290,45 +290,45 @@ let
mkPackages = self: {
postgresql_11 = self.callPackage generic {
version = "11.19";
version = "11.20";
psqlSchema = "11.1"; # should be 11, but changing it is invasive
hash = "sha256-ExCeK3HxE5QFwnIB2jczphrOcu4cIo2cnwMg4GruFMI=";
hash = "sha256-PXyIgvZKfphTSgRCV9/uerrXelt9oSUI2F1yK5i1rM4=";
this = self.postgresql_11;
thisAttr = "postgresql_11";
inherit self;
};
postgresql_12 = self.callPackage generic {
version = "12.14";
version = "12.15";
psqlSchema = "12";
hash = "sha256-eFYQI304LIQtNW40cTjljAb/6uJA5swLUqxevMMNBD4=";
hash = "sha256-u1IG4oZMHEV5k4uW6mCW0VXyKr8tLMKqV1cePEyxKzY=";
this = self.postgresql_12;
thisAttr = "postgresql_12";
inherit self;
};
postgresql_13 = self.callPackage generic {
version = "13.10";
version = "13.11";
psqlSchema = "13";
hash = "sha256-W7z1pW2FxE86iwWPtGhi/0nLyRg00H4pXQLm3jwhbfI=";
hash = "sha256-SZL/ZHIDVmtnDU5U3FMXSZomhWyTV20OqVG99r7lC/s=";
this = self.postgresql_13;
thisAttr = "postgresql_13";
inherit self;
};
postgresql_14 = self.callPackage generic {
version = "14.7";
version = "14.8";
psqlSchema = "14";
hash = "sha256-zvYPAJj6gQHBVG9CVORbcir1QxM3lFs3ryBwB2MNszE=";
hash = "sha256-OdOPADBzftA4Nd6+7+47N9M1RizkmV4kl7w41iHr5Fo=";
this = self.postgresql_14;
thisAttr = "postgresql_14";
inherit self;
};
postgresql_15 = self.callPackage generic {
version = "15.2";
version = "15.3";
psqlSchema = "15";
hash = "sha256-maIXH8PWtbX1a3V6ejy4XVCaOOQnOAXe8jlB7SuEaMc=";
hash = "sha256-/8fUiR8A/79cP06rf7vO2EYLjA7mPFpRZxM7nmWZ2TI=";
this = self.postgresql_15;
thisAttr = "postgresql_15";
inherit self;

View File

@@ -1453,11 +1453,11 @@ self: with self; {
# THIS IS A GENERATED FILE. DO NOT EDIT!
libxcvt = callPackage ({ stdenv, pkg-config, fetchurl, meson, ninja }: stdenv.mkDerivation {
pname = "libxcvt";
version = "0.1.1";
version = "0.1.2";
builder = ./builder.sh;
src = fetchurl {
url = "mirror://xorg/individual/lib/libxcvt-0.1.1.tar.xz";
sha256 = "0acc7vrj5kfb19zvyl7f29rnsvx383dvwc19k70r8prm1lccxsr7";
url = "mirror://xorg/individual/lib/libxcvt-0.1.2.tar.xz";
sha256 = "0f6vf47lay9y288n8yg9ckjgz5ypn2hnp03ipp7javkr8h2njq85";
};
hardeningDisable = [ "bindnow" "relro" ];
strictDeps = true;

View File

@@ -180,7 +180,7 @@ mirror://xorg/individual/lib/libXaw-1.0.14.tar.bz2
mirror://xorg/individual/lib/libxcb-1.14.tar.xz
mirror://xorg/individual/lib/libXcomposite-0.4.5.tar.bz2
mirror://xorg/individual/lib/libXcursor-1.2.0.tar.bz2
mirror://xorg/individual/lib/libxcvt-0.1.1.tar.xz
mirror://xorg/individual/lib/libxcvt-0.1.2.tar.xz
mirror://xorg/individual/lib/libXdamage-1.1.5.tar.bz2
mirror://xorg/individual/lib/libXdmcp-1.1.3.tar.bz2
mirror://xorg/individual/lib/libXext-1.3.4.tar.bz2