[Olsr-dev] change default install location to /usr/local

Teco Boot (spam-protected)
Wed Jun 6 12:48:09 CEST 2012


Op 6 jun. 2012, om 11:52 heeft Ferry Huberts het volgende geschreven:

> 
> 
> On 06-06-12 11:36, Teco Boot wrote:
>> I had some time to check this.
>> Almost all tools I install are located in /usr/, not /usr/local/
>> I use /usr/local/ for stuff I put there myself.
>> So a mature piece of software like olsrd deserves to be stored in /usr/.
>> 
> 
> Hans is right in this regard:
> The convention is to install into /usr/local when installing from source. Only when you package, then you change the location to /usr.
> 
> One of the purposes is to be able to install packages from your distribution in parallel to stuff you build yourself.

OK. So the "developer" update to /usr/local/ does not affect normal users, using distributions.

Teco


> 
> 
>> What we should do is deliver complete install packages, to be used by many.
>> 
>> How can we get olsrd 0.6.3 in Debian? Backport to Squeeze?
>> Roland?
>> 
>> My 2ct.
>> Teco
>> 
>> 
>> Op 31 mei 2012, om 21:57 heeft Hans-Christoph Steiner het volgende geschreven:
>> 
>>> 
>>> On May 31, 2012, at 3:41 PM, Ferry Huberts wrote:
>>> 
>>>> 
>>>> 
>>>> On 31-05-12 20:02, Hans-Christoph Steiner wrote:
>>>>> 
>>>>> I would like to include this patch to change the default Linux install location to /usr/local, which is the generally accepted UNIX standard for user-installed programs.  Currently, it installs into /usr, which is set aside for system-installed programs (apt-get, yum, etc.  This patch also includes the standard Makefile variables $DESTDIR, $prefix, and $libdir, for standardized overriding of those locations (i.e. make prefix=/usr).
>>>>> 
>>>>> Any objections?
>>>>> 
>>>> 
>>>> I'm not too thrilled about this so close to a new release, can we please postpone it until after 0.6.3?
>>> 
>>> IMHO, this is not a feature, this is a bug fix.  The vast majority of free software uses /usr/local as the default install location, this is the default behavior of build systems like autotools and ./configure, cmake, etc.  /usr/local is also widely documented as the place for user-installed software (i.e. outside of the system's packages and updates):
>>> 
>>> http://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/usr.html
>>> http://www.pathname.com/fhs/pub/fhs-2.3.html#USRLOCALLOCALHIERARCHY
>>> http://www.linuxfromscratch.org/blfs/view/svn/introduction/position.html
>>> 
>>> .hc
>>> 
>>>>> diff --git a/make/Makefile.linux b/make/Makefile.linux
>>>>> index e73be7c..02fb99f 100644
>>>>> --- a/make/Makefile.linux
>>>>> +++ b/make/Makefile.linux
>>>>> @@ -3,8 +3,12 @@
>>>>> #
>>>>> 
>>>>> ARCH := $(shell uname -m)
>>>>> +
>>>>> DESTDIR ?=
>>>>> -LIBDIR =       $(DESTDIR)/usr/lib
>>>>> +prefix ?= /usr/local
>>>>> +libdir ?= $(prefix)/lib
>>>>> +
>>>>> +LIBDIR =       $(DESTDIR)$(libdir)
>>>>> 
>>>>> SRCS +=        $(wildcard src/linux/*.c src/unix/*.c)
>>>>> HDRS +=                $(wildcard src/linux/*.h src/unix/*.h)
>>>> 
>>>> --
>>>> Ferry Huberts
>>> 
>>> 
>>> --
>>> Olsr-dev mailing list
>>> (spam-protected)
>>> https://lists.olsr.org/mailman/listinfo/olsr-dev
> 
> -- 
> Ferry Huberts





More information about the Olsr-dev mailing list