Gentoo Archives: gentoo-dev

From: hasufell <hasufell@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [RFC] qt5-build.eclass
Date: Wed, 20 Aug 2014 11:27:06
Message-Id: 53F485FB.1000403@gentoo.org
In Reply to: Re: [gentoo-dev] [RFC] qt5-build.eclass by "Michał Górny"
1 Micha³ Górny:
2 >> sed -i -e '/^CPPFLAGS\s*=/ s/-g //' \
3 >> qmake/Makefile.unix || die "sed failed (CPPFLAGS for qmake build)"
4 >>
5 >> # Respect CXX in {bsymbolic_functions,fvisibility,precomp}.test
6 >> sed -i -e "/^QMAKE_CONF_COMPILER=/ s:=.*:=\"$(tc-getCXX)\":" \
7 >> configure || die "sed failed (QMAKE_CONF_COMPILER)"
8 >>
9 >> # Respect toolchain and flags in config.tests
10 >> find config.tests/unix -name '*.test' -type f -print0 \
11 >> | xargs -0 sed -i -e '/bin\/qmake/ s/-nocache //' \
12 >> || die "sed failed (config.tests)"
13 >
14 > find ... -exec sed ... {} +
15 >
16
17 Unless you really need it please use -execdir instead, since -exec is
18 insecure. Afais it should work both ways here.