From bb68db639eb8abfd2142928a9fbdb818d35c6b01 Mon Sep 17 00:00:00 2001 From: "DESKTOP-FFQ7OSJ\\jean" Date: Wed, 26 Jan 2022 11:53:17 +0800 Subject: [PATCH] add 0001-add-riscv64-to-configure.patch --- 0001-add-riscv64-to-configure.patch | 28 ++++++++++++++++++++++++++++ passenger.spec | 9 +++++++-- 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 0001-add-riscv64-to-configure.patch diff --git a/0001-add-riscv64-to-configure.patch b/0001-add-riscv64-to-configure.patch new file mode 100644 index 0000000..02e7a4c --- /dev/null +++ b/0001-add-riscv64-to-configure.patch @@ -0,0 +1,28 @@ +diff --git a/src/cxx_supportlib/vendor-copy/libuv/config.guess b/src/cxx_supportlib/vendor-copy/libuv/config.guess +index 6c32c86..2401ba8 100644 +--- a/src/cxx_supportlib/vendor-copy/libuv/config.guess ++++ b/src/cxx_supportlib/vendor-copy/libuv/config.guess +@@ -1002,6 +1002,9 @@ EOF + ppcle:Linux:*:*) + echo powerpcle-unknown-linux-${LIBC} + exit ;; ++ riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*) ++ echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" ++ exit ;; + s390:Linux:*:* | s390x:Linux:*:*) + echo ${UNAME_MACHINE}-ibm-linux-${LIBC} + exit ;; +diff --git a/src/cxx_supportlib/vendor-modified/libev/config.guess b/src/cxx_supportlib/vendor-modified/libev/config.guess +index 1f5c50c..9a91219 100644 +--- a/src/cxx_supportlib/vendor-modified/libev/config.guess ++++ b/src/cxx_supportlib/vendor-modified/libev/config.guess +@@ -1001,6 +1001,9 @@ EOF + ppcle:Linux:*:*) + echo powerpcle-unknown-linux-${LIBC} + exit ;; ++ riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*) ++ echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" ++ exit ;; + s390:Linux:*:* | s390x:Linux:*:*) + echo ${UNAME_MACHINE}-ibm-linux-${LIBC} + exit ;; diff --git a/passenger.spec b/passenger.spec index 9d6466e..007805a 100644 --- a/passenger.spec +++ b/passenger.spec @@ -6,7 +6,7 @@ Name:passenger Summary: Phusion Passenger application server Version: 6.0.8 -Release: 2 +Release: 3 License: Boost and BSD and MIT and zlib URL: https://www.phusionpassenger.com @@ -17,6 +17,8 @@ Source100: apache-passenger.conf.in Source101: apache-passenger-module.conf Source102: passenger.tmpfiles +Patch01: 0001-add-riscv64-to-configure.patch + Requires: rubygems rubygem(rack) rubygem(rake) ruby(release) BuildRequires: gcc gcc-c++ httpd-devel ruby ruby-devel rubygems rubygems-devel @@ -72,7 +74,7 @@ BuildArch: noarch This package contains documentation files for Phusion Passenger®. %prep -%autosetup -n %{name}-%{version} +%autosetup -n %{name}-%{version} -p1 %build export EXTRA_CFLAGS="${CFLAGS:-%optflags} -Wno-deprecated" @@ -189,6 +191,9 @@ sed -i 's|^#!/usr/bin/env python$|#!/usr/bin/python3|' %{buildroot}%{_datadir}/p %{_mandir}/*/* %changelog +* Fri Jan 21 2022 wujie - 6.0.8-3 +- add riscv64 to config.guess from https://github.com/gcc-mirror/gcc/blob/master/config.guess + * Tue Jan 25 2022 panxiaohe - 6.0.8-2 - add BuildRequires: perl to fix build failure -- Gitee