Red Hat Bugzilla – Bug 461724
dhcpv6 can only be built by root
Last modified: 2008-09-29 01:58:47 EDT
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):
Steps to Reproduce:
1. Build dhcpv6 while not being root
rpmbuild fails during %build phase with :
autom4te: cannot open configure: Permission denied
rpmbuild should end normally
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.
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.
Created attachment 317840 [details]
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.