Repository navigation
Cygwin #27
Description
Activity
- Hello Steven, Steven Penny writes:It says here: http://wikipedia.org/wiki/Pkgsrc that pkgsrc supports Cygwin - where can I find the `pkg_add` tool for Cygwin?You will first need to fetch the pkgsrc tree and then bootstrap it. On the pkgsrc website the `bootstrap' and `build a package' section' describe a quickstart: <https://www.pkgsrc.org/> First chapters of `The pkgsrc guide' and `pkgsrc/bootstrap/README.Cygwin' should contains more helpful information but if you have any problem probably it's better to ask on pkgsrc-users@ mailing list.
- Steven Penny writes:@iamleot that seems rather large to download: ~~~ $ curl -I https://codeload.github.com/NetBSD/pkgsrc/zip/trunk HTTP/1.1 200 OK Content-Length: 87166577 ~~~ 87 MB?Yes, sounds right! (it's the entire pkgsrc tree with all the package Makefile-s and the pkgsrc infrastructure)
Is this solved?
Noone provides binary packages for cygwin.
Cygwin (and all other handled OSes) are community driven and the project can promise only source repository. Everything else what comes in a binary format is a matter of downstream vendor to build and distribute binary packages.
If that vendor takes part in the community, it can put the packages on shared ftp.
http://cdn.netbsd.org/pub/pkgsrc/packages/
Right now nobody is actively collaborating from the Cygwin community so we cannot do much beyond shipping with source form.
The source distribution of pkgsrc might not be the proper place for prompt for binary packages, at least it probably won't get much traction here.
Reacted by Travis Paul- added a commit that references this issue
on Nov 10, 2018 - added a commit that references this issue
on Dec 1, 2018 I tried pkgsrc on Cygwin today and while it works, it is poorly documented and many packages fail to build, notably, devel/libtool-base, which is needed by devel/flex, which is needed by several packages I tried. I can install the same version of libtool in Cygwin but I do not know how to force use of it.
A few tips:
At a minimum you will want to install the gcc-core and libgcc1 packages in Cygwin.
From the command line: ./setup-x86.exe -q -P gcc-core libgcc1
Download and extract the pkgsrc tree as per the documentation and run the bootstrap script. I suggest you save the output with the script(1) command.
You will want to add these paths to /etc/profile (one is for Cygwin itself):
if [ ${CYGWIN_NOWINPATH-addwinpath} = "addwinpath" ] ; then
PATH="/usr/pkg/bin:/usr/pkg/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin${PATH:+:${PATH}}"
else
PATH="/usr/pkg/bin:/usr/pkg/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin"
fiLog in again to receive the correct paths and you should be able to enter a specific package and type "bmake", rather than the traditional "make" and note that make from Cygwin will fail.
That said, could someone please look at building devel/libtool-base ?
Thanks!
Reacted by ConorBeh and Saulius Krasuckas- added a commit that references this issue
on Nov 9, 2019 210 remaining items
Load more actions- added 6 commits that reference this issue
on May 15, 2026 - added a commit that references this issue
on Jun 24, 2026 - added a commit that references this issue
on Jul 26, 2026 - added a commit that references this issue
on Aug 25, 2026 - added a commit that references this issue
on Sep 28, 2026
It says here:
http://wikipedia.org/wiki/Pkgsrc
that pkgsrc supports Cygwin - where can I find the
pkg_addtool for Cygwin?