From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 36662 invoked by alias); 28 Oct 2018 16:43:46 -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 36639 invoked by uid 89); 28 Oct 2018 16:43:45 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=interim, exposed, rob, alongside X-HELO: gecko.birch.relay.mailchannels.net Received: from gecko.birch.relay.mailchannels.net (HELO gecko.birch.relay.mailchannels.net) (23.83.209.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 28 Oct 2018 16:43:44 +0000 X-Sender-Id: interserver|x-authuser|rda@lemma-one.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 07D3B5C2C82 for ; Sun, 28 Oct 2018 16:43:42 +0000 (UTC) Received: from blueberry.trouble-free.net (unknown [100.96.19.74]) (Authenticated sender: interserver) by relay.mailchannels.net (Postfix) with ESMTPA id 917BA5C294F for ; Sun, 28 Oct 2018 16:43:39 +0000 (UTC) X-Sender-Id: interserver|x-authuser|rda@lemma-one.com Received: from blueberry.trouble-free.net (blueberry.trouble-free.net [66.45.228.105]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Sun, 28 Oct 2018 16:43:41 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: interserver|x-authuser|rda@lemma-one.com X-MailChannels-Auth-Id: interserver X-Tangy-Wiry: 7cffd6f633cf3ad1_1540745019777_3024749193 X-MC-Loop-Signature: 1540745019777:261505915 X-MC-Ingress-Time: 1540745019777 Received: from lemma-one.demon.co.uk ([80.176.88.124]:56931 helo=[192.168.0.93]) by blueberry.trouble-free.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1gGoA5-001Jkm-EV for cygwin@cygwin.com; Sun, 28 Oct 2018 12:43:37 -0400 From: Rob Arthan Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Supplying a patched package Message-Id: <03354D05-354F-4C65-9932-2D663EB32B5F@lemma-one.com> Date: Sun, 28 Oct 2018 16:43:00 -0000 To: cygwin@cygwin.com X-AuthUser: rda@lemma-one.com X-IsSubscribed: yes X-SW-Source: 2018-10/txt/msg00235.txt.bz2 I have an application that is available for the main UN*X implementations and uses the OpenMotif library. It currently works fine on Cygwin using the motif-2.3.6-1 package. I am working on enhancing it to use Unicode and UTF-8 to display mathematical symbols and this has exposed a bug in OpenMotif. I have a patch for the bug and have successfully built the OpenMotif library as a DLL and tested it on Cygwin. The bug has been reported but the turn-round time for a fix to OpenMotif is likely to be 6 or 12 months and I don=E2=80=99t how long it will take fo= r it to get picked up on Cygwin (2.3.6 is 2 versions and 18 months behind the latest version). So my question is what is the best way to supply my fix to users on Cygwin in the interim. Building the DLL seems a bit tricky, so I=E2=80=99d prefer users not to hav= e to do that. If I supply the DLL, then the simplest thing seems to be just to include the DLL in a bin folder alongside the executable for my app. Is that a robust and portable solution? Will I need to build different DLLs for different architectures or can I safely assume that people running on a reasonably recent MS Windows installation will only want the x86_64 DL= L? Apologies if the answer should be obvious: I am a reasonably proficient UN*X programmer, but just a naive end-user feeling my way on MS Windows. Am I right in inferring from experiments that Cygwin and/or MS Windows looks for DLLs on the list of folders given $PATH and/or %PATH% list but has a look in the folder containing the executable that wants the DLL first? Cheers, Rob. -- 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