Skip to content

Netopeer2 Bundle#9491

Merged
neheb merged 4 commits into
openwrt:masterfrom
neheb:bundle
Nov 7, 2019
Merged

Netopeer2 Bundle#9491
neheb merged 4 commits into
openwrt:masterfrom
neheb:bundle

Conversation

@neheb

@neheb neheb commented Jul 16, 2019

Copy link
Copy Markdown
Contributor

Maintainer: @mislavn
Compile tested: ath79

This is a bundle needed to get Netopeer2 to the latest version.

Several fixes went into this, including some compile fixes for newer GCC.

neheb added 3 commits November 4, 2019 11:58
Cleaned up Makefile slightly. The removed CMAKE_OPTIONS are defaults from
cmake.mk

Removed Upstreamed patches.

Rebased and added .patch to the remaining one.

Added -Wformat-security patch.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Makefile cleanups for consistency between packages.

Placed libsysrepo in Libraries instead of Utilities.

Removed InstallDev as it is implied by CMAKE_INSTALL.

Added .patch at the end of patch files.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Small cleanups.

Removed upstreamed patch.

Suffixed all patches with .patch

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Python 2 will be EOL by the end of the year. Switch to Python 3 as there
is already support for it.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
@neheb neheb marked this pull request as ready for review November 7, 2019 18:45
@neheb neheb merged commit cbc1ff5 into openwrt:master Nov 7, 2019
@neheb neheb deleted the bundle branch November 7, 2019 18:45
Comment thread net/sysrepo/Makefile
$(INSTALL_DATA) $(PKG_BUILD_DIR)/swig/python2/libsysrepoPython2.py $(1)$(PYTHON_PKG_DIR)
$(INSTALL_DATA) $(PKG_BUILD_DIR)/swig/python2/_libsysrepoPython2.so $(1)$(PYTHON_PKG_DIR)
$(INSTALL_DATA) $(PKG_BUILD_DIR)/swig/python3/libsysrepoPython3.py $(1)$(PYTHON_PKG_DIR)
$(INSTALL_DATA) $(PKG_BUILD_DIR)/swig/python3/_libsysrepoPython3.so $(1)$(PYTHON_PKG_DIR)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these references to PYTHON_PKG_DIR be for PYTHON3_PKG_DIR instead?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, are there packages that depend on these Python bindings? Do they need Python 2 bindings or can they work with Python 3?

I'm wondering if we should (and if it is possible to) offer both Python 2 and 3 bindings, keeping the Python 2 bindings around until the mass removal in 2020.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don’t think anything uses these. Feel free to open a PR fixing up some of the loose ends.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #10554 - I decided against building Python 2 bindings because it would have been difficult to build both Python 2 and 3 bindings (but not totally impossible), but also as you said, nothing here uses it.

In fact, if you wanted these bindings before, you had to manually build the package with the config option set. If someone really needs Python 2 bindings, they can edit the Makefiles and build it themselves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants