From mboxrd@z Thu Jan 1 00:00:00 1970 From: Georgi Kirilov Subject: A postinst equivalent in Guix? Date: Thu, 19 Jan 2017 20:30:26 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c092f9e2862f7054676ba23 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58662) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUHTj-0004jU-Hf for guix-devel@gnu.org; Thu, 19 Jan 2017 13:30:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cUHTi-0000bg-Kw for guix-devel@gnu.org; Thu, 19 Jan 2017 13:30:31 -0500 Received: from mail-yb0-x232.google.com ([2607:f8b0:4002:c09::232]:36776) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cUHTi-0000aK-Fy for guix-devel@gnu.org; Thu, 19 Jan 2017 13:30:30 -0500 Received: by mail-yb0-x232.google.com with SMTP id 123so30102639ybe.3 for ; Thu, 19 Jan 2017 10:30:27 -0800 (PST) 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: guix-devel@gnu.org --94eb2c092f9e2862f7054676ba23 Content-Type: text/plain; charset=UTF-8 Hi, is there anything in Guix that can do things at install time, like postinst scripts in Debian? A program in a package I created is trying to access /var, but has no permissions. (Well, /gnu/store/.../var) The 'install' make target was doing 'chgrp' and 'install -g', but I had to remove these because there was no such group in the chroot jail. And it would be wrong anyway, as the gid in the jail would be different from that in the systems where the package will be installed. So, I guess /gnu/store/.../var has to be chgrp-ed during installation, on the user's system. Any hints? -- Regards, Georgi Kirilov --94eb2c092f9e2862f7054676ba23 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

is there anything in Guix that can = do things at install time, like postinst scripts in Debian?

<= /div>
A program in a package I created is trying to access /var, but ha= s no permissions. (Well, /gnu/store/.../var)
The 'install'= ; make target was doing 'chgrp' and 'install -g', but I had= to remove these because there was no such group in the chroot jail. And it= would be wrong anyway, as the gid in the jail would be different from that= in the systems where the package will be installed.
So, I guess = /gnu/store/.../var has to be chgrp-ed during installation, on the user'= s system.

Any hints?

-- <= br>
Regard= s,
Georgi Kirilov
--94eb2c092f9e2862f7054676ba23--