From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C6004138334 for ; Fri, 8 Jun 2018 01:28:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 658B2E0992; Fri, 8 Jun 2018 01:28:39 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 322BAE0992 for ; Fri, 8 Jun 2018 01:28:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B5958335CBF for ; Fri, 8 Jun 2018 01:28:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 222DE2C2 for ; Fri, 8 Jun 2018 01:28:35 +0000 (UTC) From: "Aaron Bauman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Aaron Bauman" Message-ID: <1528421306.ed1d845779b056dd89930a60f0b522b512b60729.bman@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/efitools/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-crypt/efitools/efitools-1.8.1.ebuild X-VCS-Directories: app-crypt/efitools/ X-VCS-Committer: bman X-VCS-Committer-Name: Aaron Bauman X-VCS-Revision: ed1d845779b056dd89930a60f0b522b512b60729 X-VCS-Branch: master Date: Fri, 8 Jun 2018 01:28:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: e82d1ecf-1d44-47cc-a61d-df1aaf6b3aa9 X-Archives-Hash: 5926f91011c9d7b0b3bd33e700a908f1 commit: ed1d845779b056dd89930a60f0b522b512b60729 Author: Edward Hyunkoo Jee google com> AuthorDate: Wed May 30 23:28:37 2018 +0000 Commit: Aaron Bauman gentoo org> CommitDate: Fri Jun 8 01:28:26 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed1d8457 app-crypt/efitools: support "static" USE flag If "static" USE flag is set, it makes sense to do static link for user-space executables. app-crypt/efitools/efitools-1.8.1.ebuild | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/app-crypt/efitools/efitools-1.8.1.ebuild b/app-crypt/efitools/efitools-1.8.1.ebuild index d27b90b2cbc..3e25812bea2 100644 --- a/app-crypt/efitools/efitools-1.8.1.ebuild +++ b/app-crypt/efitools/efitools-1.8.1.ebuild @@ -12,15 +12,21 @@ SRC_URI="https://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git/snaps LICENSE="GPL-2 LGPL-2.1" SLOT="0" KEYWORDS="~amd64 ~arm64 ~x86" -IUSE="libressl" +IUSE="libressl static" -RDEPEND="!libressl? ( dev-libs/openssl:0= ) - libressl? ( dev-libs/libressl:0= ) +LIB_DEPEND="!libressl? ( dev-libs/openssl:0=[static-libs(+)] ) + libressl? ( dev-libs/libressl:0=[static-libs(+)] )" + +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} ) sys-apps/util-linux" DEPEND="${RDEPEND} app-crypt/sbsigntool dev-perl/File-Slurp + static? ( + ${LIB_DEPEND} + dev-util/pkgconfig + ) sys-apps/help2man sys-boot/gnu-efi virtual/pkgconfig" @@ -31,6 +37,11 @@ PATCHES=( ) src_prepare() { + if use static; then + append-ldflags -static + sed -i 's/-lcrypto/`pkg-config --static --libs libcrypto`/g' Makefile || die + fi + # Respect users CFLAGS sed -i -e 's/CFLAGS.*= -O2 -g/CFLAGS += /' Make.rules || die