| Summary: | Cannot build ovirt Node (2.2.0-1) as root user | ||
|---|---|---|---|
| Product: | [Retired] oVirt | Reporter: | Douglas Schilling Landgraf <dougsland> |
| Component: | ovirt-node | Assignee: | Mike Burns <mburns> |
| Status: | CLOSED WORKSFORME | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | acathrow, jboggs, mburns, ovirt-bugs, ovirt-maint |
| 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: | 2012-01-03 14:08:13 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
In general, not recommended to build as root, but i tried it on a clean install and it works for me. |
Description of problem: ovirt-node-2.2.0-1.fc16 It's unusual but, if you try to build oVirt Node using root user will throw an error (see below). No error if a 'normal' user is used. # rpmbuild --nodeps --define "extra_release $EXTRA_RELEASE" -ta --clean *.tar.gz Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.agkUTF + umask 022 + cd /root/rpmbuild/BUILD + LANG=C + export LANG + unset DISPLAY + cd /root/rpmbuild/BUILD + rm -rf ovirt-node-2.2.0 + /usr/bin/gzip -dc /root/git/Dec-19-ovirt-node/ovirt-node/ovirt-node-2.2.0.tar.gz + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd ovirt-node-2.2.0 + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.NzjfOr + umask 022 + cd /root/rpmbuild/BUILD + cd ovirt-node-2.2.0 + LANG=C + export LANG + unset DISPLAY + aclocal + autoheader autoheader: error: AC_CONFIG_HEADERS not found in configure.ac + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + export FFLAGS + LDFLAGS='-Wl,-z,relro ' + export LDFLAGS + ./configure --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --program-prefix= --disable-dependency-tracking --disable-silent-rules --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-image-minimizer configure: WARNING: unrecognized options: --disable-dependency-tracking, --disable-silent-rules configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.." error: Bad exit status from /var/tmp/rpm-tmp.NzjfOr (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.NzjfOr (%build) # echo $EXTRA_RELEASE .root1324318246 # echo $BASEDIR /root/rpmbuild # echo $OVIRT_LOCAL_REPO file:///root/rpmbuild/RPMS # echo $OVIRT_CACHE_DIR /root/ovirt-cache