Skip to content

zypper not always showing all posttrans messages #591

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jengelh opened this issue Feb 6, 2025 · 0 comments
Open

zypper not always showing all posttrans messages #591

jengelh opened this issue Feb 6, 2025 · 0 comments

Comments

@jengelh
Copy link
Contributor

jengelh commented Feb 6, 2025

OS: Tumbleweed 20250204, libzypp-17.35.19-1.1.x86_64, zypper-1.14.81-1.1.x86_64, systemd-257.2-2.1.x86_64 (important), man-2.13.0-2.2.x86_64 (important), glibc-2.40-3.1.x86_64 (important)

rpm 4.20 has gained new deprecation warnings, but they do not always show up when rpm runs on behalf of zypper.

# zypper dup
[…]
Choose from above solutions by number or skip, retry or cancel [1/2/s/r/c/d/?] (c): 1

Resolving dependencies...
Computing distribution upgrade...

The following 146 packages are going to be upgraded:[...]
Checking for file conflicts: ....................................................................................[done]
install-info: No such file or directory for /usr/share/info/libffi-5.info.gz
[…]
(170/173) Installing: screen-4.9.1-5.3.x86_64 ...................................................................[done]
(171/173) Installing: jeng-base-packages-50-1.4.noarch ..........................................................[done]
(172/173) Installing: jeng-workstation-packages-50-1.4.noarch ...................................................[done]
(173/173) Installing: jeng-devel-packages-50-1.4.noarch .........................................................[done]
%posttrans(screen-4.9.1-5.3.x86_64) script output:
<cyan>warning: posix.fork(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.spawn() or rpm.execute() instead
<cyan>warning: posix.wait(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.spawn() or rpm.execute() instead
<cyan>warning: posix.exec(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.spawn() or rpm.execute() instead
[…]
Running post-transaction scripts ................................................................................[done]
There are running programs which still use files and libraries deleted or updated by recent upgrades. They should be restarted to benefit from the latest updates. Run 'zypper ps -s' to list these programs.

# zypper rm wtmpdb
Reading installed packages...
Resolving package dependencies...

The following package is going to be REMOVED:
  wtmpdb

1 package to remove.

Package install size change:
              |         0 B    required by packages that will be installed
   -90.2 KiB  |  -   90.2 KiB  released by packages that will be removed

Backend:  classic_rpmtrans
Continue? [y/n/v/...? shows all options] (y):
<cyan>Removed '/etc/systemd/system/timers.target.wants/wtmpdb-rotate.timer'.
<cyan>Removed '/etc/systemd/system/default.target.wants/wtmpdb-update-boot.service'.
<cyan>Removed '/etc/systemd/system/sockets.target.wants/wtmpdbd.socket'.
(1/1) Removing: wtmpdb-0.71.0+git20250203.86b8442-1.1.x86_64 ....................................................[done]
Running post-transaction scripts ................................................................................[done]
There are running programs which still use files and libraries deleted or updated by recent upgrades. They should be restarted to benefit from the latest updates. Run 'zypper ps -s' to list these programs.

# zypper in wtmpdb
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW package is going to be installed:
  wtmpdb

1 new package to install.

Package download size:    45.4 KiB

Package install size change:
              |      90.2 KiB  required by packages that will be installed
    90.2 KiB  |  -      0 B    released by packages that will be removed

Backend:  classic_rpmtrans
Continue? [y/n/v/...? shows all options] (y):
Retrieving: wtmpdb-0.71.0+git20250203.86b8442-1.1.x86_64 (base)                                    (1/1),  45.4 KiB
Retrieving: wtmpdb-0.71.0+git20250203.86b8442-1.1.x86_64.rpm ....................................................[done]

Checking for file conflicts: ....................................................................................[done]
<cyan>Created symlink '/etc/systemd/system/default.target.wants/wtmpdb-update-boot.service' -> '/usr/lib/systemd/system/wtmpdb-update-boot.service'.
<cyan>Created symlink '/etc/systemd/system/timers.target.wants/wtmpdb-rotate.timer' -> '/usr/lib/systemd/system/wtmpdb-rotate.timer'.
<cyan>Created symlink '/etc/systemd/system/sockets.target.wants/wtmpdbd.socket' -> '/usr/lib/systemd/system/wtmpdbd.socket'.
(1/1) Installing: wtmpdb-0.71.0+git20250203.86b8442-1.1.x86_64 ..................................................[done]
Running post-transaction scripts ................................................................................[done]

# rpm -e wtmpdb
Removed '/etc/systemd/system/timers.target.wants/wtmpdb-rotate.timer'.
Removed '/etc/systemd/system/default.target.wants/wtmpdb-update-boot.service'.
Removed '/etc/systemd/system/sockets.target.wants/wtmpdbd.socket'.
warning: posix.fork(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.spawn() or rpm.execute() instead
warning: posix.wait(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.spawn() or rpm.execute() instead
warning: posix.exec(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.spawn() or rpm.execute() instead
warning: posix.fork(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.spawn() or rpm.execute() instead
warning: posix.wait(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.spawn() or rpm.execute() instead
warning: posix.exec(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.spawn() or rpm.execute() instead
warning: posix.fork(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.spawn() or rpm.execute() instead
warning: posix.wait(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.spawn() or rpm.execute() instead
warning: posix.exec(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.spawn() or rpm.execute() instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant