Re: Local .deb in main.xml

Alex de Landgraaf <[email protected]> Wed, 01 Mar 2006 03:29:19 +0100
Newsgroups gmane.linux.morphix.general
Message-ID <1141180159.2681.22.camel@omega>
--=-fPzKQ+yt5AWZ3LB8c5CT
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Tue, 2006-02-28 at 10:56 +0100, G1ul10 wrote:
> Hi all,
> I've a question whose answer I was unable to find in Morphix's FAQ and
> wiki. I've home made .deb packages stored in=20
>=20
> /debs
>=20
> which I can see from my Debian system with the following line
> in /etc/apt/sources.list
>=20
> deb file:/debs ./
>=20
> I would like to have them added to the main module... what's the
> right <repository> statement I've to put in main.xml?

Hey Giulio,

Simple answer: you can't, at least not directly :)

Long answer:
The process of building a module using mmaker consists of running a
debootstrapped bare Debian inside a chroot, thus it is impossible to
access the host filesystem (as that's the whole idea). Thus, without
some nasty tricks you can't have apt install your packages from the host
system.

There are a number of solutions possible:

The easiest would be to simply copy the packages over into the resulting
directory /tmp/libmorphix-bla, chroot into this directory and install
the packages manually. Annoying to automate, however.

Another method would be to mount --bind the directory from the host
system to a directory in the chroot. This way, you would again have
access to your packages inside the chroot. Also hard to automate.

Yet another method is to host your own repository in the host system via
FTP or HTTP. This is slightly more work to set up, but is the best way
to automate the process currently.

A forth method, and one I've been considering (you're not the first to
run into this limitation), is adding a commandline option to mmaker.
You'd give one or more filenames of the packages, mmaker would then
automatically install the packages inside the chroot after it has
processed the template. (mmaker -p /debs/mypackage.deb)

For now you should be able to figure things out. I'll put the
package-option on my todolist for mmaker. In the mean time you might
want to join the morphix-devel list; morphix-user was ment to be for
users of the default Morphix live cds, devel is both for people making
their own live cds as for us developers working on Morphix.

cheers,

Alex

--=20
/------------------------------------------------------------------\
| Alex de Landgraaf            | The cure for boredom is curiosity |
| Student AI & CS, VU, A'dam   |  There is no cure for curiosity   |
| Phone: 06-16844084           |                                   |
| GPG: http://www.alextreme.org/key_alex.asc    /'-'\              |
| www.alextreme.org & www.morphix.org          ( o o )             |
\------------------------------------------oOO0--(_)--0OOo---------/

--=-fPzKQ+yt5AWZ3LB8c5CT
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQBEBQb/QeuQA5TF/UsRAuwPAJ0d1BxoNlCDWUC/iIwu7GirNYrlHACfYVlZ
6sAYI5eWnNS2xF0BwNgWKEQ=
=bYe5
-----END PGP SIGNATURE-----

--=-fPzKQ+yt5AWZ3LB8c5CT--



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642