Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 157931 - rpm chokes when running script and no /var/tmp
rpm chokes when running script and no /var/tmp
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Paul Nasrat
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2005-05-17 04:30 EDT by Danny Aizer
Modified: 2007-11-30 17:07 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-05-17 12:59:41 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Danny Aizer 2005-05-17 04:30:57 EDT
Description of problem:
When trying to install a package that has %pre install scriptlet (and other
scriptlets), and /var/tmp directory does not exist, 'rpm -i <package>' exits
without any warning/error/message, and the package is not installed.

When trying 'rpm -ivv <package>' the last message before the "closing db"
messages is "running preinstall script (if any)".

Trying 'rpm -i --noscripts <package>' installs the package (but w/o running the
scripts, which are much needed).

I believe /var/tmp is used by RPM to create temp files with the scriptlets. But
if the directory does not exist, it should give some error, or try /tmp or
something, no?

Version-Release number of selected component (if applicable):

How reproducible:
See above

Steps to Reproduce:
1. See above
Actual results:
Package not installed, and no error/warning/message given.

Expected results:
Package installed and/or warning/error/message given why it was not installed.

Additional info:
See above
Comment 1 Paul Nasrat 2005-05-17 11:14:17 EDT
What rpm version? rpm 4.3.3 in RHEL 4 works fine for me.

D: install: %post(test-post-1.0-1.noarch) asynchronous scrriptlet start
D: crated directory(s) /var/tmp mode 0755
Comment 2 Danny Aizer 2005-05-17 11:47:52 EDT
I'm actually using version 4.0, but since that's no longer supported and I could
not find a similar bug in the database, I though of submitting this against the
latest stable RHEL, just in case.

Do you know, by any chance, in what RPM version was this (the creating of
/var/tmp when it's missing) added?
Comment 3 Paul Nasrat 2005-05-17 12:59:41 EDT
From the rpm-4_0 branch:
date: 2000/12/19 17:59:30;  author: jbj;  state: Exp;  lines: +58 -3
- create _tmppath on the fly if not present.


rpm 4.0.4 is the latest known good on that branch, please consider moving or
advising your vendor to move to that branch.

Note You need to log in before you can comment on or make changes to this bug.