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
[root@node5 SOURCES]# rpmbuild -bb rhel/openvswitch-kmod-rhel6.spec
error: failed to stat
/root/rpmbuild/SOURCES/rhel/openvswitch-kmod-rhel6.spec: No such file
or directory
[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 <[email protected]> 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 <[email protected]>
> 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
[email protected]
http://openvswitch.org/mailman/listinfo/discuss