From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4OESOoIPm2PZFAEAbAwnHQ (envelope-from ) for ; Thu, 15 Dec 2022 13:13:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2FXyOYIPm2O9owAAauVa8A (envelope-from ) for ; Thu, 15 Dec 2022 13:13:54 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 83BDBA552 for ; Thu, 15 Dec 2022 13:13:54 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5n75-0005P2-8J; Thu, 15 Dec 2022 07:13:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5n72-0005Oc-TQ for guix-devel@gnu.org; Thu, 15 Dec 2022 07:13:20 -0500 Received: from mail-0201.mail-europe.com ([51.77.79.158]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5n6y-0006pR-7c for guix-devel@gnu.org; Thu, 15 Dec 2022 07:13:20 -0500 Date: Thu, 15 Dec 2022 12:12:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=protonmail3; t=1671106389; x=1671365589; bh=VRFvE5drHNrq2qgcihzm2+YLI4CT75pEh1KaB6tQ5+I=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=GGjeyjkfanda9StAwPyIoZNhVqE8i5+vx6gYRUPd5o2R+9YjTuQzmpj210w0i+W5T QcyAmwCOhgL624uqRAbKpfsG/LznnIthLnGItpkTlCMMK231C75U8ASWgyRc0Sr1qE pOrZr5QCkiRSjqXJCXjFxSBPWMGDOuQ9Lm33WxyfrJjTRS0R6IIK5FRP0E/qnbdzGy qZUgqIUEC6os7ifbXn+J9rOnoG7drDtEGzUNj2+PpaudFi/gmCC9efzkqXnRAqUtag Qbs9JKB3patrNnaq+qfopcKGLjyoOngXJLyhGPgUxh5qcVdYrms33zuV6OiZEs1ri7 Idga4g6zw4kzQ== To: "guix-devel\\@gnu.org" From: Ekaitz Zarraga Subject: WIP: zig-build-system Message-ID: Feedback-ID: 3263582:user:proton MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_UIsHCpKEYmfHAOU8AIYr3VZFCvbT4xGKgpZ01plY" Received-SPF: pass client-ip=51.77.79.158; envelope-from=ekaitz@elenq.tech; helo=mail-0201.mail-europe.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=elenq.tech header.s=protonmail3 header.b=GGjeyjkf; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=elenq.tech ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671106434; a=rsa-sha256; cv=none; b=QTe4TkGMFGRalwPRyCMnvjxB0tyTYln89LQGsuFR970nRG7PdjZqg31b91T9WVsSxYKVrV QJPSo5+2LsZupEVSW/Omz5y4VGByoeqkxII9nADOtpTb1xAlyPm5kQbV5p5G0m4lZzmUdw SI4QvQ0mzdwuxpKPk8KQ6hZw6993ZsBZGvmjYKRhsaTDKSqTH5hrfB5/RFVknvcFUBEVLY OPmVaLnhK2YYzJqTfLTOCgDAeMpQKcPJWtJaeYrwleMWqavK1NxBV74rMQdZpY752r0tt6 Ix2nuUUhE+ykcwPxYBa5J+1RXg4i5WRzN6IDW8z4UVbZYFSuhw/PSuXnHzQ58Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671106434; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=VRFvE5drHNrq2qgcihzm2+YLI4CT75pEh1KaB6tQ5+I=; b=k90/p/DJUOepUHTmbdr+6UwQdmTu//UXr9Ixw/Xyv5nfbPdt7TmE0M7neKgW4iq+DjhyW2 MateVy4HvQybOipDlhVp3Mn5oCnNmoO46f1rGVygXEeyHAqFjzrYwRXaCBq241qFRbjM1c 8G0z1nFYsF1W29CVY4Yqk6gC4vn61n31d1I383zMEBXFTP9abJjREFNetmFxa5GEhOicaa m9/5qqLvZnKUS7HnsiLYX0OydotC7eneSTILu7qmPAqw8SKziBAPpJa8yeHWDhMUG+Obpo 04Il2WjjkFyImvRDIvBYzJF9wSdkqKynE5USu7QvCaknOmO1m6JmKkG7m8zpCQ== X-Migadu-Spam-Score: -7.68 X-Spam-Score: -7.68 X-Migadu-Queue-Id: 83BDBA552 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elenq.tech header.s=protonmail3 header.b=GGjeyjkf; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=elenq.tech X-Migadu-Scanner: scn0.migadu.com X-TUID: mdHl7UqB/QWv This is a multi-part message in MIME format. --b1_UIsHCpKEYmfHAOU8AIYr3VZFCvbT4xGKgpZ01plY Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi all, I'm working on a zig-build-system and I have something working. I'd like to discuss some of the problems I found because I don't know what's the best solution: - I don't know how to configure the cross-compilation - The `zig` command uses a compiler to find the libc it needs to use we should be able to remove the `gcc-toolchain` from the dependencies if we just add the libc to the build system properly (this point is mixed with the point above) I need suggestions on these... I attach two patches, one for the current build system I made and a second one for an example package that actually works but has some weird needs you can find in the comments. Cheers, Ekaitz --b1_UIsHCpKEYmfHAOU8AIYr3VZFCvbT4xGKgpZ01plY Content-Type: text/x-patch; name=0002-Add-a-sample-package-for-testing-the-zig-build-syste.patch Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=0002-Add-a-sample-package-for-testing-the-zig-build-syste.patch RnJvbSBjMTljNzE2MWNmMDg2NGJlNWZmZWUxMmU4YmFhYzI0OGQyZDk4NzRhIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBFa2FpdHogWmFycmFnYSA8ZWthaXR6QGVsZW5xLnRlY2g+CkRh dGU6IFRodSwgMTUgRGVjIDIwMjIgMTM6MDI6MjUgKzAxMDAKU3ViamVjdDogW1BBVENIIDIvMl0g QWRkIGEgc2FtcGxlIHBhY2thZ2UgZm9yIHRlc3RpbmcgdGhlIHppZyBidWlsZCBzeXN0ZW0KC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pCisKKworKGRlZmluZS1wdWJsaWMgdGlnZXJiZWV0bGUKKyAgKGxldCAoKGNv bW1pdC1pZCAiMjAyMi0xMi0xMi13ZWVrbHkiKQorICAgICAgICAocmV2aXNpb24gIjAiKSkKKyAg ICAocGFja2FnZQorICAgICAgKG5hbWUgInRpZ2VyYmVldGxlIikKKyAgICAgICh2ZXJzaW9uIChz dHJpbmctYXBwZW5kIHJldmlzaW9uICItIiBjb21taXQtaWQpKQorICAgICAgKHNvdXJjZQorICAg ICAgICAob3JpZ2luCisgICAgICAgICAgKG1ldGhvZCBnaXQtZmV0Y2gpCisgICAgICAgICAgKHVy aSAoZ2l0LXJlZmVyZW5jZQorICAgICAgICAgICAgICAgICAodXJsICJodHRwczovL2dpdGh1Yi5j b20vdGlnZXJiZWV0bGVkYi90aWdlcmJlZXRsZS5naXQiKQorICAgICAgICAgICAgICAgICAoY29t bWl0IGNvbW1pdC1pZCkpKQorICAgICAgICAgIChmaWxlLW5hbWUgKGdpdC1maWxlLW5hbWUgbmFt ZSB2ZXJzaW9uKSkKKyAgICAgICAgICAoc2hhMjU2CisgICAgICAgICAgICAoYmFzZTMyICIxOHJh d2w4cmh5cGx3OGhwYTNmemJxOWZxZzA4OHgwY2FsejY4OGM3emRmZjZ5NmY2bWNyIikpKSkKKyAg ICAgIChidWlsZC1zeXN0ZW0gemlnLWJ1aWxkLXN5c3RlbSkKKyAgICAgIChpbnB1dHMgKGxpc3Qg Z2NjLXRvb2xjaGFpbikpCisKKyAgICAgIChhcmd1bWVudHMKKyAgICAgICAgIGAoIzpwaGFzZXMK KyAgICAgICAgICAgKG1vZGlmeS1waGFzZXMgJXN0YW5kYXJkLXBoYXNlcworICAgICAgICAgIDs7 IFRPRE86IFppZyBuZWVkcyB0aGUgZ2NjLXRvb2xjaGFpbiBpbiBvcmRlciB0byBmaW5kIHRoZSBs aWJjLgorICAgICAgICAgIDs7ICAgICAgIHdlIG5lZWQgdG8gdGhpbmsgYWJvdXQgaG93IHRvIHNv bHZlIHRoaXMgaW4gdGhlIGJ1aWxkIHN5c3RlbQorICAgICAgICAgIDs7ICAgICAgIGRpcmVjdGx5 OiAtLWxpYmMKKyAgICAgICAgICAgICAgICAgICAgICAgICAgKGFkZC1iZWZvcmUgJ2J1aWxkICdz ZXQtZW52CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGxhbWJkYSBfCisgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAoc2V0ZW52ICJDQyIgImdjYyIpKSkpKSkKKworICAgICAgKHN5 bm9wc2lzICJEaXN0cmlidXRlZCBmaW5hbmNpYWwgYWNjb3VudGluZyBkYXRhYmFzZSBkZXNpZ25l ZCBmb3IgbWlzc2lvbgorY3JpdGkgY2FsIHNhZmV0eSBhbmQgcGVyZm9ybWFuY2UiKQorCisgICAg ICAoZGVzY3JpcHRpb24gIkZpbmFuY2lhbCBhY2NvdW50aW5nIGRhdGFiYXNlIGRlc2lnbmVkIGZv ciBtaXNzaW9uIGNyaXRpY2FsCitzYWZldCB5IGFuZCBwZXJmb3JtYW5jZSB0byBwb3dlciB0aGUg ZnV0dXJlIG9mIGZpbmFuY2lhbAorc2VydmkgY2VzLiIpCisgICAgICAoaG9tZS1wYWdlICJodHRw czovL2dpdGh1Yi5jb20vdGlnZXJiZWV0bGVkYi90aWdlcmJlZXRsZS5naXQiKQorICAgICAgKHN1 cHBvcnRlZC1zeXN0ZW1zICU2NGJpdC1zdXBwb3J0ZWQtc3lzdGVtcykKKyAgICAgIChsaWNlbnNl IGxpY2Vuc2U6YXNsMi4wKSkpKQotLSAKMi4zOC4wCgo= --b1_UIsHCpKEYmfHAOU8AIYr3VZFCvbT4xGKgpZ01plY Content-Type: text/x-patch; name=0001-WIP-Add-a-zig-build-system.patch Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=0001-WIP-Add-a-zig-build-system.patch RnJvbSA0ZGQwMmYwZWE0MjFiYzFmNDA4MTM4MGU4NDdmMDQ4OTk4MTMxODczIE1vbiBTZXAgMTcg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AoaWNlLTkgbWF0Y2gpCisgICM6dXNlLW1vZHVsZSAoc3JmaSBzcmZpLTI2KQorICAjOmV4 cG9ydCAoemlnLWJ1aWxkLXN5c3RlbSkpCisKKworKGRlZmluZSAoZGVmYXVsdC16aWcpCisgICJS ZXR1cm4gdGhlIGRlZmF1bHQgemlnIHBhY2thZ2UuIgorICA7OyBMYXppbHkgcmVzb2x2ZSB0aGUg YmluZGluZyB0byBhdm9pZCBhIGNpcmN1bGFyIGRlcGVuZGVuY3kuCisgIChsZXQgKCh6aWcgKHJl c29sdmUtaW50ZXJmYWNlICcoZ251IHBhY2thZ2VzIHppZykpKSkKKyAgICAobW9kdWxlLXJlZiB6 aWcgJ3ppZykpKQorCisoZGVmaW5lICV6aWctYnVpbGQtc3lzdGVtLW1vZHVsZXMKKyAgOzsgQnVp bGQtc2lkZSBtb2R1bGVzIGltcG9ydGVkIGJ5IGRlZmF1bHQuCisgIGAoKGd1aXggYnVpbGQgemln LWJ1aWxkLXN5c3RlbSkKKyAgICAoZ3VpeCBidWlsZCBzeXNjYWxscykKKyAgICAsQCVnbnUtYnVp bGQtc3lzdGVtLW1vZHVsZXMpKQorCisoZGVmaW5lKiAoemlnLWJ1aWxkIG5hbWUgaW5wdXRzCisg ICAgICAgICAgICAgICAgICAgICM6a2V5CisgICAgICAgICAgICAgICAgICAgIHNvdXJjZQorICAg ICAgICAgICAgICAgICAgICAodGVzdHM/ICN0KQorICAgICAgICAgICAgICAgICAgICAodGVzdC10 YXJnZXQgI2YpCisgICAgICAgICAgICAgICAgICAgICh6aWctYnVpbGQtZmxhZ3MgJycoKSkKKyAg ICAgICAgICAgICAgICAgICAgKHBoYXNlcyAnJXN0YW5kYXJkLXBoYXNlcykKKyAgICAgICAgICAg ICAgICAgICAgKG91dHB1dHMgJygib3V0IikpCisgICAgICAgICAgICAgICAgICAgIChzZWFyY2gt cGF0aHMgJygpKQorICAgICAgICAgICAgICAgICAgICAoc3lzdGVtICglY3VycmVudC1zeXN0ZW0p KQorICAgICAgICAgICAgICAgICAgICAoZ3VpbGUgI2YpCisgICAgICAgICAgICAgICAgICAgIChp bXBvcnRlZC1tb2R1bGVzICV6aWctYnVpbGQtc3lzdGVtLW1vZHVsZXMpCisgICAgICAgICAgICAg ICAgICAgIChtb2R1bGVzICcoKGd1aXggYnVpbGQgemlnLWJ1aWxkLXN5c3RlbSkKKyAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAoZ3VpeCBidWlsZCB1dGlscykpKSkKKyAgIkJ1aWxkIFNP VVJDRSB1c2luZyBaaWcsIGFuZCB3aXRoIElOUFVUUy4iCisgIChkZWZpbmUgYnVpbGRlcgorICAg ICh3aXRoLWltcG9ydGVkLW1vZHVsZXMgaW1wb3J0ZWQtbW9kdWxlcworICAgICAgI34oYmVnaW4K KyAgICAgICAgICAodXNlLW1vZHVsZXMgIyRAKHNleHAtPmdleHAgbW9kdWxlcykpCisgICAgICAg ICAgKHppZy1idWlsZCAjOm5hbWUgIyRuYW1lCisgICAgICAgICAgICAgICAgICAgICAjOnNvdXJj ZSAjK3NvdXJjZQorICAgICAgICAgICAgICAgICAgICAgIzpzeXN0ZW0gIyRzeXN0ZW0KKyAgICAg ICAgICAgICAgICAgICAgICM6dGVzdC10YXJnZXQgIyR0ZXN0LXRhcmdldAorICAgICAgICAgICAg ICAgICAgICAgIzp6aWctYnVpbGQtZmxhZ3MgIyR6aWctYnVpbGQtZmxhZ3MKKyAgICAgICAgICAg ICAgICAgICAgICM6dGVzdHM/ICMkdGVzdHM/CisgICAgICAgICAgICAgICAgICAgICAjOnBoYXNl cyAjJHBoYXNlcworICAgICAgICAgICAgICAgICAgICAgIzpvdXRwdXRzICMkKG91dHB1dHMtPmdl eHAgb3V0cHV0cykKKyAgICAgICAgICAgICAgICAgICAgICM6c2VhcmNoLXBhdGhzICcjJChzZXhw LT5nZXhwCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKG1hcCBzZWFy Y2gtcGF0aC1zcGVjaWZpY2F0aW9uLT5zZXhwCisgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICBzZWFyY2gtcGF0aHMpKQorICAgICAgICAgICAgICAgICAgICAgIzpp bnB1dHMgIyQoaW5wdXQtdHVwbGVzLT5nZXhwIGlucHV0cykpKSkpCisKKyAgKG1sZXQgJXN0b3Jl LW1vbmFkICgoZ3VpbGUgKHBhY2thZ2UtPmRlcml2YXRpb24gKG9yIGd1aWxlIChkZWZhdWx0LWd1 aWxlKSkKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg c3lzdGVtICM6Z3JhZnQ/ICNmKSkpCisgICAgKGdleHAtPmRlcml2YXRpb24gbmFtZSBidWlsZGVy CisgICAgICAgICAgICAgICAgICAgICAgIzpzeXN0ZW0gc3lzdGVtCisgICAgICAgICAgICAgICAg ICAgICAgIzpndWlsZS1mb3ItYnVpbGQgZ3VpbGUpKSkKKworKGRlZmluZSogKGxvd2VyIG5hbWUK KyAgICAgICAgICAgICAgICAjOmtleSBzb3VyY2UgaW5wdXRzIG5hdGl2ZS1pbnB1dHMgb3V0cHV0 cyBzeXN0ZW0gdGFyZ2V0CisgICAgICAgICAgICAgICAgKHppZyAoZGVmYXVsdC16aWcpKQorICAg ICAgICAgICAgICAgICM6YWxsb3ctb3RoZXIta2V5cworICAgICAgICAgICAgICAgICM6cmVzdCBh cmd1bWVudHMpCisgICJSZXR1cm4gYSBiYWcgZm9yIE5BTUUuIgorCisgIChkZWZpbmUgcHJpdmF0 ZS1rZXl3b3JkcworICAgICcoIzp0YXJnZXQgIzp6aWcgIzppbnB1dHMgIzpuYXRpdmUtaW5wdXRz ICM6b3V0cHV0cykpCisKKyAgOzsgVE9ETzogc3VwcG9ydCBjcm9zcy1jb21waWxhdGlvbgorICA7 OyBJdCdzIGFzIHNpbXBsZSBhcyBhZGRpbmcgc29tZSBidWlsZCBmbGFncyB0byBgemlnLWJ1aWxk LWZsYWdzYAorICAoYW5kIChub3QgdGFyZ2V0KQorICAgICAgIChiYWcKKyAgICAgICAgIChuYW1l IG5hbWUpCisgICAgICAgICAoc3lzdGVtIHN5c3RlbSkKKyAgICAgICAgICh0YXJnZXQgdGFyZ2V0 KQorICAgICAgICAgKGhvc3QtaW5wdXRzIGAoLEAoaWYgc291cmNlCisgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICBgKCgic291cmNlIiAsc291cmNlKSkKKyAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICcoKSkKKyAgICAgICAgICAgICAgICAgICAgICAgICxAaW5wdXRzCisKKyAgICAg ICAgICAgICAgICAgICAgICAgIDs7IEtlZXAgdGhlIHN0YW5kYXJkIGlucHV0cyBvZiAnZ251LWJ1 aWxkLXN5c3RlbScKKyAgICAgICAgICAgICAgICAgICAgICAgIDs7IFRPRE86IGRvIHdlIG5lZWQg dGhpcz8KKyAgICAgICAgICAgICAgICAgICAgICAgICxAKHN0YW5kYXJkLXBhY2thZ2VzKSkpCisg ICAgICAgICAoYnVpbGQtaW5wdXRzIGAoKCJ6aWciICx6aWcpCisgICAgICAgICAgICAgICAgICAg ICAgICAgLEBuYXRpdmUtaW5wdXRzKSkKKyAgICAgICAgIChvdXRwdXRzIG91dHB1dHMpCisgICAg ICAgICAoYnVpbGQgemlnLWJ1aWxkKQorICAgICAgICAgKGFyZ3VtZW50cyAoc3RyaXAta2V5d29y ZC1hcmd1bWVudHMgcHJpdmF0ZS1rZXl3b3JkcyBhcmd1bWVudHMpKSkpKQorCisoZGVmaW5lIHpp Zy1idWlsZC1zeXN0ZW0KKyAgKGJ1aWxkLXN5c3RlbQorICAgIChuYW1lICd6aWcpCisgICAgKGRl c2NyaXB0aW9uCisgICAgICJaaWcgYnVpbGQgc3lzdGVtLCB0byBidWlsZCBaaWcgcGFja2FnZXMi KQorICAgIChsb3dlciBsb3dlcikpKQpkaWZmIC0tZ2l0IGEvZ3VpeC9idWlsZC96aWctYnVpbGQt c3lzdGVtLnNjbSBi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ZmluZSogKGJ1aWxkICM6a2V5ICh6aWctYnVpbGQtZmxhZ3MgJygpKQorICAgICAg ICAgICAgICAgICM6YWxsb3ctb3RoZXIta2V5cykKKyAgIkJ1aWxkIGEgZ2l2ZW4gWmlnIHBhY2th Z2UuIgorICAoc2V0ZW52ICJERVNURElSIiAib3V0IikKKyAgKGFwcGx5IGludm9rZQorICAgIGAo InppZyIgImJ1aWxkIgorICAgICAgIi0tZ2xvYmFsLWNhY2hlLWRpciIgInppZy1jYWNoZSIKKyAg ICAgICItcCIgIiIgIDs7IERvbid0IGFkZCAvdXNyCisgICAgICAiLS1wcmVmaXgtbGliLWRpciIg ImxpYiIKKyAgICAgICItLXByZWZpeC1leGUtZGlyIiAiYmluIgorICAgICAgIi0tcHJlZml4LWlu Y2x1ZGUtZGlyIiAiaW5jbHVkZSIKKyAgICAgICxAemlnLWJ1aWxkLWZsYWdzKSkpCisgIDs7IExl dCB0aGUgYnVpbGQgZmxhZ3MgZGVjaWRlIGlmIGl0IG5lZWRzIGAtRHJlbGVhc2Utc2FmZWAgb3IK KyAgOzsgYC1EcmVsZWFzZS1mYXN0YCBvciBhbnkgb3RoZXIuCisKKyhkZWZpbmUqIChjaGVjayAj OmtleSB0ZXN0cz8gIzphbGxvdy1vdGhlci1rZXlzKQorICAiUnVuIGFsbCB0aGUgdGVzdHMiCisg ICh3aGVuIHRlc3RzPworICAgIChzZXRlbnYgIkRFU1RESVIiICJ0ZXN0LW91dCIpCisgICAgKGFw cGx5IGludm9rZQorICAgICAgICAgICBgKCJ6aWciICJidWlsZCIgInRlc3QiCisgICAgICAgICAg ICAgIi0tZ2xvYmFsLWNhY2hlLWRpciIgInppZy1jYWNoZSIpKSkpCisKKyhkZWZpbmUqIChpbnN0 YWxsICM6a2V5IGlucHV0cyBvdXRwdXRzICM6YWxsb3ctb3RoZXIta2V5cykKKyAgIkluc3RhbGwg YSBnaXZlbiBaaWcgcGFja2FnZS4iCisgIChsZXQqICgob3V0ICAgIChhc3NvYy1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