From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by sourceware.org (Postfix) with ESMTPS id EF14D386F839 for ; Sat, 4 Jul 2020 20:06:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EF14D386F839 Received: by mail-ed1-x529.google.com with SMTP id d15so30877811edm.10 for ; Sat, 04 Jul 2020 13:06:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=oS6DicpZZJNXjHJfANjxrZ6uRPJ2sSpFGH8WpyPJAJ8=; b=S36+Tya30jAx0h00tRTURy7sxkYU+wdtwlIdcC/9CKxuBq4+ph67zc3G11KNt3N2vt 055iXHGZKkNCHjGK85B/r9ocKhG8ZDN/fl5aO5YeKdLiDl4eRBb440jWAC7ETaeXSOhR 17z8rVzaxJE+endIm9PaDvJvXFuQZbVxizxTtCLt3RjBWxiSEbqIgeNS8Lccbt36flD1 XA9VVjN4DdkBDX513qYLrTpHheIxGS6guzeyGkHsIt7CX0R5U7niNfzzVbCzzsL8E84u y5/M8yUcZ5pyoC87RyBjEG9Xw8r9tTkIWAm2ExzmWzR6G7P5NHbZ4bgRkb0lV4GRYE8A S1Ug== X-Gm-Message-State: AOAM530ThXTJ3YdGucewRToX5C/P5iRMGjBcGi6MSa0ou4jeyS2XnrRE M31a34ARaL/6ajf26HIZsm8n+os0uKg= X-Google-Smtp-Source: ABdhPJyjKbivCXmoLAppTFOMiAK1Qo56ijKIJ1nFpnp05qlb3e3BcQ1dqTlbYY1965RRPek/BNq97Q== X-Received: by 2002:a05:6402:1ef:: with SMTP id i15mr29456606edy.378.1593893210404; Sat, 04 Jul 2020 13:06:50 -0700 (PDT) Received: from [192.168.2.121] (pd9ed5fcd.dip0.t-ipconnect.de. [217.237.95.205]) by smtp.gmail.com with ESMTPSA id h10sm13132841edz.31.2020.07.04.13.06.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 04 Jul 2020 13:06:49 -0700 (PDT) Subject: Re: cygport install infinite loop in src_postinstall under __prep_libtool_modules To: cygwin-apps@cygwin.com References: <359290a2-b299-ad90-5083-30789099a3eb@SystematicSw.ab.ca> From: Marco Atzeri Message-ID: <9e5761e2-0488-f83d-a43d-57a6e9a5419f@gmail.com> Date: Sat, 4 Jul 2020 22:06:49 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <359290a2-b299-ad90-5083-30789099a3eb@SystematicSw.ab.ca> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: it Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin-apps@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin package maintainer discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jul 2020 20:06:53 -0000 On 04.07.2020 21:35, Brian Inglis wrote: > See attached cygport --debug ...cygport install log. > > Running cygport ... install, src_postinstall under __prep_libtool_modules after > "Fixing libtool modules:" does not find dll in: > > $ find wget2-1.99.2-1.x86_64/ -name 'cygwget*' > wget2-1.99.2-1.x86_64/build/libwget/.libs/cygwget-0.dll > wget2-1.99.2-1.x86_64/inst/usr/bin/cygwget-0.dll > > so it loops on /usr/share/cygport/lib/src_postinst.cygpart:1297ff: > > while [ $(readlink -f ${ltlibdir}/${dlname%/bin/*}) != ${D}$(__host_prefix) ] > do > dlname=../${dlname} > done > > until readlink returns root and just keeps on going, possibly because my Cygwin > home is a symlink to my Windows home, but this approach would have problems with > any symlinks along the path to the cygport dir, as $D is not similarly resolved. > > I can wrap the other path in the condition in $(readlink -f ...) and it works > normally but this may not be the best approach here. > Alternatives, suggestions? > > In this pre-package there is a check/test program and a DLL - is there another > package I could use as a template for how to split this into two packages? > I assume you are building under some link structure. I was hit by long time by it as I was using /pub -> /cygdrive/d/cyg_pub and building in it. Two options: 1) patch cygport I proposed something for that case https://sourceware.org/pipermail/cygwin-apps/2020-April/039990.html 2) mount the directory instead of using links. I put this in my fstab and removed the link d:\cyg_pub /pub NTFS binary,posix=1,nouser 0 0 Regards Marco