From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EKy1LtMYvmHfegAAgWs5BA (envelope-from ) for ; Sat, 18 Dec 2021 18:22:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id EG9vKtMYvmH8IwAAB5/wlQ (envelope-from ) for ; Sat, 18 Dec 2021 17:22:27 +0000 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 5F84E12C2E for ; Sat, 18 Dec 2021 18:22:27 +0100 (CET) Received: from localhost ([::1]:55222 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mydPe-0006k0-HK for larch@yhetil.org; Sat, 18 Dec 2021 12:22:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40648) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mydPW-0006i6-56 for guix-patches@gnu.org; Sat, 18 Dec 2021 12:22:18 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60426) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mydPG-00054Y-IY for guix-patches@gnu.org; Sat, 18 Dec 2021 12:22:13 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mydPG-0005SY-Ef for guix-patches@gnu.org; Sat, 18 Dec 2021 12:22:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52578] [PATCH] updating openldap and adding service definition References: In-Reply-To: Resent-From: Jean-Francois GUILLAUME Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 18 Dec 2021 17:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52578 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52578@debbugs.gnu.org Received: via spool by 52578-submit@debbugs.gnu.org id=B52578.163984809320925 (code B ref 52578); Sat, 18 Dec 2021 17:22:02 +0000 Received: (at 52578) by debbugs.gnu.org; 18 Dec 2021 17:21:33 +0000 Received: from localhost ([127.0.0.1]:43731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mydOm-0005RP-5K for submit@debbugs.gnu.org; Sat, 18 Dec 2021 12:21:32 -0500 Received: from smtp2.univ-nantes.fr ([193.52.82.19]:44230 helo=smtp-prv.univ-nantes.fr) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myX6G-0004px-Jf for 52578@debbugs.gnu.org; Sat, 18 Dec 2021 05:38:06 -0500 Received: from localhost (localhost [127.0.0.1]) by smtp-prv.univ-nantes.fr (Postfix) with ESMTP id 0BB3D85D7FD for <52578@debbugs.gnu.org>; Sat, 18 Dec 2021 11:37:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=univ-nantes.fr; s=mailv2; t=1639823879; bh=7rCaEdg/bvyg3VBArvhTz3IW1YVHQxtXIfRZym9jwJg=; h=Date:From:To:Subject:From; b=Rp7pLk62UjA8gSX4kZuzTHIXklblDa/GMh9QNP24f2SjUUPoKksnEIcnblN2LpM+Z s/XGQprcdiUmMQvsAb+RgUrtx++hoxxh3hzbgBl0pD95vv4oYnXcMEDK0t4OJOQn8m sSiX4DyMUaTtHdATlDItegcSPr8lhzYFoGTd+gBnVo+6Ne2ixFsLkQqJI3jgUWeevm qlSNxn+gZoD+C2y5jtFAeKkRPzk/DxZwzHnN/lqfbZaxNjdFokKBw1SDJSnQybL8Fr ClZXfiyKSntZGY+XzTjx4aa2qwJvfwohgEC1Tkd1iMxrulXPSCNE/+nhhLTVGISEfW XjWJu0ikyedkg== X-Virus-Scanned: Debian amavisd-new at smtp2.univ-nantes.fr Received: from smtp-prv.univ-nantes.fr ([127.0.0.1]) by localhost (smtp2.u12.univ-nantes.prive [127.0.0.1]) (amavisd-new, port 10024) with LMTP id w6KeKulzjmwP for <52578@debbugs.gnu.org>; Sat, 18 Dec 2021 11:37:58 +0100 (CET) Received: from webmail.univ-nantes.fr (webmail2-lmb.cprv.univ-nantes.prive [172.26.0.61]) by smtp-prv.univ-nantes.fr (Postfix) with ESMTP id D9D3985C717 for <52578@debbugs.gnu.org>; Sat, 18 Dec 2021 11:37:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=univ-nantes.fr; s=mailv2; t=1639823878; bh=7rCaEdg/bvyg3VBArvhTz3IW1YVHQxtXIfRZym9jwJg=; h=Date:From:To:Subject:From; b=pY3NWqmxDNuWMqvNUkDaxhDHwMp26DLAed9viUARoBm30VpfEnI1QyD/s8/B0ocrJ hhjw8bREhTQ2JYSBkDS03TN7Ok4mux52DvuE9j9W+QUKCD6H6JE4M4rlLp6DhhEpD7 fZGQ6G3tOes08vtmYIIAd9GCuuBcK5PrI8UoEdzJnkm8a6kvGRPBA0jUINrwo5ZZMz rj/uF8hBoeN8fTcw7R+z6zd7mxWfnPLWV/TpQJ+9wvg70j9jmngAWEZjLBVcz7qOn4 6bpkw3RKQ8vwAi93I0V6WudtrXUvg+PpDyvoq6i62PAtSNHOK3jkf4LrcYqg9kzhxr +vewkgxHP4bHQ== MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Date: Sat, 18 Dec 2021 11:37:58 +0100 From: Jean-Francois GUILLAUME Organization: UFR MEDECINE/FED 4203 SFR SANTE Message-ID: <272054126ba496f811756b19fc5e77fa@imap.univ-nantes.prive> X-Sender: Jean-Francois.Guillaume@univ-nantes.fr User-Agent: Roundcube Webmail/1.1.2 X-Mailman-Approved-At: Sat, 18 Dec 2021 12:21:31 -0500 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=1639848147; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=7rCaEdg/bvyg3VBArvhTz3IW1YVHQxtXIfRZym9jwJg=; b=dNmIK7R7a5mvx22K6SY5PIbRhdtRufR+WF4g3uhvPfEsiFqyFIsOy5IP0pjWXRefASDJIY J8CSRgH33JodtIFBuPFNBqseYCXz3o9pFvJsLk0Ugl+iVdDv/Az0mzHUWDyNfS9qPLJ5W3 yNZGpEg3IJt7o5Q2lMNThoH+/py4J6C97pPKb5faQbqUTQKS+8dT72SBSo/wPe0QkEwByz u/8fVxpgtyRsPfqXn/agPGw+iJmDY/CViLNkzS1bXrz8un1yoDAe5zMbuaQm4I0UkEJYr4 QpD8p7DMAw66gYRlajhtlSDajjedY+Rc1hpNCwwYZqVenKuOjJ2kaLVzZ0H1dA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639848147; a=rsa-sha256; cv=none; b=NVPBrOdzpnVN2WbhAgfLPeKZfCoc94CfQH0x9oyCUFQ9A9e0kHgKCNTPw3HtuS+zqsWa6S 2hpnfp2bUp8CvxihfXPqbtuj6yAFEMne3pnsoDHP1S5LULMwcTyJs/TgNL+ZEYB8zh1FIk 0olgv0AVjhszUujOSOU67its3UNpeba1vNXA9GpP0j4aJoz+WmOmJ31ozurRdxcooZ63gA taVILTldcyWXM+sZvxjnBH8v5FbqNrpSMvobF1RCsdWdhrImj8P70K9MjEctIwofAr5mpF jlOAVUK9Yo+8nt4v0JYHVyyTqtyDl7lT1UKsSOJr7hQBj2/vV/EOMY7OaQ938g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=univ-nantes.fr header.s=mailv2 header.b=Rp7pLk62; dkim=fail ("headers rsa verify failed") header.d=univ-nantes.fr header.s=mailv2 header.b=pY3NWqmx; dmarc=fail reason="SPF not aligned (relaxed)" header.from=univ-nantes.fr (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: -3.71 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=univ-nantes.fr header.s=mailv2 header.b=Rp7pLk62; dkim=fail ("headers rsa verify failed") header.d=univ-nantes.fr header.s=mailv2 header.b=pY3NWqmx; dmarc=fail reason="SPF not aligned (relaxed)" header.from=univ-nantes.fr (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: 5F84E12C2E X-Spam-Score: -3.71 X-Migadu-Scanner: scn0.migadu.com X-TUID: CO8b5Ho8XW9u Hi, > A single "--disable-static" should be suficient. Indeed, copy-paste from our local repository went wrong. > is this speculation on what's necessary for cross-compilation, or has=20 > it been determined these flags are necessary? These were necessary with the old autoconf in <=3D 2.5 realeases. It's=20 mostly a leftover from the older definition already in guix. > Why? Stripping was sometime leading to crash of the build on my side. > This is the default, no need to mention it. True, leftover from when i needed the build to be monothread to see=20 where it failed. > You can use ,(cc-for-target) here. Also, CC can be set in #:make-flags. Ok, i will look into it. > That's a very terse description --- is it a server, a client=20 > application, programming APIs for communicating with a server, or all=20 > of these? Also, no need to mention it's free, everything in Guix is=20 > free. I'll be honest, it's a copy-paste from the already defined package. I'll=20 update it to be more meaningfull. > What's the reason for defining multiple versions of openldap? Usually,=20 > it is only necessary to keep the latest version of a package (with some= =20 > rare exceptions). This is mostly another case of copy-paste from our local repository went=20 wrong. > A copyright + license header is missing, and this file needs to be=20 > added to Makefile.am (or local.mk, I'm not sure about the details). Ok, i will look into it. > This seems unlikely to compile, what's the space doing here? Well, we use this in our local guix infrastructure and it doesn't=20 complain, nor does our building of ldap server vms with guix system=20 build. > Something I'm missing here, is some documentation. As it is, this=20 > openldap service isn't documented anywhere, so nobody would figure out=20 > it even exists, unless they search in the source code. True, forgot about this, my bad. Could you please point me to an example=20 ? > As-is, this service would be run as root, which is very suboptimal from= =20 > a security perspective. Consider running it as a separate user & group,= =20 > and if feasible in a container (the latter is optional but would be=20 > great). True, i'll try to get it work with it's own user and group. > I don't see the point in making this customisable. Why would anyone=20 > want to change the log locations or location of the pid file? Unless=20 > there's some compelling reason otherwise, I'd prefer to keep complexity= =20 > down by not making this configurable. This allow us to run multiple instance of this service on the same=20 machine (granted you also change the storage directory slapd.conf). > Allowing writing the configuration with configuration records would be=20 > preferred (with an 'extra-content'-style escape hatch, because it would= =20 > probably be infeasible to support every single configuration option of=20 > openldap, but some basic options like =E2=80=98which network port to bind= =20 > to=E2=80=99 should be configurable in Scheme). Well this is beyond my current abilities. > This service probably requires a network interface, so loopback might=20 > be required. Also, why is user-processes included? I know many services= =20 > include it, but it doesn't appear to be documented anywhere when=20 > user-processes must be added to 'requirement'. True. From my understanding, when you reach user-processes you're in the=20 late stage of booting your system and everything network-wise should be=20 available. > These parentheses are lonely, consider moving the parenthese to right=20 > after openldap-service-type, to keep the style consistent in Guix. Leftovers from our local repo, we rely a bit to much on indentation to=20 help us have a better view of where blocks start and stop. > What do you mean with =E2=80=98does not work inside guix=E2=80=99? For some strange reasons, when the tests are run by guix build they do=20 not properly clean after each steps and ends up failing. If you do the=20 same inside a guix environment test work properly. And i think some=20 tests need some kinds of network connection but that could be on another=20 package. Sorry for the messy patch. Best, --=20 Cordialement, Jean-Fran=C3=A7ois GUILLAUME Plateforme Bioinformatique BiRD T=C3=A9l. : +33 (0)2 28 08 00 57 www.pf-bird.univ-nantes.fr Inserm UMR 1087/CNRS UMR 6291 IRS-UN - 8 quai Moncousu - BP 70721 44007 Nantes Cedex 1