Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

2019-10-07 Thread Gilbert Standen
FYI This is what is working after several rounds of testing various methods so 
far.  Some notes:

(1) I've tried rolling my own python-six using py2pack (search google on 
keywords "py2pack james adam creating rpms" ) but it doesn't work because even 
though I can build the RPM, it won't install the resulting RPM because there 
are several "conflicting files" errors during the installed of the 
roll-your-own RPM that conflict with files in the python3-six that comes with 
the Oracle8 distro by default; and, the python3-six cannot be uninstalled 
because the new dnf capability in Oracle8 depends on that python3-six that 
comes with the distro so the OS blocks uninstall of python3-six. I haven't 
considered whether dnf could be uninstalled but won't go there because an 
Orabuntu-LXC design principle is we are a pure overlay we don't reconfigure 
anything unless absolutely unavoidable. However, as indicated in the recipe, 
the python-six noarch from the CentOS7 repo installs fine with no issues and 
moreover the openvswitch build likes it.

(2) When I try to have the build depend entirely on python3-six (and skip the 
install of the CentOS7 python-six noarch rpm) and just update the spec file to 
use "python3-six" throughout I get errors in the OpenvSwitch build.  I get 
errors that "files 'ovs-test' and 'ovs-l3ping' are missing and cannot be 
deleted."

(3) The python py36env virtual python environment also is needed; without it I 
get errors in the build.

(4) When I try to use python2 variants (set in the python alternatives step) I 
get errors in the build.

Here is the code that is working on Oracle8

elif [ $Release -ge 7 ]
then
echo ''
echo "=="
echo "Build OpenvSwitch RPMs... "
echo "=="
echo ''

cd /opt/olxc/"$DistDir"/uekulele/openvswitch/rpmbuild/SOURCES
tar -zxvf openvswitch-"$OvsVersion".tar.gz
cp -p openvswitch-"$OvsVersion"/rhel/*.spec 
/opt/olxc/"$DistDir"/uekulele/openvswitch/.
cd /opt/olxc/"$DistDir"/uekulele/openvswitch

  if [ $Release -eq 8 ]
  then
wget 
https://rpmfind.net/linux/centos/7.7.1908/os/x86_64/Packages/python-six-1.9.0-2.el7.noarch.rpm
sudo yum -y localinstall python-six-1.9.0-2.el7.noarch.rpm
sudo yum -y install python3-sphinx
sudo yum -y install python3-six
sudo yum -y install selinux-policy-devel unbound-devel
  sudo alternatives --set python /usr/bin/python3
  python3 -m venv py36env
  source py36env/bin/activate
  python3 -m pip install --upgrade pip
  python3 -m pip install six
  python3 -m pip install sphinx
sed -i 's/BuildRequires: python-six/BuildRequires: python3-six/g'   
openvswitch.spec
sed -i 's/BuildRequires: python-sphinx/BuildRequires: python3-sphinx/g' 
openvswitch.spec
sleep 5
fi

sed -i 's/python >= 2.7/python27/g'  openvswitch.spec
rpmbuild --define "_topdir /opt/olxc/"$DistDir"/uekulele/openvswitch/rpmbuild" 
-ba openvswitch.spec

echo ''
echo "=="
echo "Done: Build OpenvSwitch RPMs  "
echo "=="

________________
From: Orabuntu-LXC 
Sent: Sunday, October 6, 2019 5:24 PM
To: Ben Pfaff 
Cc: Gilbert Standen ; ovs-discuss@openvswitch.org 

Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

FYI This is what is working after several rounds of testing various methods so 
far.  Some notes:

(1) I've tried rolling my own python-six using py2pack (search google on 
keywords "py2pack james adam creating rpms" ) but it doesn't work because even 
though I can build the RPM, it won't install the resulting RPM because there 
are several "conflicting files" errors during the installed of the 
roll-your-own RPM that conflict with files in the python3-six that comes with 
the Oracle8 distro by default; and, the python3-six cannot be uninstalled 
because the new dnf capability in Oracle8 depends on that python3-six that 
comes with the distro so the OS blocks uninstall of python3-six. I haven't 
considered whether dnf could be uninstalled but won't go there because an 
Orabuntu-LXC design principle is we are a pure overlay we don't reconfigure 
anything unless absolutely unavoidable. However, as indicated in the recipe, 
the python-six noarch from the CentOS7 repo installs fine with no issues and 
moreover the openvswitch build likes it.

(2) When I try to have the build depend entirely on python3-six (and skip the 
install of the CentOS7 python-six noarch rpm) and just update the spec file to 
use "python3-six" throughout I get errors in the OpenvSwitch build.  I get 
errors that "files 'ovs-test' and 'ovs-l3ping' are missing and cannot be 
deleted."

(3) The python py36env virtual python environment also is needed;

Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

2019-10-06 Thread Orabuntu-LXC
               sleep 5
>                         fi
> 
>                         sed -i 's/python >= 2.7/python27/g'       openvswitch.spec         <--this is also needed
> 
>                         rpmbuild --define "_topdir /opt/olxc/"$DistDir"/uekulele/openvswitch/rpmbuild" -ba openvswitch.spec
> 
> ____________
> From: Gilbert Standen <gilstan...@hotmail.com>
> Sent: Wednesday, October 2, 2019 5:00 PM
> To: Ben Pfaff <b...@ovn.org>
> Cc: Orabuntu-LXC <gilb...@orabuntu-lxc.com>; ovs-discuss@openvswitch.org <ovs-discuss@openvswitch.org>
> Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8
> 
> Nothing is easy it seems ... it is working ok on my hacked up dev box ... but when I try to run it on a fresh machine the build seems to be running OK, and then I get this:
> 
> rm: cannot remove '/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILDROOT/openvswitch-2.11.1-1.x86_64/usr/bin/ovs-test': No such file or directory
> rm: cannot remove '/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILDROOT/openvswitch-2.11.1-1.x86_64/usr/bin/ovs-l3ping': No such file or directory
> error: Bad exit status from /var/tmp/rpm-tmp.ah3XN9 (%install)
> 
> 
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.ah3XN9 (%install)
> 
> so it seems I still have at least this issue to solve ...
> 
> From: Gilbert Standen <gilstan...@hotmail.com>
> Sent: Wednesday, October 2, 2019 1:47 PM
> To: Ben Pfaff <b...@ovn.org>
> Cc: Orabuntu-LXC <gilb...@orabuntu-lxc.com>; ovs-discuss@openvswitch.org <ovs-discuss@openvswitch.org>
> Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8
> 
> Ok the build and install of the RPM's for OpenvSwitch 2.11.1 was successful.  There were a few additional lines needed for the recipe as shown below this is the scripting that worked completely successfully.  There could possible be some things in here that are not absolutely needed, but I haven't had a chance to do that kind of testing yet.  Below will work albeit possibly with more steps than minimally needed.
> 
>                         if [ $Release -eq 8 ]
>                         then
>                                 sudo yum -y install python3-sphinx
>                                 sudo yum -y install python3-six
>                                 sudo yum -y install selinux-policy-devel unbound-devel     <--this is also needed
>                                 sudo alternatives --set python /usr/bin/python3
>                                 python3 -m venv py36env
>                                 source py36env/bin/activate
>                                 python3 -m pip install --upgrade pip
>                                 python3 -m pip install six
>                                 python3 -m pip install sphinx
>                                 sed -i 's/python-six/python3-six/g'       openvswitch.spec
>                                 sed -i 's/python-sphinx/python3-sphinx/g' openvswitch.spec
>                                 sleep 5
>                         fi
> 
>                         sed -i 's/python >= 2.7/python27/g'       openvswitch.spec         <--this is also needed
> 
>                         rpmbuild --define "_topdir /opt/olxc/"$DistDir"/uekulele/openvswitch/rpmbuild" -ba openvswitch.spec
> 
> 
> From: Gilbert Standen <gilstan...@hotmail.com>
> Sent: Wednesday, October 2, 2019 11:40 AM
> To: Ben Pfaff <b...@ovn.org>
> Cc: Orabuntu-LXC <gilb...@orabuntu-lxc.com>; ovs-discuss@openvswitch.org <ovs-discuss@openvswitch.org>
> Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8
> 
> And also for completeness noting that these are needed for this build on Oracle8
> 
> sudo yum -y install python3-sphinx
> sudo yum -y install python3-six
> 
> 
> From: Gilbert Standen <gilstan...@hotmail.com>
> Sent: Wednesday, October 2, 2019 11:36 AM
> To: Ben Pfaff <b...@ovn.org>
> Cc: Orabuntu-LXC <gilb...@orabuntu-lxc.com>; ovs-discuss@openvswitch.org <ovs-discuss@openvswitch.org>
> Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8
> 
> Ok I think I've got it - it's running the openvswitch 2.11.1 test suite atm - here is the solution that is working.
> 
>                        if [ $Release -eq 8 ]
>                         then
>                                 sudo alternatives --set python /usr/bin/python3
>                                 python3 -m venv py36env
>                                 source py36en

Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

2019-10-03 Thread Ben Pfaff
If you come up with something that you ulimately find satisfactory, then
it would be helpful to post a summary of how to build RPMs for OVS on
Oracle Linux.  Or, if you're willing, you could contribute a spec file
for it to the project.

On Wed, Oct 02, 2019 at 10:09:11PM +, Gilbert Standen wrote:
> Also need "sudo yum -y install python27" which I had left out ... and that 
> should be everything finally for this build of openvswitch 2.11.1 on Oracle 
> Linux 8
> 
> if [ $Release -eq 8 ]
> then
> sudo yum -y install python27  
> <--this is also needed
> sudo yum -y install python3-sphinx
> sudo yum -y install python3-six
> sudo yum -y install selinux-policy-devel 
> unbound-devel <--this is also needed
> sudo alternatives --set python 
> /usr/bin/python3
> python3 -m venv py36env
> source py36env/bin/activate
> python3 -m pip install --upgrade pip
> python3 -m pip install six
> python3 -m pip install sphinx
> sed -i 's/python-six/python3-six/g'   
> openvswitch.spec
> sed -i 's/python-sphinx/python3-sphinx/g' 
> openvswitch.spec
> sleep 5
> fi
> 
> sed -i 's/python >= 2.7/python27/g'   
> openvswitch.spec <--this is also needed
> 
> rpmbuild --define "_topdir 
> /opt/olxc/"$DistDir"/uekulele/openvswitch/rpmbuild" -ba openvswitch.spec
> 
> 
> From: Gilbert Standen 
> Sent: Wednesday, October 2, 2019 5:00 PM
> To: Ben Pfaff 
> Cc: Orabuntu-LXC ; ovs-discuss@openvswitch.org 
> 
> Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8
> 
> Nothing is easy it seems ... it is working ok on my hacked up dev box ... but 
> when I try to run it on a fresh machine the build seems to be running OK, and 
> then I get this:
> 
> rm: cannot remove 
> '/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILDROOT/openvswitch-2.11.1-1.x86_64/usr/bin/ovs-test':
>  No such file or directory
> rm: cannot remove 
> '/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILDROOT/openvswitch-2.11.1-1.x86_64/usr/bin/ovs-l3ping':
>  No such file or directory
> error: Bad exit status from /var/tmp/rpm-tmp.ah3XN9 (%install)
> 
> 
> RPM build errors:
> Bad exit status from /var/tmp/rpm-tmp.ah3XN9 (%install)
> 
> so it seems I still have at least this issue to solve ...
> ________
> From: Gilbert Standen 
> Sent: Wednesday, October 2, 2019 1:47 PM
> To: Ben Pfaff 
> Cc: Orabuntu-LXC ; ovs-discuss@openvswitch.org 
> 
> Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8
> 
> Ok the build and install of the RPM's for OpenvSwitch 2.11.1 was successful.  
> There were a few additional lines needed for the recipe as shown below this 
> is the scripting that worked completely successfully.  There could possible 
> be some things in here that are not absolutely needed, but I haven't had a 
> chance to do that kind of testing yet.  Below will work albeit possibly with 
> more steps than minimally needed.
> 
> if [ $Release -eq 8 ]
> then
> sudo yum -y install python3-sphinx
> sudo yum -y install python3-six
> sudo yum -y install selinux-policy-devel 
> unbound-devel <--this is also needed
> sudo alternatives --set python 
> /usr/bin/python3
> python3 -m venv py36env
> source py36env/bin/activate
> python3 -m pip install --upgrade pip
> python3 -m pip install six
> python3 -m pip install sphinx
> sed -i 's/python-six/python3-six/g'   
> openvswitch.spec
> sed -i 's/python-sphinx/python3-sphinx/g' 
> openvswitch.spec
> sleep 5
> fi
> 
> sed -i 's/python >= 2.7/python27/g'   
> openvs

Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

2019-10-02 Thread Gilbert Standen
So this error about the missing files ovs-test and ovs-l3ping:

rm: cannot remove 
'/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILDROOT/openvswitch-2.11.1-1.x86_64/usr/bin/ovs-test':
 No such file or directory
rm: cannot remove 
'/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILDROOT/openvswitch-2.11.1-1.x86_64/usr/bin/ovs-l3ping':
 No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.ah3XN9 (%install)


had me stumped for most of the day.  I had gotten everything to build correctly 
and install on the dev box but on a fresh machine, as mentioned, I got this 
error, indicating I had still failed to capture some step that was required for 
the successful openvswitch build.  Finally I remembered that on the dev box I 
had done this step too:

if [ $Release -eq 8 ]
then
wget 
https://rpmfind.net/linux/centos/7.7.1908/os/x86_64/Packages/python-six-1.9.0-2.el7.noarch.rpm
   <-- This step
sudo yum -y localinstall 
python-six-1.9.0-2.el7.noarch.rpm   
  <-- This step
sudo yum -y module install python36
sudo yum -y module install python27
sudo yum -y install python3-sphinx
sudo yum -y install python3-six
sudo yum -y install selinux-policy-devel 
unbound-devel
sudo alternatives --set python /usr/bin/python3
python3 -m venv py36env
source py36env/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install six
python3 -m pip install sphinx
sed -i 's/BuildRequires: 
python-six/BuildRequires: python3-six/g'   openvswitch.spec
sed -i 's/BuildRequires: 
python-sphinx/BuildRequires: python3-sphinx/g' openvswitch.spec
sudo cat openvswitch.spec | grep python3
sleep 5
fi

That step had been done early on when I was looking for some already-built rpm 
for python-six to just jerry-rig it into building successfully.  That 
python-six comes from a CentOS7 repo and it installs with no issues on Oracle 
Linux 8.  I think a better solution is needed such as building it from source 
on Oracle Linux 8.  But it does work and it gets rid of the error about the 
missing ovs-test and ovs-l3ping during the build.

I think it has to do with this part of the spec file:

Requires: logrotate, hostname, python >= 2.7, python-six
BuildRequires: python-six
BuildRequires: openssl-devel
BuildRequires: checkpolicy, selinux-policy-devel
BuildRequires: autoconf, automake, libtool
BuildRequires: python-sphinx
BuildRequires: unbound-devel

I can get around the "BuildRequires" as previously discussed by changing them 
to "python3-six" and "python3-sphinx" but I guess (?) that the "Requires" which 
includes "python-six" really does require "python-six" and not "python3-six" 
because when I change the Requires to "python3-six" and don't install the 
python-six from the CentOS7 repo, I get the error about the missing ovs-test 
and ovs-l3ping.

So it is building OK now with no problems perfectly, and all the test suite is 
passed 100% successfully, but I will work on a better solution than just using 
the CentOS7 python-six.

From: Gilbert Standen 
Sent: Wednesday, October 2, 2019 5:00 PM
To: Ben Pfaff 
Cc: Orabuntu-LXC ; ovs-discuss@openvswitch.org 

Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

Nothing is easy it seems ... it is working ok on my hacked up dev box ... but 
when I try to run it on a fresh machine the build seems to be running OK, and 
then I get this:

rm: cannot remove 
'/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILDROOT/openvswitch-2.11.1-1.x86_64/usr/bin/ovs-test':
 No such file or directory
rm: cannot remove 
'/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILDROOT/openvswitch-2.11.1-1.x86_64/usr/bin/ovs-l3ping':
 No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.ah3XN9 (%install)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.ah3XN9 (%install)

so it seems I still have at least this issue to solve ...

From: Gilbert Standen 
Sent: Wednesday, October 2, 2019 1:47 PM
To: Ben Pfaff 
Cc: Orabuntu-LXC ; ovs-discuss@openvswitch.org 

Subject: Re:

Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

2019-10-02 Thread Gilbert Standen
Also need "sudo yum -y install python27" which I had left out ... and that 
should be everything finally for this build of openvswitch 2.11.1 on Oracle 
Linux 8

if [ $Release -eq 8 ]
then
sudo yum -y install python27
  <--this is also needed
sudo yum -y install python3-sphinx
sudo yum -y install python3-six
sudo yum -y install selinux-policy-devel 
unbound-devel <--this is also needed
sudo alternatives --set python /usr/bin/python3
python3 -m venv py36env
source py36env/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install six
python3 -m pip install sphinx
sed -i 's/python-six/python3-six/g'   
openvswitch.spec
sed -i 's/python-sphinx/python3-sphinx/g' 
openvswitch.spec
sleep 5
fi

sed -i 's/python >= 2.7/python27/g'   
openvswitch.spec <--this is also needed

rpmbuild --define "_topdir 
/opt/olxc/"$DistDir"/uekulele/openvswitch/rpmbuild" -ba openvswitch.spec


From: Gilbert Standen 
Sent: Wednesday, October 2, 2019 5:00 PM
To: Ben Pfaff 
Cc: Orabuntu-LXC ; ovs-discuss@openvswitch.org 

Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

Nothing is easy it seems ... it is working ok on my hacked up dev box ... but 
when I try to run it on a fresh machine the build seems to be running OK, and 
then I get this:

rm: cannot remove 
'/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILDROOT/openvswitch-2.11.1-1.x86_64/usr/bin/ovs-test':
 No such file or directory
rm: cannot remove 
'/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILDROOT/openvswitch-2.11.1-1.x86_64/usr/bin/ovs-l3ping':
 No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.ah3XN9 (%install)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.ah3XN9 (%install)

so it seems I still have at least this issue to solve ...

From: Gilbert Standen 
Sent: Wednesday, October 2, 2019 1:47 PM
To: Ben Pfaff 
Cc: Orabuntu-LXC ; ovs-discuss@openvswitch.org 

Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

Ok the build and install of the RPM's for OpenvSwitch 2.11.1 was successful.  
There were a few additional lines needed for the recipe as shown below this is 
the scripting that worked completely successfully.  There could possible be 
some things in here that are not absolutely needed, but I haven't had a chance 
to do that kind of testing yet.  Below will work albeit possibly with more 
steps than minimally needed.

if [ $Release -eq 8 ]
then
sudo yum -y install python3-sphinx
sudo yum -y install python3-six
sudo yum -y install selinux-policy-devel 
unbound-devel <--this is also needed
sudo alternatives --set python /usr/bin/python3
python3 -m venv py36env
source py36env/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install six
python3 -m pip install sphinx
sed -i 's/python-six/python3-six/g'   
openvswitch.spec
sed -i 's/python-sphinx/python3-sphinx/g' 
openvswitch.spec
sleep 5
fi

sed -i 's/python >= 2.7/python27/g'   
openvswitch.spec <--this is also needed

rpmbuild --define "_topdir 
/opt/olxc/"$DistDir"/uekulele/openvswitch/rpmbuild" -ba openvswitch.spec


From: Gilbert Standen 
Sent: Wednesday, October 2, 2019 11:40 AM
To: Ben Pfaff 
Cc: Orabuntu-LXC ; ovs-discuss@openvswitch.org 

Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

And also for completeness noting that these are needed for this build on Oracle8

sudo yum -y install python3-sphinx
sudo yum -y install python3-six


From: Gilbert Standen 
Sent: Wednesday, October 2, 2019 11:36 AM
To: Ben Pfaff 
Cc: Orabuntu-LXC ; ovs-discuss@openvswitch.org 

Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Lin

Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

2019-10-02 Thread Gilbert Standen
And also for completeness noting that these are needed for this build on Oracle8

sudo yum -y install python3-sphinx
sudo yum -y install python3-six


From: Gilbert Standen 
Sent: Wednesday, October 2, 2019 11:36 AM
To: Ben Pfaff 
Cc: Orabuntu-LXC ; ovs-discuss@openvswitch.org 

Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

Ok I think I've got it - it's running the openvswitch 2.11.1 test suite atm - 
here is the solution that is working.

   if [ $Release -eq 8 ]
then
sudo alternatives --set python /usr/bin/python3
python3 -m venv py36env
source py36env/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install six
python3 -m pip install sphinx
fi
sed -i 's/python-six/python3-six/g'   
openvswitch.spec
sed -i 's/python-sphinx/python3-sphinx/g' 
openvswitch.spec
fi
rpmbuild --define "_topdir 
/opt/olxc/"$DistDir"/uekulele/openvswitch/rpmbuild" -ba openvswitch.spec


From: Gilbert Standen 
Sent: Wednesday, October 2, 2019 11:21 AM
To: Ben Pfaff 
Cc: Orabuntu-LXC ; ovs-discuss@openvswitch.org 

Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

Thanks Ben.  Progress ... I got past the Requires, but there's still issues 
later on related to Sphinx and Six.  Any thoughts on solving this ?  TIA

sphinx-build  -b html -W -n -d ./Documentation/_build/doctrees  ./Documentation 
./Documentation/_build/html && touch docs-check
Traceback (most recent call last):
  File "/usr/local/bin/sphinx-build", line 11, in 
sys.exit(main())
  File "/usr/lib/python3.6/site-packages/sphinx/cmd/build.py", line 38, in main
return build_main(argv)
  File "/usr/lib/python3.6/site-packages/sphinx/cmd/build.py", line 22, in 
build_main
from sphinx import cmdline
  File "/usr/lib/python3.6/site-packages/sphinx/cmdline.py", line 20, in 

from six import text_type, binary_type
ModuleNotFoundError: No module named 'six'
make[2]: *** [Makefile:7107: docs-check] Error 1
make[2]: Leaving directory 
'/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILD/openvswitch-2.11.1'
make[1]: *** [Makefile:6016: all-recursive] Error 1
make[1]: Leaving directory 
'/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILD/openvswitch-2.11.1'
make: *** [Makefile:3594: all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.XEARO1 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.XEARO1 (%build)


From: Ben Pfaff 
Sent: Wednesday, October 2, 2019 9:45 AM
To: Gilbert Standen 
Cc: Orabuntu-LXC ; ovs-discuss@openvswitch.org 

Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

On Wed, Oct 02, 2019 at 02:53:23PM +, Gilbert Standen wrote:
> SO THE ABOVE DID NOT WORK:  I still got:
>
> error: Failed build dependencies:
> python-six is needed by openvswitch-2.11.1-1.x86_64
> python-sphinx is needed by openvswitch-2.11.1-1.x86_64

It looks like the packages are named python2-six and python2-sphinx on
Oracle Linux.  If so, then you can update the spec file to use those
names, and then build.
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

2019-10-02 Thread Gilbert Standen
Ok I think I've got it - it's running the openvswitch 2.11.1 test suite atm - 
here is the solution that is working.

   if [ $Release -eq 8 ]
then
sudo alternatives --set python /usr/bin/python3
python3 -m venv py36env
source py36env/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install six
python3 -m pip install sphinx
fi
sed -i 's/python-six/python3-six/g'   
openvswitch.spec
sed -i 's/python-sphinx/python3-sphinx/g' 
openvswitch.spec
fi
rpmbuild --define "_topdir 
/opt/olxc/"$DistDir"/uekulele/openvswitch/rpmbuild" -ba openvswitch.spec


From: Gilbert Standen 
Sent: Wednesday, October 2, 2019 11:21 AM
To: Ben Pfaff 
Cc: Orabuntu-LXC ; ovs-discuss@openvswitch.org 

Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

Thanks Ben.  Progress ... I got past the Requires, but there's still issues 
later on related to Sphinx and Six.  Any thoughts on solving this ?  TIA

sphinx-build  -b html -W -n -d ./Documentation/_build/doctrees  ./Documentation 
./Documentation/_build/html && touch docs-check
Traceback (most recent call last):
  File "/usr/local/bin/sphinx-build", line 11, in 
sys.exit(main())
  File "/usr/lib/python3.6/site-packages/sphinx/cmd/build.py", line 38, in main
return build_main(argv)
  File "/usr/lib/python3.6/site-packages/sphinx/cmd/build.py", line 22, in 
build_main
from sphinx import cmdline
  File "/usr/lib/python3.6/site-packages/sphinx/cmdline.py", line 20, in 

from six import text_type, binary_type
ModuleNotFoundError: No module named 'six'
make[2]: *** [Makefile:7107: docs-check] Error 1
make[2]: Leaving directory 
'/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILD/openvswitch-2.11.1'
make[1]: *** [Makefile:6016: all-recursive] Error 1
make[1]: Leaving directory 
'/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILD/openvswitch-2.11.1'
make: *** [Makefile:3594: all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.XEARO1 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.XEARO1 (%build)


From: Ben Pfaff 
Sent: Wednesday, October 2, 2019 9:45 AM
To: Gilbert Standen 
Cc: Orabuntu-LXC ; ovs-discuss@openvswitch.org 

Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

On Wed, Oct 02, 2019 at 02:53:23PM +, Gilbert Standen wrote:
> SO THE ABOVE DID NOT WORK:  I still got:
>
> error: Failed build dependencies:
> python-six is needed by openvswitch-2.11.1-1.x86_64
> python-sphinx is needed by openvswitch-2.11.1-1.x86_64

It looks like the packages are named python2-six and python2-sphinx on
Oracle Linux.  If so, then you can update the spec file to use those
names, and then build.
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

2019-10-02 Thread Gilbert Standen
Thanks Ben.  Progress ... I got past the Requires, but there's still issues 
later on related to Sphinx and Six.  Any thoughts on solving this ?  TIA

sphinx-build  -b html -W -n -d ./Documentation/_build/doctrees  ./Documentation 
./Documentation/_build/html && touch docs-check
Traceback (most recent call last):
  File "/usr/local/bin/sphinx-build", line 11, in 
sys.exit(main())
  File "/usr/lib/python3.6/site-packages/sphinx/cmd/build.py", line 38, in main
return build_main(argv)
  File "/usr/lib/python3.6/site-packages/sphinx/cmd/build.py", line 22, in 
build_main
from sphinx import cmdline
  File "/usr/lib/python3.6/site-packages/sphinx/cmdline.py", line 20, in 

from six import text_type, binary_type
ModuleNotFoundError: No module named 'six'
make[2]: *** [Makefile:7107: docs-check] Error 1
make[2]: Leaving directory 
'/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILD/openvswitch-2.11.1'
make[1]: *** [Makefile:6016: all-recursive] Error 1
make[1]: Leaving directory 
'/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILD/openvswitch-2.11.1'
make: *** [Makefile:3594: all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.XEARO1 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.XEARO1 (%build)


From: Ben Pfaff 
Sent: Wednesday, October 2, 2019 9:45 AM
To: Gilbert Standen 
Cc: Orabuntu-LXC ; ovs-discuss@openvswitch.org 

Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

On Wed, Oct 02, 2019 at 02:53:23PM +, Gilbert Standen wrote:
> SO THE ABOVE DID NOT WORK:  I still got:
>
> error: Failed build dependencies:
> python-six is needed by openvswitch-2.11.1-1.x86_64
> python-sphinx is needed by openvswitch-2.11.1-1.x86_64

It looks like the packages are named python2-six and python2-sphinx on
Oracle Linux.  If so, then you can update the spec file to use those
names, and then build.
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

2019-10-02 Thread Ben Pfaff
On Wed, Oct 02, 2019 at 02:53:23PM +, Gilbert Standen wrote:
> SO THE ABOVE DID NOT WORK:  I still got:
> 
> error: Failed build dependencies:
> python-six is needed by openvswitch-2.11.1-1.x86_64
> python-sphinx is needed by openvswitch-2.11.1-1.x86_64

It looks like the packages are named python2-six and python2-sphinx on
Oracle Linux.  If so, then you can update the spec file to use those
names, and then build.
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

2019-10-02 Thread Gilbert Standen
el8.noarch

21/22
  Verifying: python3-imagesize-1.0.0-2.el8.noarch   

22/22

Installed:
  python3-sphinx-1:1.7.6-1.el8.noarch   
   Lmod-8.1.17-3.epel8.playground.x86_64
lua-term-0.07-9.el8.x86_64
  fontawesome-fonts-4.7.0-4.el8.noarch  
   python3-docutils-0.14-12.module+el8.0.0+5333+22a49f57.noarch 
python3-sqlalchemy-1.3.2-1.module+el8.0.0+5333+22a49f57.x86_64
  python3-pygments-2.2.0-20.module+el8.0.0+5333+22a49f57.noarch 
   lato-fonts-2.015-5.el8.noarch
tcl-1:8.6.8-2.el8.x86_64
  python3-whoosh-2.7.4-9.el8.noarch 
   python3-mock-2.0.0-11.el8.noarch 
python3-sphinx_rtd_theme-0.3.1-3.el8.noarch
  lua-filesystem-1.6.3-7.el8.x86_64 
   python3-snowballstemmer-1.2.1-6.el8.noarch   
fontawesome-fonts-web-4.7.0-4.el8.noarch
  python3-sphinxcontrib-websupport-1.0.1-10.20180316git.el8.noarch  
   google-roboto-slab-fonts-1.100263-0.7.20150923git.el8.noarch 
python3-packaging-16.8-9.el8.noarch
  python-sphinx-locale-1:1.7.6-1.el8.noarch 
   lua-posix-33.3.1-9.el8.x86_64
python3-sphinx-theme-alabaster-0.7.9-7.el8.noarch
  python3-imagesize-1.0.0-2.el8.noarch

Complete!
[ubuntu@oracle8 uekulele]$ sudo yum -y install python3-six
Last metadata expiration check: 0:01:01 ago on Wed 02 Oct 2019 09:34:46 AM CDT.
Package python3-six-1.11.0-8.el8.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[ubuntu@oracle8 uekulele]$ sudo rpm -qa | egrep 'six|sphinx'
lua-posix-33.3.1-9.el8.x86_64
python3-sphinx_rtd_theme-0.3.1-3.el8.noarch
python3-six-1.11.0-8.el8.noarch
python3-sphinxcontrib-websupport-1.0.1-10.20180316git.el8.noarch
python3-sphinx-theme-alabaster-0.7.9-7.el8.noarch
python-sphinx-locale-1.7.6-1.el8.noarch
python3-sphinx-1.7.6-1.el8.noarch
[ubuntu@oracle8 uekulele]$

SO THE ABOVE DID NOT WORK:  I still got:

error: Failed build dependencies:
python-six is needed by openvswitch-2.11.1-1.x86_64
python-sphinx is needed by openvswitch-2.11.1-1.x86_64

==
Done: Build OpenvSwitch RPMs
==

Even when I also install python2-sphinx and set alternatives to python2 it does 
not work.  I wonder if it is looking for something actually called 
"python-sphinx" and "python-six" (not the python2- or python3- variants) and if 
a soft link somewhere would fix this.


From: Orabuntu-LXC 
Sent: Tuesday, October 1, 2019 7:05 PM
To: Ben Pfaff ; Gilbert Standen 
Cc: ovs-discuss@openvswitch.org 
Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

Thanks Ben. I will keep hacking away at it. The protocols and design principles 
of Orabuntu-LXC require all installed software to be packaged - rpm or deb - so 
I will have to keep working on a solution to get the rpm package to build 
successfully.

BTW that was a typo earlier - we had been using ovs 2.5.4 not 2.0.5 - sorry - 
2.0.5 is the LXC version we were using for this testing

Sent from my BlackBerry 10 smartphone.
  Original Message
From: Ben Pfaff
Sent: Tuesday, October 1, 2019 7:00 PM
To: Gilbert Standen
Cc: ovs-discuss@openvswitch.org
Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

OK.

It seems likely, then, that the Fedora RPM spec files are not suitable
for Oracle Linux. If so, then you can install OVS without the RPM
packaging, or create some new spec files for Oracle Linux.

On Tue, Oct 01, 2019 at 11:55:20PM +, Gilbert Standen wrote:
> I've tried all that - that was of course the first thing I tried.
>
> I've tried everything I can think of:
>
> [ubuntu@oracle8 ~]$ sudo yum install python-six python-sphinx
> [sudo] password for ubuntu:
> Last metadata expiration check: 0:27:33 ago on Tue 01 Oct 2019 06:20:33 PM 
> CDT.
> No match for argument: python-six
> No match for argument: python-sphinx
> Error: Unable to find a match
> [ubuntu@oracle8 ~]$
>
> and the above is with all repos enabled AND epel installed and enabled:
>
> [ubuntu@oracle8 yum.repos.d]$ sudo yum install python-six python-sphinx
> Extra Packages for Enterprise Linux 8 - Playground - x86_64 463 kB/s | 2.6 MB 
> 00:05
> Extra Packages for Enterprise Linux 8 - Playground - x86_64 - Debug 589 kB/s 
> | 1.

Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

2019-10-01 Thread Orabuntu-LXC
Thanks Ben. I will keep hacking away at it. The protocols and design principles 
of Orabuntu-LXC require all installed software to be packaged - rpm or deb - so 
I will have to keep working on a solution to get the rpm package to build 
successfully.

BTW that was a typo earlier - we had been using ovs 2.5.4 not 2.0.5 - sorry - 
2.0.5 is the LXC version we were using for this testing

Sent from my BlackBerry 10 smartphone.
  Original Message  
From: Ben Pfaff
Sent: Tuesday, October 1, 2019 7:00 PM
To: Gilbert Standen
Cc: ovs-discuss@openvswitch.org
Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

OK.

It seems likely, then, that the Fedora RPM spec files are not suitable
for Oracle Linux. If so, then you can install OVS without the RPM
packaging, or create some new spec files for Oracle Linux.

On Tue, Oct 01, 2019 at 11:55:20PM +, Gilbert Standen wrote:
> I've tried all that - that was of course the first thing I tried.
> 
> I've tried everything I can think of:
> 
> [ubuntu@oracle8 ~]$ sudo yum install python-six python-sphinx
> [sudo] password for ubuntu:
> Last metadata expiration check: 0:27:33 ago on Tue 01 Oct 2019 06:20:33 PM 
> CDT.
> No match for argument: python-six
> No match for argument: python-sphinx
> Error: Unable to find a match
> [ubuntu@oracle8 ~]$
> 
> and the above is with all repos enabled AND epel installed and enabled:
> 
> [ubuntu@oracle8 yum.repos.d]$ sudo yum install python-six python-sphinx
> Extra Packages for Enterprise Linux 8 - Playground - x86_64 463 kB/s | 2.6 MB 
> 00:05
> Extra Packages for Enterprise Linux 8 - Playground - x86_64 - Debug 589 kB/s 
> | 1.6 MB 00:02
> Extra Packages for Enterprise Linux 8 - Playground - x86_64 - Source 130 kB/s 
> | 374 kB 00:02
> Extra Packages for Enterprise Linux 8 - x86_64 35 kB/s | 18 kB 00:00
> Extra Packages for Enterprise Linux 8 - x86_64 - Debug 295 kB/s | 656 kB 00:02
> Extra Packages for Enterprise Linux 8 - x86_64 - Source 239 kB/s | 390 kB 
> 00:01
> No match for argument: python-six
> No match for argument: python-sphinx
> Error: Unable to find a match
> [ubuntu@oracle8 yum.repos.d]$
> 
> [ubuntu@oracle8 yum.repos.d]$ sudo yum install python-six python-sphinx
> Oracle Linux 8 Addons (x86_64) 2.6 kB/s | 3.2 kB 00:01
> Oracle Linux 8 Application Stream (x86_64) 29 kB/s | 2.9 kB 00:00
> Oracle Linux 8 BaseOS Latest (x86_64) 18 kB/s | 2.7 kB 00:00
> Oracle Linux 8 CodeReady Builder (x86_64) - Unsupported 27 kB/s | 2.7 kB 00:00
> Oracle Linux 8 BaseOS GA (x86_64) 26 kB/s | 2.7 kB 00:00
> No match for argument: python-six
> No match for argument: python-sphinx
> Error: Unable to find a match
> [ubuntu@oracle8 yum.repos.d]$
> 
> I've also tried setting up a python virtual environment within the script - 
> that doesn't work either:
> 
> sudo alternatives --set python /usr/bin/python3
> python3 -m venv py36env
> source py36env/bin/activate
> python3 -m pip install six
> python3 -m pip install --upgrade pip
> python3 -m pip install six
> python3 -m pip install sphinx
> 
> all those commands work, but openvswitch build doesn't see sphinx or six - do 
> I need to set some switch on the build command ?
> 
> error: Failed build dependencies:
> python-six is needed by openvswitch-2.11.1-1.x86_64
> python-sphinx is needed by openvswitch-2.11.1-1.x86_64
> 
> 
> ____________
> From: Ben Pfaff 
> Sent: Tuesday, October 1, 2019 6:40 PM
> To: Gilbert Standen 
> Cc: ovs-discuss@openvswitch.org 
> Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8
> 
> You're using two different packaging systems here. The RPM spec file
> requires the RPMs it mentions to be installed (for Python 2), but you
> used pip to install them (for Python 3).
> 
> My guess is that "yum install python-six python-sphinx
> selinux-policy-devel unbound-devel" or its Oracle equivalent will fix
> the problem.
> 
> On Tue, Oct 01, 2019 at 11:17:18PM +, Gilbert Standen wrote:
> > For example:
> >
> > [ubuntu@oracle8 anylinux]$ python3 -m pip install six
> > Requirement already satisfied: six in /usr/local/lib/python3.6/site-packages
> > [ubuntu@oracle8 anylinux]$ python3 -m pip install sphinx
> > Requirement already satisfied: sphinx in 
> > /usr/local/lib64/python3.6/site-packages
> > Requirement already satisfied: requests>=2.5.0 in 
> > /usr/lib/python3.6/site-packages (from sphinx)
> > Requirement already satisfied: babel!=2.0,>=1.3 in 
> > /usr/local/lib64/python3.6/site-packages (from sphinx)
> > Requirement already satisfied: sphinxcontrib-serializinghtml in 
> > /usr/local/lib/python3.6/site-packages (from sphinx)
> > Requirement already satisfied: sphinxcontrib-jsmath in 
> > /usr/lo

Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

2019-10-01 Thread Ben Pfaff
OK.

It seems likely, then, that the Fedora RPM spec files are not suitable
for Oracle Linux.  If so, then you can install OVS without the RPM
packaging, or create some new spec files for Oracle Linux.

On Tue, Oct 01, 2019 at 11:55:20PM +, Gilbert Standen wrote:
> I've tried all that - that was of course the first thing I tried.
> 
> I've tried everything I can think of:
> 
> [ubuntu@oracle8 ~]$ sudo yum install python-six python-sphinx
> [sudo] password for ubuntu:
> Last metadata expiration check: 0:27:33 ago on Tue 01 Oct 2019 06:20:33 PM 
> CDT.
> No match for argument: python-six
> No match for argument: python-sphinx
> Error: Unable to find a match
> [ubuntu@oracle8 ~]$
> 
> and the above is with all repos enabled AND epel installed and enabled:
> 
> [ubuntu@oracle8 yum.repos.d]$ sudo yum install python-six python-sphinx
> Extra Packages for Enterprise Linux 8 - Playground - x86_64   
>   
>   463 kB/s | 2.6 MB 00:05
> Extra Packages for Enterprise Linux 8 - Playground - x86_64 - Debug   
>   
>   589 kB/s | 1.6 MB 00:02
> Extra Packages for Enterprise Linux 8 - Playground - x86_64 - Source  
>   
>   130 kB/s | 374 kB 00:02
> Extra Packages for Enterprise Linux 8 - x86_64
>   
>35 kB/s |  18 kB 00:00
> Extra Packages for Enterprise Linux 8 - x86_64 - Debug
>   
>   295 kB/s | 656 kB 00:02
> Extra Packages for Enterprise Linux 8 - x86_64 - Source   
>   
>   239 kB/s | 390 kB 00:01
> No match for argument: python-six
> No match for argument: python-sphinx
> Error: Unable to find a match
> [ubuntu@oracle8 yum.repos.d]$
> 
> [ubuntu@oracle8 yum.repos.d]$ sudo yum install python-six python-sphinx
> Oracle Linux 8 Addons (x86_64)
>   
>   2.6 kB/s | 3.2 kB 00:01
> Oracle Linux 8 Application Stream (x86_64)
>   
>29 kB/s | 2.9 kB 00:00
> Oracle Linux 8 BaseOS Latest (x86_64) 
>   
>18 kB/s | 2.7 kB 00:00
> Oracle Linux 8 CodeReady Builder (x86_64) - Unsupported   
>   
>27 kB/s | 2.7 kB 00:00
> Oracle Linux 8 BaseOS GA (x86_64) 
>   
>26 kB/s | 2.7 kB 00:00
> No match for argument: python-six
> No match for argument: python-sphinx
> Error: Unable to find a match
> [ubuntu@oracle8 yum.repos.d]$
> 
> I've also tried setting up a python virtual environment within the script - 
> that doesn't work either:
> 
> sudo alternatives --set python 
> /usr/bin/python3
> python3 -m venv py36env
> source py36env/bin/activate
> python3 -m pip install six
> python3 -m pip install --upgrade pip
> python3 -m pip install six
> python3 -m pip install sphinx
> 
> all those commands work, but openvswitch build doesn't see sphinx or six - do 
> I need to set some switch on the build command ?
> 
> error: Failed build dependencies:
> python-six is needed by openvswitch-2.11.1-1.x86_64
> python-sphinx is needed by openvswitch-2.11.1-1.x86_64
> 
> 
> __

Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

2019-10-01 Thread Gilbert Standen
I've tried all that - that was of course the first thing I tried.

I've tried everything I can think of:

[ubuntu@oracle8 ~]$ sudo yum install python-six python-sphinx
[sudo] password for ubuntu:
Last metadata expiration check: 0:27:33 ago on Tue 01 Oct 2019 06:20:33 PM CDT.
No match for argument: python-six
No match for argument: python-sphinx
Error: Unable to find a match
[ubuntu@oracle8 ~]$

and the above is with all repos enabled AND epel installed and enabled:

[ubuntu@oracle8 yum.repos.d]$ sudo yum install python-six python-sphinx
Extra Packages for Enterprise Linux 8 - Playground - x86_64 

  463 kB/s | 2.6 MB 00:05
Extra Packages for Enterprise Linux 8 - Playground - x86_64 - Debug 

  589 kB/s | 1.6 MB 00:02
Extra Packages for Enterprise Linux 8 - Playground - x86_64 - Source

  130 kB/s | 374 kB 00:02
Extra Packages for Enterprise Linux 8 - x86_64  

   35 kB/s |  18 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 - Debug  

  295 kB/s | 656 kB 00:02
Extra Packages for Enterprise Linux 8 - x86_64 - Source 

  239 kB/s | 390 kB 00:01
No match for argument: python-six
No match for argument: python-sphinx
Error: Unable to find a match
[ubuntu@oracle8 yum.repos.d]$

[ubuntu@oracle8 yum.repos.d]$ sudo yum install python-six python-sphinx
Oracle Linux 8 Addons (x86_64)  

  2.6 kB/s | 3.2 kB 00:01
Oracle Linux 8 Application Stream (x86_64)  

   29 kB/s | 2.9 kB 00:00
Oracle Linux 8 BaseOS Latest (x86_64)   

   18 kB/s | 2.7 kB 00:00
Oracle Linux 8 CodeReady Builder (x86_64) - Unsupported 

   27 kB/s | 2.7 kB 00:00
Oracle Linux 8 BaseOS GA (x86_64)   

   26 kB/s | 2.7 kB 00:00
No match for argument: python-six
No match for argument: python-sphinx
Error: Unable to find a match
[ubuntu@oracle8 yum.repos.d]$

I've also tried setting up a python virtual environment within the script - 
that doesn't work either:

sudo alternatives --set python /usr/bin/python3
python3 -m venv py36env
source py36env/bin/activate
python3 -m pip install six
python3 -m pip install --upgrade pip
python3 -m pip install six
python3 -m pip install sphinx

all those commands work, but openvswitch build doesn't see sphinx or six - do I 
need to set some switch on the build command ?

error: Failed build dependencies:
python-six is needed by openvswitch-2.11.1-1.x86_64
python-sphinx is needed by openvswitch-2.11.1-1.x86_64



From: Ben Pfaff 
Sent: Tuesday, October 1, 2019 6:40 PM
To: Gilbert Standen 
Cc: ovs-discuss@openvswitch.org 
Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

You're using two different packaging systems here.  The RPM spec file
requires the RPMs it mentions to be installed (for Python 2), but you
used pip to install them (for Python 3).

My guess is that "yum install python-six python-sphinx
selinux-policy-devel unbound-devel" or its Oracle equivalent will fix
the problem.

On Tue, Oct 01, 2019 at 11:17:18PM +, Gilbert Standen wrote:
> For example:
>
> [ubuntu@oracle8 anylinux]$ python3 -m pip install six
> Require

Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

2019-10-01 Thread Ben Pfaff
You're using two different packaging systems here.  The RPM spec file
requires the RPMs it mentions to be installed (for Python 2), but you
used pip to install them (for Python 3).

My guess is that "yum install python-six python-sphinx
selinux-policy-devel unbound-devel" or its Oracle equivalent will fix
the problem.

On Tue, Oct 01, 2019 at 11:17:18PM +, Gilbert Standen wrote:
> For example:
> 
> [ubuntu@oracle8 anylinux]$ python3 -m pip install six
> Requirement already satisfied: six in /usr/local/lib/python3.6/site-packages
> [ubuntu@oracle8 anylinux]$ python3 -m pip install sphinx
> Requirement already satisfied: sphinx in 
> /usr/local/lib64/python3.6/site-packages
> Requirement already satisfied: requests>=2.5.0 in 
> /usr/lib/python3.6/site-packages (from sphinx)
> Requirement already satisfied: babel!=2.0,>=1.3 in 
> /usr/local/lib64/python3.6/site-packages (from sphinx)
> Requirement already satisfied: sphinxcontrib-serializinghtml in 
> /usr/local/lib/python3.6/site-packages (from sphinx)
> Requirement already satisfied: sphinxcontrib-jsmath in 
> /usr/local/lib/python3.6/site-packages (from sphinx)
> Requirement already satisfied: snowballstemmer>=1.1 in 
> /usr/local/lib/python3.6/site-packages (from sphinx)
> Requirement already satisfied: setuptools in /usr/lib/python3.6/site-packages 
> (from sphinx)
> Requirement already satisfied: alabaster<0.8,>=0.7 in 
> /usr/local/lib/python3.6/site-packages (from sphinx)
> Requirement already satisfied: imagesize in 
> /usr/local/lib/python3.6/site-packages (from sphinx)
> Requirement already satisfied: packaging in 
> /usr/local/lib/python3.6/site-packages (from sphinx)
> Requirement already satisfied: Pygments>=2.0 in 
> /usr/local/lib/python3.6/site-packages (from sphinx)
> Requirement already satisfied: sphinxcontrib-htmlhelp in 
> /usr/local/lib/python3.6/site-packages (from sphinx)
> Requirement already satisfied: sphinxcontrib-applehelp in 
> /usr/local/lib/python3.6/site-packages (from sphinx)
> Requirement already satisfied: docutils>=0.12 in 
> /usr/local/lib/python3.6/site-packages (from sphinx)
> Requirement already satisfied: Jinja2>=2.3 in 
> /usr/local/lib/python3.6/site-packages (from sphinx)
> Requirement already satisfied: sphinxcontrib-devhelp in 
> /usr/local/lib/python3.6/site-packages (from sphinx)
> Requirement already satisfied: sphinxcontrib-qthelp in 
> /usr/local/lib/python3.6/site-packages (from sphinx)
> Requirement already satisfied: chardet<3.1.0,>=3.0.2 in 
> /usr/lib/python3.6/site-packages (from requests>=2.5.0->sphinx)
> Requirement already satisfied: idna<2.8,>=2.5 in 
> /usr/lib/python3.6/site-packages (from requests>=2.5.0->sphinx)
> Requirement already satisfied: urllib3<1.25,>=1.21.1 in 
> /usr/lib/python3.6/site-packages (from requests>=2.5.0->sphinx)
> Requirement already satisfied: pytz>=2015.7 in 
> /usr/lib/python3.6/site-packages (from babel!=2.0,>=1.3->sphinx)
> Requirement already satisfied: pyparsing>=2.0.2 in 
> /usr/local/lib/python3.6/site-packages (from packaging->sphinx)
> Requirement already satisfied: six in /usr/local/lib/python3.6/site-packages 
> (from packaging->sphinx)
> Requirement already satisfied: MarkupSafe>=0.23 in 
> /usr/local/lib64/python3.6/site-packages (from Jinja2>=2.3->sphinx)
> [ubuntu@oracle8 anylinux]$ sudo alternatives --config python
> 
> There are 3 programs which provide 'python'.
> 
>   SelectionCommand
> ---
> *  1   /usr/libexec/no-python
>  + 2   /usr/bin/python3
>3   /usr/bin/python2
> 
> Enter to keep the current selection[+], or type selection number: 2
> [ubuntu@oracle8 anylinux]$
> 
> But still when I go to build openvswitch, I get:
> 
> error: Failed build dependencies:
> python-six is needed by openvswitch-2.11.1-1.x86_64
> python-sphinx is needed by openvswitch-2.11.1-1.x86_64
> selinux-policy-devel is needed by openvswitch-2.11.1-1.x86_64
> unbound-devel is needed by openvswitch-2.11.1-1.x86_64
> 
> I guess it's going to be obvious I'm not much good with python ... they seem 
> to be installed so why can't openvswitch use/see them?
> 
> 
> 
> From: Gilbert Standen 
> Sent: Tuesday, October 1, 2019 5:32 PM
> To: Ben Pfaff 
> Cc: ovs-discuss@openvswitch.org 
> Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8
> 
> Thanks Ben. I've tried that too. When I try to install openvswitch 2.11.x I 
> run into needing python-six and python-sphinx and I've been trying for a 
> couple days to figure out how to get those installed on Oracle Linux 8 to no 
> avail ...
> 
> 

Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

2019-10-01 Thread Gilbert Standen
For example:

[ubuntu@oracle8 anylinux]$ python3 -m pip install six
Requirement already satisfied: six in /usr/local/lib/python3.6/site-packages
[ubuntu@oracle8 anylinux]$ python3 -m pip install sphinx
Requirement already satisfied: sphinx in 
/usr/local/lib64/python3.6/site-packages
Requirement already satisfied: requests>=2.5.0 in 
/usr/lib/python3.6/site-packages (from sphinx)
Requirement already satisfied: babel!=2.0,>=1.3 in 
/usr/local/lib64/python3.6/site-packages (from sphinx)
Requirement already satisfied: sphinxcontrib-serializinghtml in 
/usr/local/lib/python3.6/site-packages (from sphinx)
Requirement already satisfied: sphinxcontrib-jsmath in 
/usr/local/lib/python3.6/site-packages (from sphinx)
Requirement already satisfied: snowballstemmer>=1.1 in 
/usr/local/lib/python3.6/site-packages (from sphinx)
Requirement already satisfied: setuptools in /usr/lib/python3.6/site-packages 
(from sphinx)
Requirement already satisfied: alabaster<0.8,>=0.7 in 
/usr/local/lib/python3.6/site-packages (from sphinx)
Requirement already satisfied: imagesize in 
/usr/local/lib/python3.6/site-packages (from sphinx)
Requirement already satisfied: packaging in 
/usr/local/lib/python3.6/site-packages (from sphinx)
Requirement already satisfied: Pygments>=2.0 in 
/usr/local/lib/python3.6/site-packages (from sphinx)
Requirement already satisfied: sphinxcontrib-htmlhelp in 
/usr/local/lib/python3.6/site-packages (from sphinx)
Requirement already satisfied: sphinxcontrib-applehelp in 
/usr/local/lib/python3.6/site-packages (from sphinx)
Requirement already satisfied: docutils>=0.12 in 
/usr/local/lib/python3.6/site-packages (from sphinx)
Requirement already satisfied: Jinja2>=2.3 in 
/usr/local/lib/python3.6/site-packages (from sphinx)
Requirement already satisfied: sphinxcontrib-devhelp in 
/usr/local/lib/python3.6/site-packages (from sphinx)
Requirement already satisfied: sphinxcontrib-qthelp in 
/usr/local/lib/python3.6/site-packages (from sphinx)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in 
/usr/lib/python3.6/site-packages (from requests>=2.5.0->sphinx)
Requirement already satisfied: idna<2.8,>=2.5 in 
/usr/lib/python3.6/site-packages (from requests>=2.5.0->sphinx)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in 
/usr/lib/python3.6/site-packages (from requests>=2.5.0->sphinx)
Requirement already satisfied: pytz>=2015.7 in /usr/lib/python3.6/site-packages 
(from babel!=2.0,>=1.3->sphinx)
Requirement already satisfied: pyparsing>=2.0.2 in 
/usr/local/lib/python3.6/site-packages (from packaging->sphinx)
Requirement already satisfied: six in /usr/local/lib/python3.6/site-packages 
(from packaging->sphinx)
Requirement already satisfied: MarkupSafe>=0.23 in 
/usr/local/lib64/python3.6/site-packages (from Jinja2>=2.3->sphinx)
[ubuntu@oracle8 anylinux]$ sudo alternatives --config python

There are 3 programs which provide 'python'.

  SelectionCommand
---
*  1   /usr/libexec/no-python
 + 2   /usr/bin/python3
   3   /usr/bin/python2

Enter to keep the current selection[+], or type selection number: 2
[ubuntu@oracle8 anylinux]$

But still when I go to build openvswitch, I get:

error: Failed build dependencies:
python-six is needed by openvswitch-2.11.1-1.x86_64
python-sphinx is needed by openvswitch-2.11.1-1.x86_64
selinux-policy-devel is needed by openvswitch-2.11.1-1.x86_64
unbound-devel is needed by openvswitch-2.11.1-1.x86_64

I guess it's going to be obvious I'm not much good with python ... they seem to 
be installed so why can't openvswitch use/see them?



From: Gilbert Standen 
Sent: Tuesday, October 1, 2019 5:32 PM
To: Ben Pfaff 
Cc: ovs-discuss@openvswitch.org 
Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

Thanks Ben. I've tried that too. When I try to install openvswitch 2.11.x I run 
into needing python-six and python-sphinx and I've been trying for a couple 
days to figure out how to get those installed on Oracle Linux 8 to no avail ...


"If BlackBerrys were as plentiful as Apples, upon compulsions, no man seven 
reasons would I give, for BlackBerry 10 reasons hath one to give, I."

Gilbert Standen after William Shakespeare, Henry IV‎ . Sent from my BlackBerry 
10 Classic.
  Original Message
From: Ben Pfaff
Sent: Tuesday, October 1, 2019 4:57 PM
To: Gilbert Standen
Cc: ovs-discuss@openvswitch.org
Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8


On Tue, Oct 01, 2019 at 09:46:41PM +, Gilbert Standen wrote:
> Hi, when I try to build OpenvSwitch 2.0.5 on Oracle Linux 8 I get the
> following errors.  Any ideas on how to address this ?  Thanks!

OVS 2.0 was released in 2013.  Use a newer version.
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

2019-10-01 Thread Gilbert Standen
Thanks Ben. I've tried that too. When I try to install openvswitch 2.11.x I run 
into needing python-six and python-sphinx and I've been trying for a couple 
days to figure out how to get those installed on Oracle Linux 8 to no avail ...


"If BlackBerrys were as plentiful as Apples, upon compulsions, no man seven 
reasons would I give, for BlackBerry 10 reasons hath one to give, I."

Gilbert Standen after William Shakespeare, Henry IV‎ . Sent from my BlackBerry 
10 Classic.
  Original Message
From: Ben Pfaff
Sent: Tuesday, October 1, 2019 4:57 PM
To: Gilbert Standen
Cc: ovs-discuss@openvswitch.org
Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8


On Tue, Oct 01, 2019 at 09:46:41PM +, Gilbert Standen wrote:
> Hi, when I try to build OpenvSwitch 2.0.5 on Oracle Linux 8 I get the
> following errors.  Any ideas on how to address this ?  Thanks!

OVS 2.0 was released in 2013.  Use a newer version.
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8

2019-10-01 Thread Ben Pfaff
On Tue, Oct 01, 2019 at 09:46:41PM +, Gilbert Standen wrote:
> Hi, when I try to build OpenvSwitch 2.0.5 on Oracle Linux 8 I get the
> following errors.  Any ideas on how to address this ?  Thanks!

OVS 2.0 was released in 2013.  Use a newer version.
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss