Package management

Matthew Burgess matthew at linuxfromscratch.org
Tue Dec 9 01:38:07 MST 2008


On Mon, 08 Dec 2008 13:02:46 -0700, Gordon Schumacher <gordon at rebit.com> wrote:
> Gordon Schumacher wrote:

>> <screen role="nodump"><userinput>cat >> ~/.bash_profile <<
>> "EOF"
>> <literal>make_package() {
>>   tar cf $1.tar.bz2 $PKGTEMP
>> }</literal>
>> EOF</userinput></screen>

...

>> <screen><userinput>if [ "$(type -t make_package)" == "function" ]; then
>>   make DESTDIR=$PKGTEMP install
>>   make_package foo-&foo-version;
>> fi</userinput></screen>

As I'm sure you're already aware, Gordon, we have historically tried to stick to
an entirely linear, no-optional-extras format to the book.  As such, I would
prefer it if we just went whole-heartedly into DESTDIR support, no ifs, buts or
maybes :-).

That said, with the rumblings of additional architecture support, I don't think
our traditional linear style is going to hold out much longer.

So, I'd be more than happy to review any patch(es) you make against trunk. I
suspect this may need a change to jhalfs, which I use to automate my builds,
so that it will optionally define your make_package() function, but I don't
think that will be too hard for me, you or someone else to fix up.

Thanks for working on this!  It's alway nice to see new contributors!

Regards,

Matt.



More information about the lfs-dev mailing list