Commit Graph
79 Commits
Author SHA1 Message Date
Alexandru Ardelean 677ed22b3e python: fix goof
This should have gone in python3.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2015-01-20 10:45:09 +02:00
Alexandru ArdeleanandAlexandru Ardelean f5f8d83dcd python: change _PYTHON_HOST_PLATFORM to linux2
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2015-01-11 20:15:13 +02:00
Alexandru Ardelean a236e91914 python-setuptools: remove windows support
Causes some build issues.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2015-01-08 14:57:15 +02:00
Alexandru Ardelean 46a47aeb80 python-setuptools: fix Build/InstallDev rule
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2015-01-08 13:08:25 +02:00
Alexandru Ardelean e87af5bd0e openvswitch: upgrade to version 2.3.1
Release notes here:
   https://github.com/openvswitch/ovs/blob/v2.3.1/NEWS

Remove patch (included in 2.3.1):
   0005-datapath-backport___ip_select_ident_function.patch

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2015-01-06 17:05:31 +02:00
Alexandru Ardelean 87c4cbff5c python: upgrade to version 2.7.9
Release notes here:
   https://www.python.org/downloads/release/python-279/

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2015-01-06 15:10:59 +02:00
Alexandru Ardelean 1ee71252e7 python-pip: remove windows binaries
Seem pip comes bundled with some Python libs.

Some more work will be needed to split them out of pip.
For now, some Windows executables are safe to remove.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2015-01-06 14:59:35 +02:00
Alexandru Ardelean 2a66f00b87 python-pip: add preinst and postrm scripts
Thanks to Xuefer Tinys <xuefer@gmail.com> for reporting this.

Case is:
  opkg install python-setuptools - works fine
  opkg install python-pip - reports conflicts for
                            files easy_install.pth & site.py

So the solution is to add some preinst script that backs up those files
on 'opkg install python-pip' and moves them back on 'opkg remove python-pip'.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2015-01-06 14:29:38 +02:00
Alexandru Ardelean ca8f3dcf5c python-setuptools: remove PyPackage filespec
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2015-01-06 14:21:37 +02:00
Alexandru Ardelean 16f53ee9c8 python-setuptools: use $(PYTHON_PKG_DIR) short-hand
Signed-off-by: Xuefer Tinys <xuefer@gmail.com>
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2015-01-06 14:21:36 +02:00
Alexandru Ardelean 71bd162dde python-dns: remove PyPackage filespec
Default will be used.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2015-01-06 14:19:19 +02:00
Alexandru Ardelean 8b86c1528a python: add default PyPackage/filespec if not defined
Most packages will install in /usr/lib/python$(PYTHON_VERSION)/site-packages

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2015-01-06 14:15:02 +02:00
Alexandru Ardelean 9b94e3cb6e python: trim all whitespaces for the operator in the filespec
That would allow for files (in filespecs) to be indented.
As it is now, the files need to be added at the begginning of the line.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2015-01-06 10:50:31 +02:00
Alexandru Ardelean 1a108389e2 python-dns: update PKG_NAME
PKG_NAME should be the name of the actual OpenWRT package, and not
the name of the original package name.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-12-10 13:28:04 +02:00
Alexandru Ardelean 0bfec165fa python-dns: update compile rule and add PyPackage rules
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-12-10 13:28:04 +02:00
Alexandru Ardelean 50bbabec9f python-dns: add $(eval $(call PyPackage,python-dns))
Should be included by Python packages if they want to run
Python-package-specific build rules.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-12-10 13:27:02 +02:00
Alexandru Ardelean 4be1abe228 python-dns: fix python-mini dependency to python
python-mini does not exist anymore
For now we'll just fix the build, and we'll do a bit more smart
packaging later.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-12-10 13:25:55 +02:00
Alexandru Ardelean 9e639dbf87 python3: add $(PKG_INSTALL_DIR)/$(PYTHON3_PKG_DIR) to PYTHON3PATH
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-12-09 14:17:56 +02:00
Alexandru Ardelean 48aaf18057 python3: disable Python3 bytecode generation by default
Same as python.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-12-09 14:16:03 +02:00
Alexandru Ardelean 465c95ab71 python-setuptools: remove explicit PYTHONPATH set
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-12-09 12:43:59 +02:00
Alexandru Ardelean f51458dfd3 python-pip: remove explicit PYTHONPATH set
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-12-09 12:43:21 +02:00
Alexandru Ardelean 97d7cff5d1 python: add $(PKG_INSTALL_DIR)/$(PYTHON_PKG_DIR) to PYTHONPATH
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-12-09 12:42:36 +02:00
Alexandru Ardelean bc85520865 openvswitch: use EXTRA_CFLAGS instead of KCFLAGS
The patch we've switched requires EXTRA_CFLAGS to be set instead of KCFLAGS.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-12-03 09:09:05 +02:00
Alexandru Ardelean 986b9fbce8 openvswitch: switch patch with patch from ovs trunk
After a few discussions with the guys working on OpenVSwitch
they've recommended we use the EXTRA_CFLAGS env var for setting
flags for the kernel module.

They've updated the trunk with a patch to accomodate that.
That patch is also in this commit, and replaces a patch that I proposed.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-12-03 09:05:08 +02:00
Alexandru Ardelean 94b090cb9c python: use Build/Prepare rule for the config.site file
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-11-26 11:51:40 +02:00
Alexandru ArdeleanandAlexandru Ardelean 5b85eff6b2 python: add patch to disable python byte codes by default
Use export PYTHONDONTWRITEBYTECODE=0 to re-enable writing byte codes.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-11-16 23:31:59 +02:00
Alexandru Ardelean 286e50a0bd python-pip: first revision
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-11-13 10:25:37 +02:00
Alexandru ArdeleanandAlexandru Ardelean 47ed969646 python-setuptools: first revision
Signed-off-by: Alexandru Ardelean <aa@ocedo.com>
2014-11-13 00:22:55 +02:00
Alexandru Ardelean c3cd970570 python: exclude pdb.doc and webbrowser.py
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-11-07 16:50:30 +02:00
Alexandru Ardelean 3cd31a4633 python: remove +libcrypto dep; that's a openssl lib
Signed-off-by: Alexandru Ardelean <ardeleanalex.com>
2014-11-07 15:37:18 +02:00
Alexandru Ardelean 9e78aff770 python: add PKG_USE_MIPS16:=0 + handle CONFIG_USE_MIPS16
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-11-07 15:37:18 +02:00
Alexandru Ardelean 242286b80d python: add PYTHONPATH var; this allows packages to configure it
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-11-07 15:37:18 +02:00
Alexandru Ardelean 194c0f608a openvswitch: add +kmod-vxlan dependency for kernels >= 3.12
When OVS detects a kernel version >= 3.12 it does not build
it's own vxlan module and tries to use the kernel's, when building
the OVS kernel module.

I also pushed a patch to the OpenWRT trunk to add a +kmod-vxlan package.

This will add the kernel's vxlan.ko kernel module if it exists.
So, for kernel >= 3.12, this package should exist and be installed
when installing OVS.

Tested on OpenWRT trunk with kernel 3.14.18.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-31 12:25:07 +02:00
Alexandru Ardelean 78f0bd7e45 openvswitch: add patch "datapath: Backport __ip_select_ident() function"
Signed-off-by: Alexandru Ardelean <aa@ocedo.com>
2014-10-30 18:22:03 +02:00
Alexandru Ardelean d16d96f52d openvswitch: fix build for gcc versions below 4.9
Seems that while fixing the build for GCC 4.9
I broke the build for GCC 4.8, because that KCFLAG I added
causes a build error (since it's not recognized).

The fix is to add KCFLAG only when GCC 4.9 is used.

OpenVSwitch now builds successfully with GCC 4.8 and 4.9.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-30 10:33:58 +02:00
Alexandru Ardelean 6ba7c4721e openvswitch: add KCFLAGS="-Wno-error=date-time" to kernel modules build
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-28 11:27:46 +02:00
Alexandru Ardelean 935e54417d openvswitch: add patch for adding KCFLAGS var to the OVS build
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-28 11:27:25 +02:00
Alexandru Ardelean 1a0e9b3786 python3: enable shared python3 lib; make this the norm
This will reduce the bloat when users will want to compile in their
Python C extensions.
There will be a initial bloat (several kb) if just Python
is installed, but that will be compensated when users will add more
C extensions.

During the build we also have to add Python's PKG_BUILD_DIR
so that the shared lib is found when compiling Python's
built-in C extensions.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-20 20:04:54 +03:00
Alexandru Ardelean f699a1f8f9 python: fix source folder for libpython
This fix is quite critical since it fixes copying the libpython shared lib.
The previous source folder we've used is ok, it has the shared lib,
but libpython2.7.so is not a symlink of libpython2.7.so.1.0, but
rather a copy of it.
Which means that libpython2.7.so takes twice as much space
on the target's flash.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-20 19:07:28 +03:00
Alexandru Ardelean 5bf4866fd9 python3: add patch to disable package compiles/tests during cross-builts
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-20 18:13:13 +03:00
Alexandru Ardelean e0abcb569b python: add ac_cv_buggy_getaddrinfo=no to config.site file
Required when IPv6 support gets enabled.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-20 18:09:57 +03:00
Alexandru Ardelean 8c4da0367b python3: patch setup.py so that it does not include system include dirs
Seems that the Python C extensions were being
(or at least trying to be) build using '/usr/include' as the first
include folder.

Seems this issue was already fixed on MacOS X and now we've extended
it for our case.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-20 18:08:55 +03:00
Alexandru Ardelean 885fe99cd2 python3: enforce the existence of files in the filespecs
Seems that this allows some goofs, because some files
silently do not get copied and the build succeeds, even though
it shouldn't.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-20 18:05:03 +03:00
Alexandru Ardelean a1fe8c48aa python3: reduce bloat by removing *.pyo and *.pyc files
Seems that if you add a package folder this would also
include the compiled python3 files which increases fw size.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-20 18:04:12 +03:00
Alexandru ArdeleanandAlexandru Ardelean cfa1b5e17b openvswitch: add openvswitch-ipsesc package back
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-17 18:03:29 +03:00
Alexandru ArdeleanandAlexandru Ardelean 00cfd79006 openvswitch: add openvswitch-python subpackage
Requires python package.
Required by other openvswitch subpackages (like openvswitch-python).

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-17 18:02:59 +03:00
Alexandru Ardelean 15111b3ccf python: _md5 + _sha libs are now grouped under _hashlibs
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-17 17:05:56 +03:00
Alexandru Ardelean d05c846e69 python: add patch to disable package compiles/tests during cross-builts
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-17 17:05:43 +03:00
Alexandru Ardelean 8122954aff python: add ac_cv_buggy_getaddrinfo=no to config.site file
Required when IPv6 support gets enabled.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-17 16:39:26 +03:00
Alexandru Ardelean aafbac886e python: patch setup.py so that it does not include system include dirs
Seems that the Python C extensions were being
(or at least trying to be) build using '/usr/include' as the first
include folder.

Seems this issue was already fixed on MacOS X and now we've extended
it for our case.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-17 16:34:15 +03:00
Alexandru Ardelean 09c02844e4 python: enforce the existence of files in the filespecs
Seems that this allows some goofs, because some files
silently do not get copied and the build succeeds, even though
it shouldn't.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-17 16:30:45 +03:00
Alexandru Ardelean 714b1247b7 python: reduce bloat by removing *.pyo and *.pyc files
Seems that if you add a package folder this would also
include the compiled python files which increases fw size.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-17 10:25:43 +03:00
Alexandru Ardelean 02ad9c1915 python: upgrade to version 2.7.8 2014-10-15 16:49:49 +03:00
Alexandru Ardelean e3145e1fb0 python: add python2 symlink to python as per PEP394 2014-10-15 10:02:57 +03:00
Alexandru Ardelean b0c21ae7aa python: use command instead of 'ln -sf' 2014-10-15 10:02:57 +03:00
Alexandru Ardelean 9cdea1ba38 python: include python*-package.mk irespective of DUMP env var
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-15 10:02:54 +03:00
Alexandru Ardelean b49c17d6c7 python: enforce version assignment
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-15 10:02:49 +03:00
Alexandru Ardelean 3ad7208ba6 python: move python package versioning to python-package.mk
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-15 10:02:48 +03:00
Alexandru Ardelean d5bd7dd36e python: add old python 2 package back
According to PEP394 (http://legacy.python.org/dev/peps/pep-0394/)
the 'python' command should refer to 'python2'.

In our case, this means we should reboot the old python package.

We could rename the package name to python2, but that would
just complicate things a bit with other packages, and
since we're doing this reboot, such a complication would be
unnecessary.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-15 10:02:33 +03:00
Alexandru Ardelean 5cb802cac4 python3: fix python host path 2014-10-15 09:13:24 +03:00
Alexandru Ardelean a964feec68 python3: add python3 symlink to python exec as per PEP394 2014-10-15 09:13:24 +03:00
Alexandru Ardelean 72092dabf2 python3: suffix vars with 3 2014-10-15 09:12:41 +03:00
Alexandru Ardelean e4d94961c3 python3: include python*-package.mk irespective of DUMP env var
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-15 09:11:00 +03:00
Alexandru Ardelean dee4a69cea python3: enforce version assignment
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-15 09:10:29 +03:00
Alexandru Ardelean 9500f50f2b python3: avoid making python3 the default python command
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-15 09:08:09 +03:00
Alexandru Ardelean d5d9442928 python3: fixup python-package.mk include
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-15 09:08:06 +03:00
Alexandru ArdeleanandAlexandru Ardelean 7bf1ae65a8 python: upgrade to version 3.4.1
Some notes:
- Python 3 (at least version 3.4) is pretty cross-compiler-friendly,
  so a lot of patches were thrown away.
- Arguments below were moved to ./files/config.site file, and disabled
      ac_cv_have_chflags=no \
      ac_cv_have_lchflags=no \
      ac_cv_py_format_size_t=no \
      ac_cv_have_long_long_format=yes \
      ac_cv_buggy_getaddrinfo=no \
- --without-ensurepip added, because the build wants to ensure that
  it works; that's a good idea, but for now, it requires special
  setup, and we can do that later
- --without-pymalloc added, becase in Python 3, modules are suffixed
  with m; e.g. so some paths are python3.4m instead of python3.4
  all this is detailed here:
         http://legacy.python.org/dev/peps/pep-3149/
  Maybe it will be a good idea to re-add this back

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-06 21:07:31 +03:00
Alexandru Ardelean da85f0770a python: reorganize package
Make python-mini the top-level and default Python package.
Make the other packages subpackages of the top-level python package.
Make old python package the python-full package.

Note: at this point, this package can be split/renamed to
python-legacy should anyone need Python 2. After this commit
it's going to be Python 3 all the way.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-06 17:34:28 +03:00
Alexandru Ardelean 1472a35f36 python: update copyright & maintainer
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-06 17:31:23 +03:00
Alexandru Ardelean 0169d40b81 python: import package as-is from old packages
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-10-06 17:31:23 +03:00
Alexandru Ardelean abf22eb88b libsodium: add depends to configuration menu
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-09-23 09:40:33 +03:00
Alexandru Ardelean dba9c40dcc freetype: install ft2build.h
Required for splashutils.
May be required for other programs too.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-09-19 18:17:54 +03:00
Alexandru Ardelean 2e1bfb6f26 openvswitch: remove openvswitch-package until python package is put back in
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-09-18 17:21:58 +03:00
Alexandru Ardelean eaa0d56c03 openvswitch: fix package URL
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-09-18 17:21:58 +03:00
Alexandru Ardelean cf5fdf8a8f openvswitch: change order of the installs
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-09-18 17:21:58 +03:00
Alexandru Ardelean 4940679ef2 openvswitch: organize openvswitch-ipsec and openvswitch-benchmark as subpackages
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-09-18 17:21:57 +03:00
Alexandru Ardelean aa35b34326 openvswitch: merge openvswitch-common + openvswitch-switch into openvswitch
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-09-18 17:21:57 +03:00
Alexandru Ardelean 6f1313abd0 openvswitch: move openvswitch-common/postinst after install
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-09-18 17:21:57 +03:00
Alexandru Ardelean 8ecc0fb194 openvswitch: initial feed at OpenVSwitch version 2.3
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2014-09-16 17:13:46 +03:00