<feed xmlns='http://www.w3.org/2005/Atom'>
<title>guix.git/nix/libstore/local-store.cc, 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>2019-02-04T15:20:01Z</updated>
<entry>
<title>daemon: Add "/guix" to default 'nixLibexecDir'.</title>
<updated>2019-02-04T15:20:01Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-02-04T15:14:09Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=959eaa1eb834fd47ceab3c5bbbe4967e808d530b'/>
<id>urn:sha1:959eaa1eb834fd47ceab3c5bbbe4967e808d530b</id>
<content type='text'>
This makes it easier to run the uninstalled daemon.

* nix/local.mk (libstore_a_CPPFLAGS): Append "/guix" to
NIX_LIBEXEC_DIR.
* build-aux/pre-inst-env.in (NIX_LIBEXEC_DIR): Adjust comment.
* nix/libstore/builtins.cc (builtinDownload): Remove SUBDIR and its
use.
* nix/libstore/local-store.cc (runAuthenticationProgram): Ditto.
* nix/libstore/gc.cc (addAdditionalRoots): Remove "/guix" prefix.
* nix/nix-daemon/guix-daemon.cc (main): Ditto.
</content>
</entry>
<entry>
<title>daemon: Use unbranded phrases in comments and messages.</title>
<updated>2018-12-16T15:28:07Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2018-12-15T22:50:24Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=8327e733966cc4a93dfaadd1a761ca1088078baa'/>
<id>urn:sha1:8327e733966cc4a93dfaadd1a761ca1088078baa</id>
<content type='text'>
* nix/libstore/build.cc, nix/libstore/globals.cc,
nix/libstore/gc.cc, nix/libstore/local-store.cc,
nix/libstore/optimise-store.cc, nix/libstore/store-api.cc,
nix/libutil/archive.cc, nix/nix-daemon/nix-daemon.cc: Replace "Nix
store" by "store", and "Nix daemon" by "build daemon".
</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='https://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>daemon: Remove unused schema upgrade code.</title>
<updated>2018-03-30T21:42:07Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludovic.courtes@inria.fr</email>
</author>
<published>2018-03-29T15:05:45Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=602a148650809da3c2356e4429f4b8160a72843b'/>
<id>urn:sha1:602a148650809da3c2356e4429f4b8160a72843b</id>
<content type='text'>
* nix/libstore/local-store.cc (LocalStore): Remove upgrade code.
(LocalStore::queryValidPathsOld, LocalStore::queryPathInfoOld)
(LocalStore::upgradeStore6, makeMutable)
(LocalStore::upgardeStore7): Remove.
* nix/libstore/local-store.hh: Adjust accordingly.
</content>
</entry>
<entry>
<title>daemon: Improve the SQLite wrapper API.</title>
<updated>2016-10-28T20:30:17Z</updated>
<author>
<name>Eelco Dolstra</name>
<email>eelco.dolstra@logicblox.com</email>
</author>
<published>2016-03-30T13:50:45Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=b1fd0ab73425e682a0a1404da6963f47a033bb34'/>
<id>urn:sha1:b1fd0ab73425e682a0a1404da6963f47a033bb34</id>
<content type='text'>
In particular, this eliminates a bunch of boilerplate code.

Also integrates these Nix commits:

  80da7a6 Probably fix SQLITE_BUSY errors
  37a337b throwSQLiteError(): Check for SIGINT so we don't loop forever

Co-authored-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
</entry>
<entry>
<title>daemon: Factor out SQLite handling.</title>
<updated>2016-10-28T20:30:17Z</updated>
<author>
<name>Eelco Dolstra</name>
<email>eelco.dolstra@logicblox.com</email>
</author>
<published>2016-03-30T11:27:25Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=7bed5d91dea6ecff565d51a021e6f99718d04f86'/>
<id>urn:sha1:7bed5d91dea6ecff565d51a021e6f99718d04f86</id>
<content type='text'>
* nix/libstore/local-store.cc: Move SQLite code to...
* nix/libstore/sqlite.cc, nix/libstore/sqlite.hh: ... here.  New files.
* nix/local.mk (libstore_a_SOURCES): Add sqlite.cc.
(libstore_headers): Add sqlite.hh.

Co-authored-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
</entry>
<entry>
<title>daemon: Turn retrying SQLite transactions into a higher-order function.</title>
<updated>2016-10-28T20:30:17Z</updated>
<author>
<name>Eelco Dolstra</name>
<email>eelco.dolstra@logicblox.com</email>
</author>
<published>2016-03-30T10:04:27Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=517ce0c15bdf802b3c378fff48b1e5be4167a4fa'/>
<id>urn:sha1:517ce0c15bdf802b3c378fff48b1e5be4167a4fa</id>
<content type='text'>
* nix/libstore/local-store.cc (retry_sqlite, end_retry_sqlite): Remove.
(retrySQLite): New template.
(LocalStore::registerFailedPath, LocalStore::hasPathFailed)
(LocalStore::queryFailedPaths, LocalStore::clearFailedPaths)
(LocalStore::queryPathInfo, LocalStore::isValidPath_)
(LocalStore::queryValidPaths, LocalStore::queryAllValidPaths)
(LocalStore::queryReferrers, LocalStore::queryValidDerivers)
(LocalStore::queryDerivationOutputs)
(LocalStore::queryDerivationOutputNames)
(LocalStore::queryPathFromHashPart, LocalStore::registerValidPaths)
(LocalStore::invalidatePathChecked): Use it.

Co-authored-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
</entry>
<entry>
<title>daemon: Substitute queries return immediately when substitutes are disabled.</title>
<updated>2016-05-31T16:22:14Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2016-05-31T15:58:46Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=151afd84dc9bf8f13de79a689f7f163fba7254ec'/>
<id>urn:sha1:151afd84dc9bf8f13de79a689f7f163fba7254ec</id>
<content type='text'>
Reported by Federico Beffa &lt;beffa@ieee.org&gt;
at &lt;https://lists.gnu.org/archive/html/guix-devel/2016-05/msg00928.html&gt;.

* nix/libstore/local-store.cc (LocalStore::querySubstitutablePaths)
(LocalStore::querySubstitutablePathInfos): Return when
'settings.useSubstitutes' is false.
* tests/store.scm ("references/substitutes missing reference info"):
Make sure to return #f on failure.
* tests/store.scm ("substitutable-path-info when substitutes are turned off"):
("substitutable-paths when substitutes are turned off"): New tests.
</content>
</entry>
<entry>
<title>daemon: Canonicalize gids to 0.</title>
<updated>2016-05-31T12:25:28Z</updated>
<author>
<name>Eelco Dolstra</name>
<email>eelco.dolstra@logicblox.com</email>
</author>
<published>2016-01-12T16:27:40Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=56b8f56788b082fc54dedbb003b2891294dd6c22'/>
<id>urn:sha1:56b8f56788b082fc54dedbb003b2891294dd6c22</id>
<content type='text'>
Previously files in the Nix store were owned by root or by nixbld,
depending on whether they were created by a substituter or by a
builder. This doesn't matter much, but causes spurious diffoscope
differences. So use root everywhere.
</content>
</entry>
<entry>
<title>daemon: Flush upon '\r' when reading the substituter's stderr.</title>
<updated>2015-07-06T23:03:45Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2015-07-06T23:03:45Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=399f9acee3be2825e93cdb0832f5b9e3e43fa283'/>
<id>urn:sha1:399f9acee3be2825e93cdb0832f5b9e3e43fa283</id>
<content type='text'>
This commit had been inadvertently reverted in 322eeb8.

* nix/libstore/local-store.cc (LocalStore::getLineFromSubstituter):
  Flush when the line contains '\r'.
</content>
</entry>
</feed>
