Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libstorage-ng for openSUSE:Factory checked in at 2026-11-10 14:38:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libstorage-ng (Old) and /work/SRC/openSUSE:Factory/.libstorage-ng.new.3759290 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libstorage-ng" Tue Nov 10 14:38:46 2026 rev:362 rq:1396250 version:4.5.369 Changes: -------- --- /work/SRC/openSUSE:Factory/libstorage-ng/libstorage-ng.changes 2026-11-05 18:27:47.270391662 +0100 +++ /work/SRC/openSUSE:Factory/.libstorage-ng.new.3759290/libstorage-ng.changes 2026-11-10 14:38:51.105626308 +0100 @@ -1,0 +2,11 @@ +Mon Nov 9 06:42:03 UTC 2026 - [email protected] + +- merge gh#openSUSE/libstorage-ng#1103 +- add partition ids for /var and /var/tmp +- add tests for the new partition ids +- add integration test for the new partition ids +- Version bump +- Add some missing DPS GUIDs +- 4.5.369 + +-------------------------------------------------------------------- Old: ---- libstorage-ng-4.5.368.tar.xz New: ---- libstorage-ng-4.5.369.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libstorage-ng.spec ++++++ --- /var/tmp/diff_new_pack.v1TdF7/_old 2026-11-10 14:38:58.628941175 +0100 +++ /var/tmp/diff_new_pack.v1TdF7/_new 2026-11-10 14:38:58.632941343 +0100 @@ -18,7 +18,7 @@ %define libname %{name}1 Name: libstorage-ng -Version: 4.5.368 +Version: 4.5.369 Release: 0 Summary: Library for storage management License: GPL-2.0-only ++++++ libstorage-ng-4.5.368.tar.xz -> libstorage-ng-4.5.369.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.5.368/LIBVERSION new/libstorage-ng-4.5.369/LIBVERSION --- old/libstorage-ng-4.5.368/LIBVERSION 2026-11-03 18:13:54.000000000 +0100 +++ new/libstorage-ng-4.5.369/LIBVERSION 2026-11-09 07:42:03.000000000 +0100 @@ -1 +1 @@ -1.106.0 +1.107.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.5.368/VERSION new/libstorage-ng-4.5.369/VERSION --- old/libstorage-ng-4.5.368/VERSION 2026-11-03 18:13:54.000000000 +0100 +++ new/libstorage-ng-4.5.369/VERSION 2026-11-09 07:42:03.000000000 +0100 @@ -1 +1 @@ -4.5.368 +4.5.369 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.5.368/integration-tests/partitions/set-dps-id.py new/libstorage-ng-4.5.369/integration-tests/partitions/set-dps-id.py --- old/libstorage-ng-4.5.368/integration-tests/partitions/set-dps-id.py 1970-01-01 01:00:00.000000000 +0100 +++ new/libstorage-ng-4.5.369/integration-tests/partitions/set-dps-id.py 2026-11-09 07:42:03.000000000 +0100 @@ -0,0 +1,26 @@ +#!/usr/bin/python3 + +# requirements: partition /dev/sdc1 and /dev/sdc2 on a GPT, parted 3.6 or higher + + +from storage import * +from storageitu import * + + +set_logger(get_logfile_logger()) + +environment = Environment(False) + +storage = Storage(environment) +storage.probe() + +staging = storage.get_staging() + +print(staging) + +Partition.find_by_name(staging, "/dev/sdc1").set_id(ID_LINUX_VAR) +Partition.find_by_name(staging, "/dev/sdc2").set_id(ID_LINUX_VAR_TMP) + +print(staging) + +commit(storage) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.5.368/storage/Devices/GptImpl.cc new/libstorage-ng-4.5.369/storage/Devices/GptImpl.cc --- old/libstorage-ng-4.5.368/storage/Devices/GptImpl.cc 2026-11-03 18:13:54.000000000 +0100 +++ new/libstorage-ng-4.5.369/storage/Devices/GptImpl.cc 2026-11-09 07:42:03.000000000 +0100 @@ -239,7 +239,7 @@ ID_LINUX_USR_ARM, ID_LINUX_USR_AARCH64, ID_LINUX_USR_PPC32, ID_LINUX_USR_PPC64BE, ID_LINUX_USR_PPC64LE, ID_LINUX_USR_RISCV32, ID_LINUX_USR_RISCV64, ID_LINUX_USR_S390, ID_LINUX_USR_S390X, ID_LINUX_USR_X86, - ID_LINUX_USR_X86_64 + ID_LINUX_USR_X86_64, ID_LINUX_VAR, ID_LINUX_VAR_TMP }; return contains(more_supported_ids, id); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.5.368/storage/Devices/Partition.cc new/libstorage-ng-4.5.369/storage/Devices/Partition.cc --- old/libstorage-ng-4.5.368/storage/Devices/Partition.cc 2026-11-03 18:13:54.000000000 +0100 +++ new/libstorage-ng-4.5.369/storage/Devices/Partition.cc 2026-11-09 07:42:03.000000000 +0100 @@ -1,6 +1,6 @@ /* * Copyright (c) [2014-2015] Novell, Inc. - * Copyright (c) [2016-2024] SUSE LLC + * Copyright (c) [2016-2026] SUSE LLC * * All Rights Reserved. * @@ -90,6 +90,8 @@ { ID_LINUX_USR_S390X, LinuxPartitionIdCategory::USR, "s390x" }, { ID_LINUX_USR_X86, LinuxPartitionIdCategory::USR, "i[5-7]86" }, { ID_LINUX_USR_X86_64, LinuxPartitionIdCategory::USR, "x86_64" }, + { ID_LINUX_VAR }, + { ID_LINUX_VAR_TMP }, { ID_LVM }, { ID_RAID }, { ID_SWAP }, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.5.368/storage/Devices/Partition.h new/libstorage-ng-4.5.369/storage/Devices/Partition.h --- old/libstorage-ng-4.5.368/storage/Devices/Partition.h 2026-11-03 18:13:54.000000000 +0100 +++ new/libstorage-ng-4.5.369/storage/Devices/Partition.h 2026-11-09 07:42:03.000000000 +0100 @@ -216,6 +216,16 @@ /** Linux USR Partition (x86_64), only for GPT. Requires SUSE parted 3.5 or higher. */ ID_LINUX_USR_X86_64, + /** Linux Variable Data, only for GPT. Requires parted 3.6 or higher. Note that + according to the Discoverable Partitions Specification the partition is only + mounted automatically at /var/ if the partition UUID matches the first 128 bits + of HMAC-SHA256(machine-id, 0x4d21b016b53445c2a9fb5c16e091fd2d). The partition + UUID is not set by libstorage-ng. */ + ID_LINUX_VAR, + + /** Linux Temporary Data (/var/tmp/), only for GPT. Requires parted 3.6 or higher. */ + ID_LINUX_VAR_TMP, + }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.5.368/storage/Devices/PartitionImpl.cc new/libstorage-ng-4.5.369/storage/Devices/PartitionImpl.cc --- old/libstorage-ng-4.5.368/storage/Devices/PartitionImpl.cc 2026-11-03 18:13:54.000000000 +0100 +++ new/libstorage-ng-4.5.369/storage/Devices/PartitionImpl.cc 2026-11-09 07:42:03.000000000 +0100 @@ -1842,6 +1842,14 @@ case ID_LINUX_USR_X86_64: // TRANSLATORS: name of partition type return _("Linux USR Partition (x86 64-bit)"); + + case ID_LINUX_VAR: + // TRANSLATORS: name of partition type + return _("Linux Variable Data"); + + case ID_LINUX_VAR_TMP: + // TRANSLATORS: name of partition type + return _("Linux Temporary Data"); } return Text(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.5.368/storage/SystemInfo/CmdParted.cc new/libstorage-ng-4.5.369/storage/SystemInfo/CmdParted.cc --- old/libstorage-ng-4.5.368/storage/SystemInfo/CmdParted.cc 2026-11-03 18:13:54.000000000 +0100 +++ new/libstorage-ng-4.5.369/storage/SystemInfo/CmdParted.cc 2026-11-09 07:42:03.000000000 +0100 @@ -657,6 +657,8 @@ { ID_LINUX_USR_S390X, "8a4f5770-50aa-4ed3-874a-99b710db6fea" }, { ID_LINUX_USR_X86, "75250d76-8cc6-458e-bd66-bd47cc81a812" }, { ID_LINUX_USR_X86_64, "8484680c-9521-48c6-9c11-b0720656f69e" }, + { ID_LINUX_VAR, "4d21b016-b534-45c2-a9fb-5c16e091fd2d" }, + { ID_LINUX_VAR_TMP, "7ec6f557-3bc5-4aca-b293-16ef5df639d1" }, { ID_SWAP, "0657fd6d-a4ab-43c4-84e5-0933c84b4f4f" }, }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.5.368/testsuite/partition-id.cc new/libstorage-ng-4.5.369/testsuite/partition-id.cc --- old/libstorage-ng-4.5.368/testsuite/partition-id.cc 2026-11-03 18:13:54.000000000 +0100 +++ new/libstorage-ng-4.5.369/testsuite/partition-id.cc 2026-11-09 07:42:03.000000000 +0100 @@ -27,6 +27,14 @@ BOOST_CHECK(is_linux_partition_id(ID_LINUX_USR_X86_64)); BOOST_CHECK(is_linux_partition_id(ID_LINUX_USR_X86_64, LinuxPartitionIdCategory::USR)); BOOST_CHECK(!is_linux_partition_id(ID_LINUX_USR_X86_64, LinuxPartitionIdCategory::ROOT)); + + BOOST_CHECK(is_linux_partition_id(ID_LINUX_VAR)); + BOOST_CHECK(!is_linux_partition_id(ID_LINUX_VAR, LinuxPartitionIdCategory::ROOT)); + BOOST_CHECK(!is_linux_partition_id(ID_LINUX_VAR, LinuxPartitionIdCategory::USR)); + + BOOST_CHECK(is_linux_partition_id(ID_LINUX_VAR_TMP)); + BOOST_CHECK(!is_linux_partition_id(ID_LINUX_VAR_TMP, LinuxPartitionIdCategory::ROOT)); + BOOST_CHECK(!is_linux_partition_id(ID_LINUX_VAR_TMP, LinuxPartitionIdCategory::USR)); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libstorage-ng-4.5.368/testsuite/partitions/attributes.cc new/libstorage-ng-4.5.369/testsuite/partitions/attributes.cc --- old/libstorage-ng-4.5.368/testsuite/partitions/attributes.cc 2026-11-03 18:13:54.000000000 +0100 +++ new/libstorage-ng-4.5.369/testsuite/partitions/attributes.cc 2026-11-09 07:42:03.000000000 +0100 @@ -101,4 +101,6 @@ sda1->set_id(ID_SWAP); BOOST_CHECK_THROW(sda1->set_id(ID_LINUX_HOME), Exception); + BOOST_CHECK_THROW(sda1->set_id(ID_LINUX_VAR), Exception); + BOOST_CHECK_THROW(sda1->set_id(ID_LINUX_VAR_TMP), Exception); }
