From bdcb6507e6949c45b64d1df7a86f9af3946cd46f Mon Sep 17 00:00:00 2001 From: Miro Stauder Date: Fri, 16 Dec 2022 11:00:38 +0000 Subject: [PATCH 1/2] add builds for fedora37 --- Makefile | 34 ++++++++++++++++++++++++++++++++-- docker-compose.yml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ecbe04a976..d89724d45e 100644 --- a/Makefile +++ b/Makefile @@ -209,7 +209,7 @@ amd64-ubuntu: ubuntu14 ubuntu14-dbg ubuntu16 ubuntu16-dbg ubuntu18 ubuntu18-dbg amd64-debian: debian8 debian8-dbg debian9 debian9-dbg debian10 debian10-dbg debian11 debian11-clang debian11-dbg .PHONY: amd64-debian -amd64-fedora: fedora27 fedora27-dbg fedora28 fedora28-dbg fedora33 fedora33-dbg fedora34 fedora34-clang fedora34-dbg fedora36 fedora36-clang fedora36-dbg +amd64-fedora: fedora27 fedora27-dbg fedora28 fedora28-dbg fedora33 fedora33-dbg fedora34 fedora34-clang fedora34-dbg fedora36 fedora36-clang fedora36-dbg fedora37 fedora37-clang fedora37-dbg .PHONY: amd64-fedora amd64-opensuse: opensuse15 opensuse15-clang opensuse15-dbg @@ -233,7 +233,7 @@ arm64-debian: debian9-arm64 debian10-arm64 debian11-arm64 arm64-ubuntu: ubuntu16-arm64 ubuntu18-arm64 ubuntu20-arm64 ubuntu22-arm64 .PHONY: arm64-ubuntu -arm64-fedora: fedora33-arm64 fedora34-arm64 +arm64-fedora: fedora33-arm64 fedora34-arm64 fedora36-arm64 fedora37-arm64 .PHONY: arm64-fedora arm64-opensuse: opensuse15-arm64 @@ -326,6 +326,19 @@ fedora36-dbg: binaries/proxysql-${CURVER}-1-dbg-fedora36.x86_64.rpm .PHONY: fedora36-dbg +fedora37: binaries/proxysql-${CURVER}-1-fedora37.x86_64.rpm +.PHONY: fedora36 + +fedora37-arm64: binaries/proxysql-${CURVER}-1-fedora37.aarch64.rpm +.PHONY: fedora36-arm64 + +fedora37-clang: binaries/proxysql-${CURVER}-1-fedora37-clang.x86_64.rpm +.PHONY: fedora36-clang + +fedora37-dbg: binaries/proxysql-${CURVER}-1-dbg-fedora37.x86_64.rpm +.PHONY: fedora36-dbg + + ubuntu14: binaries/proxysql_${CURVER}-ubuntu14_amd64.deb .PHONY: ubuntu14 @@ -563,6 +576,23 @@ binaries/proxysql-${CURVER}-1-dbg-fedora36.x86_64.rpm: docker-compose rm -f +binaries/proxysql-${CURVER}-1-fedora37.x86_64.rpm: + docker-compose up fedora37_build + docker-compose rm -f + +binaries/proxysql-${CURVER}-1-fedora37.aarch64.rpm: + docker-compose up fedora37_build + docker-compose rm -f + +binaries/proxysql-${CURVER}-1-fedora37-clang.x86_64.rpm: + docker-compose up fedora37_clang_build + docker-compose rm -f + +binaries/proxysql-${CURVER}-1-dbg-fedora37.x86_64.rpm: + docker-compose up fedora37_dbg_build + docker-compose rm -f + + binaries/proxysql_${CURVER}-ubuntu14_amd64.deb: docker-compose up ubuntu14_build docker-compose rm -f diff --git a/docker-compose.yml b/docker-compose.yml index b14b4200d1..7e58704c80 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -212,6 +212,36 @@ services: - PKG_RELEASE=dbg-fedora36 - PROXYSQL_BUILD_TYPE=debug +#################################################################################################### + fedora37_build: + image: proxysql/packaging:build-fedora37 + volumes: + - ./docker/images/proxysql/rhel-compliant/rpmmacros/rpmbuild/:/root/rpmbuild/ + - ./docker/images/proxysql/rhel-compliant/rpmmacros/.rpmmacros:/root/.rpmmacros + - ./docker/images/proxysql/rhel-compliant/entrypoint/:/opt/entrypoint/ + - ./:/opt/proxysql/ + environment: + - MAKE + - MAKEOPT + - CURVER + - PKG_RELEASE=fedora37 + - PROXYSQL_BUILD_TYPE=clickhouse + command: bash -l -c /opt/entrypoint/entrypoint.bash + + fedora37_clang_build: + extends: + service: fedora37_build + image: proxysql/packaging:build-clang-fedora37 + environment: + - PKG_RELEASE=fedora37-clang + - PROXYSQL_BUILD_TYPE=clickhouse + + fedora37_dbg_build: + extends: + service: fedora37_build + environment: + - PKG_RELEASE=dbg-fedora37 + - PROXYSQL_BUILD_TYPE=debug #################################################################################################### #################################################################################################### From 5224e4819a3eb5e92685380f61d9c32771bc2170 Mon Sep 17 00:00:00 2001 From: Miro Stauder Date: Fri, 16 Dec 2022 11:01:43 +0000 Subject: [PATCH 2/2] fix libinjection with clang 15 --- deps/Makefile | 1 + deps/libinjection/libinjection_sqli.c.patch | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 deps/libinjection/libinjection_sqli.c.patch diff --git a/deps/Makefile b/deps/Makefile index b25e31b762..ad40a39eb2 100644 --- a/deps/Makefile +++ b/deps/Makefile @@ -69,6 +69,7 @@ libinjection/libinjection/src/libinjection.a: cd libinjection && tar -zxf libinjection-3.10.0.tar.gz ifneq ($(CENTOSVER),6) cd libinjection/libinjection && patch -p1 < ../update-build-py3.diff + cd libinjection/libinjection && patch -p1 < ../libinjection_sqli.c.patch endif ifeq ($(UNAME_S),Darwin) sed -i '' 's/CC=/CC?=/' libinjection/libinjection/src/Makefile diff --git a/deps/libinjection/libinjection_sqli.c.patch b/deps/libinjection/libinjection_sqli.c.patch new file mode 100644 index 0000000000..4b46307709 --- /dev/null +++ b/deps/libinjection/libinjection_sqli.c.patch @@ -0,0 +1,11 @@ +--- a/src/libinjection_sqli.c 2017-05-21 20:44:26.000000000 +0000 ++++ b/src/libinjection_sqli.c 2022-12-16 10:36:23.632259768 +0000 +@@ -1197,7 +1197,7 @@ + * without having to regenerated the SWIG (or other binding) in minor + * releases. + */ +-const char* libinjection_version() ++const char* libinjection_version(void) + { + return LIBINJECTION_VERSION; + }