delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/06/27/15:45:50

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type; q=dns; s=default; b=xNUtRB5VwckC4S2k
6+HfwPeimECqcb3KbjS7u/HD9T1/04FnObUDEAHA5vQtg9J7tjMmsgXrvDm9FHOE
w3hUZfqbL4Bmc5iFjAO2fKjlBwtDC7K6ycTqJg+DcqbJBNblYeGkPGbHzASAsCZE
w2e1cF0Hj4Tyzgy1xwaM0+5V/m4=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type; s=default; bh=WQ1gKswKUPUVPbJ2c9VMgn
uQLIQ=; b=hs4+FCq+lcaxVa6nwni30qhc407d6QC8+O01C453TlkHiLjK30aP5G
OgXBH+VtYuc/oUqaf2syWwgR6VWrSJcel3EN5Vk/Wpgm/5c7XBVTGegrF/SpEioF
0/wKy6OlnilrayLhbqsdVwtqD9QLzRnLg3nrxjTUBXLb4OGEd3g7g=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1
To: cygwin AT cygwin DOT com
From: Achim Gratz <Stromeko AT nexgo DOT de>
Subject: Re: Failure with fork()
Date: Thu, 27 Jun 2013 21:45:14 +0200
Lines: 67
Message-ID: <87li5vqqwl.fsf@Rainer.invalid>
References: <alpine DOT DEB DOT 2 DOT 02 DOT 1306271112580 DOT 27492 AT enira DOT zlyna DOT ubzr> <51CC8BB8 DOT 40607 AT gmail DOT com> <alpine DOT DEB DOT 2 DOT 02 DOT 1306271205210 DOT 27492 AT enira DOT zlyna DOT ubzr>
Mime-Version: 1.0
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019