From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 69985 invoked by alias); 10 May 2018 01:22:19 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 69973 invoked by uid 89); 10 May 2018 01:22:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy= X-HELO: mail-lf0-f41.google.com Received: from mail-lf0-f41.google.com (HELO mail-lf0-f41.google.com) (209.85.215.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 10 May 2018 01:22:17 +0000 Received: by mail-lf0-f41.google.com with SMTP id o123-v6so571523lfe.8 for ; Wed, 09 May 2018 18:22:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=0jEjsm5wNByw0kYAybNh8XGqzfIaqqgHg4J98t/wnwA=; b=EbezO2n7qbPFcNLpcArsvX6Y58QZ4/AN/spAhKV6dcqy2lfn+D0WX1f+K6kngwJb+t DtvvVt847BfvP9E6cZZRMaGJ6pRlVsiGYXVDhI0WbBNznZjnq5pxAyVXR8/jXGXz1sxp NOzNrW1bXdtdg9Pafqh21SgvZGylLb5qXREiKkWJj9GQ+2TxEx23rQ9oc96MUFhfvtR7 vbxpeW+6EpX2l9+GWGv5t4YW7qVVLZnPnvoj1qzNjvoU+Vn2qKWANStEe6f6JrtnhhK5 Ws7SJqf9tDceEnrKFZy0bMG7dezgZGVbeP8VoToIPc0cKA/RtWSCbQqkg/dVJP92hjwU hvAQ== X-Gm-Message-State: ALQs6tCEbFE2ekU2B+Cel3HP9OQBkoyhOabx/KzZIdN3RvBFFQH1x+2v SSE8uWhD2VJDPnufAL33MaCCQK3fn9Jv3+YfLXw= X-Google-Smtp-Source: AB8JxZo6ezL2L5Pt/CQB17CFNHzDJJZP6mIRRC6ZuHugdq1f7N3ekWTnqxapgSyyv4PIQhFBVzTT0d86JEK8LEX7KPE= X-Received: by 2002:a19:3b19:: with SMTP id i25-v6mr15159156lfa.56.1525915335395; Wed, 09 May 2018 18:22:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.115.6 with HTTP; Wed, 9 May 2018 18:22:15 -0700 (PDT) In-Reply-To: References: From: R0b0t1 Date: Thu, 10 May 2018 11:49:00 -0000 Message-ID: Subject: Re: How portable (relocatable) is a Cygwin installation? To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2018-05/txt/msg00125.txt.bz2 On Wed, May 9, 2018 at 7:08 PM, Andy Li wrote: > Hi, > > We are looking for an easy way to distribute an OCaml development > enviroment based on Cygwin. Someone has an idea of installing all the > necessary packages and zip the whole Cygwin installation directory and > distribute the resulting archive. > > Is it a good idea? Is the installation path written in a Cygwin > installation somewhere that may need to be updated when relocating? Is > there any registry entry or env var required for a Cygwin installation to > work? > This should work. Historically, MSYS(2) has been used for this purpose. Please reconsider bundling everything with your development distribution. It would be cleanest to have your users install Cygwin or MSYS2 separately, perhaps by launching the their installer from your installer. If multiple development bundles distribute a set of Unix-like utilities and add them to PATH things will break in hard to diagnose ways (usually related to very old bundled utilities, but this is not usually immediately obvious). The main danger with the reuse of Cygwin installations is that your user ID on one machine will not match the user ID on another. Cheers, R0b0t1 -- 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