Mail Archives: cygwin/2001/06/27/19:18:49
John Wiersba wrote:
> So, is the "download source" option for setup.exe useful for anything? Can
> you rebuild (all of) cygwin from it? What I mean is: there are these 80+
> packages available with setup.exe. If I download the source for all of
> them, install the source somewhere, run some build process against it, will
> I end up with a working cygwin which is functionally equivalent to the
> binary packages I downloaded using setup.exe?
>
> -- John Wiersba
Yes, you can build the tools from the source packages provided as part
of the downloads. However, there is no 'make world' procedure that
builds EVERYTHING all in one step. You have to go into each package's
source directory, and do the typical './configure ; make ; make install'
procedure. However, to get EXACTLY the same binaries, you'll need to
use the same configuration options that the maintainer used --
For instance (readline):
CFLAGS="-I/usr/include/ncurses" \
./configure --prefix=/usr --with-curses
make
make shared
make examples
make test
make install prefix=/tmp/usr
make install-shared prefix=/tmp/usr
make install-examples prefix=/tmp/usr
strip /tmp/usr/bin/cygreadline5.dll
strip /tmp/usr/bin/cyghistory5.dll
(cd /tmp ; tar tvjf readline-X.Y-Z.tar.bz2 usr/)
and now you have a tarball that *should* be the same as the 'official'
one. In most cases, the maintainers document their build procedures or
special config options in /usr/doc/Cygwin/<package>.README
The exception to this is possibly binutils, gcc, cygwin, mingw. These
packages are kindof intermingled and cgf uses special buildscripts to
generate the separate binary tarballs. I think.
--Chuck
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -