[UBUNTU 24.04] dbginfo.sh: updates required for /bin/dash shell

Bug #2058944 reported by bugproxy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu on IBM z Systems
Fix Released
Medium
Skipper Bug Screeners
s390-tools (Ubuntu)
Fix Released
Undecided
Frank Heimes
s390-tools-signed (Ubuntu)
Fix Released
Undecided
Frank Heimes

Bug Description

== <email address hidden> - 2024-03-25 05:51:16 ==
---Description---
Description: dbginfo.sh: incompatible commands with /bin/dash shell
Symptom: script brakes on file copy
Problem: unpacked data collection
Solution: rewrite in compatible way
Component: s390-tools

the master commit in s390tools:
https://github.com/ibm-s390-linux/s390-tools/commit/1c128c0d11f23f9cf4bb9f4cf89a48b3011c4a99

backport required for all unbuntu using s390-tools v2.31.0

---uname output---
Linux <..> 5.15.0-83-generic #92-Ubuntu SMP Mon Aug 14 09:30:48 UTC 2023 s390x s390x s390x GNU/Linux

Contact Information = <email address hidden>

---Debugger---
A debugger is not configured

---Steps to Reproduce---
 run dbginfo.sh (as root)

script will fail in last step "Finalizing: Creating archive with collected data"

check /tnp/DBG*/dbginfo.log of the running script, it shows the error "Bad substitution" for the line

   cp -p "${BASH_SOURCE[0]}" "${WORKPATH}"

Problem: dash does not support array function

array function was addd by commit https://github.com/ibm-s390-linux/s390-tools/commit/58ef99f76b0765f88b270b003bc7a516e5b36ec4 as part of s390-tools v2.31.0

Machine Type = indipendent

Userspace tool common name: dbginfo.sh

The userspace tool has the following bit modes: na

Userspace tool obtained from project website: na

Userspace rpm: s390-tools

bugproxy (bugproxy)
tags: added: architecture-s3903164 bugnameltc-205909 severity-medium targetmilestone-inin---
Changed in ubuntu:
assignee: nobody → Skipper Bug Screeners (skipper-screen-team)
affects: ubuntu → linux (Ubuntu)
Frank Heimes (fheimes)
affects: linux (Ubuntu) → s390-tools (Ubuntu)
Changed in ubuntu-z-systems:
assignee: nobody → Skipper Bug Screeners (skipper-screen-team)
Changed in s390-tools (Ubuntu):
assignee: Skipper Bug Screeners (skipper-screen-team) → Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
importance: Undecided → High
importance: High → Medium
Revision history for this message
Frank Heimes (fheimes) wrote :

Kicked-off a PPA build of patched s390-tools version 2.31.0-0ubuntu4 here:
https://launchpad.net/~fheimes/+archive/ubuntu/lp2058944

Changed in ubuntu-z-systems:
status: New → In Progress
Changed in s390-tools (Ubuntu):
status: New → In Progress
Revision history for this message
Frank Heimes (fheimes) wrote :
Revision history for this message
Frank Heimes (fheimes) wrote :
tags: added: patch
Revision history for this message
Frank Heimes (fheimes) wrote :

I've noticed that two no-change rebuilds (against libcurl4t64 and libssl3t64) were triggered, which obviously increased the version of the s390-tools. But at the same time s390-tools-signed version stayed the same, hence the s390-tools would have become uninstallable without a proper s390-tools-signed with the same version).
With this fix I aligned the two package versions again (which is also the reason why the debdiff for s390-tools-signed is between 2.31.0-0ubuntu1 and 2.31.0-0ubuntu4, since there were no 0ubuntu2 nor 0ubuntu3.)

Changed in s390-tools-signed (Ubuntu):
status: New → In Progress
assignee: nobody → Frank Heimes (fheimes)
Revision history for this message
Frank Heimes (fheimes) wrote :

Unsubscribed ubuntu-sponsors, since meanwhile a new LP bug came in (LP: #2059303), and I'm going to upload a new debdiff that covers both - LP: #2059303 and this, LP: #058944.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package s390-tools - 2.31.0-0ubuntu5

---------------
s390-tools (2.31.0-0ubuntu5) noble; urgency=medium

  * Add the following commits as patches:
    - d/p/lp-2059303-rust-pv-test-Code-Certificate-refactoring.patch
      (excluded patching binary files rust/pv/tests/assets/cert/der.crl and
       rust/pv/tests/assets/cert/der.crt, which is not supported by quilt
       - these files are needed for testing only)
    - d/p/lp-2059303-rust-pv-Support-Armonk-in-IBM-signing-key-subject.patch
    - d/p/lp-2059303-genprotimg-support-Armonk-in-IBM-signing-key-subject.patch
    - d/p/lp-2059303-libpv-Support-Armonk-in-IBM-signing-key-subject.patch
    - d/p/lp-2059303-pvattest-Fix-root-ca-parsing.patch
    to fix Secure Execution tooling and accept new IBM host-key
    subject locality. LP: #2059303
  * Add d/p/lp-2058944-dbginfo.sh-dash-compatible-copy-sequence.patch
    to fix dash incompatibility in dbginfo.sh. LP: #2058944

 -- Frank Heimes <email address hidden> Tue, 02 Apr 2024 12:45:30 +0200

Changed in s390-tools (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package s390-tools-signed - 2.31.0-0ubuntu5

---------------
s390-tools-signed (2.31.0-0ubuntu5) noble; urgency=medium

  * Rebuild against 2.31.0-0ubuntu5 (LP: #2058944, LP: #2059303)

 -- Frank Heimes <email address hidden> Tue, 02 Apr 2024 12:55:52 +0200

Changed in s390-tools-signed (Ubuntu):
status: In Progress → Fix Released
Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.