Bug 947835 - Misleading/Wrong rpm error message
Summary: Misleading/Wrong rpm error message
Status: REOPENED
: 819639 (view as bug list)
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Michael Schröder
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-28 15:52 UTC by Fabian Vogt
Modified: 2017-08-12 20:05 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---
fvogt: needinfo? (mls)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Vogt 2015-09-28 15:52:29 UTC
When installing an rpm package without the necessary free space on /, rpm prints the following message:
"installing package <package> needs <amount> on the / fileystem"

This is wrong and misleading, it should be
"installing package <package> needs <amount> more free space on the / fileystem"

As the amount changes based on the current disk usage.
Comment 1 Fabian Vogt 2015-10-05 11:17:31 UTC
Directly from transaction.c of the rpm source:

> rpmteAddProblem(te, RPMPROB_DISKSPACE, NULL, dsi->mntPoint, (adj_fs_blocks(dsi->bneeded) - dsi->bavail) * dsi->bsize);
Comment 2 Michael Schröder 2015-10-08 10:55:47 UTC
Maybe, but I'm not going to fix all of the translations. This is something for upstream to change...
(I once had a patch that changed the code to not subtract bavail, but dropped it as it's really the message wording that needs to be changed.)
Comment 3 Christian Boltz 2015-10-08 17:48:15 UTC
(In reply to Michael Schröder from comment #2)
> Maybe, but I'm not going to fix all of the translations. This is something
> for upstream to change...

I understand that you don't want to carry this as patch, but - can you please submit this upstream (as patch or bugreport)?

If you really don't want to do it yourself - where can I find the upstream bugtracker?

> (I once had a patch that changed the code to not subtract bavail, but
> dropped it as it's really the message wording that needs to be changed.)

Both ways would be ok IMHO ;-)
Comment 4 Christian Boltz 2017-08-12 18:41:09 UTC
*** Bug 819639 has been marked as a duplicate of this bug. ***
Comment 5 Fabian Vogt 2017-08-12 20:05:17 UTC
Ping, before the report has its second anniversary ;-)