From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Darrington Subject: Re: A postinst equivalent in Guix? Date: Fri, 20 Jan 2017 07:23:12 +0100 Message-ID: <20170120062312.GA1354@jocasta.intra> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bp/iNruPH9dso1Pn" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUSba-000552-6l for guix-devel@gnu.org; Fri, 20 Jan 2017 01:23:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cUSbW-0007mt-6o for guix-devel@gnu.org; Fri, 20 Jan 2017 01:23:22 -0500 Received: from de.cellform.com ([88.217.224.109]:56313 helo=jocasta.intra) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cUSbV-0007lT-Te for guix-devel@gnu.org; Fri, 20 Jan 2017 01:23:18 -0500 Content-Disposition: inline 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: Georgi Kirilov Cc: guix-devel@gnu.org --bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 19, 2017 at 08:30:26PM +0200, Georgi Kirilov wrote: Hi, =20 is there anything in Guix that can do things at install time, like pos= tinst scripts in Debian? =20 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 ha= d 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. =20 It's a fast rule that packages in Guix may not mutate the store. So you wi= ll have to find out exactly what and why your package is trying to do that, and work out another way to effect it. J' =20 --=20 Avoid eavesdropping. Send strong encrypted email. PGP Public key ID: 1024D/2DE827B3=20 fingerprint =3D 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3 See http://sks-keyservers.net or any PGP keyserver for public key. --bp/iNruPH9dso1Pn Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAliBrNAACgkQimdxnC3oJ7M6pwCeJC+wiVcX4gPVttREnhmEdmCZ Qu0AnRmugf+bNBDFYCvKmLtGRUz7psC4 =mWk9 -----END PGP SIGNATURE----- --bp/iNruPH9dso1Pn--