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 +BTTFfwHE2K/cwEAgWs5BA (envelope-from ) for ; Mon, 21 Feb 2022 04:33:16 +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 OEdKE/wHE2Kt1QAA9RJhRA (envelope-from ) for ; Mon, 21 Feb 2022 04:33:16 +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 B4DE81A955 for ; Mon, 21 Feb 2022 04:33:15 +0100 (CET) Received: from localhost ([::1]:45990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLzRq-0006l6-OC for larch@yhetil.org; Sun, 20 Feb 2022 22:33:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33452) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLzRe-0006ka-OI for guix-patches@gnu.org; Sun, 20 Feb 2022 22:33:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40454) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nLzRe-0001z6-E0 for guix-patches@gnu.org; Sun, 20 Feb 2022 22:33:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nLzRd-0003xv-Th for guix-patches@gnu.org; Sun, 20 Feb 2022 22:33:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#35633] [PATCH] gnu: Add dolibarr. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 21 Feb 2022 03:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35633 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: swedebugia Cc: GNU Debbugs , 35633@debbugs.gnu.org Received: via spool by 35633-submit@debbugs.gnu.org id=B35633.164541435215200 (code B ref 35633); Mon, 21 Feb 2022 03:33:01 +0000 Received: (at 35633) by debbugs.gnu.org; 21 Feb 2022 03:32:32 +0000 Received: from localhost ([127.0.0.1]:34351 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLzR9-0003x1-OW for submit@debbugs.gnu.org; Sun, 20 Feb 2022 22:32:32 -0500 Received: from mail-qk1-f175.google.com ([209.85.222.175]:43926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLzR7-0003wj-Sf; Sun, 20 Feb 2022 22:32:30 -0500 Received: by mail-qk1-f175.google.com with SMTP id z66so9164338qke.10; Sun, 20 Feb 2022 19:32:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=LawLBY+iUEdB3RZlHfm0OZetCBGdFtt0lPLR2PS/Gag=; b=RWK99o+kEtyDj+lcVpVoOsTIwU78ra+oBvkmA+rZWKVwek+u++j4cdnH1+9zu1tCnK U55voigixvbwR3sbg4cibc9P2esljx2BTqQCWFeMdHfPpe6KZe8pcXmODd9QUcy0/u3R PjUyWA/k+q5AaFQZa+RISeToIMhl6f8spMIeQ+pqpUJyZ88JFPVaY+shvSajXxlSA5St p7J8Ebl6l0PvwlQ+dKNcAZcHMK/9qzZEsAGkYFPmZ+x/aRu+digaYh7CKYJ2KFIetSqp ZLZY5ZWPoF9R6tc/If4/4o0mPXcBQsDGRsyt/SdvWbQee8QWHl7JnUi/eyMzVxN38A1T dYow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=LawLBY+iUEdB3RZlHfm0OZetCBGdFtt0lPLR2PS/Gag=; b=JGqHuRiEumJpqW+yk/7bx6wbDJyNAil1sU2f+04ehfuGfEsfNeIwRif9RAKrUqant2 qQIjQAqUeg/NdQ1J05pOOXbVxiwKhS+/Jxc+jHvVZmMcfHtlbr0vnCSWz02iAiL6UX3Q Mdu4lVgwMP7JomSjKwY1kZe3mpXon9SqyZJYZdrYThyssEKSZmAgYDXAGjEeo66vb+H0 MFiUFRlCUsXbnbg6kp7XWiDqMZN1yrrUEyzLTDig56uCCaRp3s6XPpr6ZjBUbpTyxmgb bNupLXJ5B6HqdTrNThRnlLOq2hNUYLWS+nsY2gCUKHQVnorJrS5BvMe9DsTriQaKf/8m T5kQ== X-Gm-Message-State: AOAM532IThC9o5sb3QDsK7WWdr/h4pEOqJioT9aDnEwvb0mEhSEFKc20 3VpMNUi9JMkdCdlA3CEGHEPbPH5zshk= X-Google-Smtp-Source: ABdhPJzO4L/yKHUYmBH0EsottLhT2Bhruij/BMfYIeNvNW7vdrZ1zCfq7+ZdhNiup/GO9UO9VLVvwA== X-Received: by 2002:a05:620a:e0b:b0:60d:d4b3:6afa with SMTP id y11-20020a05620a0e0b00b0060dd4b36afamr11033114qkm.503.1645414344072; Sun, 20 Feb 2022 19:32:24 -0800 (PST) Received: from hurd (dsl-153-17.b2b2c.ca. [66.158.153.17]) by smtp.gmail.com with ESMTPSA id y15sm26479005qko.95.2022.02.20.19.32.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Feb 2022 19:32:23 -0800 (PST) From: Maxim Cournoyer References: Date: Sun, 20 Feb 2022 22:32:22 -0500 In-Reply-To: (swedebugia@riseup.net's message of "Wed, 8 May 2019 15:27:17 +0200") Message-ID: <87o830q4hl.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645414396; 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: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=LawLBY+iUEdB3RZlHfm0OZetCBGdFtt0lPLR2PS/Gag=; b=TVxU5+aCKMH4m7Z3a+8uHjKhOE7pVHSWfZPHBnRGmf3ySx/i2lgMo1t5O8gSBof0CnhS4J ZF0lJk3I1AwGizoVlMRKKnyuXw2sIEZ3TwYK8pQux5B20ikqMd2j4mPYuBrfhTTKIkUv6y PxGAYnrsgN8C0L1FmzK2w7pxF58NzbADHHeAw+AdONVoh41SSLo+Vh9XpwD/ErqOT4i5Or IScwlPdLlfznNOtl4iPbm5rGsM8tSJKGsm6o6UMjO0UANbyGrzDvHua3wLakmG4MU5Nh67 QR9KTJEBvnET6oSpR8n40Io/8/qW0b2RjN5dcha8ivu+iY+usYOH7c5L9AURAw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645414396; a=rsa-sha256; cv=none; b=V/MczWF3BFtt+FBy4nXhl/YN/7hM+j9ITk7+H+UPEsQzLuid2WB7s04+5NHioBTyhafazA 3nIWxos7TkYl8oR/a7zD+1tBLIEz5+bu9uy9ypYqWTrMxK1w/KxDhMOOyXYgKWfH+9LTTm 5jSlxRAB7is7BcIuUEJRHGyRmD3N3qTg+VshMlMi5u+8G7O/QBdyWhu81OYDZrs8kCIkFG mm+VQRY4GQg2lGcjwfklFcBI6EobWiBITnqH1Ce6QYPSzrue26F3mCzU052Y0gJPebo5b6 35sUAvSoP23KZ5Fwrj+PUEt6liIwQ2rvDiVnX62NfjjsL4Jrbk+3MDNvX1o6KQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=RWK99o+k; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: -2.03 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=RWK99o+k; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: B4DE81A955 X-Spam-Score: -2.03 X-Migadu-Scanner: scn1.migadu.com X-TUID: 3MH+IZnA9ZDl tags 35633 moreinfo thanks Hi swedebugia! It seems this had fallen into the cracks; apologies! swedebugia writes: > From 6250680633cec1752519c37301890d71fe56e874 Mon Sep 17 00:00:00 2001 > From: swedebugia > Date: Wed, 8 May 2019 15:03:51 +0200 > Subject: [PATCH] gnu: Add dolibarr. > > * gnu/packages/web.scm (dolibarr): New public variable. Without a service; this doesn't seem to be readily usable. In its current form, the package description could be simplified to use the copy build system, like so: --8<---------------cut here---------------start------------->8--- modified gnu/packages/web.scm @@ -5686,22 +5686,10 @@ (define-public dolibarr (sha256 (base32 "0505r6q84b0q7qx0fxcp0rklm2kw3d4qakwmlcgi0a3d04qzdvg6")))) - (build-system gnu-build-system) + (build-system copy-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - ;; No configure, build or tests - (delete 'configure) - (delete 'build) - (delete 'check) - (replace 'install - ;; There's no =E2=80=98install=E2=80=99 target. Install files = manually. - (lambda* (#:key outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (dol (string-append out "/lib/" ,name)) - (htdocs "htdocs")) - (copy-recursively htdocs (string-append dol "/" htdocs)) - #t)))))) + `(#:install-plan + (list `("htdocs" ,(string-append "lib/" ,name "/htdocs"))))) (inputs `(("php" ,php) ("mariadb" ,mariadb))) --8<---------------cut here---------------end--------------->8--- Another thing: bundled dependencies. The htdocs directory installed contains various bundled PHP/JavaScript libraries such as JQuery as well as fonts. These should ideally all be un-bundled, but that's a big endeavor. There are some packaging recipes in the upstream repo for RPM for example, that does some of that unbundling (for fonts an JQuery). This would be a good start; see: https://github.com/Dolibarr/dolibarr/blob/develop/build/rpm/dolibarr_fedora= .spec#L106 and https://github.com/Dolibarr/dolibarr/blob/develop/build/rpm/dolibarr_fedora= .spec#L275. A service and a system test would also be ideal; otherwise the usefulness of this package in Guix is very limited. If you are up to the challenge, please send an update! Otherwise, I'll close it in a few weeks to avoid having it languish here eternally. Thank you! Maxim