Skip to content

Commit

Permalink
Merge Official Source
Browse files Browse the repository at this point in the history
Signed-off-by: Tianling Shen <[email protected]>
  • Loading branch information
1715173329 committed Dec 19, 2024
2 parents 7ef7e22 + bbc02fa commit 9d5b2b6
Show file tree
Hide file tree
Showing 51 changed files with 704 additions and 109 deletions.
6 changes: 3 additions & 3 deletions admin/qbee-agent/Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=qbee-agent
PKG_VERSION:=2024.45
PKG_VERSION:=2024.50
PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/qbee-io/qbee-agent.git
PKG_SOURCE_VERSION:=bdf5f11771964dbb69a0d8f1f93e69f75e5a83c5
PKG_MIRROR_HASH:=b0f62bfe66ecb33a4f703b372d66ba5cfcf15330fa1c7c60c0bd136f55727142
PKG_SOURCE_VERSION:=4303465d155f0680968b57fdf4421971786356a4
PKG_MIRROR_HASH:=84e08d1b0b62f59723b816df89bb8cb29ac5c00fac0b2e533cfa2044b9a0e5f6

PKG_LICENSE:=Apache-2.0
PKG_LICENSE_FILES:=LICENSE
Expand Down
7 changes: 6 additions & 1 deletion lang/python/python-click/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=python-click
PKG_VERSION:=8.1.7
PKG_RELEASE:=1
PKG_RELEASE:=2

PYPI_NAME:=click
PKG_HASH:=ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de
Expand All @@ -15,9 +15,13 @@ PKG_MAINTAINER:=Jeffery To <[email protected]>
PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE.rst

HOST_BUILD_DEPENDS:=python3/host python-build/host python-installer/host python-wheel/host

include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
include ../python3-package.mk
include ../python3-host-build.mk

define Package/python3-click
SECTION:=lang
Expand All @@ -38,3 +42,4 @@ endef
$(eval $(call Py3Package,python3-click))
$(eval $(call BuildPackage,python3-click))
$(eval $(call BuildPackage,python3-click-src))
$(eval $(call HostBuild))
4 changes: 2 additions & 2 deletions lang/python/python-orjson/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=python-orjson
PKG_VERSION:=3.10.0
PKG_VERSION:=3.10.12
PKG_RELEASE:=1

PYPI_NAME:=orjson
PKG_HASH:=ba4d8cac5f2e2cff36bea6b6481cdb92b38c202bcec603d6f5ff91960595a1ed
PKG_HASH:=0a78bbda3aea0f9f079057ee1ee8a1ecf790d4f1af88dd67493c6b8ee52506ff

PKG_MAINTAINER:=Timothy Ace <[email protected]>
PKG_LICENSE:=Apache-2.0 MIT
Expand Down
46 changes: 46 additions & 0 deletions lang/python/python-pyelftools/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=python-pyelftools
PKG_VERSION:=0.31
PKG_RELEASE:=1

PYPI_NAME:=pyelftools
PKG_HASH:=c774416b10310156879443b81187d182d8d9ee499660380e645918b50bc88f99

PKG_MAINTAINER:=Austin Lane <[email protected]>
PKG_LICENSE:=Unlicense
PKG_LICENSE_FILES:=LICENSE

HOST_BUILD_DEPENDS:= \
python3/host \
python-build/host \
python-installer/host \
python-wheel/host

include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
include ../python3-package.mk
include ../python3-host-build.mk

define Package/python3-pyelftools
SECTION:=lang
CATEGORY:=Languages
SUBMENU:=Python
TITLE:=Library for analyzing ELF files and DWARF debugging information
URL:=https://pypi.org/project/pyelftools
DEPENDS:=+python3-light +python3-logging
endef

define Package/python3-pyelftools/description
Library for analyzing ELF files and DWARF debugging information
endef

$(eval $(call Py3Package,python3-pyelftools))
$(eval $(call BuildPackage,python3-pyelftools))
$(eval $(call BuildPackage,python3-pyelftools-src))
$(eval $(call HostBuild))
7 changes: 6 additions & 1 deletion lang/python/python-pyserial/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=python-pyserial
PKG_VERSION:=3.5
PKG_RELEASE:=1
PKG_RELEASE:=2

PYPI_NAME:=pyserial
PKG_HASH:=3c77e014170dfffbd816e6ffc205e9842efb10be9f58ec16d3e8675b4925cddb
Expand All @@ -18,9 +18,13 @@ PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE.txt
PKG_MAINTAINER:=Micke Prag <[email protected]>

HOST_BUILD_DEPENDS:=python3/host python-build/host python-installer/host python-wheel/host

include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
include ../python3-package.mk
include ../python3-host-build.mk

define Package/python3-pyserial
SECTION:=lang
Expand All @@ -41,3 +45,4 @@ endef
$(eval $(call Py3Package,python3-pyserial))
$(eval $(call BuildPackage,python3-pyserial))
$(eval $(call BuildPackage,python3-pyserial-src))
$(eval $(call HostBuild))
11 changes: 10 additions & 1 deletion lang/python/python-requests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=python-requests
PKG_VERSION:=2.32.3
PKG_RELEASE:=1
PKG_RELEASE:=2

PKG_MAINTAINER:=Josef Schlehofer <[email protected]>, Alexandru Ardelean <[email protected]>
PKG_LICENSE:=Apache-2.0
Expand All @@ -19,9 +19,17 @@ PKG_CPE_ID:=cpe:/a:python:requests
PYPI_NAME:=requests
PKG_HASH:=55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760

HOST_BUILD_DEPENDS:= \
python-chardet/host \
python-idna/host \
python-urllib3/host \
python-certifi/host

include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
include ../python3-package.mk
include ../python3-host-build.mk

define Package/python3-requests
SUBMENU:=Python
Expand All @@ -44,3 +52,4 @@ endef
$(eval $(call Py3Package,python3-requests))
$(eval $(call BuildPackage,python3-requests))
$(eval $(call BuildPackage,python3-requests-src))
$(eval $(call HostBuild))
48 changes: 48 additions & 0 deletions lang/python/python-tabulate/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=python-tabulate
PKG_VERSION:=0.9.0
PKG_RELEASE:=1

PYPI_NAME:=tabulate
PKG_HASH:=0095b12bf5966de529c0feb1fa08671671b3368eec77d7ef7ab114be2c068b3c

PKG_MAINTAINER:=Austin Lane <[email protected]>
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE

PKG_BUILD_DEPENDS:=python-setuptools-scm/host
HOST_BUILD_DEPENDS:= \
python3/host \
python-build/host \
python-installer/host \
python-wheel/host \
python-setuptools-scm/host

include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
include ../python3-package.mk
include ../python3-host-build.mk

define Package/python3-tabulate
SECTION:=lang
CATEGORY:=Languages
SUBMENU:=Python
TITLE:=Pretty-print tabular data
URL:=https://pypi.org/project/tabulate
DEPENDS:=+python3-light
endef

define Package/python3-tabulate/description
Pretty-print tabular data
endef

$(eval $(call Py3Package,python3-tabulate))
$(eval $(call BuildPackage,python3-tabulate))
$(eval $(call BuildPackage,python3-tabulate-src))
$(eval $(call HostBuild))
56 changes: 56 additions & 0 deletions libs/abseil-cpp/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=abseil-cpp
PKG_VERSION:=20240722.0
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/abseil/abseil-cpp/releases/download/$(PKG_VERSION)
PKG_HASH:=f50e5ac311a81382da7fa75b97310e4b9006474f9560ac46f54a9967f07d4ae3

PKG_MAINTAINER:=Austin Lane <[email protected]>
PKG_LICENSE:=Apache-2.0
PKG_LICENSE_FILES:=LICENSE

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/cmake.mk

define Package/abseil-cpp
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Collection of C++ code designed to augment the C++ standard library
URL:=https://github.com/abseil/abseil-cpp
DEPENDS:=+libpthread +libstdcpp
endef

define Package/abseil-cpp/description
Abseil is an open-source collection of C++ code (compliant to C++14) designed to augment the C++ standard library.
endef

CMAKE_INSTALL:=1

CMAKE_HOST_OPTIONS += \
-DCMAKE_CXX_STANDARD=14 \
-DABSL_ENABLE_INSTALL=ON \
-DABSL_USE_GOOGLETEST_HEAD=OFF

CMAKE_OPTIONS += \
-DCMAKE_CXX_STANDARD=14 \
-DABSL_ENABLE_INSTALL=ON \
-DABSL_USE_GOOGLETEST_HEAD=OFF

TARGET_CFLAGS += $(FPIC)

define Build/InstallDev
$(call Build/InstallDev/cmake,$(1))
$(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/absl_*.pc
$(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/absl_*.pc
endef

$(eval $(call BuildPackage,abseil-cpp))
$(eval $(call HostBuild))
34 changes: 34 additions & 0 deletions libs/abseil-cpp/patches/001-absl-always-use-asm-sgidefs.h.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# From https://git.openembedded.org/meta-openembedded/tree/meta-oe/recipes-devtools/abseil-cpp
From 11faa06436fdeb0c9948080a11f9a99d3b5ba16c Mon Sep 17 00:00:00 2001
From: Khem Raj <[email protected]>
Date: Thu, 9 Apr 2020 13:06:27 -0700
Subject: [PATCH] absl: always use <asm/sgidefs.h>

Fixes mips/musl build, since sgidefs.h is not present on all C libraries
but on linux asm/sgidefs.h is there and contains same definitions, using
that makes it portable.

Upstream-Status: Pending

Signed-off-by: Khem Raj <[email protected]>
---
absl/base/internal/direct_mmap.h | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)

--- a/absl/base/internal/direct_mmap.h
+++ b/absl/base/internal/direct_mmap.h
@@ -41,13 +41,9 @@

#ifdef __mips__
// Include definitions of the ABI currently in use.
-#if defined(__BIONIC__) || !defined(__GLIBC__)
-// Android doesn't have sgidefs.h, but does have asm/sgidefs.h, which has the
+// bionic/musl C libs don't have sgidefs.h, but do have asm/sgidefs.h, which has the
// definitions we need.
#include <asm/sgidefs.h>
-#else
-#include <sgidefs.h>
-#endif // __BIONIC__ || !__GLIBC__
#endif // __mips__

// SYS_mmap and SYS_munmap are not defined in Android.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# From https://git.openembedded.org/meta-openembedded/tree/meta-oe/recipes-devtools/abseil-cpp
From a573ccd57e713486e7d8e782d6b3b34fde01ff9e Mon Sep 17 00:00:00 2001
From: Sinan Kaya <[email protected]>
Date: Mon, 3 Feb 2020 03:25:57 +0000
Subject: [PATCH] Remove maes option from cross-compilation

Upstream-Status: Pending
---
absl/copts/GENERATED_AbseilCopts.cmake | 4 ----
absl/copts/GENERATED_copts.bzl | 4 ----
2 files changed, 8 deletions(-)

--- a/absl/copts/GENERATED_AbseilCopts.cmake
+++ b/absl/copts/GENERATED_AbseilCopts.cmake
@@ -229,7 +229,3 @@ list(APPEND ABSL_RANDOM_HWAES_ARM64_FLAG
list(APPEND ABSL_RANDOM_HWAES_MSVC_X64_FLAGS
)

-list(APPEND ABSL_RANDOM_HWAES_X64_FLAGS
- "-maes"
- "-msse4.1"
-)
--- a/absl/copts/GENERATED_copts.bzl
+++ b/absl/copts/GENERATED_copts.bzl
@@ -230,7 +230,3 @@ ABSL_RANDOM_HWAES_ARM64_FLAGS = [
ABSL_RANDOM_HWAES_MSVC_X64_FLAGS = [
]

-ABSL_RANDOM_HWAES_X64_FLAGS = [
- "-maes",
- "-msse4.1",
-]
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# From https://git.openembedded.org/meta-openembedded/tree/meta-oe/recipes-devtools/abseil-cpp
From 632632508daf8bb3a5800dac937ffc33c6d85973 Mon Sep 17 00:00:00 2001
From: Jonas Gorski <[email protected]>
Date: Thu, 16 Jun 2022 11:46:31 +0000
Subject: [PATCH] Remove neon option from cross compilation

Not every arm platform supports neon instructions, so do not enforce
them.

Upstream-Status: Pending

Signed-off-by: Jonas Gorski <[email protected]>
---
absl/copts/GENERATED_AbseilCopts.cmake | 4 ----
absl/copts/GENERATED_copts.bzl | 4 ----
2 files changed, 8 deletions(-)

--- a/absl/copts/GENERATED_AbseilCopts.cmake
+++ b/absl/copts/GENERATED_AbseilCopts.cmake
@@ -218,10 +218,6 @@ list(APPEND ABSL_MSVC_TEST_FLAGS
"/DNOMINMAX"
)

-list(APPEND ABSL_RANDOM_HWAES_ARM32_FLAGS
- "-mfpu=neon"
-)
-
list(APPEND ABSL_RANDOM_HWAES_ARM64_FLAGS
"-march=armv8-a+crypto"
)
--- a/absl/copts/GENERATED_copts.bzl
+++ b/absl/copts/GENERATED_copts.bzl
@@ -219,10 +219,6 @@ ABSL_MSVC_TEST_FLAGS = [
"/DNOMINMAX",
]

-ABSL_RANDOM_HWAES_ARM32_FLAGS = [
- "-mfpu=neon",
-]
-
ABSL_RANDOM_HWAES_ARM64_FLAGS = [
"-march=armv8-a+crypto",
]
Loading

0 comments on commit 9d5b2b6

Please sign in to comment.