public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/vrq] rawhide: fix build for other arches
@ 2026-07-20 20:32 Filipe Rosset
0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-07-20 20:32 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/vrq
Branch : rawhide
Commit : 9e1f9e8401f5909acccf9c21d6973b4bc2f92b3b
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date : 2026-07-20T17:32:27-03:00
Stats : +37/-15 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/vrq/c/9e1f9e8401f5909acccf9c21d6973b4bc2f92b3b?branch=rawhide
Log:
fix build for other arches
---
diff --git a/vrq-non-x86.patch b/vrq-non-x86.patch
new file mode 100644
index 0000000..3f5d75d
--- /dev/null
+++ b/vrq-non-x86.patch
@@ -0,0 +1,19 @@
+--- a/plugin/sim/flags.h
++++ b/plugin/sim/flags.h
+@@ -49,12 +49,16 @@
+ void init_flags(void);
+ inline unsigned long long int rdtsc()
+ {
++#if defined(__i386__) || defined(__x86_64__)
+ unsigned long long int x;
+ unsigned a, d;
+
+ __asm__ volatile("rdtsc" : "=a" (a), "=d" (d));
+
+ return ((unsigned long long)a) | (((unsigned long long)d) << 32);
++#else
++ return 0;
++#endif
+ }
+
+ }
diff --git a/vrq.spec b/vrq.spec
index d52250b..0be2adf 100644
--- a/vrq.spec
+++ b/vrq.spec
@@ -3,25 +3,22 @@ Version: 1.0.134
Release: %autorelease
Summary: Verilog tool framework with plugins for manipulating source code
License: GPL-2.0-or-later
-URL: http://vrq.sourceforge.net/
-Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+URL: https://vrq.sourceforge.net/
+Source0: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0: vrq-gcc11.patch
+Patch1: vrq-non-x86.patch
-# ---- Exclusive Arch: ----
-# plugin/sim uses x86 inline assembly
-ExclusiveArch: x86_64
-ExcludeArch: %{ix86}
-
-BuildRequires: make
BuildRequires: bison
BuildRequires: bzip2-devel
BuildRequires: doxygen
+BuildRequires: fdupes
BuildRequires: flex
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: help2man
BuildRequires: iverilog
BuildRequires: libtool-ltdl-devel
+BuildRequires: make
BuildRequires: man2html-core
BuildRequires: perl-Time-HiRes
BuildRequires: readline-devel
@@ -36,7 +33,7 @@ customizable tools.
%package devel
Summary: Header files and libraries for Vrq development
-Requires: %{name} = %{version}-%{release}
+Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The vrq-devel package contains the header files and libraries needed
@@ -44,19 +41,19 @@ to develop backend plugin customization tools for the vrq tool framework.
%prep
%autosetup -p1
-%{__rm} -rf `find . -name CVS`
-%{__rm} -f `find . -name *.o`
-%{__rm} -f `find . -name *.so`
+find . -name CVS -exec rm -rf {} +
+find . -name '*.o' -delete
+find . -name '*.so' -delete
%build
-export CXXFLAGS="-std=c++14 $RPM_OPT_FLAGS"
+export CXXFLAGS="-std=c++14 %{build_cxxflags}"
%configure
%make_build
%install
%make_install
-%{__rm} -f `find %{buildroot} -name *.la`
-%{__rm} -rf `find %{buildroot} -name latex`
+find %{buildroot} -name '*.la' -delete
+rm -rf `find %{buildroot} -name latex`
# add some doc files into the buildroot manually (#992864)
for f in AUTHORS ChangeLog COPYING README doc/faq.html ; do
@@ -70,8 +67,13 @@ install -d -m0755 %{buildroot}%{_docdir}/%{name}/plugin
cp -pr plugin/examples %{buildroot}%{_docdir}/%{name}/plugin
rm -rf %{buildroot}%{_docdir}/%{name}-%{version}
+%fdupes %{buildroot}%{_docdir}
+
+%check
+make check || :
+
%files
%dir %{_docdir}/%{name}
%dir %{_docdir}/%{name}/doc
@@ -91,3 +93,4 @@ rm -rf %{buildroot}%{_docdir}/%{name}-%{version}
%changelog
%autochangelog
+
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-20 20:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-20 20:32 [rpms/vrq] rawhide: fix build for other arches Filipe Rosset
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox