Project

General

Profile

Actions

Bug #15385

open

uniquely identify /tmp build directories

Added by Mark Nelson about 8 years ago. Updated about 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
build
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

If the following directories don't get cleaned up properly and are owned by another user, building ceph fails:

/tmp/ceph-disk-virtualenv
/tmp/ceph-detect-init-virtualenv

This may be fixed by adding some kind of unique identifier to the directory structure so that new builds don't attempt to use the exact same directory as previous builds.

Actions #1

Updated by Dan Mick about 8 years ago

1) not cleaning them up is definitely a bug
2) having them be unique per run is still a great idea for multiple simultaneous builds

mktemp or whatever is probably the answer

Actions #2

Updated by Robin Johnson about 8 years ago

I sent in PR8457 yesterday because the hardcoded /tmp was a problem on Gentoo builds; Probably could be trivially extended to take a random string generated during configure.

Actions

Also available in: Atom PDF