<feed xmlns='http://www.w3.org/2005/Atom'>
<title>guix.git/nix/scripts, branch master</title>
<subtitle>Personal branch of https://git.savannah.gnu.org/cgit/guix.git/ for implementing 'guix deploy'.
</subtitle>
<id>https://www.git.jakob.space/guix.git/atom?h=master</id>
<link rel='self' href='https://www.git.jakob.space/guix.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/'/>
<updated>2018-11-14T20:34:08Z</updated>
<entry>
<title>daemon: Install 'authenticate' script under LIBEXECDIR/guix.</title>
<updated>2018-11-14T20:34:08Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2018-11-14T17:11:58Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=0fe1fba4af41f267c4bb2c006fb37f42422ab703'/>
<id>urn:sha1:0fe1fba4af41f267c4bb2c006fb37f42422ab703</id>
<content type='text'>
That way it is handled in the same way as other helper scripts.

* nix/scripts/guix-authenticate.in: Rename to...
* nix/scripts/authenticate.in: ... this.
* config-daemon.ac: Adjust accordingly.
* nix/local.mk (libstore_a_CPPFLAGS): Remove -DOPENSSL_PATH.
(nodist_libexec_SCRIPTS): Remove.
(nodist_pkglibexec_SCRIPTS): New variable.
* nix/nix-daemon/guix-daemon.cc (main): Remove 'setenv' call for
"PATH".
* nix/libstore/local-store.cc (runAuthenticationProgram): New function.
(LocalStore::exportPath, LocalStore::importPath): Use it instead of
'runProgram' and OPENSSL_PATH.
</content>
</entry>
<entry>
<title>list-runtime-root: Fix off-by-one in 'strip-drop' call.</title>
<updated>2017-12-31T10:18:30Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2017-12-31T10:15:24Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=091191c3dcbfb9f01070d26bf15cb2c4dd07b1b5'/>
<id>urn:sha1:091191c3dcbfb9f01070d26bf15cb2c4dd07b1b5</id>
<content type='text'>
Fixes &lt;https://bugs.gnu.org/29862&gt;.
Reported by Danny Milosavljevic &lt;dannym@scratchpost.org&gt;.

* nix/scripts/list-runtime-roots.in (canonicalize-store-item): Define
'store' with a trailing "/".  Have the 'string-prefix?' call match the
'string-drop' call.
</content>
</entry>
<entry>
<title>list-runtime-roots: Ignore ESRCH while reading from /proc.</title>
<updated>2017-11-26T14:58:33Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2017-11-26T14:08:50Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=9b0713012905f3997d6fad201dba7c3d93b38b13'/>
<id>urn:sha1:9b0713012905f3997d6fad201dba7c3d93b38b13</id>
<content type='text'>
Fixes &lt;https://bugs.gnu.org/29368&gt;.
Reported by Martin Castillo &lt;castilma@uni-bremen.de&gt;.

* nix/scripts/list-runtime-roots.in (referenced-files): Ignore ESRCH.
</content>
</entry>
<entry>
<title>list-runtime-roots: Ignore PIDs we cannot access.</title>
<updated>2017-11-12T22:53:12Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2017-11-12T22:52:18Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=856b68bda959638201182304ded2759c7de5411b'/>
<id>urn:sha1:856b68bda959638201182304ded2759c7de5411b</id>
<content type='text'>
This allows running as non-root.
Fixes a regression introduced in b8f59cdc20e9d83ce63523ef917e95fcee07f134.

* nix/scripts/list-runtime-roots.in (referenced-files): Handle EACCES in
addition to ENOENT.
</content>
</entry>
<entry>
<title>list-runtime-roots: Canonicalize store items.</title>
<updated>2017-11-12T21:42:17Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2017-11-12T21:16:28Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=fb17a89912c2a3738dae716e30481c11e1c6f0ac'/>
<id>urn:sha1:fb17a89912c2a3738dae716e30481c11e1c6f0ac</id>
<content type='text'>
Looking at 'addAdditionalRoots' in libstore/gc.cc, it looks like it
should always have been this way.  In practice it probably doesn't make
much of a difference.

* nix/scripts/list-runtime-roots.in (canonicalize-store-item): New
procedure.
&lt;top level&gt;: Use it.
</content>
</entry>
<entry>
<title>list-runtime-roots: Do not use 'lsof'.</title>
<updated>2017-11-12T21:42:17Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2017-11-12T21:02:22Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=b8f59cdc20e9d83ce63523ef917e95fcee07f134'/>
<id>urn:sha1:b8f59cdc20e9d83ce63523ef917e95fcee07f134</id>
<content type='text'>
This makes things a bit faster (0.8s instead of 1.4s on my laptop).

* nix/scripts/list-runtime-roots.in (lsof-roots): Remove.
(proc-fd-roots): Return the empty list when 'scandir' returns #f.
(referenced-files): New procedure.
Use it at the top level.
</content>
</entry>
<entry>
<title>list-runtime-roots: Bufferize the lsof pipe.</title>
<updated>2017-03-08T22:42:53Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2017-03-08T22:10:09Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=ac9c1dc7bdf1a016fcd1989993999e4a32d0c885'/>
<id>urn:sha1:ac9c1dc7bdf1a016fcd1989993999e4a32d0c885</id>
<content type='text'>
* nix/scripts/list-runtime-roots.in (lsof-roots): Add 'setvbuf' call for
PIPE.
</content>
</entry>
<entry>
<title>daemon: Add "builtin:download" derivation builder.</title>
<updated>2016-11-16T17:19:47Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2015-07-20T02:30:16Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=94d92c7796a3dd50c27d532315f7d497ac99f08e'/>
<id>urn:sha1:94d92c7796a3dd50c27d532315f7d497ac99f08e</id>
<content type='text'>
This ensures that 1) the derivation doesn't change when Guix changes;
2) the derivation closure doesn't contain Guix and its dependencies; 3)
we don't have to rely on ugly chroot hacks.

Adapted from Nix commit 0a2bee307b20411f5b0dda0c662b1f9bb9e0e131.

* nix/libstore/build.cc (DerivationGoal::runChild): Add special case for
'isBuiltin(drv)'.  Disable chroot when 'isBuiltin(drv)'.
* nix/libstore/builtins.cc, nix/libstore/builtins.hh,
nix/scripts/download.in, guix/scripts/perform-download.scm: New files.
* guix/ui.scm (show-guix-help)[internal?]: Add 'perform-download'.
* nix/local.mk (libstore_a_SOURCES): Add builtins.cc.
(libstore_headers): Add builtins.hh.
(nodist_pkglibexec_SCRIPTS): Add 'scripts/download'.
* config-daemon.ac: Emit 'scripts/download'.
* Makefile.am (MODULES): Add 'guix/scripts/perform-download.scm'.
* tests/derivations.scm ("unknown built-in builder")
("'download' built-in builder")
("'download' built-in builder, invalid hash")
("'download' built-in builder, not found")
("'download' built-in builder, not fixed-output"): New tests.

Co-authored-by: Eelco Dolstra &lt;eelco.dolstra@logicblox.com&gt;
</content>
</entry>
<entry>
<title>Rename 'guix substitute-binary' to 'guix substitute'.</title>
<updated>2015-03-25T09:46:22Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2015-03-25T09:34:27Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=2c74fde00e4e721c6a73646935ab0cfe19dd9188'/>
<id>urn:sha1:2c74fde00e4e721c6a73646935ab0cfe19dd9188</id>
<content type='text'>
* guix/scripts/substitute-binary.scm: Rename to...
* guix/scripts/substitute.scm: ... this.  Adjust module name, entry
  point, comments, and help string accordingly.
* nix/scripts/substitute-binary.in: Rename to...
* nix/scripts/substitute.in: ... this.
* pre-inst-env.in (NIX_SUBSTITUTERS): Adjust accordingly.
* tests/substitute-binary.scm: Rename to...
* tests/substitute.scm: ... this.  Adjust references to (guix scripts
  substitute) accordingly.
* guix/ui.scm (show-guix-help)[internal?]: Change "substitute-binary" to
  "substitute".
* Makefile.am (MODULES, SCM_TESTS): Adjust to file renames.
* daemon.am (nodist_pkglibexec_SCRIPTS): Likewise.
* config-daemon.ac: Likewise.
* guix/tests.scm (call-with-derivation-narinfo): Adjust comments and
  docstring.
</content>
</entry>
<entry>
<title>list-runtime-roots: Don't display a backtrace on 2.0.5 when lsof is lacking.</title>
<updated>2014-05-16T08:20:45Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2014-05-16T08:20:45Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=d0281fec03d93a44f7abaa270a3f7417b8e14627'/>
<id>urn:sha1:d0281fec03d93a44f7abaa270a3f7417b8e14627</id>
<content type='text'>
* nix/scripts/list-runtime-roots.in (lsof-roots): Fix typo in 'catch'
  tag.  Add 'parent' variable.  Wrap 'open-pipe*' call in 'catch'.
  Reported by Andreas Enge &lt;andreas@enge.fr&gt;.
</content>
</entry>
</feed>
