Ken Brown <kbrown <at> cornell.edu> writes:
> This doesn't happen if you install the snapshot by the method suggested 
> in the FAQ:
> 
>    http://cygwin.com/faq.html#faq.setup.snapshots
> 

Or just make a package out of the snapshot and then install it via setup:

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

CV   ?= 1.7.29
CR   ?= 2
CVR   = $(CV)-$(CR)
SD   ?= 20140508
ARCH ?= $(subst i686,x86,$(shell arch))

CYGMIR   = /mnt/mirror/cygwin/$(ARCH)/release/cygwin
CYGDEB   = $(CYGMIR)/cygwin-debuginfo
SNAPSHOT = $(PWD)/$(ARCH)/snapshot-$(SD)
SNAPDEB  = $(PWD)/$(ARCH)/snapshot-debuginfo-$(SD)
SNAPURL  = http://cygwin.com/snapshots/$(ARCH)
PATCH    = /mnt/mirror/patch/$(ARCH)/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) $(SNAPDEB) *.bz2 *.xz *.dbg
clean-install:  clean
        rm -f      $(PATCH)/cygwin-$(CVR)s$(SD).tar.*
$(PATCHDEB)/cygwin-debuginfo-$(CVR)s$(SD).tar.*

cygwin-inst-$(SD).tar.xz cygwin1-$(SD).dbg.xz:
        wget $(SNAPURL)/$@

snapshot:       cygwin-inst-$(SD).tar.xz
        mkdir   -p $(SNAPSHOT) $(PATCH)
        cp      -p $(CYGMIR)/setup.hint $(PATCH)
        tar     -C $(SNAPSHOT) -xf $(CYGMIR)/cygwin-$(CVR).tar.xz
        tar     -C $(SNAPSHOT) -xf cygwin-inst-$(SD).tar.xz
install-snapshot:       snapshot
        mkdir   -p $(PATCH)
        tar     -C $(SNAPSHOT) -Jcf $(PATCH)/cygwin-$(CVR)s$(SD).tar.xz etc/ 
usr/

snapshot-debuginfo:     cygwin1-$(SD).dbg.xz
        mkdir   -p $(SNAPDEB) $(PATCHDEB)
        cp      -p $(CYGDEB)/setup.hint $(PATCHDEB)
        tar     -C $(SNAPDEB)  -xf $(CYGDEB)/cygwin-debuginfo-$(CVR).tar.xz
        unxz    -c cygwin1-$(SD).dbg.xz > 
$(SNAPDEB)/usr/lib/debug/usr/bin/cygwin1.dbg
        touch   -r cygwin1-$(SD).dbg.xz   
$(SNAPDEB)/usr/lib/debug/usr/bin/cygwin1.dbg
install-snapshot-debuginfo:     snapshot-debuginfo
        mkdir   -p $(PATCHDEB)
        tar     -C $(SNAPDEB) -Jcf 
$(PATCHDEB)/cygwin-debuginfo-$(CVR)s$(SD).tar.xz
usr/
--8<---------------cut here---------------end--------------->8---

Regards,
Achim.


--
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 via email to