Bug 728856

Summary: rpm fails if current directory is not accessible by root
Product: [openSUSE] openSUSE 12.1 Reporter: Ludwig Nussel <lnussel>
Component: BasesystemAssignee: Michael Schröder <mls>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None CC: bgeuken, bwiedemann, ma, thardeck
Version: FinalFlags: coolo: SHIP_STOPPER-
Target Milestone: ---   
Hardware: All   
OS: openSUSE 12.1   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Ludwig Nussel 2011-11-08 09:37:12 UTC
nfs home...

$ LANG=C sudo zypper in dosbox
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW package is going to be installed:
  dosbox 

1 new package to install.
Overall download size: 735.0 KiB. After the operation, additional 2.5 MiB will be used.
Continue? [y/n/?] (y): 
Installing: dosbox-0.74-10.1.2 [error]
Installation of dosbox-0.74-10.1.2 failed:
(with --nodeps --force) Error: Subprocess failed. Error: RPM failed: error: Unable to open current directory: Permission denied


Abort, retry, ignore? [a/r/i] (a): 
Problem occured during or after installation or removal of packages:
Installation aborted by user

Please see the above error message for a hint.
$

regression from 11.4
Comment 1 Michael Schröder 2011-11-08 11:13:19 UTC
I'm inclined to classify this as "doctor it hurts when I do this" and close it as WONTFIX ;)
Comment 2 Ludwig Nussel 2011-11-08 11:21:39 UTC
why did it work on 11.4?
Comment 3 Stephan Kulow 2011-11-09 08:17:10 UTC
bug in 11.4? :)
Comment 4 Ludwig Nussel 2011-11-09 16:28:56 UTC
https://bugzilla.redhat.com/show_bug.cgi?id=672576

this sucks
Comment 5 Michael Schröder 2012-04-23 09:03:14 UTC
*** Bug 758475 has been marked as a duplicate of this bug. ***
Comment 6 Bernhard Wiedemann 2012-04-23 10:50:28 UTC
So should we workaround this in zypper as redhat did it in yum?
NFS and sshfs are pretty common setups these days
and cnf recommends running a sudo zypper install line
Comment 7 Michael Schröder 2012-06-25 09:24:27 UTC
*** Bug 768305 has been marked as a duplicate of this bug. ***
Comment 8 Michael Schröder 2017-05-11 14:27:51 UTC
Closing this. Sorry.
Comment 9 Michael Andres 2017-05-11 14:36:19 UTC
JFYI: libzypp works around this

commit f59bad784ed00f8868b3aed01073e1a02bb65d33
Date:   Thu Jul 4 13:11:05 2013 +0200
    Workaround bnc#819354 by executing rpm in /. (bnc#827609)