Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debian11_qsdk-11.3_ipq60xx_4.14 #23

Open
wants to merge 20 commits into
base: qsdk-11.3-ipq60xx-4.4
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 0 additions & 9 deletions include/prereq-build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,6 @@ $(eval $(call TestHostCommand,zlib, \
echo 'int main(int argc, char **argv) { gzdopen(0, "rb"); return 0; }' | \
gcc -include zlib.h -x c -o $(TMP_DIR)/a.out - -lz))

$(eval $(call TestHostCommand,libssl, \
Please install the openssl library (with development headers), \
echo 'int main(int argc, char **argv) { SSL_library_init(); return 0; }' | \
gcc $(HOST_CFLAGS) -include openssl/ssl.h -x c -o $(TMP_DIR)/a.out - -lcrypto -lssl $(HOST_LDFLAGS)))


$(eval $(call SetupHostCommand,tar,Please install GNU 'tar', \
gtar --version 2>&1 | grep GNU, \
gnutar --version 2>&1 | grep GNU, \
Expand Down Expand Up @@ -155,9 +149,6 @@ $(eval $(call SetupHostCommand,git,Please install Git (git-core) >= 1.6.5, \
$(eval $(call SetupHostCommand,file,Please install the 'file' package, \
file --version 2>&1 | grep file))

$(eval $(call SetupHostCommand,openssl,Please install the 'openssl' utility, \
openssl version | grep OpenSSL))


# Install ldconfig stub
$(eval $(call TestHostCommand,ldconfig-stub,Failed to install stub, \
Expand Down
38 changes: 17 additions & 21 deletions package/libs/libjson-c/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,48 +8,43 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=json-c
PKG_VERSION:=0.12
PKG_RELEASE:=1
PKG_VERSION:=0.15
PKG_RELEASE:=2

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-nodoc.tar.gz
PKG_SOURCE_URL:=https://s3.amazonaws.com/json-c_releases/releases/
PKG_MD5SUM:=3ca4bbb881dfc4017e8021b5e0a8c491
PKG_HASH:=99bca4f944b8ced8ae0bbc6310d6a3528ca715e69541793a1ef51f8c5b4b0878

PKG_MAINTAINER:=Felix Fietkau <[email protected]>
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=COPYING
PKG_CPE_ID:=cpe:/a:json-c_project:json-c

PKG_FIXUP:=autoreconf
PKG_INSTALL:=1

PKG_MAINTAINER:=Felix Fietkau <[email protected]>
HOST_BUILD_PREFIX:=$(STAGING_DIR_HOST)

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

TARGET_CFLAGS += $(FPIC)

CONFIGURE_ARGS += \
ac_cv_func_strdup=yes \
ac_cv_func_strncasecmp=yes \
ac_cv_func_snprintf=yes
CMAKE_HOST_OPTIONS += \
-DBUILD_SHARED_LIBS=FALSE

define Package/libjson-c
SECTION:=libs
CATEGORY:=Libraries
TITLE:=javascript object notation
URL:=http://oss.metaparadigm.com/json-c/
URL:=https://json-c.github.io/json-c/
ABI_VERSION:=5
endef

define Package/libjson-c/description
This package contains a library for javascript object notation backends.
endef

define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/json-c $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libjson-c.{a,so*} $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/json-c.pc $(1)/usr/lib/pkgconfig/
$(call Build/InstallDev/cmake,$(1))
$(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/json-c.pc
$(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/json-c.pc
endef

define Package/libjson-c/install
Expand All @@ -58,3 +53,4 @@ define Package/libjson-c/install
endef

$(eval $(call BuildPackage,libjson-c))
$(eval $(call HostBuild))
50 changes: 0 additions & 50 deletions package/libs/libjson-c/patches/000-libm.patch

This file was deleted.

23 changes: 0 additions & 23 deletions package/libs/libjson-c/patches/001-backport_compile_fix.patch

This file was deleted.

11 changes: 11 additions & 0 deletions package/libs/libjson-c/patches/001-dont-build-docs.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -401,8 +401,6 @@ set(JSON_C_SOURCES
include_directories(${PROJECT_SOURCE_DIR})
include_directories(${PROJECT_BINARY_DIR})

-add_subdirectory(doc)
-
# uninstall
add_custom_target(uninstall
COMMAND cat ${PROJECT_BINARY_DIR}/install_manifest.txt | xargs rm
11 changes: 11 additions & 0 deletions package/libs/libjson-c/patches/010-clang.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -265,7 +265,7 @@ message(STATUS "Wrote ${PROJECT_BINARY_D
configure_file(${PROJECT_SOURCE_DIR}/cmake/json_config.h.in ${PROJECT_BINARY_DIR}/json_config.h)
message(STATUS "Wrote ${PROJECT_BINARY_DIR}/json_config.h")

-if ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
+if ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ffunction-sections -fdata-sections")
if ("${DISABLE_WERROR}" STREQUAL "OFF")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff -aur a/handler.c b/handler.c
--- a/handler.c 2022-09-07 20:55:07.966501377 +0300
+++ b/handler.c 2022-09-07 21:14:06.713596580 +0300
@@ -105,7 +105,7 @@
tok = json_tokener_new();

obj = json_tokener_parse_ex(tok, start, len);
- if (!is_error(obj)) {
+ if (obj != NULL) {
netifd_init_script_handler(name, obj, cb);
json_object_put(obj);
json_tokener_free(tok);
1 change: 1 addition & 0 deletions qca/feeds/nss-host/qca-nss-clients/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ endef

EXTRA_CFLAGS+= \
-I$(STAGING_DIR)/usr/include/qca-nss-drv \
-I$(STAGING_DIR)/usr/include/qca-nss-ecm \
-I$(STAGING_DIR)/usr/include/qca-nss-crypto \
-I$(STAGING_DIR)/usr/include/qca-nss-cfi \
-I$(STAGING_DIR)/usr/include/qca-nss-gmac \
Expand Down
9 changes: 4 additions & 5 deletions qca/feeds/packages/lang/python/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ PKG_RELEASE:=1

PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://www.python.org/ftp/python/$(PKG_VERSION)
PKG_MD5SUM:=53b43534153bb2a0363f08bae8b9d990
PKG_HASH:=35d543986882f78261f97787fd3e06274bfa6df29fac9b4a94f73930ff98f731
PKG_MD5SUM:=57dffcee9cee8bb2ab5f82af1d8e9a69

PKG_LICENSE:=PSF
PKG_LICENSE_FILES:=LICENSE Modules/_ctypes/libffi_msvc/LICENSE Modules/_ctypes/darwin/LICENSE Modules/_ctypes/libffi/LICENSE Modules/_ctypes/libffi_osx/LICENSE Tools/pybench/LICENSE
Expand All @@ -30,7 +29,7 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/Python-$(PKG_VERSION)
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/Python-$(PKG_VERSION)

PKG_BUILD_DEPENDS:=python/host
HOST_BUILD_DEPENDS:=bzip2/host expat/host libffi/host
HOST_BUILD_DEPENDS:=bzip2/host expat/host

include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/package.mk
Expand Down Expand Up @@ -217,14 +216,14 @@ endef

HOST_CFLAGS+= \
-I/usr/include/ncursesw \
-I/usr/include/ncurses
-I/usr/include/ncurses \
-I/usr/include/tirpc

HOST_CONFIGURE_ARGS+= \
--without-cxx-main \
--without-pymalloc \
--with-threads \
--with-system-expat=$(STAGING_DIR_HOST) \
--with-system-ffi=$(STAGING_DIR_HOST) \
--prefix=$(STAGING_DIR_HOST) \
--with-ensurepip=upgrade \
CONFIG_SITE= \
Expand Down
2 changes: 1 addition & 1 deletion qca/feeds/packages/lang/python/files/python-package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#

PYTHON_VERSION:=2.7
PYTHON_VERSION_MICRO:=13
PYTHON_VERSION_MICRO:=12

PYTHON_DIR:=$(STAGING_DIR)/usr
PYTHON_BIN_DIR:=$(PYTHON_DIR)/bin
Expand Down
43 changes: 33 additions & 10 deletions qca/feeds/packages/libs/libgpg-error/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,30 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=libgpg-error
PKG_VERSION:=1.12
PKG_RELEASE:=1
PKG_VERSION:=1.45
PKG_RELEASE:=$(AUTORELEASE)

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=ftp://ftp.gnupg.org/gcrypt/libgpg-error
PKG_MD5SUM:=8f0eb41a344d19ac2aa9bd101dfb9ce6
PKG_SOURCE_URL:=https://mirrors.dotsrc.org/gcrypt/libgpg-error \
http://ring.ksc.gr.jp/archives/net/gnupg/libgpg-error \
https://www.gnupg.org/ftp/gcrypt/libgpg-error
PKG_HASH:=570f8ee4fb4bff7b7495cff920c275002aea2147e9a1d220c068213267f80a26

PKG_BUILD_PARALLEL:=1
PKG_MAINTAINER:=W. Michael Petullo <[email protected]>
PKG_LICENSE:=LGPL-2.1-or-later
PKG_LICENSE_FILES:=COPYING

PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1

include $(INCLUDE_DIR)/package.mk

define Package/libgpg-error
SECTION:=libs
CATEGORY:=Libraries
TITLE:=GnuPG error handling helper library
URL:=http://www.gnupg.org/related_software/libgpg-error/
MAINTAINER:=W. Michael Petullo <[email protected]>
URL:=https://www.gnupg.org/related_software/libgpg-error/
endef

define Package/libgpg-error/description
Expand All @@ -36,12 +42,13 @@ define Package/libgpg-error/description
future.
endef

TARGET_CFLAGS += $(FPIC)

CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
--disable-rpath
--disable-doc \
--disable-languages \
--disable-rpath \
--disable-tests

define Build/InstallDev
$(INSTALL_DIR) $(2)/bin $(1)/usr/bin
Expand All @@ -53,11 +60,23 @@ define Build/InstallDev
$(2)/bin/gpg-error-config
ln -sf $(STAGING_DIR)/host/bin/gpg-error-config $(1)/usr/bin/gpg-error-config

$(INSTALL_BIN) \
$(PKG_INSTALL_DIR)/usr/bin/gpgrt-config \
$(2)/bin/
$(SED) \
's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
$(2)/bin/gpgrt-config
ln -sf $(STAGING_DIR)/host/bin/gpgrt-config $(1)/usr/bin/gpgrt-config

$(INSTALL_DIR) $(1)/usr/include
$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/include/gpg-error.h \
$(1)/usr/include/

$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/include/gpgrt.h \
$(1)/usr/include/

$(INSTALL_DIR) $(1)/usr/lib
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/libgpg-error.{la,a,so*} \
Expand All @@ -67,6 +86,10 @@ define Build/InstallDev
$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/share/aclocal/gpg-error.m4 \
$(1)/usr/share/aclocal/

$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/share/aclocal/gpgrt.m4 \
$(1)/usr/share/aclocal/
endef

define Package/libgpg-error/install
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
--- a/configure.ac
+++ b/configure.ac
@@ -74,6 +74,21 @@ AM_SILENT_RULES
AC_CANONICAL_HOST
AB_INIT

+case "${host}" in
+ x86_64-openwrt-linux-gnu|i?86-openwrt-linux-gnu)
+ host=$(echo $host | sed 's/openwrt/pc/g')
+ ;;
+ arm-openwrt-linux-gnu|armeb-openwrt-linux-gnu)
+ host=arm-unknown-linux-gnueabi
+ ;;
+ mips64-openwrt-linux-gnu)
+ host=mips64el-unknown-linux-gnuabi64
+ ;;
+ *)
+ host=$(echo $host | sed 's/openwrt/unknown/g')
+ ;;
+esac
+
# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
Loading