如何试用我刚刚创建的 Cygwin 包?
How can I try a Cygwin package that I just created?
我是一个程序的维护者,我想提议将其包含在 Cygwin 发行版中。
我们使用 CMake,因此有可用的打包程序,而且很容易创建 .bz2 包。
创建包后,如何在本地试用?在 Linux 中这很容易完成,但是有没有办法使用 Cygwin 包安装程序以便它选择本地包?
我已阅读 the package contribution documentation 和相关页面,但找不到答案。
CMake Cygwin 包生成器似乎已经过时了。 Cygwin 已经有几年没有使用 .bz2
了。这是来自 Adam Dinwoodie 的 Cygwin 邮件列表回答:
Cygwin packages generally use Cygport to define the build process and
so forth. It's more-or-less the equivalent of rpmbuild for RPM
packages, and similar tools for other distribution systems. The
documentation for Cygport is at http://cygwinports.github.io/cygport/;
if you're using make in a reasonably standard way, most things should
Just Work™.
In particular, if you're using Cygport, it'll automatically do things
like creating setup.hint files for you.
For testing locally, I find it's simplest to just do tar -xaC/ -f
<tarball>
on the compiled tarballs that Cygport generates. That
doesn't test the dependency management or anything that requires
post-install scripts, but it's fine for checking the installation
itself works.
我是一个程序的维护者,我想提议将其包含在 Cygwin 发行版中。
我们使用 CMake,因此有可用的打包程序,而且很容易创建 .bz2 包。
创建包后,如何在本地试用?在 Linux 中这很容易完成,但是有没有办法使用 Cygwin 包安装程序以便它选择本地包?
我已阅读 the package contribution documentation 和相关页面,但找不到答案。
CMake Cygwin 包生成器似乎已经过时了。 Cygwin 已经有几年没有使用 .bz2
了。这是来自 Adam Dinwoodie 的 Cygwin 邮件列表回答:
Cygwin packages generally use Cygport to define the build process and so forth. It's more-or-less the equivalent of rpmbuild for RPM packages, and similar tools for other distribution systems. The documentation for Cygport is at http://cygwinports.github.io/cygport/; if you're using make in a reasonably standard way, most things should Just Work™.
In particular, if you're using Cygport, it'll automatically do things like creating setup.hint files for you.
For testing locally, I find it's simplest to just do
tar -xaC/ -f <tarball>
on the compiled tarballs that Cygport generates. That doesn't test the dependency management or anything that requires post-install scripts, but it's fine for checking the installation itself works.