From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,T_DKIMWL_WL_MED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x43e.google.com (mail-wr1-x43e.google.com [IPv6:2a00:1450:4864:20::43e]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 6c3d93dc for ; Thu, 27 Dec 2018 14:40:54 +0000 (UTC) Received: by mail-wr1-x43e.google.com with SMTP id j10sf7971152wrt.11 for ; Thu, 27 Dec 2018 06:40:54 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1545921652; cv=pass; d=google.com; s=arc-20160816; b=bICmtgXNaRq81bcCqmIO26dlnA+HOHNRaP1g3THaP0dsxL3DnImt94VgxReS59RVP3 oHWpFqr2AeMQCehj2QPA2GF7Db1HMh/hWnFFsrQzPmbr6oYSFCngbsBh/xNAzHdQZP/3 nQkt++W0iNOjmj0WYh1dpJvMtiYxlTZXsieUN9ZHpS28gK2K8ri/xOMmMrmoi71SSj8i gwbApBvOpubUWogmOTH0L0nGXXWDQsF/8abfKjzSsH3pDYp8lIkcIicjUZKS6T9p9wHj /2t9GFdJewdfe6Xgh7OB5RTa8djAgB8nFOPtcs6YdhRMEgxcYWRF78qQ1MRmpXfATNu9 icuw== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:sender:dkim-signature; bh=0Mrx1ZD/W9aSJJ17ii/WbEHBUHi4RwcdUHbFhEgiWQ0=; b=HmaVLveJ0Pe6Mx0UR9LrvKtfGu2+L/sTETuUoHMbEg2bC5HwLOwsnDTH1sFp2idsBT +tsMeQsOQOf0P2y3J0qpFqVoMfSTziTGjRFtHcMZjN5cD899OaRFXBkopiyutFnTwtrR 2XhmNSzdCwMc2obNbSJn7wmigvrsTwy5gRt1dh03xcH71xBA5liLVpL94GfaR5hFeuRp 5UjHB/1osX12uyaLuxszRdJwOpcpwg+pfOsqKxiDiOWSClinJKwC6cbkuujcG7r7+1V+ VdBrbcM/cSnzJlO2rU9D2X0jXvSCZEydO7P9ZHo/e0arOHfeRCyW5anyBVkt7X/jpata UVjw== ARC-Authentication-Results: i=3; gmr-mx.google.com; arc=pass (i=1 spf=pass spfdomain=schultz.la dkim=pass dkdomain=schultz.la dmarc=pass fromdomain=schultz.la>); spf=pass (google.com: domain of jonathan@schultz.la designates 135.84.80.217 as permitted sender) smtp.mailfrom=jonathan@schultz.la DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=0Mrx1ZD/W9aSJJ17ii/WbEHBUHi4RwcdUHbFhEgiWQ0=; b=kgcf7R3fhXuAxsHq226DTmSFXFanT5rjhn2Bh7iaXcVBV5O9L5gQE+8M25Vwh0qf4X ooe+fZkrbRUCERICaRBLi9m9XKY4rICemWg/fyhPNlC43d69HSBmhFv18gSG9XIl94hY tJD44JJ4xRaOf0RWZiV/5JxQRgLLJ0RZmxYITIcT+bqb5zgwIW4FoZ8vvo7hi5nAH+tL v/pHdLnCa8+J4c80YkE1RDONLMBMgHSeb27GoBtM2IHR51MMGGx3Fi89fQTqLz+XyRw6 tzuWsHapNQsjDru/fKdBI5i3StzTUJXmvvCegn7M2lQwxStbPtwswK1uWggyvjQ9EyQk W6Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=0Mrx1ZD/W9aSJJ17ii/WbEHBUHi4RwcdUHbFhEgiWQ0=; b=a08DkZNELN8yfvPpI2WKf4mvu8M/1grhgMh8ZAImVqQ6A+rP22RgFiyctdMWaWOa50 Lm8JNcjsUAbEzh28zo8E00vxNE7hIetlQkp2lHhXqhYWNkm/8Ld/HP/ZSgdovpMpmaBO tVcHgBVHn/fVoX/AxSQXllkS5D4eRQ+RsTvrRaZxuuPvt2V+4FctpKpBXxStdAmJqF71 6kmd3UtfNW2Vh2YtBhul3KP4Ba7SppKolbioS3C66DJkz20avhjnOaAeYBRDZAeuH8BY ims2yT0NfVqCpYEGCSPFBdgGFP3LpMuRu3gD1/Q4PFofUxCN4CiWywM7GXv88agH9rB4 Eb9Q== Sender: voidlinux@googlegroups.com X-Gm-Message-State: AJcUuke2KqvOdUQEEP9F9taJ13cYqB5a4gK63SPSItL7abN4iq/j29Cg YYpAhwkTa7KFPHHpuOjRrHQ= X-Google-Smtp-Source: ALg8bN5oMDuqiO3VWlSpScyZzp/LET2X6w69X9JzYkl9GjMZbuoj+TKit+IUerYfR0qa2KqM9O8wKQ== X-Received: by 2002:adf:e743:: with SMTP id c3mr259216wrn.5.1545921652349; Thu, 27 Dec 2018 06:40:52 -0800 (PST) X-BeenThere: voidlinux@googlegroups.com Received: by 2002:a5d:6812:: with SMTP id w18ls3514032wru.1.gmail; Thu, 27 Dec 2018 06:40:51 -0800 (PST) X-Received: by 2002:adf:e507:: with SMTP id j7mr1272229wrm.12.1545921651742; Thu, 27 Dec 2018 06:40:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1545921651; cv=pass; d=google.com; s=arc-20160816; b=Zn8URX8YM/RYuOa1dqqnd2yl44bgQMgQxhUDScROeA7iFmbm4oz4ZU3F7b5GUy077u SwEcSpNyyC+I+cuA8MI0hJKb9/w1WRz3N7TU1QPk9MFLB2+UksS8pR9C7dd8Uucuw6Pq 1K8mnlF7YYMEthelG1uLx+MOYjS2hv9Wd0YVomOjkHjftpfWpwQ0nzh8OL3QoM1rikmK KFXOcvyORgeVN8SMdohlEhT7PI3ayktCokhE3iaIFhXv9065TD36iQhvwV17uPFBgAXc xc7wRHYVrwBfEN+VwGf9/mBxTha6cMUpX65KkAUgKD+plQyYD5XnT2gzzVriw21Ae2mV wJNA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject; bh=VDtJ4r0rESEK9+dJB+ePLntQXdC2O4Jm2rp0XEFHRlk=; b=w7QhMYraHAmNKuDb7qZH1Uz+u1Av8shvvTWfOH9sq5USfcujj4qW72RXOj0sQY2Car HomJJ9IMoPRWgymp2JgEqLANnZQDw+oaippW0R7tJlM+X+1gQstgGSY6QM+4/kiMWDk7 krEQeZ7XNL18nzRu3ldyI6NgJF/zDwq6t8Y6NuFErB72zPqTe19lcBClBO5pLTwLFNWO iKP9ayVWXloMe1egKAHwC5XfvUoHogtVN0pwC84rwLJofnttRtiKtqAZ8rOuxNlR3tZk 3CbgqCiYzFIrcmAwQlLFcm2W9TMgXId2Ovk6m24TTfoBUTferjGhgAw8yBDIUBFlxPtb z9WA== ARC-Authentication-Results: i=2; gmr-mx.google.com; arc=pass (i=1 spf=pass spfdomain=schultz.la dkim=pass dkdomain=schultz.la dmarc=pass fromdomain=schultz.la>); spf=pass (google.com: domain of jonathan@schultz.la designates 135.84.80.217 as permitted sender) smtp.mailfrom=jonathan@schultz.la Received: from sender-of-o52.zoho.com (sender-of-o52.zoho.com. [135.84.80.217]) by gmr-mx.google.com with ESMTPS id k39si956605wre.2.2018.12.27.06.40.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Dec 2018 06:40:51 -0800 (PST) Received-SPF: pass (google.com: domain of jonathan@schultz.la designates 135.84.80.217 as permitted sender) client-ip=135.84.80.217; ARC-Seal: i=1; a=rsa-sha256; t=1545921638; cv=none; d=zoho.com; s=zohoarc; b=L5roRRTs93yYruFQDtQlM5yNAXSSwHhHNbSnQuKtUmJHJeBnFQF5vCrJUxENmb54a69o56YojdjFpz8zhOwu5Y/OiqPEDxYyDcVrmY/BBtHlRevsi4SPvbTPUgsXZGnBcEZ5zSaLEsHq27LBpr7HDmlr6CGx24qpNK4+jNVZhnY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1545921638; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=VDtJ4r0rESEK9+dJB+ePLntQXdC2O4Jm2rp0XEFHRlk=; b=PMC6Q9K/8uRS5cUTTt994ibz318YrVXvvWyWU0ZVz6kc5wsKDJ5L7/iRGjaVLcq7+Ew6CkQcSJ5Vch71vrYeHo+t/rnTRRgf5jiZAGFUbFuLQMDzZiAsu5xmk/C7oTjsv/Ukv9/Jtb+jxm7EakAB8Gt8gxdRgFQSWX6FY57To0Q= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=schultz.la; spf=pass smtp.mailfrom=jonathan@schultz.la; dmarc=pass header.from= header.from= Received: from [192.168.8.109] (pa49-196-164-138.pa.vic.optusnet.com.au [49.196.164.138]) by mx.zohomail.com with SMTPS id 1545921636078492.0175587253208; Thu, 27 Dec 2018 06:40:36 -0800 (PST) Subject: Re: xbps-src reposync error To: Aleksey Tulinov , Jonathan Schultz Cc: Leah Neukirchen , voidlinux@googlegroups.com References: <871s65og6a.fsf@vuxu.org> From: Jonathan Schultz Message-ID: <378ee8b8-2fb6-b041-fc5c-9821166cc79f@schultz.la> Date: Thu, 27 Dec 2018 22:40:29 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Language: en-AU Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-Original-Sender: jonathan@schultz.la X-Original-Authentication-Results: gmr-mx.google.com; arc=pass (i=1 spf=pass spfdomain=schultz.la dkim=pass dkdomain=schultz.la dmarc=pass fromdomain=schultz.la>); spf=pass (google.com: domain of jonathan@schultz.la designates 135.84.80.217 as permitted sender) smtp.mailfrom=jonathan@schultz.la Precedence: list Mailing-list: list voidlinux@googlegroups.com; contact voidlinux+owners@googlegroups.com List-ID: X-Google-Group-Id: 289663804196 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , OK so I found the problem with proot. It's been fixed (very recently) upstr= eam: https://github.com/proot-me/PRoot/pull/149 But as the discussion here:= https://github.com/proot-me/PRoot/issues/127 reveals, they have some stick= ing points on making new releases, so the fix won't find its way downstream= until those have been resolved. I've applied the patches myself (using the work-around described below), an= d sure enough I can now use proot to build void packages as a non-privilege= d user under Docker. If anyone thinks its worthwhile I can submit the patches as a pull request = to void-linux, but otherwise probably just wait for things to work themselv= es out upstream. Cheers, Jonathan On 12/26/18 11:30 PM, Aleksey Tulinov wrote: > I saw something similar before: https://github.com/Microsoft/WSL/issues/2= 981 >=20 > Although it was WSL-related, user namespaces something something. >=20 > =D1=81=D1=80, 26 =D0=B4=D0=B5=D0=BA. 2018 =D0=B3. =D0=B2 08:34, Jonathan = Schultz : >> >>Not sure whether to make a pull request with patches, or wait until a fix= ed version gets released upstream. Anyway it's documented for >>>>> ERROR unshare (Operation not permitted) >>> >>> This is the actual error: unshare does not have setgid (or you are not >>> in the group). >> >> >> I believe the error is actually related to running xbps-src inside a Doc= ker container, as setting setgid, or running as root make no difference. Fo= r the record, after much trial-and-error I have managed to find a combinati= on that works. It required running the container as user root, and with bot= h the --privileged and --cap-add=3DSYS_ADMIN options. >> >> However I have not entirely given up on finding a simpler solution. One = promising route seemed to be to use the proot utility, which works in users= pace, thus potentially avoiding all these permission problems. However when= I try building using proot I see the following: >> >>> configure: creating ./config.status >>> config.status: creating MakefileI the following: >>> mv: cannot move './confT6XesZ/out' to 'Makefile': No such file or direc= tory >>> config.status: error: could not create Makefileerrors >> >> I've had a bit of a go at reverse engineering the xbps-src build process= , but found it all a bit confusing, so wondering if anyone might have seen = something like this before. >> >> Thanks as always. >> >> -- >> You received this message because you are subscribed to the Google Group= s "voidlinux" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n email to voidlinux+unsubscribe@googlegroups.com. >> To post to this group, send email to voidlinux@googlegroups.com. >> To view this discussion on the web visit https://groups.google.com/d/msg= id/voidlinux/CAN_yh5FT6-KeR4SDKT0%3DXU9%3DQoqaV18%3Dcr3ust0wsksVsKTtnQ%40ma= il.gmail.com. >> For more options, visit https://groups.google.com/d/optout. --=20 You received this message because you are subscribed to the Google Groups "= voidlinux" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to voidlinux+unsubscribe@googlegroups.com. To post to this group, send email to voidlinux@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/= voidlinux/378ee8b8-2fb6-b041-fc5c-9821166cc79f%40schultz.la. For more options, visit https://groups.google.com/d/optout.