pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Cygwin is now in pkgsrc supported platform



Hi,

I've committed initial support of pkgsrc for Cygwin.

Cygwin 1.7.x and later should be supported.

You need to install minimal base packages in `Base' category
plus any of compiler, gcc, gcc4, and/or clang.
For gcc and gcc4, C and C++ compiler will be installed by default,
but you can install Fortran compiler additionally
because it will be required to use libtool.
If it is not installed (or too old), Fortran compiler will be
installed with pkgsrc automatically.

As noted in Cygwin FAQ: http://cygwin.com/faq-nochunks.html#faq.using.su
The su(1) command has been in Cygwin distribution, but it has never worked.
Unless you bootstrap pkgsrc with the --unprivileged option, workaround is:

  * Right click "Cygwin Terminal" in your Start Menu, then pick
    "Run as administrator".

You can bootstrap pkgsrc with usual manner.
To bootstrap using clang:

        env CC=clang ./bootstrap --compiler=clang ...(and additional options)...

After you succeed to bootstrap pkgsrc, you can build and install package
with usual manner, say, cd pkgsrc/category/package & make install.
But, yes, `supported platform' does not mean that all packages will succeed
to be built on Cygwin.  It's a chance for you to fix the issue :)

Cygwin specific extension issue (.exe and .dll) should be handled automatically.

For Windows Vista or later, executable files including special keywords
(install, update, patch, and so on) in its name are expected as requireing
privileged permissions by default (UAC).
If not, it must be specified with manifest file, or it will be failed to
execute as "Permission denied".
For the issue, you can use package-settable variable UAC_REQD_EXECS,
a list of files requireing manifest file for UAC.
Paths are relative to PREFIX.

Good luck!
--
OBATA Akio / obache%NetBSD.org@localhost


Home | Main Index | Thread Index | Old Index