MinGW cross compilation enviroment setup

Michael Stefaniuc mstefani at redhat.de
Wed Jan 7 11:51:25 CST 2004

On Mon, Jan 05, 2004 at 10:56:20AM -0500, Dimitrie O. Paun wrote:
> On January 5, 2004 10:33 am, Michael Stefaniuc wrote:
> > Are you building the rpm's as root? I never do that.
> Well, I don't do too much rpm building, and I haven't
> changed permissions on /usr/src/redhat:
Here is my .rpmmacros file to be able to build rpms as normal user. You
need to adapt the paths:
%_topdir                /home/mstefani/rpm
%_tmppath               /home/mstefani/rpm/INSTALL

You need also to setup the %_topdir directory. Do following as user you
want to build the rpms:
mkdir -p $_topdir $_tmppath
mkdir $_topdir/RPMS/{i386,i486,i586,i686,noarch,athlon}

That should be all.

> [dimi at dimi wine]$ rpmbuild --rebuild mingw-3.0-1.src.rpm
> Installing mingw-3.0-1.src.rpm
> error: cannot write to %sourcedir /usr/src/redhat/SOURCES
> error: mingw-3.0-1.src.rpm cannot be installed
> > Do you have something in your .rpmmacros and/or .rpmrc that messes with
> > brp-strip? Cause the spec file has this:
> > # This keeps brp-strip from fucking up our nonnative binaries
> > %define __strip /bin/true
> >
> > which works for me.
> I don't even have a .rpmmacros or .rpmrc file:
hmm ... strange. My .rpmmacros is no more than what i pasted above and
my .rpmrc has only directives to build and optimize every package for
If you can't build mingw as user too i can put the rpm (compiled for
i386 or i686, i don't mind) on my people.redhat.com page.

> [root at dimi root]# ls /root/.rpm*
> ls: /root/.rpm*: No such file or directory
> [root at dimi root]# ls ~dimi/.rpm*
> ls: /home/dimi/.rpm*: No such file or directory
> It's a very standard RH9 installation, I don't usually change
> stuff (I just hate configuring things :)).
I hope you at least upgrade the box to the latest erratas ;)

Michael Stefaniuc               Tel.: +49-711-96437-199
System Administration           Fax.: +49-711-96437-111
Red Hat GmbH                    Email: mstefani at redhat.com
Hauptstaetterstr. 58            http://www.redhat.de/
D-70178 Stuttgart
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20040107/848b705f/attachment.pgp

More information about the wine-devel mailing list