Re: [RFC] Binary packages containing the source
Josselin Mouette <firstname.lastname@example.org> writes:
> Le jeudi 16 septembre 2010 Ã 03:08 +0200, Jakub Wilk a Ã©crit :
>> * Hector Oron <email@example.com>, 2010-09-15, 21:26:
>> > c) allow build depends on source packages, which it is probably a worst idea.
>> On the contrary, I think that allowing source packages to be installable
>> in the same way as binary packages is an excellent idea. Imagine you can
>> apt-get install src:linux-2.6
>> which will install Linux sources into a standard location, or upgrade it
>> if it's already installed.
> I agree this is a cleaner solution, but how do you ensure there are
> sources (deb-src) referenced in the sources.list ?
> Plus, these packages would (in the current state of affairs) lack a
Going by what multiarch proposed and apt already supports that should be
apt-get install linux-2.6:src
where "src" is just another architecture (at least for the user
apt-get install foo:src
should then install the source and also all Build-Depends(-Indep) of the
source. Besides packages Build-Depending on source packages this is also
verry usefull for working on sources. The foo:src package will be marked
manual while all Build-Depends remain automatic. When one is done
working with a source one can purge foo:src and all the Build-Depends
can be autoremoved if nothing else needs them.