Re: [PATCH 1/1] Build process makeover

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/02/2009 10:07 AM, Chris Webb wrote:
> Florian Haas <florian.haas@xxxxxxxxxx> writes:
> 
>> A fairly thorough makeover of the build system, with one Makefile per
>> directory replacing the previous single Makefile in usr.
>>
>> This adds some version detection magic and a "make tarball" target for
>> conveniently rolling a tarball out of a git checkout.
> 
> Any chance of defining and using sbindir rather than hardcoding /usr/sbin,
> in the same way you define and use mandir and docdir?
> 
> I have to carry a patch against the current makefile for my systems which
> have neither /usr or /sbin, just /bin, but equally many people will want to
> configure to install into /usr/local/sbin. The annoyance of doing this will
> increase if we go from one makefile needing changing to lots of makefiles
> needing changing!

FWIW, installing something that's meant to be run only by root in /bin
is, if I'm not mistaken, an LSB violation. Installing into
/usr/local/sbin is a good point though. Adding an sbindir variable would
sound like a plan to me. Come to think of it, mandir and docdir should
be changed to be defined with "?=", not "=", so you can override from
the make command line and you only need to change your build scripts,
not patch any Makefiles.

Of course one could also tackle this problem with
configure/automake/autoconf insanity, but that might be a wee bit of
overkill. :)

Cheers,
Florian

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux