From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id AGALOiGRJGQC2AAASxT56A (envelope-from ) for ; Wed, 29 Mar 2023 21:27:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kFQJOiGRJGRLhQAA9RJhRA (envelope-from ) for ; Wed, 29 Mar 2023 21:27:29 +0200 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 6D788164B3 for ; Wed, 29 Mar 2023 21:27:29 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phbRz-0006cy-LD; Wed, 29 Mar 2023 15:27:15 -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 1phbRw-0006c7-OE for guix-patches@gnu.org; Wed, 29 Mar 2023 15:27:13 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1phbRm-0008Us-33 for guix-patches@gnu.org; Wed, 29 Mar 2023 15:27:12 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1phbRl-0001mI-Lx for guix-patches@gnu.org; Wed, 29 Mar 2023 15:27:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62424] [PATCH] gnu: Add lazarus. Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 29 Mar 2023 19:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62424 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: , <62424@debbugs.gnu.org> Received: via spool by 62424-submit@debbugs.gnu.org id=B62424.16801179686754 (code B ref 62424); Wed, 29 Mar 2023 19:27:01 +0000 Received: (at 62424) by debbugs.gnu.org; 29 Mar 2023 19:26:08 +0000 Received: from localhost ([127.0.0.1]:55018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phbQu-0001ks-A6 for submit@debbugs.gnu.org; Wed, 29 Mar 2023 15:26:08 -0400 Received: from knopi.disroot.org ([178.21.23.139]:55866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phbQp-0001kg-QW for 62424@debbugs.gnu.org; Wed, 29 Mar 2023 15:26:06 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 71F374468E; Wed, 29 Mar 2023 21:26:02 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a4iuThqXZ6HH; Wed, 29 Mar 2023 21:26:01 +0200 (CEST) Content-Type: multipart/signed; boundary=59ee820b8e5208fb9008ebf2cf5f315456767e7316c7f3bd4f18ba9c138f; micalg=pgp-sha512; protocol="application/pgp-signature" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1680117961; bh=U/n/MFsxagHGP398fV8z+NR0yeWhtGJG2NhgQdFzNrU=; h=Date:Subject:From:To:References:In-Reply-To; b=VkQC0naLN/YhKMcUQa9Cw1PTlCFzoZJDxkBYBiIU22shje8bItWjjovceSFVtAsI3 3He3xfRencBgThD7FurGa/FTWnLQ0pDw1334KkLXKvus8nskqSZNF2pUaiBglDDJxd JUbOBe4gBfrqytngfO3jhMmbALyQSOkuff70WIhkCwurpv3UNbj7/NqCKhs9US2iu5 v/HrjXZNMRP5MOKQpa3rtoSq0mt0Hn3CMKBUF5GspaTWH1e+mlMUtiS1amGMLWDNp4 jnX806v1/zoSO6hoGU5Rx+qw8sIXPcY1I0dEK3YzbrOjJ+HCtJb/x1L/fnRNEaTboX Y0rkovsZNLAWw== Date: Wed, 29 Mar 2023 20:26:00 +0100 Message-Id: References: <20230323101604.17976-1-dannym@scratchpost.org> In-Reply-To: <20230323101604.17976-1-dannym@scratchpost.org> 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: "\(" X-ACL-Warn: , "\( via Guix-patches" From: "\( 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680118049; a=rsa-sha256; cv=none; b=iJpdNv6ycTyqNFwjXjXGAfZdZDSE/xqwi5/9cG/rnQYEZcW+ofvD7hH7ZhyKp20+MAgXiv IzZPLGhWyOZtCoGH1KOHiwBZffccRcfbe9mL01MjL0iaiyieyi1j6/LfQQQYmIOG4UzsMn 6CU0oBb7lpECnf6VCG1gbpBuwbCCWIVy6OjuQta9bhY8/RJINFWV65qWmLCV0xrOI05iN0 XcT/m8M8DRWY61tC5c1YdIhM2Vj6hjI+2bYlb51zsnR3hO1Pv0KAnFwSQo6QLbmSpPLK1/ i/l6loev9jSTAlPqgAlUSGLCtRxSiA00wdVFzfHAtMckYAykfQxdOigZq5SO3w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=VkQC0naL; 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=1680118049; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:content-type:content-type: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:dkim-signature; bh=+aUKMiSgksRf3ntA90TUgJOIqMh+Sk07O6TovSha+v8=; b=pMuuUBxamEMOmSO22gbrLW8aq6C1W7ATCoKGl4XYDd195gWtoFu66X/z8GGjuVPXxwSAB8 pZwj9HzZw2EtAsUJqCFzsFR0B93sX49KGV58dVO/tn12wAaaE6/dC853V8f7MM4Dxr2Ct4 6dgYygK9h+frQwIA1575H084DyMWcG/GJ6rP+UqyHAWL2Ud3VYB2FCeuWuSMZEM2jeeiVK Uq0x6SVJ2+U/tnpftMfJEn/ldtx9rJRsxTKan2Y/lz9YVQm+cU/UkYtQ5xhallPAry+wkp Df/OyB0EWVvvx7PpUhREYlk4MNHNqmR94Zvr+9RMNaO+bzTreEzU36bKss8iVw== X-Migadu-Spam-Score: -1.82 X-Spam-Score: -1.82 X-Migadu-Queue-Id: 6D788164B3 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=VkQC0naL; 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" X-TUID: KOKwe9iJNzv6 --59ee820b8e5208fb9008ebf2cf5f315456767e7316c7f3bd4f18ba9c138f Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Heya, Adding on to what Maxim said: On Thu Mar 23, 2023 at 10:16 AM GMT, wrote: > + (arguments > + `(#:tests? #f ; No tests exist > + #:phases > + (modify-phases %standard-phases > + (delete 'configure) > + (replace 'build > + (lambda* (#:key inputs outputs #:allow-other-keys) > + ;; RUNPATH -k-rpath=3D > + ;; -Xr rlink-path > + (let* ((libdirs > + (map (lambda (x) > + (assoc-ref inputs x)) > + '("glib" "gdk-pixbuf" "gtk+" "libx11" > + "libx11" "pango" "cairo" "atk"))) > + (libs (append > + (map (lambda (name) > + (string-append "-Fl" name "/lib")) > + libdirs) > + (map (lambda (name) > + (string-append "-k-rpath=3D" name "/lib= ")) > + libdirs)))) > + (setenv "LAZARUS_LIBPATHS" > + (string-append ;"-XD " > + (string-join libs " "))) > + (setenv "MAKEFLAGS" > + (string-append "LHELP_OPT=3D" > + (string-join libs "\\ ")))) > + (setenv "INSTALL_PREFIX" (assoc-ref outputs "out")) > + (invoke "make" "bigide")))))) Please make sure you use the new-ish LIST/GEXP style for ARGUMENTS; also, m= uch of your modified BUILD phase could be replaced by modifying #:MAKE-FLAGS, a= nd LIBS could be generated in a much simpler way with FOLD from (SRFI SRFI-1): --- > + (arguments > + (list #:tests? #f ;no tests > + #:make-flags > + #~(begin > + (use-modules (srfi srfi-1)) > + (let* ((lib-dirs > + (list #$@(map this-package-input > + '("glib" "gdk-pixbuf" "gtk+" > + "libx11" "pango" "cairo" "atk")))= ) > + (lib-flags > + (fold (lambda (pkg flags) > + (cons* (string-append "-Fl" pkg "/lib") > + (string-append "-k-rpath=3D" pkg "= /lib") > + flags)) > + lib-dirs))) > + (list (string-append "LAZARUS_LIBPATHS=3D" > + (string-join lib-flags)) > + (string-append "LHELP_OPT=3D" > + (string-join lib-flags "\\ ")) > + (string-append "INSTALL_PREFIX=3D" #$output)))) > + #:phases > + #~(modify-phases %standard-phases > + (delete 'configure) > + (replace 'build > + (lambda _ > + (invoke "make" "bigide")))))) --- Note that I have not tested that this modification actually works, but I'd = be surprised if it didn't. -- ( --59ee820b8e5208fb9008ebf2cf5f315456767e7316c7f3bd4f18ba9c138f Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEE6Vh10NblKE5doNlW7ImHg/nqI20FAmQkkMkACgkQ7ImHg/nq I23pngwAkqqgi2ACBRKmRdzZi5kkKLnLY6IvyqYiaZ3OKajO5tM6HJaZ/uKKB09r K3edddYHZzUSDHF5ufcJyd0ZavF9tj/yHsUGHoaym7G/U1G8tTith+zA6kFvJtTp CvJtzS1VIBDeunTa28RobO1CTS6WXtsv+1m8M4lB//Mko/qpyqZY6yAScWC0qJNO TGz8eKz8d0KQ4USQY88PV7SeZk8s4bz5GuH/t2kzAm3RhbzkyjELAGlK27nfsMx7 yzI56KSpysc8O2oGKvG2bc6p+PDtCVk3vKC47etB3qyKTViLdBrOyBSmi7j9EbQQ AZSQ5+zzoUV7PRkx5vSFw/kiu3hIsLbfYbNLL7WfL3vkCm891BoS6PrdFf1bgRKK 4/fnfjVP2OnBtpfc/8FtW/3fYUHIllFh1oGq596VlI6n7cW4r7ekG1Qt9RjU8ISl t1QqaU+vLhOXFMx8rwz/jYE02hod/VRzrfqCaxae/DIHeQuLytVLRyga1Bo+lLrC jdouNkvM =c0Dq -----END PGP SIGNATURE----- --59ee820b8e5208fb9008ebf2cf5f315456767e7316c7f3bd4f18ba9c138f--