Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libdrm for openSUSE:Factory checked in at 2026-01-07 16:00:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libdrm (Old) and /work/SRC/openSUSE:Factory/.libdrm.new.1928 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libdrm" Wed Jan 7 16:00:46 2026 rev:188 rq:1325624 version:2.4.131 Changes: -------- --- /work/SRC/openSUSE:Factory/libdrm/libdrm.changes 2025-12-09 12:48:27.063116518 +0100 +++ /work/SRC/openSUSE:Factory/.libdrm.new.1928/libdrm.changes 2026-01-07 16:01:03.442224866 +0100 @@ -1,0 +2,7 @@ +Sun Dec 28 23:03:32 UTC 2025 - Dirk Müller <[email protected]> + +- update to 2.4.131 + * support steam machine + * avoid insecure getenv use + +------------------------------------------------------------------- Old: ---- libdrm-2.4.130.tar.xz New: ---- libdrm-2.4.131.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libdrm.spec ++++++ --- /var/tmp/diff_new_pack.e66r88/_old 2026-01-07 16:01:04.242258164 +0100 +++ /var/tmp/diff_new_pack.e66r88/_new 2026-01-07 16:01:04.246258330 +0100 @@ -29,7 +29,7 @@ Name: libdrm # Please remember to adjust the version in the n_libdrm-drop-valgrind* patches -Version: 2.4.130 +Version: 2.4.131 Release: 0 Summary: Userspace Interface for Kernel DRM Services License: MIT ++++++ libdrm-2.4.130.tar.xz -> libdrm-2.4.131.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libdrm-2.4.130/README.rst new/libdrm-2.4.131/README.rst --- old/libdrm-2.4.130/README.rst 2025-12-08 14:15:17.000000000 +0100 +++ new/libdrm-2.4.131/README.rst 2025-12-11 22:17:34.000000000 +0100 @@ -58,3 +58,6 @@ paths at runtime by setting the `AMDGPU_ASIC_ID_TABLE_PATHS` environment variable with one or more colon-separated paths where to search for the `amdgpu.ids` file. + +For this option to be available, the C library must support secure_getenv() +function. In systems without it (like NetBSD), this option won't be available. \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libdrm-2.4.130/amdgpu/amdgpu_asic_id.c new/libdrm-2.4.131/amdgpu/amdgpu_asic_id.c --- old/libdrm-2.4.130/amdgpu/amdgpu_asic_id.c 2025-12-08 14:15:17.000000000 +0100 +++ new/libdrm-2.4.131/amdgpu/amdgpu_asic_id.c 2025-12-11 22:17:34.000000000 +0100 @@ -165,6 +165,7 @@ fclose(fp); } +#if HAVE_SECURE_GETENV static char *join_path(const char *dir, const char *file) { size_t dir_len = strlen(dir); size_t file_len = strlen(file); @@ -268,6 +269,7 @@ split_env_var_free(paths); return found_path; } +#endif void amdgpu_parse_asic_ids(struct amdgpu_device *dev) { @@ -278,8 +280,12 @@ int line_num = 1; int r = 0; - char *amdgpu_asic_id_table_path = find_asic_id_table(); - + char *amdgpu_asic_id_table_path = NULL; +#if HAVE_SECURE_GETENV + // if this system lacks secure_getenv(), don't allow extra paths + // for security reasons. + amdgpu_asic_id_table_path = find_asic_id_table(); +#endif // if not found, use the default AMDGPU_ASIC_ID_TABLE path if (!amdgpu_asic_id_table_path) amdgpu_asic_id_table_path = strdup(AMDGPU_ASIC_ID_TABLE); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libdrm-2.4.130/data/amdgpu.ids new/libdrm-2.4.131/data/amdgpu.ids --- old/libdrm-2.4.130/data/amdgpu.ids 2025-12-08 14:15:17.000000000 +0100 +++ new/libdrm-2.4.131/data/amdgpu.ids 2025-12-11 22:17:34.000000000 +0100 @@ -577,6 +577,7 @@ 7480, C3, AMD Radeon RX 7600S 7480, C7, AMD Radeon RX 7600M XT 7480, CF, AMD Radeon RX 7600 +7481, C7, AMD Steam Machine 7483, CF, AMD Radeon RX 7600M 7489, 00, AMD Radeon Pro W7500 7499, 00, AMD Radeon Pro W7400 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libdrm-2.4.130/meson.build new/libdrm-2.4.131/meson.build --- old/libdrm-2.4.130/meson.build 2025-12-08 14:15:17.000000000 +0100 +++ new/libdrm-2.4.131/meson.build 2025-12-11 22:17:34.000000000 +0100 @@ -26,7 +26,7 @@ project( 'libdrm', ['c'], - version : '2.4.130', + version : '2.4.131', license : 'MIT', meson_version : '>= 0.59', default_options : ['buildtype=debugoptimized', 'c_std=c11'], @@ -51,6 +51,8 @@ cc = meson.get_compiler('c') +config.set10('HAVE_SECURE_GETENV', cc.has_function('secure_getenv')) + android = cc.compiles('''int func() { return __ANDROID__; }''') # Solaris / Illumos
