Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 531980

Summary: sys-infiniband/opensm-3.3.17: sandbox access violation: /var/lib/rpm/.dbenv.lock
Product: Gentoo Linux Reporter: Andrew Savchenko <bircoph>
Component: Current packagesAssignee: Gentoo Cluster Team <cluster>
Status: RESOLVED FIXED    
Severity: normal CC: bircoph
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 533676    
Attachments: build.log
environment
emerge --info
opensm-3.3.17-norpm.patch

Description Andrew Savchenko gentoo-dev 2014-12-08 12:38:20 UTC
It looks like it shouldn't execute rpm in the first place. It's not even in deps.

>>> Source configured.
 ^[[31;01m*^[[0m --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 ^[[31;01m*^[[0m LOG FILE: "/var/log/sandbox/sandbox-8627.log"
 ^[[31;01m*^[[0m
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: open_wr
S: deny
P: /var/lib/rpm/.dbenv.lock
A: /var/lib/rpm/.dbenv.lock
R: /var/lib/rpm/.dbenv.lock
C: rpm -q sles-release

F: open_wr
S: deny
P: /var/lib/rpm/.dbenv.lock
A: /var/lib/rpm/.dbenv.lock
R: /var/lib/rpm/.dbenv.lock
C: rpm -q openSUSE-release
 ^[[31;01m*^[[0m --------------------------------------------------------------------------------
Comment 1 Andrew Savchenko gentoo-dev 2014-12-08 12:39:32 UTC
Created attachment 391212 [details]
build.log
Comment 2 Andrew Savchenko gentoo-dev 2014-12-08 12:40:05 UTC
Created attachment 391216 [details]
environment
Comment 3 Andrew Savchenko gentoo-dev 2014-12-08 12:40:47 UTC
Created attachment 391218 [details]
emerge --info
Comment 4 Andrew Savchenko gentoo-dev 2014-12-27 00:15:35 UTC
Created attachment 392474 [details, diff]
opensm-3.3.17-norpm.patch

This problem appears only when app-arch/rpm is installed: configure tries to run rpm.

Proposed patch removes rpm calls and spec file generation. We don't need them on Gentoo.

Works fine here. Cluster team, please review.
Comment 5 Andrew Savchenko gentoo-dev 2015-01-10 06:32:09 UTC
Hello,

I'm going to commit this patch it two weeks if there are no objections.
Comment 6 Andrew Savchenko gentoo-dev 2015-02-11 04:46:54 UTC
Fixed in 3.3.17-r1.