mingw32-SDL_image and mingw32-SDL_mixer
by Jason Woofenden
Hi all,
I'm pretty new to this packaging and cross-compiling, but I put
together a couple packages anyway:
http://jasonwoof.com/downloads/mingw32-SDL_image-1.2.6-1.fc11.src.rpm
http://jasonwoof.com/downloads/mingw32-SDL_mixer-1.2.8-1.fc11.src.rpm
They seem to work quite well for me, but I don't really know what I'm
doing, so I'd appreciate more knowledgeable folk looking over my spec
files.
Here's what I did and where everything came from: (all in F11)
1) I set up my .rpmmacros so it would store sources in separate
directories by package name-version by adding this line:
%_sourcedir %{_topdir}/SOURCES/%{name}-%{version}
I was worried that multiple source rpms would have files in them with
the same name (which turned out to be the case) and I wanted to make
sure I could tell what packages what files came from.
2) I used yumdownloader to download source rpms for SDL SDL_mixer
SDL_image and SDL and installed them in my local rpmbuild tree
3) I duplicated SOURCES/SDL_image-1.2.6/ to SOURCES/mingw32-SDL_image-1.2.6/
4) I copied SPECS/mingw32-SDL-1.2.13.spec to SPECS/mingw32-SDL_image-1.2.6.spec
5) I edited that new spec file, mostly by looking at existing
SDL_image-1.2.6.spec and pulling useful parts from it. tweaking as
neccesary.
And basically did the same for SDL_mixer.
Some notes:
I didn't modify anything in the SOURCES folder (just copied whole
folders as described above).
I used all the patches that were used for the native versions.
I commented out lines to install (and build in one case) little
executable programs from both packages that I didn't understand the
point of.
I've cross-compiled my game (vor) which uses both of these libraries,
and it works great under wine. (Gets at least 40% better framerate
under wine than it does when compiled for linux.) Though I have not
tested them on Windows.
I have a fedoraproject.org account (so I can edit the wiki and such)
but don't have any connections or access or anything to get these into
the fedora distrobution. If/when they are ready, I'd love someone to
take care of this, or help me do it. Right now I don't even know what
the process is.
Looking forward to hearing your thoughts/feedback.
Take care, - Jason
14 years, 5 months
broken debuginfo and binutils update
by Kalev Lember
Hello,
Recent update from gcc 4.4.0 prerelease to 4.4.1 postrelease apparently
broke debug information support in binaries. A non-stripped binary
compiled with the new gcc would produce the following error:
$ wine dummy.exe
wine: could not load L"Z:\\home\\kalev\\tmp\\dummy.exe": Bad EXE format for
Stripping the binary works around that error.
The binaries contain a new .debug_pubtypes section [1], and because of
that binutils also need to be updated. Any objections if I update the
binutils in rawhide to version 2.19.51.0.14, which is the same as in
native Fedora binutils package? That should fix the broken debuginfo in
newly compiled programs.
However, several packages which were compiled with the new gcc but old
binutils now have broken debuginfo. Those will need to be rebuilt. Any
suggestions on how to do that?
[1] http://gcc.gnu.org/ml/gcc/2009-06/msg00615.html
--
Kalev
14 years, 6 months
rpms/mingw32-pixman/F-12 .cvsignore, 1.5, 1.6 mingw32-pixman.spec, 1.10, 1.11 sources, 1.5, 1.6
by Erik van Pienbroek
Author: epienbro
Update of /cvs/pkgs/rpms/mingw32-pixman/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29154
Modified Files:
.cvsignore mingw32-pixman.spec sources
Log Message:
Update to 0.16.2
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-pixman/F-12/.cvsignore,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- .cvsignore 29 Aug 2009 20:56:33 -0000 1.5
+++ .cvsignore 30 Sep 2009 03:39:13 -0000 1.6
@@ -1 +1 @@
-pixman-0.16.0.tar.bz2
+pixman-0.16.2.tar.bz2
Index: mingw32-pixman.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-pixman/F-12/mingw32-pixman.spec,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -p -r1.10 -r1.11
--- mingw32-pixman.spec 18 Sep 2009 21:54:41 -0000 1.10
+++ mingw32-pixman.spec 30 Sep 2009 03:39:14 -0000 1.11
@@ -6,8 +6,8 @@
%define __debug_install_post %{_mingw32_debug_install_post}
Name: mingw32-pixman
-Version: 0.16.0
-Release: 2%{?dist}
+Version: 0.16.2
+Release: 1%{?dist}
Summary: MinGW Windows Pixman library
License: MIT
@@ -83,6 +83,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Tue Sep 29 2009 Erik van Pienbroek <epienbro(a)fedoraproject.org> - 0.16.2-1
+- Update to 0.16.2
+
* Fri Sep 18 2009 Erik van Pienbroek <epienbro(a)fedoraproject.org> - 0.16.0-2
- Rebuild because of broken mingw32-gcc/mingw32-binutils
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-pixman/F-12/sources,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- sources 29 Aug 2009 20:56:33 -0000 1.5
+++ sources 30 Sep 2009 03:39:14 -0000 1.6
@@ -1 +1 @@
-183dea8a100c1d9732cdb2146ec90f68 pixman-0.16.0.tar.bz2
+0ce7de6d649f1a80d328b05e403730b6 pixman-0.16.2.tar.bz2
14 years, 7 months
rpms/mingw32-pixman/devel .cvsignore, 1.5, 1.6 mingw32-pixman.spec, 1.10, 1.11 sources, 1.5, 1.6
by Erik van Pienbroek
Author: epienbro
Update of /cvs/pkgs/rpms/mingw32-pixman/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv26967
Modified Files:
.cvsignore mingw32-pixman.spec sources
Log Message:
Update to 0.16.2
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-pixman/devel/.cvsignore,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- .cvsignore 29 Aug 2009 20:56:33 -0000 1.5
+++ .cvsignore 29 Sep 2009 21:19:51 -0000 1.6
@@ -1 +1 @@
-pixman-0.16.0.tar.bz2
+pixman-0.16.2.tar.bz2
Index: mingw32-pixman.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-pixman/devel/mingw32-pixman.spec,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -p -r1.10 -r1.11
--- mingw32-pixman.spec 18 Sep 2009 21:54:41 -0000 1.10
+++ mingw32-pixman.spec 29 Sep 2009 21:19:51 -0000 1.11
@@ -6,8 +6,8 @@
%define __debug_install_post %{_mingw32_debug_install_post}
Name: mingw32-pixman
-Version: 0.16.0
-Release: 2%{?dist}
+Version: 0.16.2
+Release: 1%{?dist}
Summary: MinGW Windows Pixman library
License: MIT
@@ -83,6 +83,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Tue Sep 29 2009 Erik van Pienbroek <epienbro(a)fedoraproject.org> - 0.16.2-1
+- Update to 0.16.2
+
* Fri Sep 18 2009 Erik van Pienbroek <epienbro(a)fedoraproject.org> - 0.16.0-2
- Rebuild because of broken mingw32-gcc/mingw32-binutils
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-pixman/devel/sources,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- sources 29 Aug 2009 20:56:33 -0000 1.5
+++ sources 29 Sep 2009 21:19:51 -0000 1.6
@@ -1 +1 @@
-183dea8a100c1d9732cdb2146ec90f68 pixman-0.16.0.tar.bz2
+0ce7de6d649f1a80d328b05e403730b6 pixman-0.16.2.tar.bz2
14 years, 7 months
rpms/mingw32-libxml2/devel mingw32-libxml2.spec,1.14,1.15
by Erik van Pienbroek
Author: epienbro
Update of /cvs/pkgs/rpms/mingw32-libxml2/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2311
Modified Files:
mingw32-libxml2.spec
Log Message:
Forgot to bump the release tag
Index: mingw32-libxml2.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-libxml2/devel/mingw32-libxml2.spec,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -p -r1.14 -r1.15
--- mingw32-libxml2.spec 24 Sep 2009 22:22:23 -0000 1.14
+++ mingw32-libxml2.spec 24 Sep 2009 22:24:19 -0000 1.15
@@ -7,7 +7,7 @@
Name: mingw32-libxml2
Version: 2.7.5
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: MinGW Windows libxml2 XML processing library
License: MIT
14 years, 7 months
rpms/mingw32-libxml2/devel libxml2-gnome-bug-561340-fix.patch, NONE, 1.1 mingw32-libxml2.spec, 1.13, 1.14
by Erik van Pienbroek
Author: epienbro
Update of /cvs/pkgs/rpms/mingw32-libxml2/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv1101
Modified Files:
mingw32-libxml2.spec
Added Files:
libxml2-gnome-bug-561340-fix.patch
Log Message:
Added a patch to fix GNOME bug #561340
libxml2-gnome-bug-561340-fix.patch:
xmlexports.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- NEW FILE libxml2-gnome-bug-561340-fix.patch ---
--- include/libxml/xmlexports.h 2009-09-25 00:00:03.511532978 +0200
+++ include/libxml/xmlexports.h 2009-09-25 00:01:27.058533091 +0200
@@ -115,7 +115,7 @@
*/
#if !defined(LIBXML_STATIC)
#define XMLPUBFUN __declspec(dllexport)
- #define XMLPUBVAR __declspec(dllexport)
+ #define XMLPUBVAR __declspec(dllexport) extern
#else
#define XMLPUBFUN
#if !defined(LIBXML_STATIC)
Index: mingw32-libxml2.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-libxml2/devel/mingw32-libxml2.spec,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -p -r1.13 -r1.14
--- mingw32-libxml2.spec 24 Sep 2009 18:41:06 -0000 1.13
+++ mingw32-libxml2.spec 24 Sep 2009 22:22:23 -0000 1.14
@@ -22,6 +22,7 @@ BuildRoot: %{_tmppath}/%{name}-%{ve
# MinGW-specific patches.
Patch1000: mingw32-libxml2-2.7.2-with-modules.patch
Patch1001: mingw32-libxml2-static-build-compile-fix.patch
+Patch1002: libxml2-gnome-bug-561340-fix.patch
BuildArch: noarch
@@ -60,6 +61,7 @@ Static version of the MinGW Windows XML
%patch1000 -p1
%patch1001 -p0
+%patch1002 -p0
# Patched configure.in, so rebuild configure.
libtoolize --force --copy
@@ -131,6 +133,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Fri Sep 25 2009 Erik van Pienbroek <epienbro(a)fedoraproject.org> - 2.7.5-2
+- Added a patch to fix GNOME bug #561340
+
* Thu Sep 24 2009 Erik van Pienbroek <epienbro(a)fedoraproject.org> - 2.7.5-1
- Update to 2.7.5
14 years, 7 months
rpms/mingw32-libxml2/devel .cvsignore, 1.4, 1.5 mingw32-libxml2.spec, 1.12, 1.13 sources, 1.4, 1.5
by Erik van Pienbroek
Author: epienbro
Update of /cvs/pkgs/rpms/mingw32-libxml2/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25255/devel
Modified Files:
.cvsignore mingw32-libxml2.spec sources
Log Message:
Update to 2.7.5
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-libxml2/devel/.cvsignore,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -p -r1.4 -r1.5
--- .cvsignore 11 Sep 2009 16:37:18 -0000 1.4
+++ .cvsignore 24 Sep 2009 18:41:06 -0000 1.5
@@ -1 +1 @@
-libxml2-2.7.4.tar.gz
+libxml2-2.7.5.tar.gz
Index: mingw32-libxml2.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-libxml2/devel/mingw32-libxml2.spec,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -p -r1.12 -r1.13
--- mingw32-libxml2.spec 18 Sep 2009 21:50:26 -0000 1.12
+++ mingw32-libxml2.spec 24 Sep 2009 18:41:06 -0000 1.13
@@ -6,8 +6,8 @@
%define __debug_install_post %{_mingw32_debug_install_post}
Name: mingw32-libxml2
-Version: 2.7.4
-Release: 3%{?dist}
+Version: 2.7.5
+Release: 1%{?dist}
Summary: MinGW Windows libxml2 XML processing library
License: MIT
@@ -131,6 +131,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Thu Sep 24 2009 Erik van Pienbroek <epienbro(a)fedoraproject.org> - 2.7.5-1
+- Update to 2.7.5
+
* Fri Sep 18 2009 Erik van Pienbroek <epienbro(a)fedoraproject.org> - 2.7.4-3
- Rebuild because of broken mingw32-gcc/mingw32-binutils
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-libxml2/devel/sources,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -p -r1.4 -r1.5
--- sources 11 Sep 2009 16:37:19 -0000 1.4
+++ sources 24 Sep 2009 18:41:06 -0000 1.5
@@ -1 +1 @@
-961cce07211049e3bb20c5b98a1281b4 libxml2-2.7.4.tar.gz
+2e29ca610579438714ebb1e4010a0ece libxml2-2.7.5.tar.gz
14 years, 7 months
rpms/mingw32-libxml2/F-11 .cvsignore, 1.4, 1.5 mingw32-libxml2.spec, 1.8, 1.9 sources, 1.4, 1.5
by Erik van Pienbroek
Author: epienbro
Update of /cvs/pkgs/rpms/mingw32-libxml2/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25255/F-11
Modified Files:
.cvsignore mingw32-libxml2.spec sources
Log Message:
Update to 2.7.5
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-libxml2/F-11/.cvsignore,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -p -r1.4 -r1.5
--- .cvsignore 11 Sep 2009 16:37:18 -0000 1.4
+++ .cvsignore 24 Sep 2009 18:41:05 -0000 1.5
@@ -1 +1 @@
-libxml2-2.7.4.tar.gz
+libxml2-2.7.5.tar.gz
Index: mingw32-libxml2.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-libxml2/F-11/mingw32-libxml2.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -p -r1.8 -r1.9
--- mingw32-libxml2.spec 11 Sep 2009 17:15:00 -0000 1.8
+++ mingw32-libxml2.spec 24 Sep 2009 18:41:05 -0000 1.9
@@ -5,7 +5,7 @@
%global __find_provides %{_mingw32_findprovides}
Name: mingw32-libxml2
-Version: 2.7.4
+Version: 2.7.5
Release: 1%{?dist}
Summary: MinGW Windows libxml2 XML processing library
@@ -129,6 +129,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Thu Sep 24 2009 Erik van Pienbroek <epienbro(a)fedoraproject.org> - 2.7.5-1
+- Update to 2.7.5
+
* Fri Sep 11 2009 Erik van Pienbroek <epienbro(a)fedoraproject.org> - 2.7.4-1
- Update to 2.7.4
- Drop upstreamed libxml2-2.7.3-ficora-parse.patch patch
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-libxml2/F-11/sources,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -p -r1.4 -r1.5
--- sources 11 Sep 2009 16:37:18 -0000 1.4
+++ sources 24 Sep 2009 18:41:05 -0000 1.5
@@ -1 +1 @@
-961cce07211049e3bb20c5b98a1281b4 libxml2-2.7.4.tar.gz
+2e29ca610579438714ebb1e4010a0ece libxml2-2.7.5.tar.gz
14 years, 7 months