public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* Maintainer newbie questions
@ 2007-07-03 17:38 Steffen Sledz
  2007-07-03 20:25 ` Brian Dessent
  0 siblings, 1 reply; 3+ messages in thread
From: Steffen Sledz @ 2007-07-03 17:38 UTC (permalink / raw)
  To: cygwin-apps

My work at the new emacs packages makes good progress. The cygport stuff
is really comfortable. I hope, that I can present a new version in the
next days for testing.

But also after reading all the documentation there are some last
questions (if I've overlooked something please forgive me):

1. What's the best way to find all the dependency information needed for
 hint files if multiple binary packages (with own hint files) are made
from the same source? Calling cygport with the deps parameter does not
split the dependencies to different packages.

2. Is there an automatic way to determine the Runtime requirements for
the different README files?

3. Same question for the build requirements.

4. What's the best way to install/test the self-made packages? Is it
necessary to install an own Cygwin mirror and run the genini script?

Steffen

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Maintainer newbie questions
  2007-07-03 17:38 Maintainer newbie questions Steffen Sledz
@ 2007-07-03 20:25 ` Brian Dessent
  2007-07-08  8:43   ` Steffen Sledz
  0 siblings, 1 reply; 3+ messages in thread
From: Brian Dessent @ 2007-07-03 20:25 UTC (permalink / raw)
  To: cygwin-apps

Steffen Sledz wrote:

> 1. What's the best way to find all the dependency information needed for
>  hint files if multiple binary packages (with own hint files) are made
> from the same source? Calling cygport with the deps parameter does not
> split the dependencies to different packages.

By running cygcheck on each binary/DLL in each package, just just by knowing
e.g. "this package requires files from package foo at runtime so this package
needs to require foo."

> 2. Is there an automatic way to determine the Runtime requirements for
> the different README files?

Essentially the same as above.  Don't get caught up with worrying about specific
version numbers; list the version installed on your machine when you built the
packages.

> 3. Same question for the build requirements.

There's no automatic way to determine this, you just have to know which
developer tools are required to build the software.  For the most part it's
pretty straightforward, e.g. it requires the 'make' package if a step was typing
make, and if there's C code you require 'gcc' (which automatically pulls in
binutils and w32api, so you don't really need to mention those, but some people
still do.)  You also need to list the corresponding -devel packages of any
libraries that your package links to, which you determined above.  If you're
using cygport then that favors running autoreconf at configure time instead of
running it on the builder's machine and including changes to generated files in
the patch, so you'd want to list autoconf/automake/libtool/m4 as build
requirements if you use cygport.

> 4. What's the best way to install/test the self-made packages? Is it
> necessary to install an own Cygwin mirror and run the genini script?

There are several ways.  You can run a local "mirror" that is just a directory
of files and point setup.exe to it with "Install from local directory".  There's
no need to actually run a server of any kind, nor is there a need for the
"mirror" to contain any files but the packages you're testing.  But this will
still require a setup.ini, which you can generate from setup.hints with genini.

Of course, using an actual http server for this does make it easier for anyone
else to test your packages as they can just enter the URL in setup.  And also
you'll need to eventually have them on a server somewhere so that they can be
copied to sourceware.org.

Alternatively you can just take your binary packages and "tar -C /" them to
simulate installation, and then run any postinstalls manually.  Obviously this
isn't the greatest way to test things (as it doesn't exercise their actual use
pattern) but it's reasonable in a bind.

Brian

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Maintainer newbie questions
  2007-07-03 20:25 ` Brian Dessent
@ 2007-07-08  8:43   ` Steffen Sledz
  0 siblings, 0 replies; 3+ messages in thread
From: Steffen Sledz @ 2007-07-08  8:43 UTC (permalink / raw)
  To: cygwin-apps

Brian Dessent schrieb:
>> 3. Same question for the build requirements.
> 
> There's no automatic way to determine this, you just have to know which
> developer tools are required to build the software.  For the most part it's
> pretty straightforward, e.g. it requires the 'make' package if a step was typing
> make, and if there's C code you require 'gcc' (which automatically pulls in
> binutils and w32api, so you don't really need to mention those, but some people
> still do.)  You also need to list the corresponding -devel packages of any
> libraries that your package links to, which you determined above.  If you're
> using cygport then that favors running autoreconf at configure time instead of
> running it on the builder's machine and including changes to generated files in
> the patch, so you'd want to list autoconf/automake/libtool/m4 as build
> requirements if you use cygport.

What's the policy for the build requirements in the README files, if
packages are build from the same source package? Same list in all of
them? Just a referenve to the main package?

Steffen

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-07-08  8:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-03 17:38 Maintainer newbie questions Steffen Sledz
2007-07-03 20:25 ` Brian Dessent
2007-07-08  8:43   ` Steffen Sledz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).