public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mamoru TASAKA <mtasaka@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/mopac7] rawhide: Fix FTBFS on i686 and s390x
Date: Fri, 17 Jul 2026 13:33:42 GMT	[thread overview]
Message-ID: <178429522278.1.1070932576078124318.rpms-mopac7-045aea1d3e09@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/mopac7
Branch : rawhide
Commit : 045aea1d3e099f4cd6c3deca9dc5d4069c83a2f9
Author : Mamoru TASAKA <mtasaka@fedoraproject.org>
Date   : 2026-07-17T22:33:31+09:00
Stats  : +34/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/mopac7/c/045aea1d3e099f4cd6c3deca9dc5d4069c83a2f9?branch=rawhide

Log:
Fix FTBFS on i686 and s390x

---
diff --git a/mopac7-1.15-gcc16-loop-variable-nodouble.patch b/mopac7-1.15-gcc16-loop-variable-nodouble.patch
new file mode 100644
index 0000000..3b78314
--- /dev/null
+++ b/mopac7-1.15-gcc16-loop-variable-nodouble.patch
@@ -0,0 +1,23 @@
+--- mopac7-1.15/fortran/esp.f.gcc16	2008-08-22 00:05:23.000000000 +0900
++++ mopac7-1.15/fortran/esp.f	2026-07-17 22:23:01.428882128 +0900
+@@ -691,7 +691,8 @@ C
+       DO 30 M=0,8
+          K=1
+          FV(M,1)=1.D0/(2.D0*M+1.D0)
+-         DO 30 T=0.05D0,41.D0,0.05D0
++         DO 30 I=5,4100,5
++            T=I*0.01D0
+             K=K+1
+             CALL FSUB(M,T,FVAL)
+             FV(M,K)=FVAL
+@@ -2035,8 +2036,9 @@ C
+       DO 30 M=0,8
+          K=1
+          FV(M,1)=1.D0/(2.D0*M+1.D0)
+-         DO 30 T=0.05D0,41.D0,0.05D0
++         DO 30 I=5,4100,5
+             K=K+1
++            T=I*0.01D0
+             CALL FSUB(M,T,FVAL)
+             FV(M,K)=FVAL
+    30 CONTINUE

diff --git a/mopac7.spec b/mopac7.spec
index 6b87344..3e43270 100644
--- a/mopac7.spec
+++ b/mopac7.spec
@@ -1,7 +1,7 @@
 Name:           mopac7
 Summary:        Semi-empirical quantum mechanics suite
 Version:        1.15
-Release:        52%{?dist}
+Release:        53%{?dist}
 # https://gitlab.com/fedora/legal/fedora-license-data/-/merge_requests/554
 # SPDX confirmed
 License:        LicenseRef-Fedora-Public-Domain
@@ -11,6 +11,10 @@ Source0:        http://bioinformatics.org/ghemical/download/current/mopac7-%{ver
 Patch0:         mopac7-1.15-c99-function-prototype.patch
 # Some type size fix
 Patch1:         mopac7-1.15-type-size.patch
+# https://bugzilla.redhat.com/show_bug.cgi?id=2501699
+# gcc16 and gmp6.3 no longer accepts non-integer loop variable
+# Fix compilation on i686, s390x
+Patch2:         mopac7-1.15-gcc16-loop-variable-nodouble.patch
 BuildRequires:  make
 BuildRequires:  autoconf
 BuildRequires:  automake
@@ -44,6 +48,7 @@ perl -pi -e "s#-lg2c##g" libmopac7.pc.in
 
 %patch -P0 -p1
 %patch -P1 -p1
+%patch -P2 -p1 -b .loop_nodouble
 
 %build
 autoreconf -fiv
@@ -85,6 +90,11 @@ find tests -name 'Makefile*' -delete -print
 %{_libdir}/pkgconfig/libmopac7.pc
 
 %changelog
+* Fri Jul 17 2026 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.15-53
+- Fix FTBFS on i686 and s390x, gcc16 and gmp 6.3 no longer accept non-integer
+  loop variable
+  (ref: bug 2501699)
+
 * Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.15-52
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

                 reply	other threads:[~2026-07-17 13:33 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=178429522278.1.1070932576078124318.rpms-mopac7-045aea1d3e09@fedoraproject.org \
    --to=mtasaka@fedoraproject.org \
    --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