From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id aFnBNghHS2aIQgEAe85BDQ:P1 (envelope-from ) for ; Mon, 20 May 2024 14:50:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id aFnBNghHS2aIQgEAe85BDQ (envelope-from ) for ; Mon, 20 May 2024 14:50:17 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716209416; h=from:from:sender:sender:reply-to: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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=ToEyloR6sjkPvZGKezqLVSUtwokLhqotcAxJP8S2WH4=; b=a1sMoibZkkv6PiHN98licQBc0ApnwDGApH8n+JkuF4j+NmVrtoCWjmDJVJZoGCC9jVz0jI raWJJd5z2UOCrQOm1c9Md+jf/bLqefsZpz05BXk/qgfYsf9LiBzEdalktURodmel/YVMc+ CAavYvCAMELTQH0kWi7z+p2UoFF6u5c7TGVUKB53mScSA1DNHYsJyd5H2rKPllbBn2LBXd C6e4y2w+kBbxCJxlm58ajp4sRTrYJ+rjMW8LG9TxApFL09fmHwvYcalatCpT4HyeJmB1Yy Aoe8xao8kWaRMwf79ZgX1TDrGGUuCMV6OOeZLSTjnndEdcGkjvpwzsLY7qHVIA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716209416; a=rsa-sha256; cv=none; b=RuDD/r9q3DOmqwzq/PCprnXoDDfN01YxmVXscphRBTRYhVr/JKlfehqhjQMkkeLl8rIFFv T+S6HOSxtSqPXdfIoyWJZIsVVglqncIZDZMfDTz85eWNeFoJ3mKzFBYykTUaIqy3lSJxIl fMiJtCAlzinTPcqUlEJFSwe1t4RUq77074FekCEv/I9TSYTaNpuOgXXDDbp3s9wWdeqPo1 YRGHmCiFUzyCpe8cTqogSatLK3zBfIR7f3/ro9OreVYVFqcd9aWrkdcckEV5+a3Llm0iNZ zxSBkCI3gwl/pLD3waT0e6SfEdjdjuTLK77Z54805fjiH23O/eJylnUCwIi9Rw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" 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 89C072309 for ; Mon, 20 May 2024 14:50:16 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s92Sl-00048Z-B7; Mon, 20 May 2024 08:49:59 -0400 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 1s92Sj-00048Q-LU for guix-patches@gnu.org; Mon, 20 May 2024 08:49:57 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s92Sj-0003pi-ED for guix-patches@gnu.org; Mon, 20 May 2024 08:49:57 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s92Sn-0004IB-Nt for guix-patches@gnu.org; Mon, 20 May 2024 08:50:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69918] [PATCH v2] gnu: Add pharo-vm. References: <163fe58d525795ccdb3f24960655f036@lyrion.ch> In-Reply-To: <163fe58d525795ccdb3f24960655f036@lyrion.ch> Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 20 May 2024 12:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69918 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69918@debbugs.gnu.org Cc: dziltener@lyrion.ch, ngraves@ngraves.fr Received: via spool by 69918-submit@debbugs.gnu.org id=B69918.171620937916485 (code B ref 69918); Mon, 20 May 2024 12:50:01 +0000 Received: (at 69918) by debbugs.gnu.org; 20 May 2024 12:49:39 +0000 Received: from localhost ([127.0.0.1]:42503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s92SR-0004Hp-2H for submit@debbugs.gnu.org; Mon, 20 May 2024 08:49:39 -0400 Received: from 9.mo583.mail-out.ovh.net ([178.32.96.204]:57227) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s92SK-0004Hh-Ij for 69918@debbugs.gnu.org; Mon, 20 May 2024 08:49:38 -0400 Received: from director4.ghost.mail-out.ovh.net (unknown [10.108.9.217]) by mo583.mail-out.ovh.net (Postfix) with ESMTP id 4VjcpF43DTz1K9D for <69918@debbugs.gnu.org>; Mon, 20 May 2024 12:49:25 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-r5k27 (unknown [10.110.178.126]) by director4.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 370471FEA4; Mon, 20 May 2024 12:49:25 +0000 (UTC) Received: from ngraves.fr ([37.59.142.101]) by ghost-submission-6684bf9d7b-r5k27 with ESMTPSA id j65ECdVGS2Y0xRkAb+Urzg (envelope-from ); Mon, 20 May 2024 12:49:25 +0000 X-OVh-ClientIp: 81.67.146.208 Date: Mon, 20 May 2024 14:49:18 +0200 Message-ID: <20240520124921.7417-1-ngraves@ngraves.fr> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 5103985755846468133 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrvdeitddgfeefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffogggtgfesthekredtredtjeenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpeefjedutddvuedvffefgeeuveevleffgfffvdejfeehjeeijeeltdfhieehteffjeenucffohhmrghinhepshhquhgvrghkvhhmrdhorhhgpdhphhgrrhhordhorhhgnecukfhppeduvdejrddtrddtrddupdekuddrieejrddugeeirddvtdekpdefjedrheelrddugedvrddutddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopeeileeludekseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehkeefpdhmohguvgepshhmthhpohhuth X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches From: Nicolas Graves via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -2.36 X-Spam-Score: -2.36 X-Migadu-Queue-Id: 89C072309 X-Migadu-Scanner: mx11.migadu.com X-TUID: UnR7wa5RBa+C * gnu/packages/smalltalk.scm (pharo-vm): New variable. Change-Id: I7238a8e1e4602192a85772ef2f35081d267ec892 --- gnu/packages/smalltalk.scm | 67 +++++++++++++++++++++++++++++++++++++- 1 file changed, 66 insertions(+), 1 deletion(-) diff --git a/gnu/packages/smalltalk.scm b/gnu/packages/smalltalk.scm index 64146813d1f..a27237ef815 100644 --- a/gnu/packages/smalltalk.scm +++ b/gnu/packages/smalltalk.scm @@ -5,6 +5,7 @@ ;;; Copyright © 2016 Ludovic Courtès ;;; Copyright © 2018 Tobias Geerinckx-Rice ;;; Copyright © 2021 Maxime Devos +;;; Copyright © 2024 Daniel Ziltener ;;; ;;; This file is part of GNU Guix. ;;; @@ -23,6 +24,7 @@ (define-module (gnu packages smalltalk) #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix gexp) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system cmake) @@ -36,13 +38,17 @@ (define-module (gnu packages smalltalk) #:use-module (gnu packages fontutils) #:use-module (gnu packages gl) #:use-module (gnu packages glib) + #:use-module (gnu packages gtk) + #:use-module (gnu packages image) #:use-module (gnu packages libffi) #:use-module (gnu packages libsigsegv) #:use-module (gnu packages linux) #:use-module (gnu packages multiprecision) #:use-module (gnu packages pkg-config) #:use-module (gnu packages pulseaudio) - #:use-module (gnu packages xorg)) + #:use-module (gnu packages version-control) + #:use-module (gnu packages xorg) + #:use-module (gnu packages xdisorg)) (define-public smalltalk (package @@ -184,3 +190,62 @@ (define-public squeak-vm interactively extensible Web sites.") (home-page "http://squeakvm.org/") (license license:x11))) + +(define-public pharo-vm + (package + (name "pharo-vm") + (version "10.1.1") + (source + (origin + (method url-fetch) + (uri (string-append "http://files.pharo.org/vm/pharo-spur64-headless/Linux-x86_64/source/PharoVM-" version "-32b2be5-Linux-x86_64-c-src.tar.gz")) + (sha256 + (base32 + "1hbkvfrw57sz5nw48z64789yjcry9l1am4hmkndy9dd6i06n2c2n")))) + (build-system cmake-build-system) + (arguments + (list + #:configure-flags + #~(list + (string-append "-DPHARO_LIBRARY_PATH=" #$output "/lib") + "-DGENERATED_SOURCE_DIR=." + "-DALWAYS_INTERACTIVE=on" + "-DBUILD_IS_RELEASE=on" + "-DGENERATE_VMMAKER=off" ; FIXME: bootstrap chain to resolve + "-DGENERATE_SOURCES=off" ; FIXME: properly generate sources + "-DFEATURE_COMPILE_GNUISATION=on" + "-DBUILD_BUNDLE=off" + "-DWITHOUT_DEPENDENCIES=on" + (string-append "-DCMAKE_INSTALL_PREFIX=" #$output) + ;; add libraries of the project itself to rpath + (string-append "-DCMAKE_INSTALL_RPATH=" #$output "/lib") + "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE") + #:tests? #false ; no tests + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-rpath + (lambda _ + (substitute* "cmake/Linux.cmake" + (("set\\(CMAKE_C_FLAGS \"\\$\\{CMAKE_C_FLAGS\\}\ + -Wl,-rpath=\\.\"\\)") + "")))) + (add-after 'install 'really-install + (lambda _ + (install-file "./build/vm/pharo" + (string-append #$output "/bin")) + (for-each + (lambda (file) + (install-file file (string-append #$output "/lib"))) + (find-files "./build/vm" "\\.so"))))))) + (inputs + (list libffi + libgit2 + cairo + freetype + pixman + libpng + util-linux)) + (synopsis "This is the VM used by Pharo") + (home-page "https://www.pharo.org") + (description "This is the VM used by Pharo.") + (license license:expat))) -- 2.41.0