From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Re: Guix on other distros: Gentoo. [You run Gentoo? Please help testing.] Date: Sat, 24 Sep 2016 09:59:58 +0000 Message-ID: <87intl39ep.fsf@we.make.ritual.n0.is> References: <87invg42ik.fsf@we.make.ritual.n0.is> <20160805180702.GA27500@jasmine> <878twb11l5.fsf@we.make.ritual.n0.is> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnjkp-00079z-9M for guix-devel@gnu.org; Sat, 24 Sep 2016 06:00:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bnjkl-0005ic-2P for guix-devel@gnu.org; Sat, 24 Sep 2016 06:00:18 -0400 Received: from aibo.runbox.com ([91.220.196.211]:52487) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnjkk-0005hU-O1 for guix-devel@gnu.org; Sat, 24 Sep 2016 06:00:14 -0400 In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." 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: Efraim Flashner Cc: guix-devel@gnu.org 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 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 אפרים פלשנר > 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