<feed xmlns='http://www.w3.org/2005/Atom'>
<title>guix.git/nix/scripts/list-runtime-roots.in, branch master</title>
<subtitle>Personal branch of https://git.savannah.gnu.org/cgit/guix.git/ for implementing 'guix deploy'.
</subtitle>
<id>https://git.jakob.space/guix.git/atom?h=master</id>
<link rel='self' href='https://git.jakob.space/guix.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/'/>
<updated>2017-12-31T10:18:30Z</updated>
<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://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://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://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://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://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://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>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://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>
<entry>
<title>list-runtime-roots: List files referenced by environment variables.</title>
<updated>2013-10-28T23:08:44Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2013-10-28T23:08:15Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=cb558fcd9c3818c20232305630acd6a18039318b'/>
<id>urn:sha1:cb558fcd9c3818c20232305630acd6a18039318b</id>
<content type='text'>
Inspired by &lt;https://github.com/NixOS/nix/compare/772b70952f75...4ddd077bfa9a&gt;.

* nix/scripts/list-runtime-roots.in (%store-directory): New variable.
  (proc-environ-roots): New procedure.
  (&lt;top-level&gt;): Use it.
</content>
</entry>
<entry>
<title>Update license headers.</title>
<updated>2013-01-05T23:47:50Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2013-01-05T23:47:50Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=233e76769ae3a438bff7117c68f2c88739a28db0'/>
<id>urn:sha1:233e76769ae3a438bff7117c68f2c88739a28db0</id>
<content type='text'>
Change all license headers, except guix/build/* and ld-wrapper.scm, with
this code:

  (use-modules (guix build utils)
	       (srfi srfi-1))

  (fluid-set! %default-port-encoding "UTF-8")

  (substitute* (remove (lambda (f)
			 (or (string-contains f ".tar.")
			     (string-contains f ".git/")
			     (string-contains f ".so")
			     (string-suffix? ".o" f)
			     (string-suffix? ".a" f)
			     (string-suffix? ".go" f)
			     (string-suffix? ".pdf" f)
			     (string-suffix? ".png" f)
			     (string-suffix? ".info" f)
			     (equal? (basename f) "guix-daemon")
			     (equal? (basename f) "nix-setuid-helper")
			     (string-contains f "nix-upstream/")
			     (string-contains f "distro/packages/bootstrap/")))
		       (find-files "." "\\.[a-z]+$"))
    (("^([[:graph:]]+) This file is part of Guix." _ comment-start)
     (string-append comment-start " This file is part of GNU Guix."))
    (("^([[:graph:]]+) Guix --- Nix package management.*" _ comment-start)
     (string-append comment-start
		    " GNU Guix --- Functional package management for GNU\n"))
    (("^([[:graph:]]+) Guix is " _ comment-start)
     (string-append comment-start " GNU Guix is "))
    (("^([[:graph:]]+) along with Guix." _ comment-start)
     (string-append comment-start " along with GNU Guix."))
    (("^([[:graph:]]+) Copyright \\(C\\)" _ comment-start)
     (string-append comment-start " Copyright ©")))

Change headers using C-style comments manually.
</content>
</entry>
<entry>
<title>daemon: Add `list-runtime-roots' script.</title>
<updated>2012-12-05T15:29:28Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2012-12-05T15:29:28Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=f5c82e15e0e76b855bc4cc88ffb79331b7083f39'/>
<id>urn:sha1:f5c82e15e0e76b855bc4cc88ffb79331b7083f39</id>
<content type='text'>
* nix/scripts/list-runtime-roots.in: New file.
* config-daemon.ac: Add `AC_CONFIG_FILES' invocation for it.
* daemon.am (nodist_pkglibexec_SCRIPTS): New variable.
  (AM_TESTS_ENVIRONMENT): Define `top_builddir'.
* tests/guix-daemon.sh: Export `NIX_ROOT_FINDER'.
* nix/sync-with-upstream: Substitute the path to the root finder in
  libstore/gc.cc.
</content>
</entry>
</feed>
