Bug 124348

Summary: device-mapper-1.00.14-3 won't build as a normal user
Product: [Fedora] Fedora Reporter: Steve Grubb <linux_4ever>
Component: device-mapper-obsoleteAssignee: Alasdair Kergon <agk>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-05-26 16:56:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Steve Grubb 2004-05-25 20:40:30 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.4.2)
Gecko/20040308

Description of problem:
One of the basic rules to building rpms is not to be root when you do
it so you don't hammer your machine if there's a scripting mistake.
device-mapper-1.00.14-3 absolutely requires you to be root because of
the install phase.

However, there is a configure option where you can tell it to do it as
a normal user for packaging purposes. The %files section makes sure
everything gets root permission, so its completely unnecessary to have
to be root to build this package.

To solve the problem, change the build section to this:

%build
%configure --enable-static_link --with-user=`whoami` --with-group=`whoami`
make
                                                                     
          

Version-Release number of selected component (if applicable):
device-mapper-1.00.14-3

How reproducible:
Always

Steps to Reproduce:
1. su - buildsys  ( or any other non privileged account )
2. rpmbuild -bb device-mapper.spec

    

Actual Results:  The package build dies during the %install phase with
permission denied messages.

Expected Results:  A message indicating where the rpm was written to.

Additional info:

Comment 1 Alasdair Kergon 2004-05-26 16:56:20 UTC
fixed in 1.00.17-2