From: ng0 <ngillmann@runbox.com>
To: Efraim Flashner <efraim@flashner.co.il>
Cc: guix-devel@gnu.org
Subject: Re: Guix on other distros: Gentoo. [You run Gentoo? Please help testing.]
Date: Sat, 24 Sep 2016 09:59:58 +0000 [thread overview]
Message-ID: <87intl39ep.fsf@we.make.ritual.n0.is> (raw)
In-Reply-To: <DFF0955C-3F80-4764-9AF9-EB1EDF0C767A@flashner.co.il>
Hi,
I don't like to leave questions open. What if someone else finds this in
the future and wonders how we solved it? Find the answer below.
Efraim Flashner <efraim@flashner.co.il> writes:
> On Fri, Aug 05, 2016 at 07:02:14PM +0000, ng0 wrote:
>>
>> The disfunctional thing currently is:
>>
>> guixbuilder01 ... guixbuilder10 get created and added to guixbuild
>> group.
>>
>> Post-setup I let root authorize hydra's pubkey, then I run
>> `rc-service start guix' which sadly makes the terminal unusable if you
>> don't append "&".
>>
>> running guix pull then as root downloads happen, but as soon as builder
>> should start, it fails:
>>
>> shikahr ~ # guix pull
>>
>> Starting download of /tmp/guix-file.RpedfI
>> From http://git.savannah.gnu.org/cgit/guix.git/snapshot/master.tar.gz...
>> ….tar.gz 1.1MiB/s 00:10 | 10.3MiB
>> transferred
>> unpacking
>> '/gnu/store/h33fva5hvrw7z99vrn3ivnh07mgg55qc-guix-latest.tar.gz'...
>> substitute: updating list of substitutes from
>> 'https://mirror.hydra.gnu.org'... 100.0%
>> The following derivations will be built:
>> /gnu/store/yw3dzq3nlngki5bd8z5yp1aslvzsjh1n-guix-latest.drv
>> /gnu/store/2gyrssyswj0p2z6yr7938kln20piy4w6-module-import.drv
>> /gnu/store/jb6ir2q5j8lwmdcqlhs7c4vdkgllcjga-module-import-compiled.drv
>> building path(s)
>> `/gnu/store/35xw5kccyq76v8zgkdrnx1z9w8s6ll7m-module-import'
>> guix pull: error: build failed: the build users group
>> `guixbuild' has no members
>> shikahr ~ # id -nG guixbuilder01
>> guixbuild
>> shikahr ~ # id -nG guixbuilder1
>> id: guixbuilder1: no such user
>>
>>
>> I know the openrc service is total crap because if you don't kill every
>> instance of guix-daemon before shutdown/reboot, you have almost 30
>> minutes delay.
>> OpenRC services are not my favorit thing to write, but it should just
>> work.
>>
>> Also strange enough a sequence from 1 - 10 in ebuild creates users 01 -
>> 10.
>>
> one thing you could try as a work around is to only make 9 builders, or
> to number the builders from 10 to 19.
This is how lynX worked around it for my ebuild:
pkg_setup() {
enewgroup guixbuild
g=0
for i in `seq -w 0 9`;
do
enewuser guixbld$i -1 -1 /var/empty guixbuild;
if [ $g == 0 ]; then
g="guixbld$i"
else
g="$g,guixbld$i"
fi
done
# For some strange reason all of the generated
# user ids need to be listed in /etc/group even though
# they were created with the correct group. This is a
# command that patches the /etc/group file accordingly,
# but it expects perl to be installed. If you don't have
# perl installed, you have to do this manually. Adding a
# dependency for this is inappropriate.
perl -pi~ -e 's/^(guixbuild:\w+:\d+):$/\1:'$g'/' /etc/group
}
With the current version I was able to build+install "hello". What's now
missing is fixing the service, otherwise you can safely run Guix on
Gentoo.
> --
> Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
> GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
> Confidentiality cannot be guaranteed on emails sent or received unencrypted
>
> --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
--
ng0
prev parent reply other threads:[~2016-09-24 10:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-04 22:01 Guix on other distros: Gentoo. [You run Gentoo? Please help testing.] ng0
2016-08-05 18:07 ` Leo Famulari
2016-08-05 19:02 ` ng0
2016-08-20 8:53 ` Efraim Flashner
2016-09-24 9:59 ` ng0 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87intl39ep.fsf@we.make.ritual.n0.is \
--to=ngillmann@runbox.com \
--cc=efraim@flashner.co.il \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.