public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Achim Gratz <Stromeko@nexgo.de>
To: cygwin@cygwin.com
Subject: Re: Failure with fork()
Date: Thu, 27 Jun 2013 20:17:00 -0000	[thread overview]
Message-ID: <87li5vqqwl.fsf@Rainer.invalid> (raw)
In-Reply-To: <alpine.DEB.2.02.1306271205210.27492@enira.zlyna.ubzr>

Alan W. Irwin writes:
> I haven't even gotten as far as an initial install because
> of this fork bug.

If you've never installed Cygwin then this is going to be a bit
more difficult, but here it is anyway...

You'll need a cygwin package that has the snapshot files built in.  To
do this, unpack the files from the current cygwin package into a
temporary directory, then unpack the snapshot files into the same
directory (which updates the directory with the filesfrom the snapshot),
package the directory up again as a tar.bz2 file, note the md5sum and
change the entry in setup.ini for the package to have the correct
filename (if you've changed it) and checksum.  You should then be able
to use setup.exe just fine to install a new Cygwin instance.


Here's a Makefile that will do the packaging, adjust the locations:

--8<---------------cut here---------------start------------->8---
.PHONY: all install clean force-clean clean-install snapshot install-snapshot snapshot-debuginfo install-snapshot-debuginfo

CV ?= 1.7.19
CR ?= 1
CVR = $(CV)-$(CR)
SD ?= 20130627

CYGMIR   = /mnt/mirror/cygwin/release/cygwin
CYGDEB   = $(CYGMIR)/cygwin-debuginfo
SNAPSHOT = $(PWD)/snapshot-$(SD)
SNAPDEB  = $(PWD)/snapshot-debuginfo-$(SD)
SNAPMIR  = /mnt/mirror/snapshot
PATCH    = /mnt/mirror/patch/release/cygwin
PATCHDEB = $(PATCH)/cygwin-debuginfo

all:            snapshot snapshot-debuginfo
install:        clean-install clean install-snapshot install-snapshot-debuginfo force-clean
clean force-clean:
        rm -fr     $(SNAPSHOT)
        rm -fr     $(SNAPDEB)
clean-install:  clean
        rm -f      $(PATCH)/cygwin-$(CVR)s$(SD).tar.bz2 $(PATCHDEB)/cygwin-debuginfo-$(CVR)s$(SD).tar.bz2

snapshot:
        mkdir   -p $(SNAPSHOT)
        tar     -C $(SNAPSHOT) -xf $(CYGMIR)/cygwin-$(CVR).tar.bz2
        tar     -C $(SNAPSHOT) -xf /mnt/mirror/snapshot/cygwin-inst-$(SD).tar.bz2
install-snapshot:       snapshot
        tar     -C $(SNAPSHOT) -cf $(PATCH)/cygwin-$(CVR)s$(SD).tar.bz2 etc/ usr/

snapshot-debuginfo:
        mkdir   -p $(SNAPDEB)
        tar     -C $(SNAPDEB)  -xf $(CYGDEB)/cygwin-debuginfo-$(CVR).tar.bz2
        bunzip2 -c $(SNAPMIR)/cygwin1-$(SD).dbg.bz2 > $(SNAPDEB)/usr/lib/debug/usr/bin/cygwin1.dbg
        touch   -r $(SNAPMIR)/cygwin1-$(SD).dbg.bz2 $(SNAPDEB)/usr/lib/debug/usr/bin/cygwin1.dbg
install-snapshot-debuginfo:     snapshot-debuginfo
        tar     -C $(SNAPDEB) -cf $(PATCHDEB)/cygwin-debuginfo-$(CVR)s$(SD).tar.bz2 usr/
--8<---------------cut here---------------end--------------->8---


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Samples for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

  reply	other threads:[~2013-06-27 19:45 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-27 18:58 Alan W. Irwin
2013-06-27 19:01 ` marco atzeri
2013-06-27 19:45   ` Alan W. Irwin
2013-06-27 20:17     ` Achim Gratz [this message]
2013-06-27 20:33     ` gmt
2013-06-27 19:13 ` Alan W. Irwin
2013-06-27 19:15   ` marco atzeri
2013-06-27 20:43     ` Alan W. Irwin
2013-06-27 20:47       ` Christopher Faylor
2013-06-27 20:48       ` Larry Hall (Cygwin)
2013-06-27 20:56         ` Thrall, Bryan
2013-06-28  1:28           ` Larry Hall (Cygwin)
2013-06-27 20:55       ` Peter Rosin
2013-06-27 21:52       ` Yaakov (Cygwin/X)
2013-06-27 21:58         ` Alan W. Irwin
2013-06-27 21:59           ` Yaakov (Cygwin/X)
2013-06-28  9:19             ` Corinna Vinschen
  -- strict thread matches above, loose matches on Subject: below --
2013-06-28  7:55 Alan W. Irwin
2013-06-28  7:59 ` marco atzeri
2013-06-28  8:52   ` Corinna Vinschen
2013-06-28 10:16     ` gmt
2013-06-28 10:20       ` Corinna Vinschen
2013-06-28 19:05         ` Alan W. Irwin
2013-06-28  8:42 ` Alan W. Irwin
2013-06-28  9:40 ` gmt
2013-06-27 10:49 Arjen Markus
2013-06-27 11:27 ` Ryan Johnson
2013-06-27 11:29   ` Corinna Vinschen
2013-06-27 12:19     ` Arjen Markus
2013-06-27 17:01       ` Corinna Vinschen
2013-06-27 17:03       ` Christopher Faylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87li5vqqwl.fsf@Rainer.invalid \
    --to=stromeko@nexgo.de \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).