This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Failure with fork()
- From: Achim Gratz <Stromeko at nexgo dot de>
- To: cygwin at cygwin dot com
- Date: Thu, 27 Jun 2013 21:45:14 +0200
- Subject: Re: Failure with fork()
- 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>
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