From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +NHUGi3A/WGmQAEAgWs5BA (envelope-from ) for ; Sat, 05 Feb 2022 01:09:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +OENGC3A/WGPswAA9RJhRA (envelope-from ) for ; Sat, 05 Feb 2022 01:09:17 +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 6D9683C417 for ; Sat, 5 Feb 2022 01:09:16 +0100 (CET) Received: from localhost ([::1]:57208 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nG8df-00056a-7i for larch@yhetil.org; Fri, 04 Feb 2022 19:09:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nG8dS-000569-SB for guix-patches@gnu.org; Fri, 04 Feb 2022 19:09:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39351) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nG8dS-0005q9-Iq for guix-patches@gnu.org; Fri, 04 Feb 2022 19:09:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nG8dS-00087Y-FD for guix-patches@gnu.org; Fri, 04 Feb 2022 19:09:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53609] [PATCH v2 1/4] gnu: Add perl-5.14. References: <8735l7hi2k.fsf@elephly.net> In-Reply-To: <8735l7hi2k.fsf@elephly.net> Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 05 Feb 2022 00:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53609 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53609@debbugs.gnu.org Cc: Ricardo Wurmus Received: via spool by 53609-submit@debbugs.gnu.org id=B53609.164401971831158 (code B ref 53609); Sat, 05 Feb 2022 00:09:02 +0000 Received: (at 53609) by debbugs.gnu.org; 5 Feb 2022 00:08:38 +0000 Received: from localhost ([127.0.0.1]:33240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nG8d3-00086S-M1 for submit@debbugs.gnu.org; Fri, 04 Feb 2022 19:08:38 -0500 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nG8d0-00086A-Aj for 53609@debbugs.gnu.org; Fri, 04 Feb 2022 19:08:36 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1644019710; cv=none; d=zohomail.com; s=zohoarc; b=AOJUMZHDzgwIbMc49ovGQi1Y25X5RkHSLQ64sEEBZarY9+cg+x298CsF68hg2vFJk1Vqadb86E2XOj8a00PVz5Nocd7byzVLg/I5/FN5CvCMCfnaZulaGcY59xo03JPg2rvPkbdGJ7iSyOoSi9iWPfqe5c7/u0mnwpP+5LRTvuY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1644019710; h=Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=SvOYQ/NeSPALMqoremiy9p05uqfJhNZ4nwS0v2KQcss=; b=QBilVSNy1s5YCxiLoIFwW3I1iYUVeEBO1cNEfSYA5tpuLf6VVTrQvVaojK4GBg4ThUGINI9mFwM4OC9A+ntHhR420hGGcM93SV9Na21aDrcuyDQIMbtXGnzBsTKs+j7L5XEErRcnmELJ51z71FKBl3T/0/UWI06Pt6TO3kR9Wi0= 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= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1644019710; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Transfer-Encoding; bh=SvOYQ/NeSPALMqoremiy9p05uqfJhNZ4nwS0v2KQcss=; b=al6f5bDX+3h42kaTT6BT7b8oJvm+1xpB3JpMWTOEScKB7OaYN/sSfXoKh6OTxDQn Dr9RkvwTqWrSKOI2SdK6wgGXlX9Y+R8iaMVC7V2+dWrWzl22z/m413zTj5cs17c2GXn aqHKNESVQ5NbT4+zrOf64veyc68Ev/lHqqw/PTwo= Received: from localhost (p54ad4dac.dip0.t-ipconnect.de [84.173.77.172]) by mx.zohomail.com with SMTPS id 1644019708968898.1403322518346; Fri, 4 Feb 2022 16:08:28 -0800 (PST) From: Ricardo Wurmus Date: Sat, 5 Feb 2022 01:08:20 +0100 Message-Id: <20220205000823.2680-1-rekado@elephly.net> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-ZohoMailClient: External 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1644019757; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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:dkim-signature; bh=SvOYQ/NeSPALMqoremiy9p05uqfJhNZ4nwS0v2KQcss=; b=qmygoS2XVTTKbWh1EPEFXnMTSp287sOTMpNc+208ev5fiGg+20VfEO8ui/O6VInx6lWEya MtmOyBDO92A8aDwuRYp4uaJnVGWUbwyVPsS6DRIDrkh+8QVgOkb6kGb+6HLDGgjNETUeQo q8xbtKJcpXiLEghtQCqpj6oBSlgUf2zUeUSRnNWmnxjUV0DuOCiQou66TRx/m+HfLIW20u c2pHL2+XLcso9K2xTKSDq4Gy9jxbl09IXO0AjwRMKMK6BZXjmpWfkzSKya7Dsr9WN4I/KD DAX8H63c6MkokWntZO+Iskx3CLnnzjk7rV56Ju7tTuZ0jTv8M1ZCBFC2v5QEHA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1644019757; a=rsa-sha256; cv=fail; b=AzXdtwmxDaA6WG55hp9f7H/YdwKRtp0A7V4SOlj/90K+pRruErTZ1OWGv4tsOiKONW3Jhx 9NOgN+Txr8Ufl7dYGY6Qt1+ahcbZMgUgQRgfATCmxfsTlcTrkj86CiwS8rsSBivl/BK9jM CKoBGkHlvEFAy+QtFBCW19SBe9TyXOny4QB/BRbxvF9HjwVSIU6MHQ+EMAN3vsc6ZOPyIY mxLU8TVxP5j2agm64yjVFbsWL9J9gwVdUbboej/yODnRG2jbSpcJ3pz+amGEgpz30swd2N XyG21tQT5bdAgwCtd0OvQgaS3dftTm1NwNVk5miVrisV8dtSnBmZX4nYXWoNLQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=al6f5bDX; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); dmarc=none; 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-Migadu-Spam-Score: 0.37 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=al6f5bDX; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); dmarc=none; 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-Migadu-Queue-Id: 6D9683C417 X-Spam-Score: 0.37 X-Migadu-Scanner: scn1.migadu.com X-TUID: QBLnhCaA/HyO * gnu/packages/perl.scm (perl-5.14): New variable. --- gnu/packages/perl.scm | 73 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index 069c2c6e2e..d6ca055147 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -65,6 +65,7 @@ (define-module (gnu packages perl) #:use-module (gnu packages databases) #:use-module (gnu packages fontutils) #:use-module (gnu packages freedesktop) + #:use-module (gnu packages gcc) #:use-module (gnu packages gd) #:use-module (gnu packages gl) #:use-module (gnu packages gtk) @@ -258,6 +259,78 @@ (define-public perl (home-page "https://www.perl.org/") (license license:gpl1+))) ; or "Artistic" +(define-public perl-5.14 + (package + (name "perl") + (version "5.14.4") + (source (origin + (method url-fetch) + (uri (string-append "mirror://cpan/src/5.0/perl-" + version ".tar.gz")) + (sha256 + (base32 + "1js47zzna3v38fjnirf2vq6y0rjp8m86ysj5vagzgkig956d8gw0")) + (patches (search-patches + "perl-5.14-no-sys-dirs.patch" + "perl-5.14-autosplit-default-time.patch" + "perl-5.14-module-pluggable-search.patch")))) + (properties `((release-date . "2013-03-10"))) + (build-system gnu-build-system) + (arguments + '(#:tests? #f + #:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (libc (assoc-ref inputs "libc"))) + ;; Use the right path for `pwd'. + (substitute* "dist/Cwd/Cwd.pm" + (("/bin/pwd") + (which "pwd"))) + + (invoke "./Configure" + (string-append "-Dprefix=" out) + (string-append "-Dman1dir=" out "/share/man/man1") + (string-append "-Dman3dir=" out "/share/man/man3") + "-de" "-Dcc=gcc" + "-Uinstallusrbinperl" + "-Dinstallstyle=lib/perl5" + "-Duseshrplib" + (string-append "-Dlocincpth=" libc "/include") + (string-append "-Dloclibpth=" libc "/lib") + + ;; Force the library search path to contain only libc + ;; because it is recorded in Config.pm and + ;; Config_heavy.pl; we don't want to keep a reference + ;; to everything that's in $LIBRARY_PATH at build + ;; time (Binutils, bzip2, file, etc.) + (string-append "-Dlibpth=" libc "/lib") + (string-append "-Dplibpth=" libc "/lib"))))) + + (add-before 'strip 'make-shared-objects-writable + (lambda* (#:key outputs #:allow-other-keys) + ;; The 'lib/perl5' directory contains ~50 MiB of .so. Make them + ;; writable so that 'strip' actually strips them. + (let* ((out (assoc-ref outputs "out")) + (lib (string-append out "/lib"))) + (for-each (lambda (dso) + (chmod dso #o755)) + (find-files lib "\\.so$")))))))) + (native-inputs + (list gcc-7)) + (native-search-paths (list (search-path-specification + (variable "PERL5LIB") + (files '("lib/perl5/site_perl"))))) + (home-page "https://www.perl.org/") + (synopsis "Implementation of the Perl programming language") + (description + "Perl is a general-purpose programming language originally developed for +text manipulation and now used for a wide range of tasks including system +administration, web development, network programming, GUI development, and +more.") + (license license:gpl1+))) + (define-public perl-algorithm-c3 (package (name "perl-algorithm-c3") -- 2.34.0