From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vincent Legoll Subject: Re: guix pull avoidance Date: Wed, 24 Aug 2016 10:57:13 +0200 Message-ID: References: <20160822180117.GA17367@jasmine> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=94eb2c0438f8a8d820053acd7793 Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Leo Famulari , guix-devel Cc: help-guix List-Id: help-guix.gnu.org --94eb2c0438f8a8d820053acd7793 Content-Type: text/plain; charset=UTF-8 Hello, > How's the following totally untested, probably buggy patch ? After painful testing (I have to remove the .config/guix/latest symlink each time, make it point back to ~/guix_git with my modifications, and it recompiles a whole bunch of scm files...) Any idea how to improve that ? > it's in RFC, to show the intended effects... I fixed a few silly mistakes... > What's inside: > > - create a symlink /gnu/store/latest pointing to the last installed > /gnu/store/*-guix-latest This is failing with : guix pull: error: symlink: Read-only file system: "/gnu/store/latest.new" Despite my tries to replicate the (run-with-store (mlet* %store-monad ...)) thing, which AFAIU*, should make writing to the store doable... What am I missing ? * I don't think I fully understand that, as the "->" in the mlet* for instance, I couldn't find explanations in guile's refman nor guix's... Please help -- Vincent Legoll --94eb2c0438f8a8d820053acd7793 Content-Type: text/x-patch; charset=US-ASCII; name="0001-Add-nodownload-CLI-option.patch" Content-Disposition: attachment; filename="0001-Add-nodownload-CLI-option.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_is8o2spl1 RnJvbSBmMGQ4YThmMWU1YTVjNjk3NTJjMmM2MTM5YjZhNTMyNTczNGM0YmExIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBWaW5jZW50IExlZ29sbCA8dmluY2VudC5sZWdvbGxAZ21haWwu Y29tPgpEYXRlOiBUdWUsIDIzIEF1ZyAyMDE2IDE1OjA2OjEyICswMjAwClN1YmplY3Q6IFtQQVRD SF0gQWRkIC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G8gYnVpbGQgdGhlIG5ldyBHdWl4IikpCisgIChk aXNwbGF5IChfICIKKyAgICAgIC0tbm9kb3dubG9hZCAgICAgICBvbmx5IHN3aXRjaCB0byB0aGUg bGFzdCBkb3dubG9hZGVkIHZlcnNpb24gb2YgR3VpeCIpKQogICAobmV3bGluZSkKICAgKGRpc3Bs YXkgKF8gIgogICAtaCwgLS1oZWxwICAgICAgICAgICAgIGRpc3BsYXkgdGhpcyBoZWxwIGFuZCBl eGl0IikpCkBAIC05OSw2ICsxMDEsOSBAQCBEb3dubG9hZCBhbmQgZGVwbG95IHRoZSBsYXRlc3Qg dmVyc2lvbiBvZiBHdWl4LlxuIikpCiAgICAgICAgIChvcHRpb24gJygiYm9vdHN0cmFwIikgI2Yg I2YKICAgICAgICAgICAgICAgICAobGFtYmRhIChvcHQgbmFtZSBhcmcgcmVzdWx0KQogICAgICAg ICAgICAgICAgICAgKGFsaXN0LWNvbnMgJ2Jvb3RzdHJhcD8gI3QgcmVzdWx0KSkpCisgICAgICAg IChvcHRpb24gJygibm9kb3dubG9hZCIpICNmICNmCisgICAgICAgICAgICAgICAgKGxhbWJkYSAo b3B0IG5hbWUgYXJnIHJlc3VsdCkKKyAgICAgICAgICAgICAgICAgIChhbGlzdC1jb25zICdub2Rv d25sb2FkPyAjdCByZXN1bHQpKSkKIAogICAgICAgICAob3B0aW9uICcoI1xoICJoZWxwIikgI2Yg I2YKICAgICAgICAgICAgICAgICAobGFtYmRhIGFyZ3MKQEAgLTE5Nyw2ICsyMDIsNyBAQCBjb250 YWluZWQgdGhlcmVpbi4iCiAgICAgKGlmIGJ1aWx0PwogICAgICAgICAobWxldCogJXN0b3JlLW1v bmFkCiAgICAgICAgICAgICAoKGxhdGVzdCAtPiAoc3RyaW5nLWFwcGVuZCBjb25maWctZGlyICIv bGF0ZXN0IikpCisgICAgICAgICAgICAgKGxhdGVzdC1pbi1zdG9yZSAtPiAoc3RyaW5nLWFwcGVu ZCAlc3RvcmUtZGlyZWN0b3J5ICIvbGF0ZXN0IikpCiAgICAgICAgICAgICAgKGRvbmUgICAgICAo aW5kaXJlY3Qtcm9vdC1hZGRlZCBsYXRlc3QpKSkKICAgICAgICAgICAoaWYgKGFuZCAoZmlsZS1l eGlzdHM/IGxhdGVzdCkKICAgICAgICAgICAgICAgICAgICAoc3RyaW5nPT8gKHJlYWRsaW5rIGxh dGVzdCkgc291cmNlLWRpcikpCkBAIC0yMDUsNiArMjExLDkgQEAgY29udGFpbmVkIHRoZXJlaW4u IgogICAgICAgICAgICAgICAgIChyZXR1cm4gI3QpKQogICAgICAgICAgICAgICAoYmVnaW4KICAg ICAgICAgICAgICAgICAoc3dpdGNoLXN5bWxpbmtzIGxhdGVzdCBzb3VyY2UtZGlyKQorICAgICAg ICAgICAgICAgIChzd2l0Y2gtc3ltbGlua3MgbGF0ZXN0LWluLXN0b3JlIHNvdXJjZS1kaXIpCisg ICAgICAgICAgICAgICAgKGRpc3BsYXkgInN5bWxpbmtlZDogIiBsYXRlc3Qgc291cmNlLWRpcikK KyAgICAgICAgICAgICAgICAoZGlzcGxheSAic3ltbGlua2VkOiAiIGxhdGVzdC1pbi1zdG9yZSBz b3VyY2UtZGlyKQogICAgICAgICAgICAgICAgIChmb3JtYXQgI3QKICAgICAgICAgICAgICAgICAg ICAgICAgIChfICJ1cGRhdGVkIH5hIHN1Y2Nlc3NmdWxseSBkZXBsb3llZCB1bmRlciBgfmEnfiUi KQogICAgICAgICAgICAgICAgICAgICAgICAgJWd1aXgtcGFja2FnZS1uYW1lIGxhdGVzdCkKQEAg LTIyNCwxOCArMjMzLDI3IEBAIGNvbnRhaW5lZCB0aGVyZWluLiIKICAgKHdpdGgtZXJyb3ItaGFu ZGxpbmcKICAgICAobGV0KiAoKG9wdHMgIChwYXJzZS1vcHRpb25zKSkKICAgICAgICAgICAgKHN0 b3JlIChvcGVuLWNvbm5lY3Rpb24pKQorICAgICAgICAgICAoY29uZmlnLWRpciAoY29uZmlnLWRp cmVjdG9yeSkpCiAgICAgICAgICAgICh1cmwgICAoYXNzb2MtcmVmIG9wdHMgJ3RhcmJhbGwtdXJs KSkpCi0gICAgICAobGV0ICgodGFyYmFsbCAoZG93bmxvYWQtdG8tc3RvcmUgc3RvcmUgdXJsICJn dWl4LWxhdGVzdC50YXIuZ3oiKSkpCi0gICAgICAgICh1bmxlc3MgdGFyYmFsbAotICAgICAgICAg IChsZWF2ZSAoXyAiZmFpbGVkIHRvIGRvd25sb2FkIHVwLXRvLWRhdGUgc291cmNlLCBleGl0aW5n XG4iKSkpCi0gICAgICAgIChwYXJhbWV0ZXJpemUgKCglZ3VpbGUtZm9yLWJ1aWxkCi0gICAgICAg ICAgICAgICAgICAgICAgICAocGFja2FnZS1kZXJpdmF0aW9uIHN0b3JlCi0gICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChpZiAoYXNzb2MtcmVmIG9wdHMgJ2Jvb3Rz dHJhcD8pCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAl Ym9vdHN0cmFwLWd1aWxlCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAoY2Fub25pY2FsLXBhY2thZ2UgZ3VpbGUtMi4wKSkpKSkKKyAgICAgIChpZiAoYXNz b2MtcmVmIG9wdHMgJ25vZG93bmxvYWQ/KQogICAgICAgICAgIChydW4td2l0aC1zdG9yZSBzdG9y ZQotICAgICAgICAgICAgKGJ1aWxkLWFuZC1pbnN0YWxsIHRhcmJhbGwgKGNvbmZpZy1kaXJlY3Rv cnkpCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIzp2ZXJib3NlPyAoYXNzb2MtcmVm IG9wdHMgJ3ZlcmJvc2U/KSkpKSkpKSkKKyAgICAgICAgICAgIChtbGV0KiAlc3RvcmUtbW9uYWQK KyAgICAgICAgICAgICAgKChsYXRlc3QgLT4gKHN0cmluZy1hcHBlbmQgY29uZmlnLWRpciAiL2xh dGVzdCIpKQorICAgICAgICAgICAgICAgKGxhdGVzdC1pbi1zdG9yZSAtPiAoc3RyaW5nLWFwcGVu ZCAlc3RvcmUtZGlyZWN0b3J5ICIvbGF0ZXN0IikpKQorICAgICAgICAgICAgKGJlZ2luCisgICAg ICAgICAgICAgIChzd2l0Y2gtc3ltbGlua3MgbGF0ZXN0IGxhdGVzdC1pbi1zdG9yZSkKKyAgICAg ICAgICAgICAgKGRpc3BsYXkgInN5bWxpbmtlZDogIiBsYXRlc3QgbGF0ZXN0LWluLXN0b3JlKSkp KQorICAgICAgICAgIChsZXQgKCh0YXJiYWxsIChkb3dubG9hZC10by1zdG9yZSBzdG9yZSB1cmwg Imd1aXgtbGF0ZXN0LnRhci5neiIpKSkKKyAgICAgICAgICAgICh1bmxlc3MgdGFyYmFsbAorICAg ICAgICAgICAgICAobGVhdmUgKF8gImZhaWxlZCB0byBkb3dubG9hZCB1cC10by1kYXRlIHNvdXJj ZSwgZXhpdGluZ1xuIikpKQorICAgICAgICAgICAgKHBhcmFtZXRlcml6ZSAoKCVndWlsZS1mb3It YnVpbGQKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAocGFja2FnZS1kZXJpdmF0aW9uIHN0 b3JlCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoaWYg KGFzc29jLXJlZiBvcHRzICdib290c3RyYXA/KQorICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICVib290c3RyYXAtZ3VpbGUKKyAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoY2Fub25pY2FsLXBhY2thZ2Ug Z3VpbGUtMi4wKSkpKSkKKyAgICAgICAgICAgICAgKHJ1bi13aXRoLXN0b3JlIHN0b3JlCisgICAg ICAgICAgICAgICAgKGJ1aWxkLWFuZC1pbnN0YWxsIHRhcmJhbGwgY29uZmlnLWRpcgorICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAjOnZlcmJvc2U/IChhc3NvYy1yZWYgb3B0cyAn dmVyYm9zZT8pKSkpKSkpKSkKIAogOzsgTG9jYWwgVmFyaWFibGVzOgogOzsgZXZhbDogKHB1dCAn d2l0aC1QQVRIICdzY2hlbWUtaW5kZW50LWZ1bmN0aW9uIDEpCi0tIAoyLjkuMwoK --94eb2c0438f8a8d820053acd7793--