From patchwork Fri Aug 31 21:12:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 964700 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bootlin.com Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 422BsN6Pymz9s4V for ; Sat, 1 Sep 2018 07:12:56 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id AD2818708D; Fri, 31 Aug 2018 21:12:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7jjNJCyvCQWO; Fri, 31 Aug 2018 21:12:49 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id BB34F863A5; Fri, 31 Aug 2018 21:12:49 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 962BA1C2893 for ; Fri, 31 Aug 2018 21:12:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 93D76863A5 for ; Fri, 31 Aug 2018 21:12:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ldvzoGqPfAlG for ; Fri, 31 Aug 2018 21:12:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.bootlin.com (mail.bootlin.com [62.4.15.54]) by hemlock.osuosl.org (Postfix) with ESMTP id 29BB885D38 for ; Fri, 31 Aug 2018 21:12:45 +0000 (UTC) Received: by mail.bootlin.com (Postfix, from userid 110) id A7A3720794; Fri, 31 Aug 2018 23:12:44 +0200 (CEST) Received: from localhost (LFbn-1-10682-153.w90-89.abo.wanadoo.fr [90.89.35.153]) by mail.bootlin.com (Postfix) with ESMTPSA id 524E6206EE; Fri, 31 Aug 2018 23:12:44 +0200 (CEST) From: Thomas Petazzoni To: buildroot@buildroot.org Date: Fri, 31 Aug 2018 23:12:39 +0200 Message-Id: <20180831211240.20322-1-thomas.petazzoni@bootlin.com> X-Mailer: git-send-email 2.14.4 Subject: [Buildroot] [PATCH 1/2] e2fsprogs: do not use ldconfig when building the host variant X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Petazzoni MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Since commit 93acaa5a573865afc7a8c0912a7037965eb845a6 ("e2fsprogs: build shared library for the host"), we are building shared libraries in host-e2fsprogs instead of static libraries. A consequence of this is that the e2fsprogs build system tries to run ldconfig on the host, which fails when running as non-root: /usr/sbin/ldconfig: Can't create temporary cache file /etc/ld.so.cache~: Permission denied make[3]: [Makefile:441: install-shlibs] Error 1 (ignored) Tell the configure script to use "true" as ldconfig in order to avoid this problem. Signed-off-by: Thomas Petazzoni --- package/e2fsprogs/e2fsprogs.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/e2fsprogs/e2fsprogs.mk b/package/e2fsprogs/e2fsprogs.mk index fecef118ac..5fe1ff8e68 100644 --- a/package/e2fsprogs/e2fsprogs.mk +++ b/package/e2fsprogs/e2fsprogs.mk @@ -70,7 +70,8 @@ E2FSPROGS_CONF_ENV += BUILD_CFLAGS="-DHAVE_SYS_STAT_H" # it doesn't provide definitions expected by e2fsprogs support lib. HOST_E2FSPROGS_CONF_ENV += \ ac_cv_header_magic_h=no \ - ac_cv_lib_magic_magic_file=no + ac_cv_lib_magic_magic_file=no \ + ac_cv_path_LDCONFIG=true E2FSPROGS_MAKE_OPTS = LDCONFIG=true