From owner-freebsd-pkg@FreeBSD.ORG Wed Feb 13 05:55:46 2013 Return-Path: Delivered-To: pkg@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 6EB0363A; Wed, 13 Feb 2013 05:55:46 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id 175B8C24; Wed, 13 Feb 2013 05:55:45 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id r1D5tjOH026043; Wed, 13 Feb 2013 05:55:45 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.143] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id ga8tkygiiksxnh4ff3u854yqd6; Wed, 13 Feb 2013 05:55:45 +0000 (UTC) (envelope-from tim@kientzle.com) Subject: Re: Cross-architecture package installs Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: multipart/signed; boundary="Apple-Mail=_22DF8953-28BC-421D-A4DA-9BE13685397A"; protocol="application/pgp-signature"; micalg=pgp-sha1 From: Tim Kientzle In-Reply-To: <1004D96B-38AF-43FA-8BE0-49046D9446E2@FreeBSD.org> Date: Tue, 12 Feb 2013 21:55:44 -0800 Message-Id: <22ADE6F0-42E0-4E3F-A16A-076942BEAE4B@kientzle.com> References: <4703DEB0-E2DC-403E-9F14-DE968CBE4921@freebsd.org> <20130206065514.GB1268@ithaqua.etoilebsd.net> <1004D96B-38AF-43FA-8BE0-49046D9446E2@FreeBSD.org> To: Tim Kientzle X-Mailer: Apple Mail (2.1283) Cc: pkg@freebsd.org, Baptiste Daroussin , freebsd-current Current X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Feb 2013 05:55:46 -0000 --Apple-Mail=_22DF8953-28BC-421D-A4DA-9BE13685397A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii >>> I'm working on tools to build ARM system images. >>> Usually, these tools run on x86, which creates a problem >>> for packages. >>=20 >>> 1) Pre-install/post-install scripts. >>>=20 >>> These obviously don't work since the DESTDIR >>> is for a different architecture. >=20 >> This is imho the main problem, and one of the long term goal of pkgng = is to remove as much as possible any pre-instal/post-install scripts. Well, you're very close to having this work: The easiest approach I've found is to setup a simple static webserver, use "pkg repo" to build the catalogue, then: echo "Installing packages" PACKAGESITE=3Dhttp://my.local.server/packages/arm export PACKAGESITE pkg -c $DESTDIR update pkg -c $DESTDIR install -y pkg pkg -c $DESTDIR upgrade pkg -c $DESTDIR install -y emacs-nox11 The only piece missing is that the POST-INSTALL scripts are failing. For the packages I'm using, it would be enough to provide symlink support in the +MANIFEST file directly. For other packages, something like the "after next boot fixup" that I outlined earlier would work. But this is very, very close. This is a big step forward for non-x86 FreeBSD. Kudos to the pkgng team! Tim --Apple-Mail=_22DF8953-28BC-421D-A4DA-9BE13685397A Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.18 (Darwin) iQEcBAEBAgAGBQJRGyrgAAoJEGMNyGo0rfFB9wkIALl1EyigNJj+dc35XS87vkrQ Cym0crX1eKnruYbNMgwfIXZqonYQnnJcJt5GhgMPgzXAy3sSrB2c89KyxevHleUi Z7fnJc/m+eGLDjMjlQCZm7rw7A3UrQOhsVTyYJ6S2pJVVQFyUMVmfjfc9H2Hgtsr y8Jw24affjpn3i+Agp+xnQLZIk3AT4cDt0D7HSjVVHCZ1Uey9RuZDW/raWOqX4jv OBbMMn7tXBOqkaVPXfKuC7m7r9lvo0cflT2MnFBL+zqkAhZIx7EVVsNF7o4kgtFn gU71tikWCSnOfYrpWz8Eq5gQfzj8XtraRdEHgkVI5RUwWrk8ur9tI2mCS7pKPb4= =s4Wt -----END PGP SIGNATURE----- --Apple-Mail=_22DF8953-28BC-421D-A4DA-9BE13685397A--