Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 461724

Summary: dhcpv6 can only be built by root
Product: Red Hat Enterprise Linux 4 Reporter: loic <loic.mahe>
Component: dhcpv6Assignee: Dave Cantrell <dcantrell>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.7   
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-09-26 22:00:14 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:
Attachments:
Description Flags
typescript.txt none

Description loic 2008-09-10 07:58:45 UTC
Description of problem:
dhcpv6 can only be built by root, because the file named configure is already shipped in dhcp-0.10.tgz and is read-only.

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

How reproducible:
Always

Steps to Reproduce:
1. Build dhcpv6 while not being root
2.
3.
  
Actual results:
rpmbuild fails during %build phase with :
autom4te: cannot open configure: Permission denied

Expected results:
rpmbuild should end normally

Additional info:

Comment 1 loic 2008-09-10 08:12:28 UTC
Oops, I didn't saw bug 185598 and the %_fixperms workaround. Sorry.
I'm not sure that setting %_fixperms is a good idea, since this assumes that all
packages have correct %defattr and %attr settings, which is not obvious. It would be better to correct dhcpv6.spec as the user in 185598 suggested.

Comment 2 Dave Cantrell 2008-09-26 21:59:14 UTC
I am able to build the dhcpv6 package as a non-root user on RHEL 4.7 just fine.

You have to create a local rpmbuild directory and set that as your rpmbuild topdir, but this is standard practice.

The attached typescript.txt shows what I did.

Comment 3 Dave Cantrell 2008-09-26 21:59:50 UTC
Created attachment 317840 [details]
typescript.txt

Comment 4 loic 2008-09-29 05:58:47 UTC
Of course the build environment was fine. As I said, setting %_fixperms solved the problem of the non-writable configure file. Thanks for your answer.