Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Feb 2013 21:55:44 -0800
From:      Tim Kientzle <tim@kientzle.com>
To:        Tim Kientzle <kientzle@freebsd.org>
Cc:        pkg@freebsd.org, Baptiste Daroussin <bapt@freebsd.org>, freebsd-current Current <freebsd-current@freebsd.org>
Subject:   Re: Cross-architecture package installs
Message-ID:  <22ADE6F0-42E0-4E3F-A16A-076942BEAE4B@kientzle.com>
In-Reply-To: <1004D96B-38AF-43FA-8BE0-49046D9446E2@FreeBSD.org>
References:  <4703DEB0-E2DC-403E-9F14-DE968CBE4921@freebsd.org> <20130206065514.GB1268@ithaqua.etoilebsd.net> <1004D96B-38AF-43FA-8BE0-49046D9446E2@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?22ADE6F0-42E0-4E3F-A16A-076942BEAE4B>