From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: swedebugia <swedebugia@riseup.net>
Cc: GNU Debbugs <control@debbugs.gnu.org>, 35633@debbugs.gnu.org
Subject: [bug#35633] [PATCH] gnu: Add dolibarr.
Date: Sun, 20 Feb 2022 22:32:22 -0500 [thread overview]
Message-ID: <87o830q4hl.fsf@gmail.com> (raw)
In-Reply-To: <d4c99b9e-c266-4307-d9b8-c297e50f8701@riseup.net> (swedebugia@riseup.net's message of "Wed, 8 May 2019 15:27:17 +0200")
tags 35633 moreinfo
thanks
Hi swedebugia!
It seems this had fallen into the cracks; apologies!
swedebugia <swedebugia@riseup.net> writes:
> From 6250680633cec1752519c37301890d71fe56e874 Mon Sep 17 00:00:00 2001
> From: swedebugia <swedebugia@riseup.net>
> 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 ‘install’ 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
prev parent reply other threads:[~2022-02-21 3:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-08 13:27 [bug#35633] [PATCH] gnu: Add dolibarr swedebugia
2019-05-08 14:25 ` swedebugia
2022-02-21 3:32 ` Maxim Cournoyer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o830q4hl.fsf@gmail.com \
--to=maxim.cournoyer@gmail.com \
--cc=35633@debbugs.gnu.org \
--cc=control@debbugs.gnu.org \
--cc=swedebugia@riseup.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.