Skip to content

Commit

Permalink
try to fix runtime error
Browse files Browse the repository at this point in the history
  • Loading branch information
zpc0 committed May 19, 2024
1 parent 0464841 commit 5731687
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
10 changes: 9 additions & 1 deletion monero.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

Name: monero
Version: 0.18.3.3
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Monero - the secure, private, untraceable cryptocurrency

License: MIT
Expand All @@ -12,6 +12,8 @@ Source0: https://downloads.getmonero.org/cli/%{name}-source-v%{version}.tar.bz2
Source1: https://www.getmonero.org/downloads/hashes.txt
Source2: binaryfate.asc

Patch0: set-arch.patch

# for source tarball verification
BuildRequires: coreutils
BuildRequires: gnupg2
Expand Down Expand Up @@ -52,6 +54,9 @@ Summary: Monero wallet
Monero CLI wallet

%prep
# print host cpu info
cat /proc/cpuinfo

# check PGP signature
gpg --import %{SOURCE2}
gpg --output binaryfate-keyring.gpg --export [email protected]
Expand Down Expand Up @@ -99,6 +104,9 @@ install -m 0755 build/release/bin/* %{buildroot}%{_bindir}/
%{_bindir}/monero-wallet-rpc

%changelog
* Sun May 19 2024 zpc <[email protected]>
- try to fix runtime error
- print build host cpu info to debug problems
* Mon May 13 2024 zpc <[email protected]>
- try to fix runtime error
- remove unused dependency
Expand Down
11 changes: 11 additions & 0 deletions set-arch.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/Makefile
+++ b/Makefile
@@ -89,7 +89,7 @@

cmake-release:
mkdir -p $(builddir)/release
- cd $(builddir)/release && cmake -D CMAKE_BUILD_TYPE=Release $(topdir)
+ cd $(builddir)/release && cmake -D CMAKE_BUILD_TYPE=Release -D ARCH=x86_64 $(topdir)

release: cmake-release
cd $(builddir)/release && $(MAKE)

0 comments on commit 5731687

Please sign in to comment.