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,HTML_MESSAGE, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_DKIMWL_WL_MED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ua1-x937.google.com (mail-ua1-x937.google.com [IPv6:2607:f8b0:4864:20::937]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id fce986d6 for ; Wed, 26 Dec 2018 05:34:23 +0000 (UTC) Received: by mail-ua1-x937.google.com with SMTP id i44sf2556989uae.22 for ; Tue, 25 Dec 2018 21:34:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1545802462; cv=pass; d=google.com; s=arc-20160816; b=uk3iZAuN5/DE9yfABlblsgjmDqrqpP5T2UG9KULNlTN0zRWuW1UilD8AKZfZ3zIZf+ AYnAXaVdrZeWfLd/A79vi3mcWZtVLprYg0D1V9nF5zNbpxTWAeFaZgltgtYcjPLz+Cq6 Mr4CesolZa9mOS5lsfuJLXj1UQ0929mGdwcceI3zJNR12g2Vi+Uk+VX6rk0CYI/8m6K6 g/VyUL/74EXMCFWLaUmaJuxEz4jNm/PYtzApVTAoa9PGkdQGecdXKZfCkAuICuZfm9Ip r3NJW0Wn2uEZselBTS17T11Nal8EiDMs2gIcptWvcbqQL6GgsyeHGc4Z3apyvUTdgqn4 AyKg== ARC-Message-Signature: i=2; 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:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:sender:dkim-signature; bh=/x6mDeTr/5uCD9XzWPqvmmXW9YiG1EU9kXVEdG5K4ts=; b=BmED7X+OrY6WUa7StAej4ulYzkl12U4SNLlbjrWEw/w+E664m8XIoNoDTP3mS2h5RH YpP6AsyU9uorf5qpkY/Dd2tJlFOllTegKYV8SfrsAEM9G9MxXie2FEHQ40LSQCcMo3bc W6VCYk/gP1N4sonFh/r4B8X3YMs+ghQt+ZBzY7KWSCe59+1tkwmEeWP7s71wuvjTLP9l mOczwYtMeSYVYHeYMqeJUZp1/DSt1LF8n2J3jIsw3jkzKOXaOlPO87LTmD6nZawIshvr PxTkRwbkqPflE4CwpP8PLHierpO/GuJAQVqR8/mOCb86uRNFK7j2+BGXXdRnG3h+bw1s ewKw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of jonathan.schultz@gmail.com designates 209.85.219.173 as permitted sender) smtp.mailfrom=jonathan.schultz@gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:cc:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=/x6mDeTr/5uCD9XzWPqvmmXW9YiG1EU9kXVEdG5K4ts=; b=l3QzjTp/cD7FJD4cGG6wIS7NU+9VZi5cWpB5UAEUnc3KzsTdsMSpCvtAiv+/l9zHNj td0Vm5M/kY8eZhDFQ3FLKoa82E76aeK1alpqb67TE2uSy8xOG4u6TUGJ5QS5LCT5tXRE sYDeaZ++zRnGD/PY8/52nz/KhbiScWQZx0Yb8hA12FNxZZIPq/x9HRGxEBUcUQxwxSVP hcOofN/IKRLsdkv1RQP2T9p2DEbgm/zEkItQK763C3qgc9uqC+a7hRlDgtlzOOR5K3Dx tw+Qu3St4LRZIy+Tg1wGHbRDbWj/3y30vVsojsCf6E7HR0bAyhXAnJF2Ak2nfeszOmob 9TVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to:cc: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=/x6mDeTr/5uCD9XzWPqvmmXW9YiG1EU9kXVEdG5K4ts=; b=dSWto77xeZ1MGTWUwMIe43YESuhBnteKNIQt2eSghJXeOD/zGzOgNk6YbB6RHZz2Uh mHfodtz3o21Oq2Exkl3yoB23MvFmmvsgnqRBc/xprPKA3nyEZLYM3pwpRujnWU6CNN88 yLC09VHDD4Oa1K/Pqw8M1d9dWbW2iVDhxD0tFrfRuNjJPGf6v3rTk6zqUMXlz6dpVhWI 6+SNYNl3iIWeEfLcVwOWwila4S3DCAp54nsbgGvyid/X+Toc2AGtD/Y6xeEM7H3KGBHN qfq8jjj2aa2gS5pX8JeUX5YiK8yI20aY2prCLrm51LLILhOoF3zlJcCInjUoB7XEmWAS RJgw== Sender: voidlinux@googlegroups.com X-Gm-Message-State: AJcUukemPt+WSgGHH/kVtpy8Y2Y7fG7LfPE+oKDYs09zQl13u7HivLP4 nojmKrWZazgxLM+dfX/h5sA= X-Google-Smtp-Source: ALg8bN69WWMAU9m/fEGVbm4dssIW0IXVE42xCMvLkKR3gduFMTehCzRTfoX0jBiydt+WMkDLnEE02Q== X-Received: by 2002:a1f:a504:: with SMTP id o4mr39825vke.0.1545802462289; Tue, 25 Dec 2018 21:34:22 -0800 (PST) X-BeenThere: voidlinux@googlegroups.com Received: by 2002:a67:f705:: with SMTP id m5ls2574650vso.3.gmail; Tue, 25 Dec 2018 21:34:21 -0800 (PST) X-Received: by 2002:a67:3f0f:: with SMTP id m15mr16419707vsa.44.1545802461797; Tue, 25 Dec 2018 21:34:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545802461; cv=none; d=google.com; s=arc-20160816; b=l4WT5gMRQg3B7o7au2E/5AylzsKlWLW1uem3miNy2vSL9ShS9pZOQqmzfBxk72WbqH R1X+pcDhglqQrD2XJOEArlPAD1LwcOI5O6ZKYsAG8Fts053hbZ58DYjLSw9nqYFqbV/V HE3VksLQ2DsQpbuuYTE3whzmLw8y8SWo2fYx5PZ55/LNfWRnpDT6497QdX5C0H68IWL4 C1uqo+RdhfYFIyOBT4kx37Q558n1sGjYf6AEYhCYrdIgnThZQP5ws4d49NfGECt59nHk K5SC016bPDT2zsv7/fXVK/pVHkXw9kY0OPrKy2OYxiWomNfSXslkxp7mbatlQuWip2JO f19g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version; bh=RxB2qwrc4WkXFo63Nq/25iDl1YOooGWTYgsyl/E1GfM=; b=NnEgSKS28xbqk8KP66iHS5czFxVMxzIJZKnLrsVXvg0jC5W6mU1gStfK0ZlZAwIbIq MTMuDVq1GADU6wGmKQS7JfkVAUMaACklbnphzt1QTpjFED8VywFZ+JSuXzuKJ45bOWxr QrZRWb5Nc1Ps8RZgCNtcFncT8cuKl08Rx4i3eIi2cAprKrM8MXOC7PbSl7Wx7Re5oSF7 A1RBcZtfuCczx2o5FtaeYImNd/nJwavrB/V4nsEW6wbU3f0Hg2gD9pq1S770UpqyFPk3 zrR0/LLmler+G+xclKSucpDk0yq2tCVlMlOZvrG4PR0vZii0PhG0befeunAes6eMfIZ+ JIXw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jonathan.schultz@gmail.com designates 209.85.219.173 as permitted sender) smtp.mailfrom=jonathan.schultz@gmail.com Received: from mail-yb1-f173.google.com (mail-yb1-f173.google.com. [209.85.219.173]) by gmr-mx.google.com with ESMTPS id l127si1664912vkh.3.2018.12.25.21.34.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Dec 2018 21:34:21 -0800 (PST) Received-SPF: pass (google.com: domain of jonathan.schultz@gmail.com designates 209.85.219.173 as permitted sender) client-ip=209.85.219.173; Received: by mail-yb1-f173.google.com with SMTP id a190so3041746ybg.3 for ; Tue, 25 Dec 2018 21:34:21 -0800 (PST) X-Received: by 2002:a25:3cc1:: with SMTP id j184mr18459875yba.439.1545802461340; Tue, 25 Dec 2018 21:34:21 -0800 (PST) MIME-Version: 1.0 References: <871s65og6a.fsf@vuxu.org> In-Reply-To: <871s65og6a.fsf@vuxu.org> From: Jonathan Schultz Date: Wed, 26 Dec 2018 13:34:09 +0800 Message-ID: Subject: Re: xbps-src reposync error To: Leah Neukirchen Cc: voidlinux@googlegroups.com Content-Type: multipart/alternative; boundary="00000000000099ea43057de62eeb" X-Original-Sender: jonathan.schultz@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jonathan.schultz@gmail.com designates 209.85.219.173 as permitted sender) smtp.mailfrom=jonathan.schultz@gmail.com 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: , --00000000000099ea43057de62eeb Content-Type: text/plain; charset="UTF-8" >> 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 Docker container, as setting setgid, or running as root make no difference. For the record, after much trial-and-error I have managed to find a combination that works. It required running the container as user root, and with both the --privileged and --cap-add=SYS_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 userspace, 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 directory > 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 Groups "voidlinux" group. To unsubscribe from this group and stop receiving emails from it, send an 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/msgid/voidlinux/CAN_yh5FT6-KeR4SDKT0%3DXU9%3DQoqaV18%3Dcr3ust0wsksVsKTtnQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. --00000000000099ea43057de62eeb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
<= div class=3D"gmail_quote">
>> 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 a= ctually related to running xbps-src inside a Docker container, as setting s= etgid, or running as root make no difference. For the record, after much tr= ial-and-error I have managed to find a combination that works. It required = running the container as user root, and with both the --privileged and --ca= p-add=3DSYS_ADMIN options.

However I have not enti= rely given up on finding a simpler solution. One promising route seemed to = be to use the proot utility, which works in userspace, thus potentially avo= iding all these permission problems. However when I try building using proo= t I see the following:

> configure: creatin= g ./config.status
> config.status: creating MakefileI the following:<= br>> mv: cannot move './confT6XesZ/out' to 'Makefile': N= o such file or directory
> config.status: error: could not create Mak= efileerrors

I've had a bit of a go at reverse engin= eering the xbps-src build process, but found it all a bit confusing, so won= dering if anyone might have seen something like this before.

<= div class=3D"gmail_quote">Thanks as always.

--
You received this message because you are subscribed to the Google Groups &= quot;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/CAN_yh5FT6-KeR4SDKT0%3DXU9%3DQoqaV18%3Dcr3ust= 0wsksVsKTtnQ%40mail.gmail.com.
For more options, visit http= s://groups.google.com/d/optout.
--00000000000099ea43057de62eeb--