public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <rosset.filipe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/vrq] rawhide: fix build for other arches
Date: Mon, 20 Jul 2026 20:32:36 GMT	[thread overview]
Message-ID: <178457955647.1.1906122183149601612.rpms-vrq-9e1f9e8401f5@fedoraproject.org> (raw)

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
+

                 reply	other threads:[~2026-07-20 20:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178457955647.1.1906122183149601612.rpms-vrq-9e1f9e8401f5@fedoraproject.org \
    --to=rosset.filipe@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox