Gentoo Archives: gentoo-dev

From: David Seifert <soap@g.o>
To: gentoo-dev@l.g.o
Cc: Matt Turner <mattst88@g.o>
Subject: Re: [gentoo-dev] [PATCH 2/2] xorg-2.eclass: Remove XORG_STATIC
Date: Sat, 09 Jan 2021 09:48:48
Message-Id: 6b347411514744731900bc75f5c996d654efb178.camel@gentoo.org
In Reply to: [gentoo-dev] [PATCH 2/2] xorg-2.eclass: Remove XORG_STATIC by Matt Turner
1 On Fri, 2021-01-08 at 23:16 -0500, Matt Turner wrote:
2 > Statically linking X libraries into your program is an extremely bad
3 > idea.
4 >
5 > Signed-off-by: Matt Turner <mattst88@g.o>
6 > ---
7 >  eclass/xorg-2.eclass | 23 +----------------------
8 >  1 file changed, 1 insertion(+), 22 deletions(-)
9 >
10 > diff --git a/eclass/xorg-2.eclass b/eclass/xorg-2.eclass
11 > index f3b282e1a11..f9a18b8ec26 100644
12 > --- a/eclass/xorg-2.eclass
13 > +++ b/eclass/xorg-2.eclass
14 > @@ -1,4 +1,4 @@
15 > -# Copyright 1999-2020 Gentoo Authors
16 > +# Copyright 1999-2021 Gentoo Authors
17 >  # Distributed under the terms of the GNU General Public License v2
18 >  
19 >  # @ECLASS: xorg-2.eclass
20 > @@ -168,27 +168,6 @@ fi
21 >  # If we're a driver package, then enable DRIVER case
22 >  [[ ${PN} == xf86-video-* || ${PN} == xf86-input-* ]] && DRIVER="yes"
23 >  
24 > -# @ECLASS-VARIABLE: XORG_STATIC
25 > -# @DESCRIPTION:
26 > -# Enables static-libs useflag. Set to no, if your package gets:
27 > -#
28 > -# QA: configure: WARNING: unrecognized options: --disable-static
29 > -: ${XORG_STATIC:="yes"}
30 > -
31 > -# Add static-libs useflag where useful.
32 > -if [[ ${XORG_STATIC} == yes \
33 > -               && ${FONT} != yes \
34 > -               && ${CATEGORY} != app-doc \
35 > -               && ${CATEGORY} != x11-apps \
36 > -               && ${CATEGORY} != x11-drivers \
37 > -               && ${CATEGORY} != media-fonts \
38 > -               && ${PN} != util-macros \
39 > -               && ${PN} != xbitmaps \
40 > -               && ${PN} != xorg-cf-files \
41 > -               && ${PN/xcursor} = ${PN} ]]; then
42 > -       IUSE+=" static-libs"
43 > -fi
44 > -
45 >  DEPEND+=" virtual/pkgconfig"
46 >  
47 >  # @ECLASS-VARIABLE: XORG_DRI
48
49 +1 LGTM.