From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 08 03:21:07 2018 Received: (at submit) by debbugs.gnu.org; 8 Mar 2018 08:21:07 +0000 Received: from localhost ([127.0.0.1]:50139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1etqnS-0006Gq-3p for submit@debbugs.gnu.org; Thu, 08 Mar 2018 03:21:07 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1etqnQ-0006Fy-3L for submit@debbugs.gnu.org; Thu, 08 Mar 2018 03:21:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etqnJ-0003m1-SH for submit@debbugs.gnu.org; Thu, 08 Mar 2018 03:20:58 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44411) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1etqnJ-0003lw-O6 for submit@debbugs.gnu.org; Thu, 08 Mar 2018 03:20:57 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35925) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etqnI-00062G-7t for guix-patches@gnu.org; Thu, 08 Mar 2018 03:20:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etqnH-0003lC-2G for guix-patches@gnu.org; Thu, 08 Mar 2018 03:20:56 -0500 Received: from tobias.gr ([2001:470:cc92::1]:53476) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1etqnG-0003kL-Mv for guix-patches@gnu.org; Thu, 08 Mar 2018 03:20:54 -0500 Received: by tobias.gr (OpenSMTPD) with ESMTP id c885fcb4 for ; Thu, 8 Mar 2018 08:20:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to :subject:date:message-id:mime-version:content-transfer-encoding; s=2018; i=me@tobias.gr; bh=q6IH14wSr43UCtGhvsRKzwyXgbeZ+BfMEh8W D348JG0=; b=nxr+J6sCyqOaU+wq3m8+0SgZyDtUVGRh+4TVu+55iw/MNuqXBcf6 z9CLOOZEQiL4A59vQqKl3ukOtVD0EKnL51pjbBGnISaqVPGz0FDp5AUCVoJfWm2r cQ2ZCtrzwPwRe/YOrHormYECXHtptfHCGJ8gsWc4EoqxZMJKHBkVybopAZwLyG6n xsoKzkUlM2/JxDxpeArX6BCyraFixPs+W11IBcbvrRehGOrm1xmLiyk2sTnqG8Ko pdTrX1DXvevIn0Z0oBKI0hHaPWVwbYT6+Cf1npN8KShdsedfaXpdL247Nmb5qTol 9z+z6VXP252iI37G4Ktev6ug0lms/sgn2A== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 2f158e3d (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Thu, 8 Mar 2018 08:20:49 +0000 (UTC) From: Tobias Geerinckx-Rice To: guix-patches@gnu.org Subject: [PATCH] gnu: Add nsd. Date: Thu, 8 Mar 2018 09:20:50 +0100 Message-Id: <20180308082050.9855-1-me@tobias.gr> X-Mailer: git-send-email 2.16.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) * gnu/packages/dns.scm (nsd): New public variable. --- Guix, Have this two-year-old patch I found. Kind regards, T G-R gnu/packages/dns.scm | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/gnu/packages/dns.scm b/gnu/packages/dns.scm index b0f6ddaec..b0649dc53 100644 --- a/gnu/packages/dns.scm +++ b/gnu/packages/dns.scm @@ -573,3 +573,71 @@ synthesis, and on-the-fly re-configuration.") license:lgpl2.0+ ; parts of scr/contrib/ucw license:public-domain ; src/contrib/fnv and possibly murmurhash3 license:gpl3+)))) ; everything else + +(define-public nsd + (package + (name "nsd") + (version "4.1.20") + (source + (origin + (method url-fetch) + (uri (string-append "https://www.nlnetlabs.nl/downloads/" + name "/" name "-" version ".tar.gz")) + (sha256 + (base32 + "04zph9zli3a0zx1sfphwbxx6f8whdxcjai6w0k7a565vgcfzd5wa")))) + (build-system gnu-build-system) + (inputs + `(("libevent" ,libevent) + ("openssl" ,openssl))) + (arguments + `(#:configure-flags + (list "--enable-pie" ; fully benefit from ASLR + "--enable-ratelimit" + "--enable-recvmmsg" + "--enable-relro-now" ; protect GOT and .dtor areas + "--disable-radix-tree" + (string-append "--with-libevent=" + (assoc-ref %build-inputs "libevent")) + (string-append "--with-ssl=" + (assoc-ref %build-inputs "openssl")) + "--with-configdir=/etc" + "--with-nsd_conf_file=/etc/nsd/nsd.conf" + "--with-logfile=/var/log/nsd.log" + "--with-pidfile=/var/db/nsd/nsd.pid" + "--with-dbfile=/var/db/nsd/nsd.db" + "--with-zonesdir=/etc/nsd" + "--with-xfrdfile=/var/db/nsd/xfrd.state" + "--with-zonelistfile=/var/db/nsd/zone.list") + #:phases + (modify-phases %standard-phases + (add-before 'configure 'patch-installation-paths + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (doc (string-append out "/share/doc/" ,name "-" ,version))) + (substitute* "Makefile.in" + (((string-append ".*\\$\\(DESTDIR\\)\\$\\(" + "(config|pid|xfr|db)dir" + "\\).*")) + "") + (("\\$\\(nsdconfigfile\\)\\.sample") + (string-append doc "/examples/$(nsdconfigfile).sample"))) + #t)))) + #:tests? #f)) ; no tests + (home-page "https://www.nlnetlabs.nl/projects/nsd/") + (synopsis "Authoritative DNS name server") + (description "@dfn{NSD}, short for Name Server Daemon, is an authoritative +name server for the Domain Name System (@dfn{DNS}). It aims to be a fast and +RFC-compliant nameserver. + +NSD uses zone information compiled via @command{zonec} into a binary database +file (@file{nsd.db}). This allows fast startup of the name service daemon and +allows syntax-structural errors in zone files to be flagged at compile time, +before being made available to NSD service itself. However, most traditional +BIND-style zone files can be directly imported into NSD without modification. + +The collection of programs and processes that make up NSD are designed so that +the daemon itself runs as a non-privileged user and can be easily configured to +run in a @code{chroot} jail, thus making any security flaws in NSD less likely +to result in system-wide compromise.") + (license (list license:bsd-3)))) -- 2.15.1 From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 10 04:18:06 2018 Received: (at 30748) by debbugs.gnu.org; 10 Mar 2018 09:18:06 +0000 Received: from localhost ([127.0.0.1]:53078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1euadi-0007GN-3f for submit@debbugs.gnu.org; Sat, 10 Mar 2018 04:18:06 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:34931) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1euadf-0007GD-M2 for 30748@debbugs.gnu.org; Sat, 10 Mar 2018 04:18:04 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 4A0D221BBE; Sat, 10 Mar 2018 04:18:03 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Sat, 10 Mar 2018 04:18:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=SVr0xUMCHC4ikU+lCWSt9EOjSmWvsNog2HLt84gXTkU=; b=MBXyH2k6 HoSuSZocqLCaB6o2ctmJvA7lKZUC6Z3iZccO8+V8MIAecpinoBM9cQYEJS6j6B33 JzBJUI6vRvIMf0ERi/rTymi6CoARLeWm0XYy5x8UREjYltMO5RuZeOv7lXUR4HHq SaP5kjM57Om5ikdqlWGOvfrEGUKBqQBz7w/NsN8/HJt042oa+4CZe3jbtJK9+4g3 ZQYSHinMFrObVWHpeUFaRE4dUllTv+x3t6Gflu7OAGtD7fejjth8SnSY6ncqX4EQ lDKxYL62xjcZB8rnAEUmgOfN3sVa3u1bMFUq9ftVDDjJsT72+3IyZHB5TN4C58t/ 2FRhhMtIyscqGA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=SVr0xUMCHC4ikU+lCWSt9EOjSmWvs Nog2HLt84gXTkU=; b=cZL5eDxxW+6shbdtm5zTokyBhSZ0mtyN7hlQ1Ev85K18V ALFZ2jJkDygBoVPebGk79NQ3CmvhqV7UkUiYLidSryFAiCYlJSx3EqoDLIYxZFAV 9Oma/71arRoUeFqI5PBKM3cIKZui7nqOM4uyVZrARNanoxZrQBZuwnyBfD0u2TE2 hAh1hFHdr8OdqqZGnog1LEbjeTzzwC431LqDLJAxxN80kZXMbr64Kehu6hu713Aw dcerdbhi80S1O+BtEFUJgMeibox3GzmlCuHJeT8wn5Ic/DYr+EAdswiPWLVnVLOh VTD+tdvGhlMR9LFHJYcpMbhe4GAxN6l8htIxLRHjw== X-ME-Sender: Received: from localhost (unknown [185.3.5.222]) by mail.messagingengine.com (Postfix) with ESMTPA id C75CF240B6; Sat, 10 Mar 2018 04:18:02 -0500 (EST) From: Marius Bakke To: Tobias Geerinckx-Rice , 30748@debbugs.gnu.org Subject: Re: [bug#30748] [PATCH] gnu: Add nsd. In-Reply-To: <20180308082050.9855-1-me@tobias.gr> References: <20180308082050.9855-1-me@tobias.gr> User-Agent: Notmuch/0.26 (https://notmuchmail.org) Emacs/25.3.1 (x86_64-pc-linux-gnu) Date: Sat, 10 Mar 2018 10:18:00 +0100 Message-ID: <87lgf0jnlj.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 30748 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --=-=-= Content-Type: text/plain Tobias Geerinckx-Rice writes: > * gnu/packages/dns.scm (nsd): New public variable. [...] > + (add-before 'configure 'patch-installation-paths > + (lambda* (#:key outputs #:allow-other-keys) > + (let* ((out (assoc-ref outputs "out")) > + (doc (string-append out "/share/doc/" ,name "-" ,version))) > + (substitute* "Makefile.in" > + (((string-append ".*\\$\\(DESTDIR\\)\\$\\(" > + "(config|pid|xfr|db)dir" > + "\\).*")) > + "") Can you add a comment about what's going on here? Would setting DESTDIR=(assoc-ref %outputs "out") in #:make-flags suffice? Apart from that LGTM. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlqjoskACgkQoqBt8qM6 VPqykwf/WYU88TbtKW2/RNcI2/BzTsqOmbtc/k2IP7wEtYo4HURedVRPBKpchqtf YbI1P9JPkqDdXrk9fU7Ab1Tw1eVNVrlQC1E01lxdA2aow4dR6dRDTem84X+DRlyR 5V5fWAc5Z4vOwmeD2V6kjqhlmxjA0RUxjzdTjSDORm02Sa5taXQEYRQ7y/V8HM00 udvojbAQQg2R/a/GvTDG2xYaUA2uElEcDHedG8TDsiLgs/EKtJL4Q131hgcA7eni oUfLIIp9gwEX/aPdjlThz8pTrvTKHa2LKFNKcUybRXVTrlJ/+l2xGgF/AuOHmwdL mh5SbW/vGOA9vCGe8UQEnfwaVxzFxA== =wnV7 -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 12 17:03:26 2018 Received: (at 30748) by debbugs.gnu.org; 12 Mar 2018 21:03:27 +0000 Received: from localhost ([127.0.0.1]:57559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evUbO-0003U3-Nc for submit@debbugs.gnu.org; Mon, 12 Mar 2018 17:03:26 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:38776) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evUbN-0003Tv-5W for 30748@debbugs.gnu.org; Mon, 12 Mar 2018 17:03:25 -0400 Received: from localhost (178.113.188.221.wireless.dyn.drei.com [178.113.188.221]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 333EA3360290; Mon, 12 Mar 2018 22:03:23 +0100 (CET) Date: Mon, 12 Mar 2018 22:03:16 +0100 From: Danny Milosavljevic To: Marius Bakke , Tobias Geerinckx-Rice Subject: Re: [bug#30748] [PATCH] gnu: Add nsd. Message-ID: <20180312220316.7ae887eb@scratchpost.org> In-Reply-To: <87lgf0jnlj.fsf@fastmail.com> References: <20180308082050.9855-1-me@tobias.gr> <87lgf0jnlj.fsf@fastmail.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/SwHzJZc+F8qFiqdKmHOxfu6"; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 30748 Cc: 30748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --Sig_/SwHzJZc+F8qFiqdKmHOxfu6 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Marius, Hi Tobias, > > + (add-before 'configure 'patch-installation-paths > > + (lambda* (#:key outputs #:allow-other-keys) > > + (let* ((out (assoc-ref outputs "out")) > > + (doc (string-append out "/share/doc/" ,name "-" ,v= ersion))) > > + (substitute* "Makefile.in" > > + (((string-append ".*\\$\\(DESTDIR\\)\\$\\(" > > + "(config|pid|xfr|db)dir" > > + "\\).*")) > > + "") =20 >=20 > Can you add a comment about what's going on here? I agree... I'm scratching my head here. The ".*" is particularily worrying. Doesn't that mean it will replace all the installation lines by nothing in = the end? Does that install anything still? :) So now I've downloaded the source tarball and checked. By extreme obscurity :), this only matches the "install -d" lines which are creating empty directories (empty because of the configure-flags). > Would setting > DESTDIR=3D(assoc-ref %outputs "out") in #:make-flags suffice? DESTDIR is for installing into a tempdir. After that is done the system is supposed to "mv $tempdir /" and the software is usually written *not* to expect DESTDIR to be still here when it runs. PREFIX is something else and probably what you had in mind. --Sig_/SwHzJZc+F8qFiqdKmHOxfu6 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlqm6xQACgkQ5xo1VCww uqVt/wf+PxbidI5zYbXayN5pjEaBU9srXIsbY0enAo2O1Hc2djBPcOrhyAmLHql+ Nwy7ilQb2M66o5oNb6KPSMK8KQo8ixzbutDNsEIxSPH960GRW1Bn0f1uFva1+KVS UMkr5aUXsV069dMjVZ1Si2WRbj2Rw8VG75NUBm9+v+4zV7uw7j3UeoS8DtfJ9fbB 9cwHcGA6VvkmxnkI5rFmVkBqyDSUHNnADWDj1ONfovwU4ddKb7d+BQ7tlYa4XZKq opQMB/mO3WcObQ2ZtwGRBEl73OHj7rAc8Vy69AXQHX0xYVZVXaYRHEsTuVncUWq6 /I/k2Y2mPrkFmz/1tp1xnkHPtjfvrQ== =Oqw5 -----END PGP SIGNATURE----- --Sig_/SwHzJZc+F8qFiqdKmHOxfu6-- From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 12 17:35:42 2018 Received: (at 30748) by debbugs.gnu.org; 12 Mar 2018 21:35:42 +0000 Received: from localhost ([127.0.0.1]:57587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evV6c-0004Ke-Jd for submit@debbugs.gnu.org; Mon, 12 Mar 2018 17:35:42 -0400 Received: from tobias.gr ([51.15.135.5]:41126) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evV6b-0004KU-04 for 30748@debbugs.gnu.org; Mon, 12 Mar 2018 17:35:41 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id 6f89ddba; Mon, 12 Mar 2018 21:35:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h= mime-version:content-type:content-transfer-encoding:date:from:to :cc:subject:in-reply-to:references:message-id; s=2018; i= me@tobias.gr; bh=K3soZ/JruxpoMISsd1Gdl2+o14qi5SS8WYrG8fdJKic=; b= Yxf5Q29bSeoliJAlB0muKhz+tpnjtAFkn7xLsTX6BYE9I3RQgVyMCgat9mgTaFex fMvAMSaDzIOi5L+1769OFExgPCK9EJNzOaLnbuvW3XczJdWgXdY+mA3tXRzWDwIV SSOLRFG1antMHhNS+ERdLaavJEIGh8m65jK8nWFk8WOP2O/n/rFR4Y7ht5jwEa6a 22iYcNHoMaHNPbgb+/BZZPBABNpVuCdvqWv/sQ7g2b6OtUSpH3DWlF27seZZNtls y0EpO2zyg5PzQMOx+RFrLhAyLMKm8TVSJ27y+bAJGYWt2/GZGsHQNfTNqOfnOyaT d3qiuBnA9pcGmuizzUVXvg== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 20bb13a9 (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO); Mon, 12 Mar 2018 21:35:35 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Mon, 12 Mar 2018 22:35:32 +0100 From: Tobias Geerinckx-Rice To: Danny Milosavljevic , Marius Bakke Subject: Re: [bug#30748] [PATCH] gnu: Add nsd. Organization: tobias.gr In-Reply-To: <20180312220316.7ae887eb@scratchpost.org> References: <20180308082050.9855-1-me@tobias.gr> <87lgf0jnlj.fsf@fastmail.com> <20180312220316.7ae887eb@scratchpost.org> Message-ID: <218601de12c54ed77bd0ab4b16352a10@tobias.gr> X-Sender: me@tobias.gr User-Agent: Roundcube Webmail X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 30748 Cc: 30748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Danny, Marius, On 2018-03-12 22:03, Danny Milosavljevic wrote: > Hi Marius, > Hi Tobias, > >> > + (add-before 'configure 'patch-installation-paths >> > + (lambda* (#:key outputs #:allow-other-keys) >> > + (let* ((out (assoc-ref outputs "out")) >> > + (doc (string-append out "/share/doc/" ,name "-" ,version))) >> > + (substitute* "Makefile.in" >> > + (((string-append ".*\\$\\(DESTDIR\\)\\$\\(" >> > + "(config|pid|xfr|db)dir" >> > + "\\).*")) >> > + "") >> >> Can you add a comment about what's going on here? > > I agree... I'm scratching my head here. The ".*" is particularily > worrying. > Doesn't that mean it will replace all the installation lines by > nothing in the end? Hmm? Well, the matching ones, yes... I'd not call it ‘worrying’, since it does exactly what it should do, but you might want to have a word with 2016 Tobias about how ‘clever’ they think they're being. Us less clever folks will just have to make do with a comment, indeed. > Does that install anything still? :) > > So now I've downloaded the source tarball and checked. > > By extreme obscurity :), this only matches the "install -d" lines which > are > creating empty directories (empty because of the configure-flags). Obcurity by design :-) >> Would setting >> DESTDIR=(assoc-ref %outputs "out") in #:make-flags suffice? > > DESTDIR is for installing into a tempdir. After that is done the > system > is supposed to "mv $tempdir /" and the software is usually written > *not* > to expect DESTDIR to be still here when it runs. PREFIX is something > else and probably what you had in mind. Correct. DESTDIR is never the answer (unless, of course, it is). Now, I think we can pretty safely credit my past self with knowing about PREFIX, so I suspect it wasn't as easy as just setting that. Or it's used incorrectly to look up data at run time, as some packages are wont to do, or something like that. I'll take a look when I get home; with extreme luck the problem I was solving there is no longer an issue in the current release. Kind regards, T G-R Sent from a Web browser. Excuse or enjoy my brevity. From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 12 22:07:14 2018 Received: (at 30748) by debbugs.gnu.org; 13 Mar 2018 02:07:14 +0000 Received: from localhost ([127.0.0.1]:57885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evZLM-0002xV-3G for submit@debbugs.gnu.org; Mon, 12 Mar 2018 22:07:14 -0400 Received: from tobias.gr ([51.15.135.5]:42252) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evZLK-0002xL-DB for 30748@debbugs.gnu.org; Mon, 12 Mar 2018 22:07:11 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id 80ad6590; Tue, 13 Mar 2018 02:07:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h= mime-version:content-type:content-transfer-encoding:date:from:to :cc:subject:in-reply-to:references:message-id; s=2018; i= me@tobias.gr; bh=E3C9ZwgETgJ9wmVCkhl1OlY5Ke+l+2Xm6IBMeFzz++g=; b= dyqDOg6SoKNIQrYRSuIBQjBrJ0M8JYTiHP2MH/8G1GEMW+aJnZT3LCnNeUBOODoY C77he2zrZ4iNWRHkKxhLOJ9m7U8FQXFwBhcsGPNC7QysbHMYRtFpk9YnTv7e+GWa CUjHqsUOJZRe9UagAFFv42MKF/7nqGaTCqAcf/s386eDLM8qCTqdkabFlaouToH1 MA5Gjm8L4yf0NKzoSicBq64bHNBaGL05ucT8kE4SKEMkAYqtOkONLTXuXW9pcEDV BdEVeyenPIk3f4WMF/lQ6eJ/nOjUfs5zN11N19bUpFzXyyiCNTxrnBk3eB2XqF+9 dZH7+z0+J0f4wBAvggVauQ== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 752300b4 (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO); Tue, 13 Mar 2018 02:07:06 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 13 Mar 2018 03:06:59 +0100 From: Tobias Geerinckx-Rice To: Marius Bakke , dannym@scratchpost.org Subject: Re: [bug#30748] [PATCH] gnu: Add nsd. Organization: tobias.gr In-Reply-To: <87lgf0jnlj.fsf@fastmail.com> References: <20180308082050.9855-1-me@tobias.gr> <87lgf0jnlj.fsf@fastmail.com> Message-ID: <060e32877fe59a249a93fc0751976ddc@tobias.gr> X-Sender: me@tobias.gr User-Agent: Roundcube Webmail X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 30748 Cc: 30748@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Marius, Danny, So... On 2018-03-10 10:18, Marius Bakke wrote: > Tobias Geerinckx-Rice writes: > >> * gnu/packages/dns.scm (nsd): New public variable. > > [...] > >> + (add-before 'configure 'patch-installation-paths >> + (lambda* (#:key outputs #:allow-other-keys) >> + (let* ((out (assoc-ref outputs "out")) >> + (doc (string-append out "/share/doc/" ,name "-" >> ,version))) >> + (substitute* "Makefile.in" >> + (((string-append ".*\\$\\(DESTDIR\\)\\$\\(" >> + "(config|pid|xfr|db)dir" >> + "\\).*")) >> + "") It's just a Makefile being very stupid. How boring :-( It tries to create run-time systemy things like `dirname $pidfile` (from #:configure-flags), which it has no business doing, so we ask it not to by politely shooting it in the head. > Can you add a comment about what's going on here? Sure. If anyone has a cleaner fix or regex to match I'll gladly take it, but I'm done staring at metamake. Otherwise a comment paraphrasing the above will have to do. T G-R Sent from a Web browser. Excuse or enjoy my brevity. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 04 15:38:27 2018 Received: (at 30748-done) by debbugs.gnu.org; 4 Oct 2018 19:38:27 +0000 Received: from localhost ([127.0.0.1]:37046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g89S6-00054J-SR for submit@debbugs.gnu.org; Thu, 04 Oct 2018 15:38:27 -0400 Received: from tobias.gr ([80.241.217.52]:43212) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g89S5-00054A-20 for 30748-done@debbugs.gnu.org; Thu, 04 Oct 2018 15:38:25 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id 797c8081 for <30748-done@debbugs.gnu.org>; Thu, 4 Oct 2018 19:38:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to :subject:date:message-id:mime-version:content-type; s=2018; i= me@tobias.gr; bh=Zd6VO/9hkVEIDG+3mIueeJYCVaITyKlr2jumF0BKn3I=; b= LqvuvgJrUJS0H3ADJIOYhYaEka8LccxaaHyrQj32fuV0bWAPjDUfUTe3bCUaBOOk lxzgiRCNTN2MOGWfBC2Om/aA7/dKjgVaqgQdmepN2Gkupw67i/Fptl5O+ac7QSoz oAnBXwqUNToqAeAnj82Hdz2bHG1uqLWAgnuBanYpmGrq6U0b4cbsF87/fmKds9qe tk0Tvec/ekLa6meBkHhb/KTWIruhQXLQ0bhbJTyRMlK1gpbw6jgAu1RDWYMl/1Xx NAZag15ydLeY41CgqWx78eaoerz1LSkQJX0mY4RZBl+HB92iGOo9uV/a6Ab+Ak0e wgZCKbbR1FDm7DVbHQbFTg== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 4e8236bc (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for <30748-done@debbugs.gnu.org>; Thu, 4 Oct 2018 19:38:21 +0000 (UTC) From: Tobias Geerinckx-Rice To: 30748-done@debbugs.gnu.org Subject: Re: [bug#30748] [PATCH] gnu: Add nsd. Date: Thu, 04 Oct 2018 21:38:23 +0200 Message-ID: <87lg7da4eo.fsf@tobias.gr> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 30748-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Guix, I've pushed an updated NSD as 7382ecd81859de878b22a6510b8262abe69d38bf. We're now one server (PowerDNS) away from having all major name servers in Guix, though not all have services. Thanks for the reviews, Marius & Danny! I never understood what's obscure about the regex, but I tried to make it a bit more self-explanatory. Kind regards, T G-R From unknown Sat Jun 14 18:50:18 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 02 Nov 2018 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator