From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wMegE/2No2C5MgEAgWs5BA (envelope-from ) for ; Tue, 18 May 2021 11:50:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id eD4/D/2No2DaDAAAbx9fmQ (envelope-from ) for ; Tue, 18 May 2021 09:50:53 +0000 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 BB9F813A1C for ; Tue, 18 May 2021 11:50:52 +0200 (CEST) Received: from localhost ([::1]:43476 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liwNH-0007kW-QS for larch@yhetil.org; Tue, 18 May 2021 05:50:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36658) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liwHV-0003fj-89 for guix-devel@gnu.org; Tue, 18 May 2021 05:44:53 -0400 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21171) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liwHT-0001fS-2Z for guix-devel@gnu.org; Tue, 18 May 2021 05:44:53 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1621331086; cv=none; d=zohomail.com; s=zohoarc; b=ODNdBYyujO6RYdnZXCtonc7bOvubEnJH1KQBbJlsJ2wCPKSZmFvTlUjtylPUzUGQ9CCjpRSFQp0HZfhDqTKpmF2DDLzjdOOZWulOjbNhcp4rEyjqYWQoEi2e7DIf9Wi5i8SlvaOh9B3bW+6ojmJhsAwLC0KvdBx0KUaAhHhYh6Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1621331086; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=pmYJI9jswB8uLxcvrxcHMVcUpLeH1QfOfoHivrhxgvc=; b=FYQ+ynjseSoZH7RQGq6wmFlvFkPeGHtHTOKRiZXf0A1NrdZ2VI8bJJmT8uo+owNkTBlQe8sLwN4yr29oKKF+Fnjh5zPqSUnbg+8Z+0cr4tK5Y+HAulYLVH6vCdcELbx2Lqmmi9H6J5gJeDZZWKxp/aHRLHZUSxjF6vVmu/2LmmA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1621331086; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=pmYJI9jswB8uLxcvrxcHMVcUpLeH1QfOfoHivrhxgvc=; b=XzvvS0HkqplNomELtP+5txdpQGBE7A8DePFPCXDk3yG4IlHiHgLczs3M8FaZG3Zt WBGK8ZSTC6tbcgbbaEftX342cOecBjvrRKZ0RFVKh02wHC5aV/ucqwQspxxZ9dEHOgF GNE1TzMhsSwOkcXrH5e9q7B6elZXaYiyNciDWflQ= Received: from localhost (p54ad487d.dip0.t-ipconnect.de [84.173.72.125]) by mx.zohomail.com with SMTPS id 1621331084992355.1620981637941; Tue, 18 May 2021 02:44:44 -0700 (PDT) References: <20210518010111.7eea541a@tachikoma.lepiller.eu> User-agent: mu4e 1.4.15; emacs 27.2 From: Ricardo Wurmus To: Leo Prikler Subject: Re: Scala package In-reply-to: X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Tue, 18 May 2021 11:44:42 +0200 Message-ID: <875yzgjrzp.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621331452; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=pmYJI9jswB8uLxcvrxcHMVcUpLeH1QfOfoHivrhxgvc=; b=HuTK0hYXQDI9kbMdEKJ2R7gNAl6NwvfBQpscxLZfuQ0dU/5V7ZP7GEpwK6diR3/ebmRDpL PWBDhxBsL8nn7BtiNH5G9EovRcu4nU+u/y6i5fchKL5pkkQ2ZO8OLc1tgCj3WYWZg7W4oh SOmM6SROitUHgx3c0h9AzViTlY3LmmUj9YQkpGVuRjdrVf/NHymfTIlK6NAPjiL6sqme0g D5m4cjfwydiL8o9KdeLG3SC+KNiObrAsUlIV5fzwEcIzX7sPv8R9BLhc/rwi88X0PQ5Sy3 hVHi4p3RhjrPZ1w/tBm0pgr/OlPS/hScMT9cWG2iFemN/g9CW/DFPfig9F2h5A== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1621331452; a=rsa-sha256; cv=fail; b=pOmPe+Y8176Vz3xddwSlx0HOXx67pCxzvJyDveaO0qcKYQoQmVMDYQAk4pK5Zjhm/vz9n1 PySipNd7vfekD3ft5KvioXYgo1VPCmKJeQhNgqFNsEGT8/VE1plNnEbHKArPgekII3cDOW aEkTnSRI+PghKBTjt9XUIOAWDfddU7i5xnX5+BphjgbM4SXFEo8lJ8oUiyA0qpV7nszoBu 50WURjqn77Ci+stYfH0pv5E6Ar60fWS/zcb2u9QA1Y6CUpoqnlRL1FvvdSDCtyRctXUoJ6 DFDDP135Az92mt89wkoJLx6Ma89x0wPglDeIxCIlHeIDkVWqBmGeN6cuWrurGw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=XzvvS0Hk; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: 0.56 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=XzvvS0Hk; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: BB9F813A1C X-Spam-Score: 0.56 X-Migadu-Scanner: scn0.migadu.com X-TUID: JpIi0TL7L7pu Leo Prikler writes: > Hi Julien, > > Am Dienstag, den 18.05.2021, 01:01 +0200 schrieb Julien=20 > Lepiller: >> Hi Guix! >>=20 >> I have the attached file that build Scala, although it's not >> bootstrapped at all. It contains %binary-scala, a few=20 >> dependencies of >> Scala we haven't packaged yet, and the final scala, built from >> %binary-scala, without sbt (which requires Scala too). >>=20 >> Since I've tried and failed to bootstrap Scala for so long, I=20 >> think >> it's time to give up. I can't always create miracles. > > Some points relevant to bootstrapping: > - The last version, that ships "scalai" written in Java seems to=20 > be=20 > v1.4.0+4. Perhaps one can use scalai to bootstrap scalac=20 > within it. > - The last version, that does not "require" sbt is 2.11.x, > though with your workaround we can also build later versions. We tried building a clean bootstrap chain for Scala for years.=20 Back then I went down the rabbit hole and found that early scalac=20 is written in Pizza; but it turned out that Pizza is written in=20 Pizza and is released under the old Artistic License, which is=20 considered non-free. https://logs.guix.gnu.org/guix/2018-04-08.log#230002 https://logs.guix.gnu.org/guix/2018-04-09.log#073740 I pointed a branch at an old Scala commit that contains the old=20 Socos compiler source, which ostensibly are written in Java, but=20 actually are not: https://github.com/rekado/scala-bootstrap/tree/bootstrap This is at around version 1.4.0.4, as you wrote above. Since the old days Scala Native has grown considerably, and=20 perhaps we can reuse some of its native libraries. I=E2=80=99m not too=20 hopeful, because the bulk of it is still written in Scala,=20 obviously, but there are parts that are written in C / C++, which=20 might come in handy. https://github.com/scala-native/scala-native --=20 Ricardo