From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from libero.it (smtp-18.italiaonline.it [213.209.10.18]) by sourceware.org (Postfix) with ESMTPS id 8230B3850430 for ; Mon, 31 May 2021 12:24:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8230B3850430 Received: from ts102757.server.topcloud.it ([5.144.173.167]) by smtp-18.iol.local with ESMTPA id ngyFlNldd0I8JngyGlHw7K; Mon, 31 May 2021 14:24:40 +0200 x-libjamoibt: 1601 X-CNFS-Analysis: v=2.4 cv=KrWIZUaN c=1 sm=1 tr=0 ts=60b4d588 cx=a_exe a=1WLnVPzqWix1BVpPO9LL0Q==:117 a=1WLnVPzqWix1BVpPO9LL0Q==:17 a=IkcTkHD0fZMA:10 a=9-sD3SDyAAAA:20 a=6DyHKSpMfnJMvEzxL4oA:9 a=QEXdDO2ut3YA:10 a=aIcnEQNCa7ZOrDpjgBRU:22 a=pHzHmUro8NiASowvMSCR:22 a=xoEH_sTeL_Rfw54TyV31:22 From: Valerio Messina Subject: deploy Nedit and Xnedit Reply-To: efa@iol.it To: cygwin@cygwin.com Message-ID: Date: Mon, 31 May 2021 14:24:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfEBFd5ckAgCMWqjCqFMaHZpJyWQaKwvtvneSMAuuHIdOT5Cn7QPNk/asEr9AMGRBJPmGy9nZa5vewgfE9TjvZFVu7dgEcwkdpxtkfv0kKctWEUHrvhWW JyfL3lsHX5/fS6KyF0pWAw1k1/qnGJ3ZedQ7O+L/WVZ7W3V06PRaW65HygGA7a50qyoqlvJ8TVDSFg== X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS autolearn=ham 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@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 May 2021 12:24:44 -0000 hi, I want to create a Win64 package of Nedit and Xnedit [1], with the minimum set of file dependencies, to be distributed on systems that does not have Cygwin installed (mainly for users that do not know well *ix) Both applications depend on same libraries, but the second one has Unicode support. Both applications depend on Motif as Toolkit. Nedit work in Cygwin as expected as is a Cygwin package. I can successfully build Xnedit (with a little patch) in Cygwin and work very well inside Cygwin. Using ldd I can successfully create a CMD sandbox package of Nedit that do not complaint for missing DLL dependencies. The same for Xnedit, I can generate the same package. To both I added: .\fonts.conf .\xkeysymdb .\sh.exe (and its deps) and created a script that define a minimum of env variables: PATH=. HOME=. FONTCONFIG_PATH=. XDG_DATA_HOME=. XDG_CONFIG_HOME=. XKEYSYMDB=.\xkeysymdb DISPLAY=localhost:0.0 NEDIT_HOME=. Running Nedit in the CMD sandbox I got this error: X Error: BadAlloc Request Major code 53 () Error Serial #2732 Current Serial #2752 while running Xnedit I got this error: Cannot open default font with Xnedit is XftFontOpenName() that fail, see text.c in line 824 I also copied fonts files in: .\usr\share\fonts\dejavu (where is pointing fonts.conf) but the errors are the same. Then I created a .Xresources file with: nedit*faceName: Monospace OR nedit*faceName: DejaVuSansMono and load it with: $ xrdb -merge .Xresources than check is loaded with: $ xrdb -q Same errors. I saw that fc-match in Cygwin results in: $ fc-match mono DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book" while in the CMD sandbox show no output. There must still be some fontconfig configuration files that I forgot. I would be very grateful to someone who knows how fontconfig works to support me in creating these packages. I looked in FAQ and Documentation but I do not found nothing specific. Where can I find documentation on deploy a Cygwin build application and package that with all its the dependencies? [1] https://github.com/unixwork/xnedit thank you, -- Valerio