On Mon, Jun 30, 2014 at 10:41:11PM +0530, Sanghamitra De wrote: > Hi ! > > Thanks for the patch. From Flavio's email which said: > > "Usually the rpmbuild topdir is /usr/src/<something> but it can be changed > by a custom .rpmmacro file defining %_topdir. > > Yours seems to be at /root/rpmbuild. That's your rpm build directory. On > top of it, you should have SPECS/ and SOURCES/. So, copy the tarball to > /root/rpmbuild/SOURCES/ instead and run the rpmbuild command again. The > result should be in /root/rpmbuild/RPMS." > > I gave these commands & I'm still stuck ... > > The command sequence i gave was: > > [root@node5 rpmbuild]# ls -l > > > total 24 > drwxr-xr-x 2 root root 4096 Jun 30 10:28 BUILD > drwxr-xr-x 2 root root 4096 Jun 30 10:28 BUILDROOT > drwxr-xr-x 2 root root 4096 Jun 30 10:28 RPMS > drwxr-xr-x 2 root root 4096 Jun 30 10:28 SOURCES > drwxr-xr-x 2 root root 4096 Jun 30 10:28 SPECS > drwxr-xr-x 2 root root 4096 Jun 30 10:28 SRPMS > > [root@node5 rpmbuild]# mv /usr/src/openvswitch-1.9.3 > /root/rpmbuild/SOURCES/ > [root@node5 rpmbuild]# cd SOURCES > [root@node5 SOURCES]# ls -l > total 4 > drwxrwxr-x 17 1000 1000 4096 Sep 5 2013 openvswitch-1.9.3
You need to put the openvswitch tarball (packed) in the SOURCES/, not the unpacked sources. > [root@node5 SOURCES]# rpmbuild -bb rhel/openvswitch-kmod-rhel6.spec This should be executed inside of openvswitch sources. > error: failed to stat > /root/rpmbuild/SOURCES/rhel/openvswitch-kmod-rhel6.spec: No such file > or directory Yeah, you're in the wrong directory. The rpmbuild command should be executed inside of the unpacked openvswitch sources. This is the high level 2 steps: 1) Put the openvswitch tarball into rpm SOURCES/ directory: 1.a) if you got the tarball, just copy the file there. 1.b) Otherwise, you need to build the tarball, then get into the openvswitch sources and run "./boot.sh; ./configure; make dist" and the result is the tarball which you need to copy to the rpm SOURCES/ directory. 2) Fire the build: 2.a) If you had the tarball, copy it somewhere else and open it. Now get inside of openvswitch sources. There is a directory called rhel/ with the spec file. You just need to fire the build: ovssourcedir/ $ rpmbuild -bb rhel/openvswitch-kmod-rhel6.spec fbl > > [root@node5 > SOURCES]# cd .. > > [root@node5 rpmbuild]# cd .. > [root@node5 ~]# rpmbuild -bb rhel/openvswitch-kmod-rhel6.spec > error: failed to stat /root/rhel/openvswitch-kmod-rhel6.spec: No such > file or directory > > > Kindly note since the patch says: Unpack the distribution tarball into > a temporary directory and "cd" into the root of the distribution > tarball. > > it means i got to "cd" into # since i put the unpacked tarball inside > SOURCES and run rpmbuild -bb from # right? > > > I have this feeling that im probably running rpmbuild -bb while being > in the wrong directory. > > Where did i go wrong??? > > > Best Wishes & Thanks again > > Sanghamitra > > > > > > > On Mon, Jun 30, 2014 at 9:13 PM, Ben Pfaff <b...@nicira.com> wrote: > > > On Sun, Jun 29, 2014 at 09:24:18PM -0300, Flavio Leitner wrote: > > > On Sun, Jun 29, 2014 at 10:22:45AM -0700, Ben Pfaff wrote: > > > > On Fri, Jun 27, 2014 at 1:04 PM, Flavio Leitner <f...@redhat.com> > > wrote: > > > > > Usually the rpmbuild topdir is /usr/src/<something> but it can > > > > > be changed by a custom .rpmmacro file defining %_topdir. > > > > > > > > Flavio, I'm pretty deeply ignorant of Red Hat practices. > > INSTALL.Fedora > > > > says: > > > > > > > > Before you begin, note the RPM source directory on your version of > > > > Fedora. On Fedora 17, it is $HOME/rpmbuild/SOURCES. > > > > > > > > and INSTALL.RHEL says: > > > > > > > > Before you begin, note the RPM source directory on your version of > > > > RHEL. On RHEL 5, the default RPM source directory is > > > > /usr/src/redhat/SOURCES. On RHEL 6, it is $HOME/rpmbuild/SOURCES. > > > > > > > > but I do not know whether either of those is exactly correct, only > > that they > > > > worked for me at the time I developed the instructions. Should they be > > > > corrected or clarified? > > > > > > It can be clarified a bit more, so I posted a patch adding more details > > > to those sections. Please take a look. > > > http://openvswitch.org/pipermail/dev/2014-June/042251.html > > > > Great, thank you! > > _______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss