[staging-next] Pile of assorted fixes found while rebuilding my flake (#422890)

This commit is contained in:
K900 2025-07-06 14:21:36 +03:00 committed by GitHub
commit d5e6750b89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
20 changed files with 169 additions and 20 deletions

View File

@ -1,12 +1,11 @@
diff --git a/tests/optional.test b/tests/optional.test diff --git a/tests/optional.test b/tests/optional.test
index 2623731..85bc9e9 100644 index 77354cc..6cc7c12 100644
--- a/tests/optional.test --- a/tests/optional.test
+++ b/tests/optional.test +++ b/tests/optional.test
@@ -12,11 +12,6 @@ last(range(365 * 67)|("1970-03-01T01:02:03Z"|strptime("%Y-%m-%dT%H:%M:%SZ")|mkti @@ -1,10 +1,5 @@
null # See tests/jq.test and the jq manual for more information.
[2037,1,11,1,2,3,3,41]
-# Regression test for #3276 -# Regression test for #3276 (fails on mingw/WIN32)
-fromdate -fromdate
-"2038-01-19T03:14:08Z" -"2038-01-19T03:14:08Z"
-2147483648 -2147483648

View File

@ -75,12 +75,6 @@ stdenv.mkDerivation (finalAttrs: {
--replace-fail '"gnuplot - ' '"${gnuplotBinary} - ' --replace-fail '"gnuplot - ' '"${gnuplotBinary} - '
''; '';
preBuild = ''
pushd docs/reference
doxygen Doxyfile
popd
'';
meta = { meta = {
description = "Advanced calculator library"; description = "Advanced calculator library";
homepage = "http://qalculate.github.io"; homepage = "http://qalculate.github.io";

View File

@ -17,6 +17,9 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-ULoitJD5bMu0pFvh35cY5EEYywxj4e2fYOpqZwKB1lk="; hash = "sha256-ULoitJD5bMu0pFvh35cY5EEYywxj4e2fYOpqZwKB1lk=";
}; };
# Submitted upstream: https://github.com/nix-community/nix-ld/pull/169
patches = [ ./rust-1.88.patch ];
useFetchCargoVendor = true; useFetchCargoVendor = true;
cargoHash = "sha256-cDbszVjZcomag0HZvXM+17SjDiGS07iPj78zgsXstHc="; cargoHash = "sha256-cDbszVjZcomag0HZvXM+17SjDiGS07iPj78zgsXstHc=";

View File

@ -0,0 +1,33 @@
diff --git a/src/arch.rs b/src/arch.rs
index a998697..45ec2cb 100644
--- a/src/arch.rs
+++ b/src/arch.rs
@@ -140,7 +140,7 @@ cfg_match! {
target_arch = "x86_64" => {
pub const ENTRY_TRAMPOLINE: Option<unsafe extern "C" fn() -> !> = Some(entry_trampoline);
- #[naked]
+ #[unsafe(naked)]
unsafe extern "C" fn entry_trampoline() -> ! {
core::arch::naked_asm!(
"lea r10, [rip + {context}]",
@@ -159,7 +159,7 @@ cfg_match! {
target_arch = "aarch64" => {
pub const ENTRY_TRAMPOLINE: Option<unsafe extern "C" fn() -> !> = Some(entry_trampoline);
- #[naked]
+ #[unsafe(naked)]
unsafe extern "C" fn entry_trampoline() -> ! {
core::arch::naked_asm!(
"adrp x8, {context}",
diff --git a/src/sys.rs b/src/sys.rs
index 109d809..bf085d9 100644
--- a/src/sys.rs
+++ b/src/sys.rs
@@ -181,6 +181,5 @@ pub fn new_slice_leak(size: usize) -> Option<&'static mut [u8]> {
#[cfg(not(test))]
#[lang = "eh_personality"]
-#[no_mangle]
pub extern fn rust_eh_personality() {
}

View File

@ -45,7 +45,9 @@ stdenv.mkDerivation (finalAttrs: {
abseil-cpp abseil-cpp
]; ];
mesonFlags = lib.lists.optional (!stdenv.hostPlatform.isAarch64) "-Dneon=disabled"; mesonFlags =
lib.lists.optional (!stdenv.hostPlatform.isAarch64) "-Dneon=disabled"
++ lib.lists.optional (stdenv.hostPlatform.isi686) "-Dinline-sse=false";
passthru.tests.pkg-config = testers.hasPkgConfigModules { passthru.tests.pkg-config = testers.hasPkgConfigModules {
package = finalAttrs.finalPackage; package = finalAttrs.finalPackage;

View File

@ -0,0 +1,31 @@
diff --git a/Makefile.am b/Makefile.am
index 3257a0a..e39e8bc 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -35,3 +35,5 @@ endif
man_MANS = xbindkeys.1 $(man_MANS_TK)
+
+SUBDIRS =
\ No newline at end of file
diff --git a/configure.ac b/configure.ac
index f039ca8..eb0c886 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,10 +3,15 @@ AC_INIT(xbindkeys, 1.8.7, hocwp@free.fr)
AC_PREREQ(2.54)
AC_COPYRIGHT(Copyright (C) Philippe Brochard <hocwp@free.fr>)
+AC_CONFIG_MACRO_DIRS([m4])
+
# Automake
AM_INIT_AUTOMAKE()
AM_MAINTAINER_MODE
+AM_GNU_GETTEXT_VERSION([0.25])
+AM_GNU_GETTEXT([external])
+
AC_CONFIG_SRCDIR([xbindkeys.c])
AM_CONFIG_HEADER(config.h)

View File

@ -16,6 +16,9 @@ stdenv.mkDerivation rec {
sha256 = "1wl2vc5alisiwyk8m07y1ryq8w3ll9ym83j27g4apm4ixjl8d6x2"; sha256 = "1wl2vc5alisiwyk8m07y1ryq8w3ll9ym83j27g4apm4ixjl8d6x2";
}; };
# FIXME: remove when gettext is fixed
patches = [ ./gettext-0.25.patch ];
nativeBuildInputs = [ nativeBuildInputs = [
autoreconfHook autoreconfHook
pkg-config pkg-config

View File

@ -0,0 +1,18 @@
diff --git a/configure.ac b/configure.ac
index 20a4e42..921ba18 100644
--- a/configure.ac
+++ b/configure.ac
@@ -8,9 +8,13 @@ AC_PREREQ([2.59])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR([src])
+AC_CONFIG_MACRO_DIRS([m4])
AM_MAINTAINER_MODE
+AM_GNU_GETTEXT_VERSION([0.25])
+AM_GNU_GETTEXT([external])
+
IT_PROG_INTLTOOL([0.40.0])
AC_PROG_CC

View File

@ -22,6 +22,9 @@ stdenv.mkDerivation rec {
sha256 = "sha256-Y7bp20fkNdSgBcSV1kPEpWEP7ASwZcScVRaPauwI72M="; sha256 = "sha256-Y7bp20fkNdSgBcSV1kPEpWEP7ASwZcScVRaPauwI72M=";
}; };
# FIXME: remove when gettext is fixed
patches = [ ./gettext-0.25.patch ];
configureFlags = [ configureFlags = [
"--enable-icon-browser" "--enable-icon-browser"
"--with-gtk=gtk3" "--with-gtk=gtk3"

View File

@ -20,14 +20,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "django-lasuite"; pname = "django-lasuite";
version = "0.0.9"; version = "0.0.10";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "suitenumerique"; owner = "suitenumerique";
repo = "django-lasuite"; repo = "django-lasuite";
tag = "v${version}"; tag = "v${version}";
hash = "sha256-vUtWBR9uRc99jTe0Gg7k4EZZAkqHct5+GCOHp1mTIkA="; hash = "sha256-2rSPGioyG/2VeyBPfsNU4TL2jvlLjRQpxQSl1AHLL10=";
}; };
build-system = [ hatchling ]; build-system = [ hatchling ];

View File

@ -15,7 +15,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "geventhttpclient"; pname = "geventhttpclient";
version = "2.3.3"; version = "2.3.4";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.9";
@ -26,7 +26,7 @@ buildPythonPackage rec {
tag = version; tag = version;
# TODO: unvendor llhttp # TODO: unvendor llhttp
fetchSubmodules = true; fetchSubmodules = true;
hash = "sha256-0ltTmF09EKs+55Mitfe5vxPjmCtnhla6q6SAvhyIQPk="; hash = "sha256-X85co03fMG7OSpkL02n3ektRNzu7oHChtwZzkspsSTk=";
}; };
build-system = [ setuptools ]; build-system = [ setuptools ];

View File

@ -0,0 +1,15 @@
diff --git a/crates/polars-compute/src/lib.rs b/crates/polars-compute/src/lib.rs
index ebe1ef753..6e1eee897 100644
--- a/crates/polars-compute/src/lib.rs
+++ b/crates/polars-compute/src/lib.rs
@@ -5,6 +5,10 @@
all(feature = "simd", target_arch = "x86_64"),
feature(stdarch_x86_avx512)
)]
+#![cfg_attr(
+ all(feature = "simd", target_arch = "x86_64"),
+ feature(avx512_target_feature)
+)]
use arrow::types::NativeType;

View File

@ -59,6 +59,10 @@ buildPythonPackage rec {
hash = "sha256-OZ7guV/uxa3jGesAh+ubrFjQSNVp5ImfXfPAQxagTj0="; hash = "sha256-OZ7guV/uxa3jGesAh+ubrFjQSNVp5ImfXfPAQxagTj0=";
}; };
patches = [
./avx512.patch
];
# Do not type-check assertions because some of them use unstable features (`is_none_or`) # Do not type-check assertions because some of them use unstable features (`is_none_or`)
postPatch = '' postPatch = ''
while IFS= read -r -d "" path ; do while IFS= read -r -d "" path ; do

View File

@ -79,6 +79,12 @@ buildPythonPackage rec {
[ [
# Skip test_feature_importance_regression - does web fetch # Skip test_feature_importance_regression - does web fetch
"test_feature_importance_regression" "test_feature_importance_regression"
# Fail due to new deprecation warnings in scipy
# FIXME: reenable when fixed upstream
"test_logistic_regression_path_convergence_fail"
"test_linalg_warning_with_newton_solver"
"test_newton_cholesky_fallback_to_lbfgs"
] ]
++ lib.optionals stdenv.hostPlatform.isAarch64 [ ++ lib.optionals stdenv.hostPlatform.isAarch64 [
# doesn't seem to produce correct results? # doesn't seem to produce correct results?

View File

@ -142,6 +142,9 @@ let
# our patches cause the tests to fail # our patches cause the tests to fail
doCheck = false; doCheck = false;
# patchShebangs corrupts the magic escript shebang+zip files
dontPatchShebangs = true;
}) })
); );
in in

View File

@ -15,7 +15,8 @@ mkKdeDerivation {
extraBuildInputs = [ extraBuildInputs = [
libheif libheif
libjxl libjxl
libavif # FIXME: cmake files are broken, disabled for now
# libavif
libraw libraw
openexr openexr
]; ];

View File

@ -59,6 +59,9 @@ stdenv.mkDerivation rec {
# switch to pep517 build tools # switch to pep517 build tools
./pep517.patch ./pep517.patch
# FIXME: remove when gettext is fixed
./gettext-0.25.patch
]; ];
buildInputs = [ buildInputs = [

View File

@ -0,0 +1,12 @@
diff --git a/Makefile.am b/Makefile.am
index 9993ca0d..678fa629 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,7 @@
SUBDIRS=. po
+ACLOCAL_AMFLAGS = -I m4
+
EXPORT_MODULES= \
cupshelpers/__init__.py \
cupshelpers/cupshelpers.py \

View File

@ -91,7 +91,10 @@ let
dontWrapQtApps = true; dontWrapQtApps = true;
patches = patches =
[ ./autoconf-ar.patch ] [
./autoconf-ar.patch
./gettext-0.25.patch
]
++ lib.optionals (lib.elem "gtk2" buildFlavors) [ ++ lib.optionals (lib.elem "gtk2" buildFlavors) [
(fetchpatch { (fetchpatch {
url = "https://salsa.debian.org/debian/pinentry/raw/debian/1.1.0-1/debian/patches/0007-gtk2-When-X11-input-grabbing-fails-try-again-over-0..patch"; url = "https://salsa.debian.org/debian/pinentry/raw/debian/1.1.0-1/debian/patches/0007-gtk2-When-X11-input-grabbing-fails-try-again-over-0..patch";

View File

@ -1,13 +1,29 @@
diff --git a/configure.ac b/configure.ac diff --git a/configure.ac b/configure.ac
index 1b3ded6..0b78e69 100644 index 2a9f5d2..a3d9b79 100644
--- a/configure.ac --- a/configure.ac
+++ b/configure.ac +++ b/configure.ac
@@ -358,6 +358,8 @@ if test "$pinentry_tty" = "yes"; then @@ -45,6 +45,7 @@ m4_esyscmd([echo ]mym4_version[>VERSION])
AC_INIT([mym4_package],[mym4_version],[https://bugs.gnupg.org])
+AC_CONFIG_MACRO_DIRS([m4])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR(pinentry/pinentry.h)
@@ -329,13 +330,15 @@ if test "$pinentry_tty" = "yes"; then
[The TTY version of Pinentry is to be build]) [The TTY version of Pinentry is to be build])
fi fi
+AM_GNU_GETTEXT_VERSION([0.21]) +AM_GNU_GETTEXT_VERSION([0.21])
+AM_GNU_GETTEXT([external]) +AM_GNU_GETTEXT([external])
+AM_ICONV
dnl dnl
dnl Additional checks pinentry Curses. dnl Additional checks pinentry Curses.
dnl
if test "$pinentry_curses" = "yes" \
-o "$fallback_curses" = "yes" ; then
- AM_ICONV
if test "$am_cv_func_iconv" != "yes"; then
AC_MSG_ERROR([[
***