[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#30748] [PATCH] gnu: Add nsd.
From: |
Tobias Geerinckx-Rice |
Subject: |
[bug#30748] [PATCH] gnu: Add nsd. |
Date: |
Tue, 13 Mar 2018 03:06:59 +0100 |
User-agent: |
Roundcube Webmail |
Marius,
Danny,
So...
On 2018-03-10 10:18, Marius Bakke wrote:
Tobias Geerinckx-Rice <address@hidden> 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.