Re: [ovs-discuss] CentOS 8 openvswitch RPM

2020-02-04 Thread Daniel Alvarez Sanchez
FWIW, this is the centos8 build that we got in RDO:

https://cbs.centos.org/koji/buildinfo?buildID=28034

It's building directly from the Fedora spec with the exception that we
disabled the tests execution but you should be able to trigger it the same
way.

Thanks,
Daniel

On Mon, Feb 3, 2020 at 5:12 PM Arvin  wrote:

> Hello Numan,
>
> Thank you for your reply. I have tried running 'make rpm-fedora' with
> @PYTHON3@ and it fixed the dependency problem. But following error keeps
> coming again even after I define "%define __python /usr/bin/python3" in
> 'rhel/openvswitch-fedora.spec'. I have noticed that "%define __python
> /usr/bin/python3" is vanishing from 'rhel/openvswitch-fedora.spec'.
>
> ===
> warning: Macro expanded in comment on line 25: %define kernel
> 2.6.40.4-5.fc15.x86_64
>
> error: attempt to use unversioned python, define %__python to
> /usr/bin/python2 or /usr/bin/python3 explicitly
> error: line 209: PYTHON=%{__python}
>
> make: *** [Makefile:8568: rpm-fedora] Error 1
> ===
>
> Can you help again to fix this?
>
> ---
> Best Regards,
> Arvin
>
> SubHosting.net - Managed dedicated servers & VPS solutions.
> www.subhosting.net
>
>
> On Mon, Feb 3, 2020 at 2:03 AM Arvin  wrote:
> >>
> >> Hello Guys,
> >>
> >> I was trying to build a RPM of openvswitch on CentOS 8 server using
> >> https://www.openvswitch.org/releases/openvswitch-2.12.0.tar.gz.
> >>
> >> I got the following error while running 'make rpm-fedora'.
> >>
> >> 
> >> warning: Macro expanded in comment on line 25: %define kernel
> >> 2.6.40.4-5.fc15.x86_64
> >>
> >> error: attempt to use unversioned python, define %__python to
> >> /usr/bin/python2 or /usr/bin/python3 explicitly
> >> error: line 209: PYTHON=%{__python}
> >>
> >> make: *** [Makefile:8574: rpm-fedora] Error 1
> >> 
> >>
> >>
> >> So I have defined __python to /usr/bin/pyhton3 in file
> >> './rhel/openvswitch-fedora.spec' and ran 'make rpm-fedora' again.
> > Now
> >> I'm getting following error.
> >>
> >> 
> >> warning: Macro expanded in comment on line 25: %define kernel
> >> 2.6.40.4-5.fc15.x86_64
> >>
> >> error: Failed build dependencies:
> >> python-devel is needed by openvswitch-2.12.0-1.el8.x86_64
> >> python-six is needed by openvswitch-2.12.0-1.el8.x86_64
> >> python-twisted-core is needed by
> > openvswitch-2.12.0-1.el8.x86_64
> >> python-zope-interface is needed by
> > openvswitch-2.12.0-1.el8.x86_64
> >> make: *** [Makefile:8574: rpm-fedora] Error 1
> >> 
> >>
> >> Some of the python applications are named 'python3-' in
> > CentOS8
> >> rather than starting with 'python-' which is why dependency
> >> failing.
> >>
> >> Is there any fix for this? Do you have any documentation for
> > building
> >> RPM of OpenvSwitch on a CentOS 8 server? Please help.
> >
> > Some of the OVS script files use @PYTHON@ (example -
> >
> https://github.com/openvswitch/ovs/blob/v2.12.0/utilities/ovs-tcpundump.in#L1
> )
> > Can you manually change this to @PYTHON2@ or @PYTHON3@ and try
> > building it ?
> >
> > If it builds, we need to fix this in openvswitch 2.12 branch. I had
> > plans to look into this sometime. But It slipped out of my mind.
> >
> > Let me know how it goes. You can submit a patch yourself if you are
> > fine with it :).
> >
> > Thanks
> > Numan
> >
> >> --
> >> Best Regards,
> >> Arvin
> >>
> >> SubHosting.net - Managed dedicated servers & VPS solutions.
> >> www.subhosting.net
> >> ___
> >> discuss mailing list
> >> disc...@openvswitch.org
> >> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
> >>
> ___
> discuss mailing list
> disc...@openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
>
>
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] CentOS 8 openvswitch RPM

2020-02-03 Thread Arvin

Hello Numan,

Thank you for your reply. I have tried running 'make rpm-fedora' with 
@PYTHON3@ and it fixed the dependency problem. But following error keeps 
coming again even after I define "%define __python /usr/bin/python3" in 
'rhel/openvswitch-fedora.spec'. I have noticed that "%define __python 
/usr/bin/python3" is vanishing from 'rhel/openvswitch-fedora.spec'.


===
warning: Macro expanded in comment on line 25: %define kernel 
2.6.40.4-5.fc15.x86_64


error: attempt to use unversioned python, define %__python to 
/usr/bin/python2 or /usr/bin/python3 explicitly

error: line 209: PYTHON=%{__python}

make: *** [Makefile:8568: rpm-fedora] Error 1
===

Can you help again to fix this?

---
Best Regards,
Arvin

SubHosting.net - Managed dedicated servers & VPS solutions.
www.subhosting.net


On Mon, Feb 3, 2020 at 2:03 AM Arvin  wrote:


Hello Guys,

I was trying to build a RPM of openvswitch on CentOS 8 server using
https://www.openvswitch.org/releases/openvswitch-2.12.0.tar.gz.

I got the following error while running 'make rpm-fedora'.


warning: Macro expanded in comment on line 25: %define kernel
2.6.40.4-5.fc15.x86_64

error: attempt to use unversioned python, define %__python to
/usr/bin/python2 or /usr/bin/python3 explicitly
error: line 209: PYTHON=%{__python}

make: *** [Makefile:8574: rpm-fedora] Error 1



So I have defined __python to /usr/bin/pyhton3 in file
'./rhel/openvswitch-fedora.spec' and ran 'make rpm-fedora' again.

Now

I'm getting following error.


warning: Macro expanded in comment on line 25: %define kernel
2.6.40.4-5.fc15.x86_64

error: Failed build dependencies:
python-devel is needed by openvswitch-2.12.0-1.el8.x86_64
python-six is needed by openvswitch-2.12.0-1.el8.x86_64
python-twisted-core is needed by

openvswitch-2.12.0-1.el8.x86_64

python-zope-interface is needed by

openvswitch-2.12.0-1.el8.x86_64

make: *** [Makefile:8574: rpm-fedora] Error 1


Some of the python applications are named 'python3-' in

CentOS8

rather than starting with 'python-' which is why dependency
failing.

Is there any fix for this? Do you have any documentation for

building

RPM of OpenvSwitch on a CentOS 8 server? Please help.


Some of the OVS script files use @PYTHON@ (example -
https://github.com/openvswitch/ovs/blob/v2.12.0/utilities/ovs-tcpundump.in#L1)
Can you manually change this to @PYTHON2@ or @PYTHON3@ and try
building it ?

If it builds, we need to fix this in openvswitch 2.12 branch. I had
plans to look into this sometime. But It slipped out of my mind.

Let me know how it goes. You can submit a patch yourself if you are
fine with it :).

Thanks
Numan


--
Best Regards,
Arvin

SubHosting.net - Managed dedicated servers & VPS solutions.
www.subhosting.net
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] CentOS 8 openvswitch RPM

2020-02-02 Thread Numan Siddique
On Mon, Feb 3, 2020 at 2:03 AM Arvin  wrote:
>
> Hello Guys,
>
> I was trying to build a RPM of openvswitch on CentOS 8 server using
> https://www.openvswitch.org/releases/openvswitch-2.12.0.tar.gz.
>
> I got the following error while running 'make rpm-fedora'.
>
> 
> warning: Macro expanded in comment on line 25: %define kernel
> 2.6.40.4-5.fc15.x86_64
>
> error: attempt to use unversioned python, define %__python to
> /usr/bin/python2 or /usr/bin/python3 explicitly
> error: line 209: PYTHON=%{__python}
>
> make: *** [Makefile:8574: rpm-fedora] Error 1
> 
>
>
> So I have defined __python to /usr/bin/pyhton3 in file
> './rhel/openvswitch-fedora.spec' and ran 'make rpm-fedora' again. Now
> I'm getting following error.
>
> 
> warning: Macro expanded in comment on line 25: %define kernel
> 2.6.40.4-5.fc15.x86_64
>
> error: Failed build dependencies:
> python-devel is needed by openvswitch-2.12.0-1.el8.x86_64
> python-six is needed by openvswitch-2.12.0-1.el8.x86_64
> python-twisted-core is needed by openvswitch-2.12.0-1.el8.x86_64
> python-zope-interface is needed by openvswitch-2.12.0-1.el8.x86_64
> make: *** [Makefile:8574: rpm-fedora] Error 1
> 
>
> Some of the python applications are named 'python3-' in CentOS8
> rather than starting with 'python-' which is why dependency
> failing.
>
> Is there any fix for this? Do you have any documentation for building
> RPM of OpenvSwitch on a CentOS 8 server? Please help.

Some of the OVS script files use @PYTHON@ (example -
https://github.com/openvswitch/ovs/blob/v2.12.0/utilities/ovs-tcpundump.in#L1)
Can you manually change this to @PYTHON2@ or @PYTHON3@ and try building it ?

If it builds, we need to fix this in openvswitch 2.12 branch. I had
plans to look into this sometime. But It slipped out of my mind.

Let me know how it goes. You can submit a patch yourself if you are
fine with it :).

Thanks
Numan

> --
> Best Regards,
> Arvin
>
> SubHosting.net - Managed dedicated servers & VPS solutions.
> www.subhosting.net
> ___
> discuss mailing list
> disc...@openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
>
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


[ovs-discuss] CentOS 8 openvswitch RPM

2020-02-02 Thread Arvin

Hello Guys,

I was trying to build a RPM of openvswitch on CentOS 8 server using 
https://www.openvswitch.org/releases/openvswitch-2.12.0.tar.gz.


I got the following error while running 'make rpm-fedora'.


warning: Macro expanded in comment on line 25: %define kernel 
2.6.40.4-5.fc15.x86_64


error: attempt to use unversioned python, define %__python to 
/usr/bin/python2 or /usr/bin/python3 explicitly

error: line 209: PYTHON=%{__python}

make: *** [Makefile:8574: rpm-fedora] Error 1



So I have defined __python to /usr/bin/pyhton3 in file 
'./rhel/openvswitch-fedora.spec' and ran 'make rpm-fedora' again. Now 
I'm getting following error.



warning: Macro expanded in comment on line 25: %define kernel 
2.6.40.4-5.fc15.x86_64


error: Failed build dependencies:
python-devel is needed by openvswitch-2.12.0-1.el8.x86_64
python-six is needed by openvswitch-2.12.0-1.el8.x86_64
python-twisted-core is needed by openvswitch-2.12.0-1.el8.x86_64
python-zope-interface is needed by openvswitch-2.12.0-1.el8.x86_64
make: *** [Makefile:8574: rpm-fedora] Error 1


Some of the python applications are named 'python3-' in CentOS8 
rather than starting with 'python-' which is why dependency 
failing.


Is there any fix for this? Do you have any documentation for building 
RPM of OpenvSwitch on a CentOS 8 server? Please help.


--
Best Regards,
Arvin

SubHosting.net - Managed dedicated servers & VPS solutions.
www.subhosting.net
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss