public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libQGLViewer] epel10.3: - Add a patch, so that "-g" flags are not removed.
@ 2026-11-30 13:57 Laurent Rineau
  0 siblings, 0 replies; only message in thread
From: Laurent Rineau @ 2026-11-30 13:57 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/libQGLViewer
Branch : epel10.3
Commit : 8378af37b1947c37dd4da5253eb340883f0050f9
Author : Laurent Rineau <rineau@fedoraproject.org>
Date   : 2009-04-02T12:54:52+00:00
Stats  : +37/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/libQGLViewer/c/8378af37b1947c37dd4da5253eb340883f0050f9?branch=epel10.3

Log:
- Add a patch, so that "-g" flags are not removed.

---
diff --git a/libQGLViewer-2.3.1-dbg.patch b/libQGLViewer-2.3.1-dbg.patch
new file mode 100644
index 0000000..764b210
--- /dev/null
+++ b/libQGLViewer-2.3.1-dbg.patch
@@ -0,0 +1,28 @@
+diff -up libQGLViewer-2.3.1/designerPlugin/designerPlugin.pro.dbg libQGLViewer-2.3.1/designerPlugin/designerPlugin.pro
+--- libQGLViewer-2.3.1/designerPlugin/designerPlugin.pro.dbg	2009-04-01 16:52:24.000000000 +0200
++++ libQGLViewer-2.3.1/designerPlugin/designerPlugin.pro	2009-04-01 16:52:32.000000000 +0200
+@@ -130,10 +130,6 @@ unix|win32-g++ {
+     CONFIG -= thread
+   }
+ 
+-  # Remove debugging options
+-  release:QMAKE_CFLAGS_RELEASE -= -g
+-  release:QMAKE_CXXFLAGS_RELEASE -= -g
+-
+   # Intermediate files are created in an hidden folder
+   MOC_DIR = .moc
+   OBJECTS_DIR = .obj
+diff -up libQGLViewer-2.3.1/QGLViewer/QGLViewer.pro.dbg libQGLViewer-2.3.1/QGLViewer/QGLViewer.pro
+--- libQGLViewer-2.3.1/QGLViewer/QGLViewer.pro.dbg	2009-04-01 16:50:42.000000000 +0200
++++ libQGLViewer-2.3.1/QGLViewer/QGLViewer.pro	2009-04-01 16:50:51.000000000 +0200
+@@ -144,10 +144,6 @@ unix {
+     QMAKE_COPY_FILE = $${QMAKE_COPY_FILE} -P
+   }
+ 
+-  # Make much smaller libraries (and packages) by removing debugging informations
+-  QMAKE_CFLAGS_RELEASE -= -g
+-  QMAKE_CXXFLAGS_RELEASE -= -g
+-
+   # install header
+   include.path = $${INCLUDE_DIR}/QGLViewer
+   include.files = $${HEADERS} qglviewer.cw qglviewer_*.qm

diff --git a/libQGLViewer.spec b/libQGLViewer.spec
index 92bc963..531cca4 100644
--- a/libQGLViewer.spec
+++ b/libQGLViewer.spec
@@ -1,6 +1,6 @@
 Name:           libQGLViewer
 Version:        2.3.1
-Release:        7%{?dist}
+Release:        8%{?dist}
 Summary:        Qt based OpenGL generic 3D viewer library
 
 Group:          System Environment/Libraries
@@ -12,6 +12,10 @@ Source0:        http://www.libqglviewer.com/src/%{name}-%{version}.tar.gz
 # Use abort() instead.
 Patch0:         libQGLViewer-2.3.1-exit.patch
 
+# libQGLViewer .pro files explicitely remove "-g" from compile flags. Make
+# them back.
+Patch1:         libQGLViewer-2.3.1-dbg.patch
+
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  qt4-devel
@@ -47,6 +51,7 @@ Requires: %{name} = %{version}-%{release}
 %prep
 %setup -q -n %{name}-%{version}
 %patch0 -p1 -b .exit
+%patch1 -p1 -b .dbg
 
 # Fix the encoding of several files, so that they all use utf-8.
 for f in doc/*.html doc/examples/*.html \
@@ -112,6 +117,9 @@ rm -rf $RPM_BUILD_ROOT
 %doc examples
 
 %changelog
+* Wed Apr  1 2009 Laurent Rineau <Laurent.Rineau__fedora@normalesup.org> - 2.3.1-8
+- Add a patch, so that "-g" flags are not removed.
+
 * Mon Mar 30 2009  <Laurent.Rineau__fedora@normalesup.org> - 2.3.1-7
 - Remove glibc-common from BR:
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-30 13:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30 13:57 [rpms/libQGLViewer] epel10.3: - Add a patch, so that "-g" flags are not removed Laurent Rineau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox