On 2020-01-03 09:42 -0800, Joel Bion via lfs-dev wrote:
> On 2020-01-03 07:40, Bruce Dubbs via lfs-dev wrote:
> > On 1/3/20 3:48 AM, Pierre Labastie via lfs-dev wrote:
> > > Le 02/01/2020 à 23:53, Bruce Dubbs via lfs-dev a écrit :
> > > > On 1/2/20 3:26 PM, Pierre Labastie via lfs-dev wrote:
> > > > > Second, use prefix=/usr for Make install, then move the shared 
> > > > > library to
> > > > > /lib. But actually, if we do not pass prefix, the shared library is 
> > > > > directly
> > > > > installed in /lib (note, we do need to pass lib=lib, but now 
> > > > > RAISE_SETFCAP=no
> > > > > is the default). The only difference is that some binaries are 
> > > > > installed in
> > > > > /usr/sbin if we pass prefix=/usr and they are installed in /sbin if 
> > > > > not. Not a
> > > > > big deal, we do not use them anyway...
> > > > > 
> > > > > I'll make a test build with the sed above and just "make lib=lib 
> > > > > install"
> > > > > (without touching the library), and change the book if everything is 
> > > > > OK.
> > > > 
> > > > OK, thanks.
> 
> I'd like to offer an opinion as to why things should stay as they are in 
> the making of libcap.
> 
> It's this:
> 
> 1) Mechanisms with guaranteed results are more robust than depending on 
> current defaults, that a package could change at any time.
> 
> It is true - today - that libcap puts things in /lib. Therefore - with 
> today's behavior - installing them in /usr/lib and then moving them to 
> /lib seems kind of odd.
> 
> However, the current method LFS uses is guaranteed to still work even if 
> a future chooses to start putting things in /usr/local by default, or 
> any other place.
> 
> Since the current method incurs no real extra cost, and is more robust, 
> I'd ask that we consider leaving things as they are - and indeed, making 
> sure that no other packages in LFS are depending on the 'default' 
> location of installation of things, when a simple configuration 
> parameter will put them in a known location.

I strongly disagree this kind of argument.

There are thousands of parameters in "configure", "cmake" or "meson".  For 90%
of them we are using the default.  Could we make all "configure" commands to be

./configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --
libexecdir=/usr/libexec --sysconfdir=/etc --localstatedir=/var --
runstatedir=/var/run --libdir=/usr/lib --includedir=/usr/include --
datarootdir=/usr/share --infodir=/usr/share/info --localedir=/usr/share/locale
--mandir=/usr/share/man --{doc,html,dvi,pdf,ps}dir=/usr/share/doc/foo-1.2.3 --
with-{a,b,c,d,e,f,g}=yes --with-{h,i,j,k,l,m,n}=no

just because we can confort ourselves that it's thought to be "more robust"? 
Then what if the upstream decides to use cmake or meson?
-- 
Xi Ruoyao <[email protected]>
School of Aerospace Science and Technology, Xidian University

-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to