Re: Cross-architecture package installs

看板FB_current作者時間12年前 (2013/04/27 13:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串7/7 (看更多)
--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--
文章代碼(AID): #1HUsBO37 (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1HUsBO37 (FB_current)