From patchwork Fri Nov 13 12:26:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Bilas X-Patchwork-Id: 1399727 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=grinn-global.com Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CXd465h0rz9sSf for ; Fri, 13 Nov 2020 23:26:14 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 3A950874E8; Fri, 13 Nov 2020 12:26:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Uf14H44OrjOK; Fri, 13 Nov 2020 12:26:12 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id B09DD874E7; Fri, 13 Nov 2020 12:26:12 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 5D49F1BF346 for ; Fri, 13 Nov 2020 12:26:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 595E2874FD for ; Fri, 13 Nov 2020 12:26:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V5M14z-tvEVf for ; Fri, 13 Nov 2020 12:26:10 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from smtp2.megiteam.pl (smtp2.megiteam.pl [213.189.52.193]) by whitealder.osuosl.org (Postfix) with ESMTPS id 30381874EB for ; Fri, 13 Nov 2020 12:26:10 +0000 (UTC) Received: from host-81-161-192-38.oxylion.net.pl ([81.161.192.38] helo=bartekk-pc.grinndev.ovh) by smtp.megiteam.pl with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86.2_XX) (envelope-from ) id 1kdY9X-0005pM-7a; Fri, 13 Nov 2020 13:26:07 +0100 From: Bartosz Bilas To: buildroot@buildroot.org Date: Fri, 13 Nov 2020 13:26:05 +0100 Message-Id: <20201113122605.901352-1-b.bilas@grinn-global.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] package/rauc: fix host build with systemd X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartosz Bilas Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" For some reason, autotools pkg infra doesn't pass DESTDIR variable to the host make env which causes errors during the package install step because it tries to install files into its own system instead of host directory. That fixes the following errors: /usr/bin/install -c -m 644 data/rauc.service '/usr/lib/systemd/system' /usr/bin/install: cannot create regular file '/usr/lib/systemd/system/rauc.service': Permission denied /usr/bin/install -c -m 644 data/de.pengutronix.rauc.conf 'no' make[4]: *** [Makefile:1700: install-nodist_systemdunitDATA] Error 1 make[4]: *** Waiting for unfinished jobs.... Signed-off-by: Bartosz Bilas --- package/rauc/rauc.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/rauc/rauc.mk b/package/rauc/rauc.mk index 61c50ab316..3cd1c85ee7 100644 --- a/package/rauc/rauc.mk +++ b/package/rauc/rauc.mk @@ -36,6 +36,10 @@ define RAUC_INSTALL_INIT_SYSTEMD >$(TARGET_DIR)/usr/lib/systemd/system/rauc.service.d/buildroot-enable.conf endef +HOST_RAUC_MAKE_ENV = \ + $(HOST_MAKE_ENV) \ + DESTDIR=$(STAGING_DIR) + HOST_RAUC_DEPENDENCIES = \ host-pkgconf \ host-openssl \