Merge updates from master

This commit is contained in:
Repository mirror & CI
2026-04-14 05:00:55 +00:00
8 changed files with 0 additions and 274 deletions
@@ -1,113 +0,0 @@
Bug: https://bugs.gentoo.org/944460
Bug: https://bugs.gentoo.org/945726
--- a/libsm/vfscanf.c
+++ b/libsm/vfscanf.c
@@ -37,6 +37,7 @@
#define SUPPRESS 0x10 /* suppress assignment */
#define POINTER 0x20 /* weird %p pointer (`fake hex') */
#define NOSKIP 0x40 /* do not skip blanks */
+#define UNSIGNED 0x80 /* unsigned conversions */
/*
** The following are used in numeric conversions only:
@@ -122,9 +123,6 @@
int nassigned; /* number of fields assigned */
int nread; /* number of characters consumed from fp */
int base; /* base argument to strtoll/strtoull */
-
- /* conversion function (strtoll/strtoull) */
- ULONGLONG_T (*ccfn) __P((const char *, char **, int));
char ccltab[256]; /* character class table for %[...] */
char buf[BUF]; /* buffer for numeric conversions */
SM_EVENT *evt = NULL;
@@ -160,7 +158,6 @@
nassigned = 0;
nread = 0;
base = 0; /* XXX just to keep gcc happy */
- ccfn = NULL; /* XXX just to keep gcc happy */
for (;;)
{
c = *fmt++;
@@ -240,13 +237,11 @@
/* FALLTHROUGH */
case 'd':
c = CT_INT;
- ccfn = (ULONGLONG_T (*)())sm_strtoll;
base = 10;
break;
case 'i':
c = CT_INT;
- ccfn = (ULONGLONG_T (*)())sm_strtoll;
base = 0;
break;
@@ -255,21 +250,20 @@
/* FALLTHROUGH */
case 'o':
c = CT_INT;
- ccfn = sm_strtoull;
+ flags |= UNSIGNED;
base = 8;
break;
case 'u':
c = CT_INT;
- ccfn = sm_strtoull;
+ flags |= UNSIGNED;
base = 10;
break;
case 'X':
case 'x':
- flags |= PFXOK; /* enable 0x prefixing */
+ flags |= PFXOK | UNSIGNED;
c = CT_INT;
- ccfn = sm_strtoull;
base = 16;
break;
@@ -297,9 +291,8 @@
break;
case 'p': /* pointer format is like hex */
- flags |= POINTER | PFXOK;
+ flags |= POINTER | PFXOK | UNSIGNED;
c = CT_INT;
- ccfn = sm_strtoull;
base = 16;
break;
@@ -324,7 +317,6 @@
if (isupper(c))
flags |= LONG;
c = CT_INT;
- ccfn = (ULONGLONG_T (*)()) sm_strtoll;
base = 10;
break;
}
@@ -628,7 +620,12 @@
ULONGLONG_T res;
*p = 0;
- res = (*ccfn)(buf, (char **)NULL, base);
+ if (flags & UNSIGNED)
+ res = sm_strtoull(buf, (char **)NULL,
+ base);
+ else
+ res = sm_strtoll(buf, (char **)NULL,
+ base);
if (flags & POINTER)
*SM_VA_ARG(ap, void **) =
(void *)(long) res;
--- a/mailstats/mailstats.c
+++ b/mailstats/mailstats.c
@@ -65,7 +65,6 @@
char sfilebuf[MAXPATHLEN];
char buf[MAXLINE];
struct statistics stats;
- extern char *ctime();
extern char *optarg;
extern int optind;
# define MSOPTS "cC:f:opP"
@@ -1,12 +0,0 @@
divert(-1)
divert(0)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`$Id$')dnl
OSTYPE(linux)dnl
DOMAIN(generic)dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`local_lmtp',`/usr/sbin/mail.local')dnl
FEATURE(`local_procmail')dnl
MAILER(local)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
@@ -1,11 +0,0 @@
# Alternative channel configuration file
#
# Syntax: original channel id;alternative channel id
# Example: C-62499-10007-12003;C-0-196-14
# this means, if channel C-62499-10007-12003 is
# not available for a recording, vdr will try to
# use channel C-0-196-14
#
# lines beginning with '#' are ignored
#
@@ -1,32 +0,0 @@
https://bugs.gentoo.org/950976
https://gitlab.freedesktop.org/mobile-broadband/libqmi/-/issues/124
https://gitlab.freedesktop.org/mobile-broadband/libmbim/-/merge_requests/228
https://gitlab.freedesktop.org/mobile-broadband/libmbim/-/commit/c78b215f058e6fe6e6cc90943a50fd1e84a878b0
From c78b215f058e6fe6e6cc90943a50fd1e84a878b0 Mon Sep 17 00:00:00 2001
From: Dan Williams <dan@ioncontrol.co>
Date: Mon, 7 Apr 2025 21:43:56 -0500
Subject: [PATCH] build: build doc target by default for meson >= 1.7.0
Meson 1.7.0 no longer builds test targets by default, and gtkdoc doesn't
expose enough dependency info (yet) for meson to know what sub-targets
to build when docs are enabled for install. Work around that for now.
See also: https://gitlab.freedesktop.org/mobile-broadband/libqmi/-/issues/124
Found by, and fix proposed by, Marcin Serwin
Signed-off-by: Dan Williams <dan@ioncontrol.co>
--- a/docs/reference/libmbim-glib/meson.build
+++ b/docs/reference/libmbim-glib/meson.build
@@ -48,6 +48,7 @@ sections_txt = custom_target(
capture: true,
command: [find_program('cat'), '@INPUT@'] + gen_sections,
depends: gen_sections_deps,
+ build_by_default: true,
)
version_xml = configure_file(
--
GitLab
@@ -1,32 +0,0 @@
https://github.com/systemd/systemd/pull/40607
From 1766be649f2c153dee6fe2c79c5aac3a21c73a7b Mon Sep 17 00:00:00 2001
From: Mike Gilbert <floppym@gentoo.org>
Date: Sun, 8 Feb 2026 19:12:30 -0500
Subject: [PATCH] meson: use printf instead of echo
The echo builtin provided by some shells (mksh) will interpret \x2d as
an escape sequence. This causes meson to fail:
```
test/fuzz/meson.build:93:52: ERROR: File fuzz-unit-file/dm-back-slash.swap does not exist.
```
Bug: https://bugs.gentoo.org/969789
---
test/fuzz/meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/fuzz/meson.build b/test/fuzz/meson.build
index d4cfc0a5b4816..6f9f43a4105f9 100644
--- a/test/fuzz/meson.build
+++ b/test/fuzz/meson.build
@@ -42,7 +42,7 @@ if git.found() and fs.is_dir(meson.project_source_root() / '.git')
'ls-files', ':/@0@/*/*'.format(fuzz_testsdir),
check: true)
else
- out = run_command(sh, '-c', 'cd "@0@"; echo @1@/*/*'.format(meson.project_source_root(), fuzz_testsdir), check: true)
+ out = run_command(sh, '-c', 'cd "@0@"; printf "%s " @1@/*/*'.format(meson.project_source_root(), fuzz_testsdir), check: true)
endif
# Add crafted fuzz inputs we have in the repo
@@ -1,18 +0,0 @@
https://bugs.gentoo.org/970010
--- a/kernel-module-source/kernel-open/nvidia-uvm/uvm_hmm.c
+++ b/kernel-module-source/kernel-open/nvidia-uvm/uvm_hmm.c
@@ -22,4 +22,5 @@
*******************************************************************************/
+#include <linux/version.h>
#include "uvm_hmm.h"
@@ -79,5 +80,7 @@
// function will need to be revisited
//
-#if defined(NV_ZONE_DEVICE_PAGE_INIT_HAS_ORDER_ARG)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 19, 0)
+#define ZONE_DEVICE_PAGE_INIT(page) zone_device_page_init(page, page_pgmap(page), 0);
+#elif defined(NV_ZONE_DEVICE_PAGE_INIT_HAS_ORDER_ARG)
#define ZONE_DEVICE_PAGE_INIT(page) zone_device_page_init(page, 0)
#else
@@ -1,21 +0,0 @@
get_dev_pagemap() is only used with CONFIG_ZONE_DEVICE and
USE=kernel-open, and in kernel 6.18 takes one argument in less that
NVIDIA seemingly did not need.
This is a simplified version of 590.44.01's fix which skips the
conftest.sh changes for easier backporting (at worst the simple version
check may break if the kernel backports this to older kernels).
[1] https://github.com/NVIDIA/open-gpu-kernel-modules/pull/951
--- a/kernel-module-source/kernel-open/nvidia-uvm/uvm_va_range_device_p2p.c
+++ b/kernel-module-source/kernel-open/nvidia-uvm/uvm_va_range_device_p2p.c
@@ -361,5 +361,9 @@
if (gpu->parent->cdmm_enabled) {
get_page(page);
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,18,0)
+ get_dev_pagemap(page_to_pfn(page));
+#else
get_dev_pagemap(page_to_pfn(page), NULL);
+#endif
}
#else
@@ -1,35 +0,0 @@
diff -Naur dockapps.orig/xutils.c dockapps/xutils.c
--- dockapps.orig/xutils.c 2014-12-09 20:31:13.000000000 +0100
+++ dockapps/xutils.c 2020-03-29 13:29:01.027698381 +0200
@@ -54,6 +54,11 @@
XpmIcon wmgen;
Pixmap pixmask;
+Display *display;
+Window Root;
+Window iconwin, win;
+int screen;
+int DisplayDepth;
diff -Naur dockapps.orig/xutils.h dockapps/xutils.h
--- dockapps.orig/xutils.h 2014-12-09 20:31:13.000000000 +0100
+++ dockapps/xutils.h 2020-03-29 13:29:10.728695410 +0200
@@ -18,11 +18,11 @@
/*
* Global variable
*/
-Display *display;
-Window Root;
-Window iconwin, win;
-int screen;
-int DisplayDepth;
+extern Display *display;
+extern Window Root;
+extern Window iconwin, win;
+extern int screen;
+extern int DisplayDepth;