From abd3b30ef38ba1181922c41ca7257c0cab953ed9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikl=C4=81vs=20Ko=C4=BCes=C5=86ikovs?= <89q1r14hd@relay.firefox.com> Date: Sun, 28 Mar 2021 16:56:45 +0300 Subject: [PATCH] xorg-3.eclass: Ensures WANT_* are defined before inheriting. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes compatibility with the updated autotools.eclass. Signed-off-by: Niklāvs Koļesņikovs <89q1r14hd@relay.firefox.com> --- eclass/xorg-3.eclass | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/eclass/xorg-3.eclass b/eclass/xorg-3.eclass index 65be0f59d2408..0315c5b4f454c 100644 --- a/eclass/xorg-3.eclass +++ b/eclass/xorg-3.eclass @@ -47,6 +47,10 @@ fi # before inheriting this eclass. : ${XORG_MULTILIB:="no"} +# Due to changes to autotools.eclass, we need to define some variables before inheriting +WANT_AUTOCONF="latest" +WANT_AUTOMAKE="latest" + # we need to inherit autotools first to get the deps inherit autotools libtool multilib toolchain-funcs flag-o-matic \ ${FONT_ECLASS} ${GIT_ECLASS} @@ -136,8 +140,6 @@ if [[ ${PN} != util-macros ]] ; then # Required even by xorg-server [[ ${PN} == "font-util" ]] || EAUTORECONF_DEPEND+=" >=media-fonts/font-util-1.2.0" fi -WANT_AUTOCONF="latest" -WANT_AUTOMAKE="latest" for arch in ${XORG_EAUTORECONF_ARCHES}; do EAUTORECONF_DEPENDS+=" ${arch}? ( ${EAUTORECONF_DEPEND} )" done @@ -325,7 +327,7 @@ xorg-3_flags_setup() { # Win32 require special define [[ ${CHOST} == *-winnt* ]] && append-cppflags -DWIN32 -D__STDC__ - # hardened ldflags + # hardened ldflags (also see #778494) [[ ${PN} == xorg-server || ${PN} == xf86-video-* || ${PN} == xf86-input-* ]] \ && filter-flags -fno-plt && append-ldflags -Wl,-z,lazy