From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 127906 invoked by alias); 15 Jul 2019 13:58:57 -0000 Mailing-List: contact bzip2-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Sender: bzip2-devel-owner@sourceware.org Received: (qmail 127893 invoked by uid 89); 15 Jul 2019 13:58:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.100.3 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=SDK, sdk, confidence X-Spam-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on sourceware.org X-Spam-Level: X-HELO: mail-io1-f66.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=yG8CkCPSMjdz+jiC087zMF/+Ru9LGYUpFlYvwWHhJ+k=; b=FXzSDyIYbl1KhTsZzBDGLDBa/MTdB7i0U1ewHSbXOIWPex7OjcH2bTQtGOlwilEmM7 CNB5ziXvnxQmZbjvGu47AS6wk2PNZ30GW7VW6hFVIjTdD1bWxjst1lRkL1l7wCul+1YH Wr+qjIYHWuyeq5ivcpsrmHz002YhQdhAt/jnjLgRa+6/eNILg5Cv44Up/zsyuD8EqLA3 UEcnGPmjTtky/vEaZMnbo8nqQjlNykoMaxDdYsMwLYuzenkWcIce2ffc4W0iJNAc6dMx 0yCboBjEAUgovR88Jvi/NprB9BUREO+OBBJ5RsRo0u1vzetm/aBYPigB50ZNT21XXV1K SScg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=yG8CkCPSMjdz+jiC087zMF/+Ru9LGYUpFlYvwWHhJ+k=; b=syvvmRo0YcyDJjyaZyOHzBNJs3KFtlzkMe7EFmoxbZ/RIGUaodIdCn49XtlEgJ4PTJ Nv+zPgsnGzP1KHJXs3AiXoU4/PJz3I6ZTGpOLMY7VHR+d7jP4Ol6MnJACxGfVtbmg58R fCeGDieWwzL3QR/hwYhIhmSu0nVFS9nfvtfG3Nmvn8pA55IdRf9sOD3+qyXHUvcApp5n jjSSnu52FgrNdstXLeI6foaOeUYhAyu2QWxT8cDnrwEAHNx1xnb44HeJ+JT6NYbLqTBA q+UpwL0FOVDYbsl1pzRI/LasWkpRnYIBCTGMBR0GJY/6XN8lBripnGFjguDZJEIUzJBy JlTA== X-Gm-Message-State: APjAAAXBkqXiHndVrdxUhfuflbi9glOdWEVD+c12eIZxTjmbcwT7fT1C oUaPR5ieookCF0yrAvz044dQy0da X-Google-Smtp-Source: APXvYqzXd1ahfUsOta+mGBhAZfxNNejdDlOIhsDYBCyKMoe5LQD2BZxs26O7M+nkiZriM7tGYXStzw== X-Received: by 2002:a5d:890d:: with SMTP id b13mr23820799ion.124.1563199133538; Mon, 15 Jul 2019 06:58:53 -0700 (PDT) From: Joshua Watt X-Google-Original-From: Joshua Watt Subject: Re: _stati64 patch (Was: [PATCH] Fix include path separator) To: Mark Wielaard Cc: bzip2-devel@sourceware.org, Phil Ross References: <20190702200544.27137-1-JPEW.hacker@gmail.com> <20190705083857.GF4777@wildebeest.org> <5867f77d-36b1-5ae2-1b53-5e1ee5a63323@gmail.com> <03e0c9b1537ea400554213a7caef8855cc73aa04.camel@klomp.org> <047e4d94-9223-b411-bc83-429ba458fa67@gmail.com> <23197ac342d44166d9ae1824d5e4d6b6bd9cbfaf.camel@klomp.org> Message-ID: Date: Tue, 01 Jan 2019 00:00:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <23197ac342d44166d9ae1824d5e4d6b6bd9cbfaf.camel@klomp.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-SW-Source: 2019-q3/txt/msg00033.txt.bz2 On 7/14/19 4:23 PM, Mark Wielaard wrote: > Hi Joshua, > > On Tue, 2019-07-09 at 16:59 -0500, Joshua Watt wrote: >>> BTW. I don't know much about windows, and I assume it doesn't ship with >>> bash. But maybe you could take a peek at the bzip2-tests repository and >>> see if you could somehow make that work on Windows? >>> https://sourceware.org/git/bzip2-tests.git >> Windows isn't really my preferred OS either; I'm tasked with maintaining >> an embedded Linux cross compiling environment for Windows as part of my >> day job, so I end up dealing with it more that I would perhaps like :) >> >> Anyway, the good news is that you don't really need to make any changes >> to the bzip2-tests repo; it works fine on Windows as is. As previously >> stated, I compiled bzip2 using MinGW (http://www.mingw.org/). There is >> also a related project called msys (http://www.mingw.org/wiki/MSYS) that >> will give you a traditional bash shell (as well as most other standard >> utilities) in Windows. The run-tests.sh script works just fine there and >> all the tests pass, using a build of bzip2 from b07b105 ("Accept as many >> selectors as the file format allows."). > That is really awesome. Thanks so much for testing that out. > Can a cross build bzip2 using MinGw (and msys) be run under Wine? > That might give us a build CI pipeline for testing bzip2 using the > buildbot. It might not be identical to running under actual Windows. > But it might be scripted/automated. We do something similar to that to test our MinGW SDKs for the Yocto Project. We cross compile the SDK using the MinGW toolchain on Linux (note that MSYS is not required; the Linux system already has all the POSIX tools), then run a set of automated tests under Wine. You might be able to take this approach also. It wouldn't verify that you can actually compile under Windows (as stated, it is a cross compile from Linux), but it would give some amount of confidence that you can actually run the cross compiled bzip2 on Windows and it will pass the tests. You are correct that Wine isn't a fully faithful reproduction of Windows; I've found a few things that just refuse to run properly under wine, but do fine on actual Windows. Most distros have a ready-made MinGW GCC compiler that can be installed. The harder part is getting any additional dependencies. Most of the distros I've seen don't have very many of the MinGW cross compiled library (why would they?) so if your trying to cross compile a large codebase, you can easily get into trouble with missing dependencies. The Yocto project has an advantage in this regard because we are already compiling everything from source anyway, so cross compiling the requisite dependencies for MinGW isn't any additional work. I think that bzip2 might also be able to be cross compiled easily because it doesn't have very many dependencies. If you want to verify that you can compile under Windows, you might be able to install MSVC in wine and use it to build bzip2. You *might* also be able to install the Windows version of MinGW and MSYS in wine. I don't know how stable this would be or if it would work at all. > Thanks, > > Mark