From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) by sourceware.org (Postfix) with ESMTPS id 422B43858413 for ; Tue, 7 Nov 2023 15:59:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 422B43858413 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=johannesthoma.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=johannesthoma.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 422B43858413 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=212.227.126.130 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699372767; cv=none; b=rNWRejapuFFQIKXpcd5wtukK2ya/L+hTersoBNQEHPlcS8ffFTqrArQ9l1883uGkCaJooevCCAq1SszjsHefTU1WD6cutycIlnVGOAB++LlqeAdE9/MTV9WhnjpG0Uum2W47gATevgcL47Fdsly5iwQENnfmmM6HtP/PO7mJnKg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699372767; c=relaxed/simple; bh=mo0r9PMprXz72zvkwhMJ8GY6QQrKk+s7cj43k/IU2xc=; h=Message-ID:Date:MIME-Version:To:From:Subject; b=CMSANrClnMRYcBP3QnQLDWUIYhW9ysslvUGusuXwWI4hbfrYVwWUN3o8s/hak7A21qZd30xY5972UmTC8oHatvEMBOoPbvWcHOY0ZJvanTdIXjQzibhjslUvKIwRJbycMC1EsIhef9OphQnMAXUK8BxowJ62rCP7v8ZfXl191Mo= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from [10.43.10.15] ([62.99.137.214]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MJVU0-1qgW9L3HPE-00JqbF for ; Tue, 07 Nov 2023 16:59:23 +0100 Message-ID: Date: Tue, 7 Nov 2023 16:59:22 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: The Cygwin Mailing List From: Johannes Thoma Subject: docker container for building cygwin on Linux Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:WnWqQm0dhwP1OC0UDBM2ftBGQ+6ikyq/BeqE8GIZ+L3obC7RtCs p1LWtQivbD002cwGb1fOaXGIXexAv9ColTOafblgdAuowns6btcx0HKjikzCc55t222Fu4H 0idEGZdIC64gcctkDTrWU3LCWFI9k1gp2IxJ9zCitZby1e02ZpxxJ57ocQo2dT64gXKKzYt jS4+cgHfdv9d9whw5MQuQ== UI-OutboundReport: notjunk:1;M01:P0:b04yhDz6KSw=;aNGV1WdiveFrgcaPMWMDNqprUmk 0V8RGi3HK9uYycRn7JYV6bh5FMgd1WmIppg4Mh76Jsx5xpqdHDXQmhP6afn54nOeBCmiNt5Jk gWaKNHidRjgQR+NQXDo7j3UEkppmKzYYHJ+716+Jajw1EqSlgAgz6MU3uNKZ2HqxkWo6y5cwL mOH11kIc0QP2OG0RkG2/xoCoRr/Zgd9M3w6iMipkEWJymW+jeAbFzKOYmj3TBUq10bKlP5F0Q egtGRRO4ByQED6FSHuKwRFwCNnMa+01O0xfGfprhni6l+gsw/jaKOZ4r2z31YHQ5K9Qps7CEe i6t1m0yembX/lDqYG3Ls1sr6IWfOFisViovcEDTrplJwWAYV/WsVHFVJAUNfMPD4MOqW4cRgi WNYE2MnpEyeii5xzPbKIBUFwsH3IELn58Que7bLw1cc7XKDLEpPvwiS+qjVC2C+kS7tUZlEGJ MExcvaqNGiOD2PoWfoFHMHuWunqJQ+a0EK8xDzSWFgdJcDs9taUTzmHiiyoPQviuKEq3YhWfA m2WirFQUVJERCC0DoMV1Ov2KV3JaNUugnFI4khvbRZ0USbIk5OJyxJI9JHT5FE4Wtw+TWjYNb rMgNz2Zvlgu6g2tePR7WfF4WFiajb6Fyx0OXLw5Z23c1YjfRJA0rfX9Hzd2AvgIgj2oPn3il2 WvVstbQ/aQdDdZQImKqP2I5lL4idrUlDzo4ZBJt9BGqMZW+57sSxJsHqhcC0X/dhF8o+dEYdX CN/NoeCxht6/991XCLBnwPkxKujJKuIS4jy/LmOARI9pmWOwKTL74S0I3Jyr9ir3WpfPjg6UG vTxqnn14zrCkJ3FbYaV90u6iez1w4QlTIGbdxBbAlaUXOPLYyJcSJNT7CE7h86x9mXLNKDXLS MgmlmLZqkzAbOBw== X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,KAM_LAZY_DOMAIN_SECURITY,KAM_SHORT,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi list, I just published a docker image with all the necessary build dependencies (except for dumper.exe) for building cygwin. We are using it to compile our WinDRBD driver and with a few additional packages it was possible to compile cygwin (newlib-cygwin) as well. This is how to obtain it: docker pull quay.io/johannesthoma/windrbd-devenv-cygwin To build the container yourself you can use the make docker-cygwin command of the WinDRBD driver (https://github.com/LINBIT/WinDRBD) (you have to use the windrbd-1.2 branch). Since this takes an hour to complete (2 C-compilers being built) I recommend to use the quay.io image. There is one thing about the container which is a little bit how do I say - not so clean - we import the cygwin-gcc compiler from Fedora 38 packages in a Ubuntu 22.04 - from https://download.copr.fedorainfracloud.org/results/yselkowitz/cygwin/ I don't know if yselkowitz is on the cygwin list but it would be helpful to have maybe a script to build those packages, so if someone could share some hints how to build the cygwin compilers that would be of great help. In case you are not familiar with docker here's what I use: docker tag quay.io/johannesthoma/windrbd-devenv-cygwin windrbd-devenv-cygwin docker run -v /home/johannes/cygwin-sources-new:/cygwin-sources --name build-cygwin-new -d windrbd-devenv-cygwin tail -f /dev/null docker exec -it build-cygwin-new bash From there everything in newlib-cygwin (except for dumper so configure winsup with --disable-dumper) should be buildable. If you find this container useful, have questions or feature requests or find bugs or things not working as expected, please let me know. Best regards,  - Johannes