public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/ode] epel10: Fix FTBFS (rhbz#1424008)
Date: Mon, 30 Nov 2026 16:33:29 GMT	[thread overview]
Message-ID: <179605640926.1.15137756380440691360.rpms-ode-c28ebaeac06b@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/ode
Branch : epel10
Commit : c28ebaeac06b6ce54650c833c49cd39b465bc1b7
Author : Hans de Goede <hdegoede@redhat.com>
Date   : 2017-02-21T10:19:06+01:00
Stats  : +50/-3 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/ode/c/c28ebaeac06b6ce54650c833c49cd39b465bc1b7?branch=epel10

Log:
Fix FTBFS (rhbz#1424008)

---
diff --git a/.rpmlint b/.rpmlint
new file mode 100644
index 0000000..a51aee1
--- /dev/null
+++ b/.rpmlint
@@ -0,0 +1,4 @@
+addFilter("W: patch-not-applied .*")
+addFilter("W: only-non-binary-in-usr-lib")
+addFilter("W: no-manual-page-for-binary .*")
+addFilter("W: shared-lib-calls-exit .*")

diff --git a/ode-0.14-gcc7.patch b/ode-0.14-gcc7.patch
new file mode 100644
index 0000000..9f3a6c4
--- /dev/null
+++ b/ode-0.14-gcc7.patch
@@ -0,0 +1,36 @@
+diff -up ode-0.14/ode/demo/demo_jointPR.cpp~ ode-0.14/ode/demo/demo_jointPR.cpp
+--- ode-0.14/ode/demo/demo_jointPR.cpp~	2015-12-18 01:06:58.000000000 +0100
++++ ode-0.14/ode/demo/demo_jointPR.cpp	2017-02-21 10:05:40.098850959 +0100
+@@ -329,7 +329,7 @@ int main (int argc, char **argv)
+             {
+                 int j = i+1;
+                 if ( j+1 > argc      ||  // Check if we have enough arguments
+-                        argv[j] == '\0' ||  // We should have a path here
++                        argv[j][0] == '\0' ||  // We should have a path here
+                         argv[j][0] == '-' ) // We should have a path not a command line
+                     Help(argv);
+                 else
+diff -up ode-0.14/ode/demo/demo_jointPU.cpp~ ode-0.14/ode/demo/demo_jointPU.cpp
+--- ode-0.14/ode/demo/demo_jointPU.cpp~	2015-12-18 01:06:58.000000000 +0100
++++ ode-0.14/ode/demo/demo_jointPU.cpp	2017-02-21 09:59:12.616418708 +0100
+@@ -576,7 +576,7 @@ int main (int argc, char **argv)
+       if (0 == strcmp ("-t", argv[i]) || 0 == strcmp ("--texture-path", argv[i]) ) {
+         int j = i+1;
+         if ( j+1 > argc      ||  // Check if we have enough arguments
+-             argv[j] == '\0' ||  // We should have a path here
++             argv[j][0] == '\0' ||  // We should have a path here
+              argv[j][0] == '-' ) // We should have a path not a command line
+           Help (argv);
+         else
+diff -up ode-0.14/ode/demo/demo_piston.cpp~ ode-0.14/ode/demo/demo_piston.cpp
+--- ode-0.14/ode/demo/demo_piston.cpp~	2015-12-18 01:06:58.000000000 +0100
++++ ode-0.14/ode/demo/demo_piston.cpp	2017-02-21 10:06:41.361235507 +0100
+@@ -659,7 +659,7 @@ int main (int argc, char **argv)
+                 {
+                     int j = i+1;
+                     if ( j+1 > argc      ||  // Check if we have enough arguments
+-                            argv[j] == '\0' ||  // We should have a path here
++                            argv[j][0] == '\0' ||  // We should have a path here
+                             argv[j][0] == '-' ) // We should have a path not a command line
+                         Help (argv);
+                     else

diff --git a/ode.spec b/ode.spec
index c287e32..9aafeb2 100644
--- a/ode.spec
+++ b/ode.spec
@@ -2,7 +2,7 @@
 
 Name:           ode
 Version:        0.14
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        High performance library for simulating rigid body dynamics
 Group:          System Environment/Libraries
 License:        BSD or LGPLv2+
@@ -11,6 +11,7 @@ Source0:        https://bitbucket.org/odedevs/ode/downloads/ode-%{version}.tar.g
 Patch1:         ode-0.11.1-multilib.patch
 # Modify ode-double.pc and ode-double.config to set dDOUBLE, link right lib
 Patch2:         ode-0.13.1-double-config.patch
+Patch3:         ode-0.14-gcc7.patch
 BuildRequires:  libGL-devel libGLU-devel libtool
 
 %description
@@ -46,6 +47,7 @@ developing applications that use %{name} or %{name}-double.
 %setup -q
 ./bootstrap
 %patch1 -p1
+%patch3 -p1
 # allow overriding EXTRA_LIBTOOL_LDFLAGS from the make cmdline
 sed -i 's/libode_la_LDFLAGS = @EXTRA_LIBTOOL_LDFLAGS@/libode_la_LDFLAGS = $(EXTRA_LIBTOOL_LDFLAGS)/' \
   ode/src/Makefile.in
@@ -101,11 +103,13 @@ install -m 644 ode-double.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig
 
 
 %files
-%doc CHANGELOG.txt *COPYING *LICENSE*.TXT README.md
+%doc CHANGELOG.txt README.md
+%license *COPYING *LICENSE*.TXT
 %{_libdir}/libode.so.%{somajor}*
 
 %files double
-%doc CHANGELOG.txt *COPYING *LICENSE*.TXT README.md
+%doc CHANGELOG.txt README.md
+%license *COPYING *LICENSE*.TXT
 %{_libdir}/libode-double.so.%{somajor}*
 
 %files devel
@@ -119,6 +123,9 @@ install -m 644 ode-double.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig
 
 
 %changelog
+* Tue Feb 21 2017 Hans de Goede <hdegoede@redhat.com> - 0.14-4
+- Fix FTBFS (rhbz#1424008)
+
 * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
 

                 reply	other threads:[~2026-11-30 16: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=179605640926.1.15137756380440691360.rpms-ode-c28ebaeac06b@fedoraproject.org \
    --to=hdegoede@redhat.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