From Fedora Project Wiki
(Explain bootstrapping.)
 
 
Line 18: Line 18:
== Bootstrap packages ==
== Bootstrap packages ==


To break the dependency we normally use two special packages, [http://hg.et.redhat.com/misc/fedora-mingw--devel/?cmd=manifest;manifest=918e9f907e958fdbc2016dcc5e36bf4099800bd7;path=/runtime-bootstrap/ mingw32-runtime-bootstrap] and [http://hg.et.redhat.com/misc/fedora-mingw--devel/?cmd=manifest;manifest=918e9f907e958fdbc2016dcc5e36bf4099800bd7;path=/w32api-bootstrap/ mingw32-w32api-bootstrap].
<s>To break the dependency we normally use two special packages, [http://hg.et.redhat.com/misc/fedora-mingw--devel/?cmd=manifest;manifest=918e9f907e958fdbc2016dcc5e36bf4099800bd7;path=/runtime-bootstrap/ mingw32-runtime-bootstrap] and [http://hg.et.redhat.com/misc/fedora-mingw--devel/?cmd=manifest;manifest=918e9f907e958fdbc2016dcc5e36bf4099800bd7;path=/w32api-bootstrap/ mingw32-w32api-bootstrap].</s>


These two non-Fedora packages contain the <i>binaries</i> of runtime & w32api, from [http://sourceforge.net/project/showfiles.php?group_id=2435 MinGW's download site].
<s>These two non-Fedora packages contain the <i>binaries</i> of runtime & w32api, from [http://sourceforge.net/project/showfiles.php?group_id=2435 MinGW's download site].</s>
 
The above describes the old bootstrapping method, but nowadays we prefer to just grab a binary of the <code>mingw32-runtime</code> and <code>mingw32-w32api</code> packages built on another machine (both packages are noarch).  You can grab the latest binaries from [http://www.annexia.org/tmp/mingw/fedora-10/i386/RPMS/ our temporary repository], until they get added to Fedora proper.


Once these are installed, you can build mingw32-gcc, followed by the real mingw32-runtime and mingw32-w32api (from source).
Once these are installed, you can build mingw32-gcc, followed by the real mingw32-runtime and mingw32-w32api (from source).

Latest revision as of 14:54, 24 November 2008

Bootstrapping MinGW

MinGW source packages have a circular dependency:

             mingw32-gcc <---------------+
              |     |       required for |
         +----+     +---+                |
         | required for |                |
         V              V                |
 mingw32-runtime   mingw32-w32api        |
         |              |                |
         +--------------+----------------+

So when you build mingw32-gcc for the first time, you have to get a binary of mingw32-runtime & mingw32-w32api from somewhere.

Note this only applies the first time or if you are building from scratch on a brand new system. Later builds can just build using earlier installs.

Bootstrap packages

To break the dependency we normally use two special packages, mingw32-runtime-bootstrap and mingw32-w32api-bootstrap.

These two non-Fedora packages contain the binaries of runtime & w32api, from MinGW's download site.

The above describes the old bootstrapping method, but nowadays we prefer to just grab a binary of the mingw32-runtime and mingw32-w32api packages built on another machine (both packages are noarch). You can grab the latest binaries from our temporary repository, until they get added to Fedora proper.

Once these are installed, you can build mingw32-gcc, followed by the real mingw32-runtime and mingw32-w32api (from source).

Obsoletes

When mingw32-runtime and mingw32-w32api final packages are installed, they obsolete the -bootstrap packages which are no longer needed or useful.