descriptionMirror of Cygwin-Setup
homepage URLhttps://sourceware.org/git/?p=cygwin-setup.git
repository URLgit://cygwin.com/git/cygwin-setup.git
ownerStromeko@Stromeko.DE
last changeThu, 29 Apr 2021 13:36:48 +0000 (29 14:36 +0100)
last refreshThu, 1 Jul 2021 22:06:01 +0000 (2 00:06 +0200)
content tags
add:
README
This directory contains the source code for the Setup program
for the Cygwin net releases.

HOW TO BUILD:
-------------

Cygwin
------

Setup should build out-of-the-box on any Cygwin environment that has all the
required packages and their dependencies installed:

  - autoconf
  - automake
  - bison
  - flex
  - libtool
  - make
  - mingw64-${arch}-bzip2
  - mingw64-${arch}-gcc-g++
  - mingw64-${arch}-headers
  - mingw64-${arch}-libgcrypt
  - mingw64-${arch}-libsolv
  - mingw64-${arch}-xz
  - mingw64-${arch}-zlib
  - mingw64-${arch}-zstd
  - upx (optional)

The ${arch} needs to be replaced with either "i686" or "x86_64"
depending on the target architecture to build for.

Fedora
------

Setup should also build out-of-the-box in a Fedora environment that has all the
required packages and their dependencies installed:

  - automake
  - bison
  - flex
  - libtool
  - make
  - mingw${arch}-bzip2-static
  - mingw${arch}-gcc-c++
  - mingw${arch}-libgcrypt-static
  - mingw${arch}-libgnurx-static
  - mingw${arch}-libsolv-static (*)
  - mingw${arch}-libzstd-static (**)
  - mingw${arch}-winpthreads-static
  - mingw${arch}-xz-libs-static
  - mingw${arch}-zlib-static
  - upx (optional)

The ${arch} needs to be replaced with either "32" or "64"
depending on the target architecture to build for.

(*) Requires 'dnf copr enable jturney/mingw-libsolv'
(**) Requires 'dnf copr enable jturney/mingw-zstd'

Build commands:

0) Obtain this project's source code:
   $ git clone git://sourceware.org/git/cygwin-apps/setup.git
   $ cd setup

1) Configure using this option
   $ /path/to/setup/bootstrap.sh
   This will automatically rebuild configure files and run configure
   in the current directory.  If you have installed toolchains for
   both i686 and x86_64 architectures, then you need to select for
   which architecture you want to build:
   $ /path/to/setup/bootstrap.sh --host=i686-w64-mingw32
   $ /path/to/setup/bootstrap.sh --host=x86_64-w64-mingw32

2) $ make

3) Wondering why your binary is so much bigger than the official releases?
   This removes debugging symbols:
   $ make strip
   This additionally compresses it using UPX
   (requires package upx to be installed):
   $ make upx

CODING GUIDELINES:
------------------
setup has a number of different code formats in it. This is ok as long
as it stays readable. When submitting a patch, make sure that you use
the coding-style of the surrounding code.

For new code, use the GNU standards as much as possible.  We understand
that this is not a precise fit for C++ code but you can use Cygwin itself
as a guide.


SUBMITTING A PATCH:
-------------------
Follow the general directions given in the Cygwin contributions document:

   https://cygwin.com/contrib.html

The appropriate mailing list for this project is cygwin-apps
(rather than cygwin-patches). Thus, the appropriate final command would be:

   $ git send-email --to="cygwin-apps@cygwin.com"
shortlog
2021-04-29 Jon TurneyFix native machine reported on x86_64 without IsWow64Pr... master
2021-04-25 David AllsoppAdd --allow-test-packagesrelease_2.908
2021-04-18 Jon TurneyHandle '--packages package=version'
2021-04-15 Jon TurneyAdd GUI language to default User-Agent string
2021-04-15 Jon TurneyPutative changes to bitness reporting for Win64-on...
2021-04-11 Jon TurneyCheck compiler exception handling model during configurerelease_2.907
2021-03-16 Jon TurneyAdd a github action to cross-build on Fedorarelease_2.906
2021-03-16 Jon TurneyAdd scripts used in packaging
2021-03-16 Jon TurneyLink with libssp
2021-03-16 Jon TurneyTurn on __USE_MINGW_ANSI_STDIO everywhere
2021-03-15 Jon TurneyUpdate displayed copyright to 2021
2021-03-15 Jon TurneyRevert "Remove pointless variable from do_download_site...
2020-10-18 Jon TurneyMove package action strings to string table resource
2020-10-18 Jon TurneyAdd a UTF-8 string to wstring utility function.
2020-10-18 Jon TurneyRemove long-obsolete 'DISCARABLE' from resource file
2020-10-18 Jon TurneyMove installation progress strings to string table...
...
tags
2 months ago release_2.908 2.908
2 months ago release_2.907 2.907
3 months ago release_2.906 2.906
12 months ago release_2.905 2.905
15 months ago release_2.904 2.904
15 months ago release_2.903 2.903
16 months ago release_2.902 2.902
16 months ago release_2.901 2.901
17 months ago release_2.900 2.900
17 months ago release_2.899 2.899
18 months ago release_2.898 2.898
2 years ago release_2.897 2.897
2 years ago release_2.896 2.896
2 years ago release_2.895 2.895
2 years ago release_2.894 2.894
2 years ago release_2.893 2.893
...
heads
2 months ago master
2 months ago topic/localization
3 years ago topic/libsolv
6 years ago openssl
12 years ago cgf-20080913
13 years ago setup-200706
13 years ago setup_crypto_branch
15 years ago setup-200509
16 years ago setup-200412
18 years ago setup-200303
18 years ago setup-200303-troubleshooting
18 years ago setup-200206
18 years ago Z-setup-200303_merge_HEAD
18 years ago IMPORT
19 years ago setup-200207
19 years ago setup-200205
...
forks
Cached version (229s old)
 Cygwin   Cygwin-Setup 
cygwin-setup/local.git Local changes to Cygwin-Setup not yet upstreamed Stromeko@Stromeko.DE 7 weeks ago