-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
14 changed files
with
117 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...hon3/patches-host-setuptools/0001-Adjust-library-header-paths-for-cross-compilation.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
From e359a7a3c4f9e70360a068bef19c95938fdacede Mon Sep 17 00:00:00 2001 | ||
From: Thomas Petazzoni <[email protected]> | ||
Date: Wed, 23 Dec 2015 11:33:14 +0100 | ||
Subject: [PATCH] Adjust library/header paths for cross-compilation | ||
|
||
When cross-compiling third-party extensions, the get_python_inc() or | ||
get_python_lib() can be called, to return the path to headers or | ||
libraries. However, they use the sys.prefix of the host Python, which | ||
returns incorrect paths when cross-compiling (paths pointing to host | ||
headers and libraries). | ||
|
||
In order to fix this, we introduce the _python_sysroot, _python_prefix | ||
and _python_exec_prefix variables, that allow to override these | ||
values, and get correct header/library paths when cross-compiling | ||
third-party Python modules. | ||
|
||
Signed-off-by: Thomas Petazzoni <[email protected]> | ||
[adapt for setuptools, rename environment variable, use fixed lib path] | ||
Signed-off-by: Jeffery To <[email protected]> | ||
--- | ||
Lib/distutils/command/build_ext.py | 5 ++++- | ||
Lib/sysconfig.py | 15 +++++++++++---- | ||
2 files changed, 15 insertions(+), 5 deletions(-) | ||
|
||
--- a/setuptools/_distutils/command/build_ext.py | ||
+++ b/setuptools/_distutils/command/build_ext.py | ||
@@ -238,7 +238,10 @@ class build_ext(Command): | ||
if sysconfig.get_config_var('Py_ENABLE_SHARED'): | ||
if not sysconfig.python_build: | ||
# building third party extensions | ||
- self.library_dirs.append(sysconfig.get_config_var('LIBDIR')) | ||
+ libdir = sysconfig.get_config_var('LIBDIR') | ||
+ if 'STAGING_DIR' in os.environ: | ||
+ libdir = os.environ.get('STAGING_DIR') + '/usr/lib' | ||
+ self.library_dirs.append(libdir) | ||
else: | ||
# building python standard extensions | ||
self.library_dirs.append('.') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
libs/efivar/patches/006-build-util-c-separately-for-makeguids.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
From ca48d3964d26f5e3b38d73655f19b1836b16bd2d Mon Sep 17 00:00:00 2001 | ||
From: Alexander Kanavin <[email protected]> | ||
Date: Tue, 18 Jan 2022 11:53:41 +0100 | ||
Subject: [PATCH] src/Makefile: build util.c separately for makeguids | ||
|
||
util.c needs to be built twice when cross-compiling: | ||
for the build machine to be able to link with | ||
makeguids which then runs during the same build, | ||
and then for the actual target. | ||
|
||
Signed-off-by: Alexander Kanavin <[email protected]> | ||
--- | ||
src/Makefile | 5 ++++- | ||
1 file changed, 4 insertions(+), 1 deletion(-) | ||
|
||
--- a/src/Makefile | ||
+++ b/src/Makefile | ||
@@ -28,10 +28,13 @@ EFIVAR_OBJECTS = $(patsubst %.S,%.o,$(pa | ||
EFISECDB_SOURCES = efisecdb.c guid-symbols.c secdb-dump.c util.c | ||
EFISECDB_OBJECTS = $(patsubst %.S,%.o,$(patsubst %.c,%.o,$(EFISECDB_SOURCES))) | ||
GENERATED_SOURCES = include/efivar/efivar-guids.h guid-symbols.c | ||
-MAKEGUIDS_SOURCES = makeguids.c util.c | ||
+MAKEGUIDS_SOURCES = makeguids.c util-makeguids.c | ||
MAKEGUIDS_OBJECTS = $(patsubst %.S,%.o,$(patsubst %.c,%.o,$(MAKEGUIDS_SOURCES))) | ||
MAKEGUIDS_OUTPUT = $(GENERATED_SOURCES) guids.lds | ||
|
||
+util-makeguids.c : util.c | ||
+ cp util.c util-makeguids.c | ||
+ | ||
ALL_SOURCES=$(LIBEFISEC_SOURCES) $(LIBEFIBOOT_SOURCES) $(LIBEFIVAR_SOURCES) \ | ||
$(MAKEGUIDS_SOURCES) $(GENERATED_SOURCES) $(EFIVAR_SOURCES) \ | ||
$(sort $(wildcard include/efivar/*.h)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,12 +8,12 @@ | |
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=libndpi | ||
PKG_VERSION:=4.6 | ||
PKG_VERSION:=4.8 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL:=https://codeload.github.com/ntop/nDPI/tar.gz/$(PKG_VERSION)? | ||
PKG_HASH:=6f307e23ab11b2b9e84a696120810e27a854072576a49783ff84fd37a1d7411b | ||
PKG_HASH:=8f6235ba672d4ac8e4cbebb5611bc712a74587d9d53a649f483e4bcca5b80e58 | ||
PKG_BUILD_DIR:=$(BUILD_DIR)/nDPI-$(PKG_VERSION) | ||
|
||
PKG_MAINTAINER:=Banglang Huang <[email protected]>, Toni Uhlig <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=speedtestcpp | ||
PKG_VERSION:=1.20.2 | ||
PKG_VERSION:=1.20.3 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL:=https://codeload.github.com/oskarirauta/speedtestcpp/tar.gz/v$(PKG_VERSION)? | ||
PKG_HASH:=7d5c85f1d9a46f7d8a3ac4261ef1f92e53c511430bae096f7ec6f12a33d38904 | ||
PKG_HASH:=8154e2161c56c0ac1275e57c34f448aaf98fb49937ff824ce975d95984395025 | ||
|
||
PKG_MAINTAINER:=Oskari Rauta <[email protected]> | ||
PKG_LICENSE:=MIT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,12 +8,12 @@ | |
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=wavemon | ||
PKG_VERSION:=0.9.3 | ||
PKG_VERSION:=0.9.5 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL:=https://codeload.github.com/uoaerg/wavemon/tar.gz/v$(PKG_VERSION)? | ||
PKG_HASH:=ddbeb6ec8ed7d94fa895e5d57ecfe338495df3991f6facc7cf40aa121bf7ff60 | ||
PKG_HASH:=f84c55a40b470f2b98908d20cd0b38ffef6f587daed23b50281c9592df3331c6 | ||
|
||
PKG_MAINTAINER:=Jonathan McCrohan <[email protected]> | ||
PKG_LICENSE:=GPL-2.0-or-later | ||
|
@@ -28,7 +28,7 @@ define Package/wavemon | |
SECTION:=net | ||
CATEGORY:=Network | ||
TITLE:=N-curses based wireless network devices monitor | ||
DEPENDS:=+libncurses +libpthread +libnl-genl | ||
DEPENDS:=+libncurses +libpthread +libnl-genl +libnl-cli | ||
SUBMENU:=Wireless | ||
URL:=https://github.com/uoaerg/wavemon/releases | ||
endef | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters