<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chuix.git/nix/scripts, branch python-team-django-6</title>
<subtitle>guix
</subtitle>
<id>http://cgit.adnoto.dev/chuix.git/atom?h=python-team-django-6</id>
<link rel='self' href='http://cgit.adnoto.dev/chuix.git/atom?h=python-team-django-6'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chuix.git/'/>
<updated>2019-09-08T09:49:24Z</updated>
<entry>
<title>daemon: Run 'guix substitute' directly and assume a single substituter.</title>
<updated>2019-09-08T09:49:24Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-09-04T09:04:44Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chuix.git/commit/?id=f6919ebdc6b0ce0286814cc6ab0564b1a4c67f5f'/>
<id>urn:sha1:f6919ebdc6b0ce0286814cc6ab0564b1a4c67f5f</id>
<content type='text'>
The daemon had a mechanism that allows it to handle a list of
substituters and try them sequentially; this removes it.

* nix/scripts/substitute.in: Remove.
* nix/local.mk (nodist_pkglibexec_SCRIPTS): Remove.
* config-daemon.ac: Don't output 'nix/scripts/substitute'.
* nix/libstore/build.cc (SubstitutionGoal)[subs, sub, hasSubstitute]:
Remove.
[tryNext]: Make private.
(SubstitutionGoal::SubstitutionGoal, SubstitutionGoal::init): Remove now
unneeded initializers.
(SubstitutionGoal::tryNext): Adjust to assume a single substituter: call
'amDone' upfront when we couldn't find substitutes.
(SubstitutionGoal::tryToRun): Adjust to run 'guix substitute' via
'settings.guixProgram'.
(SubstitutionGoal::finished): Call 'amDone(ecFailed)' upon failure
instead of setting 'state' to 'tryNext'.
* nix/libstore/globals.hh (Settings)[substituters]: Remove.
* nix/libstore/local-store.cc (LocalStore::~LocalStore): Adjust to
handle a single substituter.
(LocalStore::startSubstituter): Remove 'path' parameter.  Adjust to
invoke 'settings.guixProgram'.  Don't refer to 'run.program', which no
longer exists.
(LocalStore::querySubstitutablePaths): Adjust for 'runningSubstituters'
being a singleton instead of a list.
(LocalStore::querySubstitutablePathInfos): Likewise, and remove
'substituter' parameter.
* nix/libstore/local-store.hh (RunningSubstituter)[program]: Remove.
(LocalStore)[runningSubstituters]: Remove.
[runningSubstituter]: New field.
[querySubstitutablePathInfos]: Remove 'substituter' parameter.
[startSubstituter]: Remove 'substituter' parameter.
* nix/nix-daemon/guix-daemon.cc (main): Remove references to
'settings.substituters'.
* nix/nix-daemon/nix-daemon.cc (performOp): Ignore the user's
"build-use-substitutes" value when 'settings.useSubstitutes' is false.
</content>
</entry>
<entry>
<title>daemon: Run 'guix offload' directly.</title>
<updated>2019-09-08T09:49:24Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-09-03T20:11:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chuix.git/commit/?id=bc69ea2d605810cc32e13ed03d5848b8dc358b61'/>
<id>urn:sha1:bc69ea2d605810cc32e13ed03d5848b8dc358b61</id>
<content type='text'>
* nix/scripts/offload.in: Remove.
* nix/local.mk (nodist_pkglibexec_SCRIPTS) [BUILD_DAEMON_OFFLOAD]:
Remove 'scripts/offload'.
* config-daemon.ac: Don't output 'nix/scripts/offload'.
* build-aux/pre-inst-env.in: Don't set 'NIX_BUILD_HOOK'.
* nix/libstore/build.cc (HookInstance::HookInstance): Run 'guix
offload'.
(DerivationGoal::tryBuildHook): Remove reference to 'NIX_BUILD_HOOK'.
* nix/nix-daemon/guix-daemon.cc (main) [HAVE_DAEMON_OFFLOAD_HOOK]: Don't
set 'NIX_BUILD_HOOK'.
* nix/nix-daemon/nix-daemon.cc (performOp) [!HAVE_DAEMON_OFFLOAD_HOOK]:
Leave 'settings.useBuildHook' unchanged.
</content>
</entry>
<entry>
<title>daemon: Run 'guix perform-download' directly.</title>
<updated>2019-09-08T09:49:24Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-09-03T19:59:45Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chuix.git/commit/?id=9fcc35c51fd579b3bb7b4f61cba6973675c3922c'/>
<id>urn:sha1:9fcc35c51fd579b3bb7b4f61cba6973675c3922c</id>
<content type='text'>
* nix/scripts/download.in: Remove.
* nix/local.mk (nodist_pkglibexec_SCRIPTS): Remove 'scripts/download'.
* config-daemon.ac: Don't output 'nix/scripts/download'.
* nix/libstore/builtins.cc (builtinDownload): Invoke 'guix
perform-download' directly.
</content>
</entry>
<entry>
<title>daemon: Run 'guix authenticate' directly.</title>
<updated>2019-09-08T09:49:24Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-09-03T19:51:25Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chuix.git/commit/?id=0c684b7edfacada4f576855dbb09291f04a84fa2'/>
<id>urn:sha1:0c684b7edfacada4f576855dbb09291f04a84fa2</id>
<content type='text'>
* nix/scripts/authenticate.in: Remove.
* nix/local.mk (nodist_pkglibexec_SCRIPTS): Remove
scripts/authenticate.
* config-daemon.ac: Don't output 'nix/scripts/authenticate'.
* nix/libstore/local-store.cc (runAuthenticationProgram): Run 'guix
authenticate'.
</content>
</entry>
<entry>
<title>daemon: Invoke 'guix gc --list-busy' instead of 'list-runtime-roots'.</title>
<updated>2019-09-08T09:49:24Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-09-03T19:36:29Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chuix.git/commit/?id=2e3e5d21988fc2cafb2a9eaf4b00976ea425629d'/>
<id>urn:sha1:2e3e5d21988fc2cafb2a9eaf4b00976ea425629d</id>
<content type='text'>
* nix/scripts/list-runtime-roots.in: Remove.
* guix/store/roots.scm (%proc-directory): New variable.
(proc-file-roots, proc-exe-roots, proc-cwd-roots)
(proc-fd-roots, proc-maps-roots, proc-environ-roots)
(referenced-files, canonicalize-store-item, busy-store-items): New
procedures, taken from 'list-runtime-roots.in'.
* nix/libstore/globals.hh (Settings)[guixProgram]: New field.
* nix/libstore/globals.cc (Settings::processEnvironment): Initialize
'guixProgram'.
* nix/libstore/gc.cc (addAdditionalRoots): Drop code related to
'NIX_ROOT_FINDER'.  Run "guix gc --list-busy".
* nix/local.mk (nodist_pkglibexec_SCRIPTS): Remove
'scripts/list-runtime-roots'.
* config-daemon.ac: Don't output nix/scripts/list-runtime-roots.
* build-aux/pre-inst-env.in: Don't set 'NIX_ROOT_FINDER'.
Set 'GUIX'.
* doc/guix.texi (Invoking guix gc): Document '--list-busy'.
* guix/scripts/gc.scm (show-help, %options): Add "--list-busy".
(guix-gc)[list-busy]: New procedure.
Handle the 'list-busy' action.
</content>
</entry>
<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='http://cgit.adnoto.dev/chuix.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='http://cgit.adnoto.dev/chuix.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='http://cgit.adnoto.dev/chuix.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='http://cgit.adnoto.dev/chuix.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='http://cgit.adnoto.dev/chuix.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>
</feed>
