sys-fs/xfsprogs: Static build is not possible anymore, bug 666196
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Sat, 20 Oct 2018 18:56:08 +0000 (20:56 +0200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Sat, 20 Oct 2018 18:56:34 +0000 (20:56 +0200)
Dropping static useflag.

Closes: https://bugs.gentoo.org/666196
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Package-Manager: Portage-2.3.50, Repoman-2.3.11

sys-fs/xfsprogs/xfsprogs-4.17.0-r1.ebuild
sys-fs/xfsprogs/xfsprogs-4.18.0.ebuild

index 4231d192e3fdec8af68861c707b03a90924b7811..536041bd17a0d57fbfd3eb9ed01e201240c02a48 100644 (file)
@@ -12,20 +12,15 @@ SRC_URI="https://www.kernel.org/pub/linux/utils/fs/xfs/${PN}/${P}.tar.xz"
 LICENSE="LGPL-2.1"
 SLOT="0"
 KEYWORDS="alpha amd64 ~arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 sh ~sparc x86"
-IUSE="icu libedit nls readline static static-libs"
-REQUIRED_USE="static? ( static-libs )"
+IUSE="icu libedit nls readline static-libs"
 
 LIB_DEPEND=">=sys-apps/util-linux-2.17.2[static-libs(+)]
        icu? ( dev-libs/icu:=[static-libs(+)] )
        readline? ( sys-libs/readline:0=[static-libs(+)] )
        !readline? ( libedit? ( dev-libs/libedit[static-libs(+)] ) )"
-RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
+RDEPEND="${LIB_DEPEND//\[static-libs(+)]}
        !<sys-fs/xfsdump-3"
 DEPEND="${RDEPEND}
-       static? (
-               ${LIB_DEPEND}
-               readline? ( sys-libs/ncurses:0=[static-libs] )
-       )
        nls? ( sys-devel/gettext )"
 
 PATCHES=(
@@ -44,11 +39,9 @@ pkg_setup() {
 src_prepare() {
        default
 
-       # LLDFLAGS is used for programs, so apply -all-static when USE=static is enabled.
        # Clear out -static from all flags since we want to link against dynamic xfs libs.
        sed -i \
                -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \
-               -e "1iLLDFLAGS += $(usex static '-all-static' '')" \
                include/builddefs.in || die
        find -name Makefile -exec \
                sed -i -r -e '/^LLDFLAGS [+]?= -static(-libtool-libs)?$/d' {} +
@@ -77,7 +70,7 @@ src_configure() {
                $(use_enable readline)
                $(usex readline --disable-editline $(use_enable libedit editline))
        )
-       if use static || use static-libs ; then
+       if use static-libs ; then
                myconf+=( --enable-static )
        else
                myconf+=( --disable-static )
index 273db91aea0b169c820b7ebad47bd0f8352c4bb6..679012764c95a38b7be72f14e9c52684aac7f274 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -12,20 +12,15 @@ SRC_URI="https://www.kernel.org/pub/linux/utils/fs/xfs/${PN}/${P}.tar.xz"
 LICENSE="LGPL-2.1"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-IUSE="icu libedit nls readline static static-libs"
-REQUIRED_USE="static? ( static-libs )"
+IUSE="icu libedit nls readline static-libs"
 
 LIB_DEPEND=">=sys-apps/util-linux-2.17.2[static-libs(+)]
        icu? ( dev-libs/icu:=[static-libs(+)] )
        readline? ( sys-libs/readline:0=[static-libs(+)] )
        !readline? ( libedit? ( dev-libs/libedit[static-libs(+)] ) )"
-RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
+RDEPEND="${LIB_DEPEND//\[static-libs(+)]}
        !<sys-fs/xfsdump-3"
 DEPEND="${RDEPEND}
-       static? (
-               ${LIB_DEPEND}
-               readline? ( sys-libs/ncurses:0=[static-libs] )
-       )
        nls? ( sys-devel/gettext )"
 
 PATCHES=(
@@ -44,11 +39,9 @@ pkg_setup() {
 src_prepare() {
        default
 
-       # LLDFLAGS is used for programs, so apply -all-static when USE=static is enabled.
        # Clear out -static from all flags since we want to link against dynamic xfs libs.
        sed -i \
                -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \
-               -e "1iLLDFLAGS += $(usex static '-all-static' '')" \
                include/builddefs.in || die
        find -name Makefile -exec \
                sed -i -r -e '/^LLDFLAGS [+]?= -static(-libtool-libs)?$/d' {} +
@@ -77,7 +70,7 @@ src_configure() {
                $(use_enable readline)
                $(usex readline --disable-editline $(use_enable libedit editline))
        )
-       if use static || use static-libs ; then
+       if use static-libs ; then
                myconf+=( --enable-static )
        else
                myconf+=( --disable-static )