GNU bug report logs -
#30748
[PATCH] gnu: Add nsd.
Previous Next
Reported by: Tobias Geerinckx-Rice <me <at> tobias.gr>
Date: Thu, 8 Mar 2018 08:22:02 UTC
Severity: normal
Tags: patch
Done: Tobias Geerinckx-Rice <me <at> tobias.gr>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
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?
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=(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.
[Message part 2 (application/pgp-signature, inline)]
This bug report was last modified 6 years and 226 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.