Op donderdag 04-06-2009 om 13:41 uur [tijdzone +0200], schreef Fridrich Strba: > Just install them side by side with the binaries, like > something.dll.debug in the same directory as something.dll > > The gnu debug link information will tell gdb on win32 where to look for > the symbols. > > Cheers > > Fridrich
Sorry for the late response, but I prepared a patch for
mingw32-filesystem to add -debug subpackage support. Is it okay to
commit this?
I've also added a patch for one of my packages to indicate the steps
needed for all mingw32 packages to get -debug subpackage support. It
basically consists of two extra lines.
There's one thing that needs attention: one needs to add
%define __os_install_post %{_mingw32_debug_install_post}
to the spec file. %global doesn't work in this case!
One thing I noticed while preparing this is that there's an openSuSE
buildsystem project [1] which has basically forked all our work and
added more features and packages to it. I wonder why this fork was done
and why features (like this -debug subpackage support) haven't been
proposed upstream (to us) sooner? Several packages there also have their
ChangeLog stripped away so the history can't be viewed anymore..
Regards,
Erik van Pienbroek
[1]: https://build.opensuse.org/project/show?project=windows%3Amingw%
3Awin32
Index: macros.mingw32
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-filesystem/devel/macros.mingw32,v
retrieving revision 1.4
diff -u -r1.4 macros.mingw32
--- macros.mingw32 9 Jun 2009 08:44:18 -0000 1.4
+++ macros.mingw32 21 Jun 2009 23:39:34 -0000
@@ -52,6 +52,24 @@
%_mingw32_findprovides /usr/lib/rpm/mingw32-find-provides.sh
%_mingw32_findrequires /usr/lib/rpm/mingw32-find-requires.sh
+%_mingw32_finddebuginfo /usr/lib/rpm/mingw32-find-debuginfo.sh
+
+%_mingw32_debug_install_post \
+ /usr/lib/rpm/mingw32-find-debuginfo.sh %{_builddir}/%{?buildsubdir}\
+%{nil}
+
+# Template for debug sub-package.
+%_mingw32_debug_package(n:) \
+%package %{-n:-n %{-n*}-}debug \
+Summary: Debug information for package %{name} \
+Group: Development/debug \
+%description %{-n:-n %{-n*}-}debug \
+This package provides debug information for package %{name}.\
+Debug information is useful when developing applications that use this\
+package or when debugging this package.\
+%files debug -f debugfiles.list\
+%defattr(-,root,root,-)\
+%{nil}
%_mingw32_env HOST_CC=gcc; export HOST_CC; \
PKG_CONFIG_LIBDIR="%{_mingw32_libdir}/pkgconfig"; export PKG_CONFIG_LIBDIR; \
Index: mingw32-filesystem.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-filesystem/devel/mingw32-filesystem.spec,v
retrieving revision 1.23
diff -u -r1.23 mingw32-filesystem.spec
--- mingw32-filesystem.spec 9 Jun 2009 08:44:18 -0000 1.23
+++ mingw32-filesystem.spec 21 Jun 2009 23:39:34 -0000
@@ -1,7 +1,7 @@
%define debug_package %{nil}
Name: mingw32-filesystem
-Version: 51
+Version: 52
Release: 1%{?dist}
Summary: MinGW base filesystem and environment
@@ -20,6 +20,7 @@
Source6: mingw32-scripts.sh
Source7: mingw32-rpmlint.config
Source8: Toolchain-mingw32.cmake
+Source9: mingw32-find-debuginfo.sh
Requires: setup
Requires: rpm
@@ -137,11 +138,11 @@
mkdir -p $RPM_BUILD_ROOT/usr/lib/rpm
install -m 0755 mingw32-find-requires.sh $RPM_BUILD_ROOT/usr/lib/rpm
install -m 0755 %{SOURCE5} $RPM_BUILD_ROOT/usr/lib/rpm
+install -m 0755 %{SOURCE9} $RPM_BUILD_ROOT/usr/lib/rpm
mkdir -p $RPM_BUILD_ROOT%{_datadir}/mingw32
install -m 644 %{SOURCE8} $RPM_BUILD_ROOT%{_datadir}/mingw32
-
%clean
rm -rf $RPM_BUILD_ROOT
@@ -164,6 +165,13 @@
%changelog
+* Mon Jun 22 2009 Erik van Pienbroek <[email protected]> - 52-0
+- Add script to create -debuginfo subpackages
+ This script was created by Fridrich Strba
+- All mingw32 packages now need to add these lines to their .spec files:
+ %%define __os_install_post %%{_mingw32_debug_install_post}
+ %%{_mingw32_debug_package}
+
* Thu Jun 4 2009 Adam Goode <[email protected]> - 51-1
- Add CMake rules
Index: mingw32-libgnurx.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-libgnurx/devel/mingw32-libgnurx.spec,v
retrieving revision 1.1
diff -u -r1.1 mingw32-libgnurx.spec
--- mingw32-libgnurx.spec 2 Jun 2009 14:58:37 -0000 1.1
+++ mingw32-libgnurx.spec 21 Jun 2009 23:42:40 -0000
@@ -3,10 +3,11 @@
%global _use_internal_dependency_generator 0
%global __find_requires %{_mingw32_findrequires}
%global __find_provides %{_mingw32_findprovides}
+%define __os_install_post %{_mingw32_debug_install_post}
Name: mingw32-libgnurx
Version: 2.5.1
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: MinGW Regex library
License: LGPLv2+
@@ -21,7 +22,7 @@
BuildArch: noarch
BuildRequires: autoconf automake libtool
-BuildRequires: mingw32-filesystem >= 23
+BuildRequires: mingw32-filesystem >= 52
BuildRequires: mingw32-gcc
BuildRequires: mingw32-binutils
@@ -38,6 +39,9 @@
Static version of the MinGW Windows regular expression library.
+%{_mingw32_debug_package}
+
+
%prep
%setup -q -n mingw-libgnurx-%{version}
%patch0 -p0
@@ -96,6 +101,9 @@
%changelog
+* Mon Jun 22 2009 Erik van Pienbroek <[email protected]> - 2.5.1-4
+- Split out debug symbols to a -debug subpackage
+
* Tue May 26 2009 Erik van Pienbroek <[email protected]> - 2.5.1-2
- Fixed license tag
mingw32-find-debuginfo.sh
Description: application/shellscript
_______________________________________________ fedora-mingw mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/fedora-mingw
