Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package yast2 for openSUSE:Factory checked in at 2026-05-13 20:58:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2 (Old) and /work/SRC/openSUSE:Factory/.yast2.new.1966 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2" Wed May 13 20:58:53 2026 rev:571 rq:1352795 version:5.0.21 Changes: -------- --- /work/SRC/openSUSE:Factory/yast2/yast2.changes 2026-03-27 06:52:58.550554517 +0100 +++ /work/SRC/openSUSE:Factory/.yast2.new.1966/yast2.changes 2026-05-13 20:58:57.412197669 +0200 @@ -1,0 +2,8 @@ +Tue May 12 05:48:18 UTC 2026 - José Iván López González <[email protected]> + +- Drop the logic for checking TPM2 availability. +- The TPM2 check is now provided by yast2-storage-ng (related to + jsc#PED-10703). +- 5.0.21 + +------------------------------------------------------------------- Old: ---- yast2-5.0.20.tar.bz2 New: ---- yast2-5.0.21.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2.spec ++++++ --- /var/tmp/diff_new_pack.itpy4c/_old 2026-05-13 20:58:58.576245663 +0200 +++ /var/tmp/diff_new_pack.itpy4c/_new 2026-05-13 20:58:58.580245828 +0200 @@ -17,7 +17,7 @@ Name: yast2 -Version: 5.0.20 +Version: 5.0.21 Release: 0 Summary: YaST2 Main Package ++++++ yast2-5.0.20.tar.bz2 -> yast2-5.0.21.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-5.0.20/library/general/src/modules/Arch.rb new/yast2-5.0.21/library/general/src/modules/Arch.rb --- old/yast2-5.0.20/library/general/src/modules/Arch.rb 2026-03-25 18:40:01.000000000 +0100 +++ new/yast2-5.0.21/library/general/src/modules/Arch.rb 2026-05-12 18:24:32.000000000 +0200 @@ -45,8 +45,6 @@ @_has_pcmcia = nil - @_has_tpm2 = nil - @_is_laptop = nil @_is_uml = nil @@ -429,31 +427,6 @@ SCR.Read(path(".target.string"), "/sys/hypervisor/guest_type").strip == "PV" end - # Whether a TPM2 chip is available or not. - # - # @return [Boolean] true if a TPM2 chip is available; false otherwise - def has_tpm2 - if @_has_tpm2.nil? - @_has_tpm2 = SCR.Read(path(".target.string"), - "/sys/class/tpm/tpm0/tpm_version_major")&.strip == "2" - if @_has_tpm2 - # systemd-pcrlock is using PolicyAuthorizeNV to store the policy inside - # the TPM2's non volatile RAM. This feature is supported after TPM2 1.38 - # revision, and without it systemd-pcrlock will fail. These calls check - # for version > 1.38 (bsc#1250403) - # tpm_fde is not affected because it is using it's own tool to recognize - # TPM. - begin - output = Yast::Execute.locally!("tpm2_getcap", "commands", stdout: :capture) - rescue Cheetah::ExecutionFailed - @_has_tpm2 = false - end - @_has_tpm2 = output.include?("TPM2_CC_PolicyAuthorizeNV") if @_has_tpm2 - end - end - @_has_tpm2 - end - # Convenience method to retrieve the /proc/xen/capabilities content # # @return [String] @@ -604,7 +577,6 @@ publish function: :board_pegasos, type: "boolean ()" publish function: :board_wintel, type: "boolean ()" publish function: :has_pcmcia, type: "boolean ()" - publish function: :has_tpm2, type: "boolean ()" publish function: :is_laptop, type: "boolean ()" publish function: :is_uml, type: "boolean ()" publish function: :is_xen, type: "boolean ()" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-5.0.20/library/general/test/arch_test.rb new/yast2-5.0.21/library/general/test/arch_test.rb --- old/yast2-5.0.20/library/general/test/arch_test.rb 2026-03-25 18:40:01.000000000 +0100 +++ new/yast2-5.0.21/library/general/test/arch_test.rb 2026-05-12 18:24:32.000000000 +0200 @@ -319,63 +319,4 @@ end end end - - describe ".has_tpm2" do - let(:error) { Cheetah::ExecutionFailed.new([], "", nil, nil) } - it "returns true if /sys/class/tpm/tpm0/tpm_version_major is set correctly" do - allow(Yast::SCR).to receive(:Read) - .with(Yast::Path.new(".target.string"), - "/sys/class/tpm/tpm0/tpm_version_major").and_return("2") - allow(Yast::Execute).to receive(:locally!).and_return("TPM2_CC_PolicyAuthorizeNV") - - has_tpm2 = Yast::Arch.has_tpm2 - - expect(has_tpm2).to eq(true) - end - - it "returns false if /sys/class/tpm/tpm0/tpm_version_major has wrong version" do - allow(Yast::SCR).to receive(:Read) - .with(Yast::Path.new(".target.string"), - "/sys/class/tpm/tpm0/tpm_version_major").and_return("1") - - has_tpm2 = Yast::Arch.has_tpm2 - - expect(has_tpm2).to eq(false) - end - - it "returns false if /sys/class/tpm/tpm0/tpm_version_major does not exist" do - allow(Yast::SCR).to receive(:Read) - .with(Yast::Path.new(".target.string"), - "/sys/class/tpm/tpm0/tpm_version_major").and_return(nil) - - has_tpm2 = Yast::Arch.has_tpm2 - - expect(has_tpm2).to eq(false) - end - - context "correct version in /sys/class/tpm/tpm0/tpm_version_major" do - before do - allow(Yast::SCR).to receive(:Read) - .with(Yast::Path.new(".target.string"), - "/sys/class/tpm/tpm0/tpm_version_major").and_return("2") - end - - it "return false if TPM2_CC_PolicyAuthorizeNV is not available" do - allow(Yast::Execute).to receive(:locally!).and_return("not found") - - has_tpm2 = Yast::Arch.has_tpm2 - - expect(has_tpm2).to eq(false) - end - - it "return true if TPM2_CC_PolicyAuthorizeNV is available" do - allow(Yast::Execute).to receive(:locally!).and_return("TPM2_CC_PolicyAuthorizeNV") - - has_tpm2 = Yast::Arch.has_tpm2 - - expect(has_tpm2).to eq(true) - end - - end - end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-5.0.20/package/yast2.changes new/yast2-5.0.21/package/yast2.changes --- old/yast2-5.0.20/package/yast2.changes 2026-03-25 18:40:01.000000000 +0100 +++ new/yast2-5.0.21/package/yast2.changes 2026-05-12 18:24:32.000000000 +0200 @@ -1,4 +1,12 @@ ------------------------------------------------------------------- +Tue May 12 05:48:18 UTC 2026 - José Iván López González <[email protected]> + +- Drop the logic for checking TPM2 availability. +- The TPM2 check is now provided by yast2-storage-ng (related to + jsc#PED-10703). +- 5.0.21 + +------------------------------------------------------------------- Tue Mar 10 09:00:28 UTC 2026 - Michal Filka <[email protected]> - jsc#PED-14507 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-5.0.20/package/yast2.spec new/yast2-5.0.21/package/yast2.spec --- old/yast2-5.0.20/package/yast2.spec 2026-03-25 18:40:01.000000000 +0100 +++ new/yast2-5.0.21/package/yast2.spec 2026-05-12 18:24:32.000000000 +0200 @@ -17,7 +17,7 @@ Name: yast2 -Version: 5.0.20 +Version: 5.0.21 Release: 0 Summary: YaST2 Main Package
