From patchwork Sat Nov 2 15:17:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1188408 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=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="K4woXst9"; dkim-atps=neutral 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 4752k512Yzz9s4Y for ; Sun, 3 Nov 2019 02:17:46 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id B381B89FFF; Sat, 2 Nov 2019 15:17:42 +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 sZkeZTNuzHoF; Sat, 2 Nov 2019 15:17:39 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6FB9789FAA; Sat, 2 Nov 2019 15:17:39 +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 D17241BF681 for ; Sat, 2 Nov 2019 15:17:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id CDBC58AC21 for ; Sat, 2 Nov 2019 15:17:37 +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 b84MxaJdflCY for ; Sat, 2 Nov 2019 15:17:36 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by hemlock.osuosl.org (Postfix) with ESMTPS id 19CAC89C3F for ; Sat, 2 Nov 2019 15:17:36 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id s1so12526153wro.0 for ; Sat, 02 Nov 2019 08:17:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YF2+tUIVCjn4qtipDKys99zatWYaru37DX9tKu3PAB8=; b=K4woXst9bwc7UGBlH2Mho1PBLWKDuycMSD+vEVttDf/gAFOcVpDFOVNxYcmWfh1+UY xmrpJABVTBVWZaugLV1eUxKlq8L1VCnhfCH9lGNbqfI2OguGKxRoToC/fFK9IkkiF0PY KnQs5+rHZ7Gn0Qg7DP+uADssMavW2eWpMWfi9Tjc77Jdq5n0himLKjwyudhXwT3QOfSP cmxhm2akgc5IPXwLJKTFcXKF2KOINGG7kgdW8yKTQmxTbTOEEHClcluqg9SGDQHNIKr2 0b+FfT/wXLSE2G7H88gVRp0bRGeeFwukFNyd2Y2ScWJKxcai9gPouXiBpEZbwydIdiBK cNGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YF2+tUIVCjn4qtipDKys99zatWYaru37DX9tKu3PAB8=; b=BCVslYTDA/4U80itUZOOgv2JNhBDzjLJMDNRRoNOCrPKhXbYeQEOiDYnLVaSSi1PWg cSdGehFg9fjrXypiX29zuAoVUmg1Ve6+WIvD/c7vZ2Mo1nb4Qz9oQeE4mTj4kHQDIhCj nRhZ4Gx39QK/gjode5aoWM+TRZ4BRMdNrEVPx7mCV1KrM1OWnAUmjk6WrzZDE5q4BXgB m/ZSnmD7JCUPAkVwxfAr8otOHFjZgWLfyJmXjqXiGhW0hhAhq7maWicLCGJCMhE/yQjH JE1Kk6jaQqHO8I4qeEp6Uh0wwdqiXsdZVvPCI0raFFrmv93BY8olKeBY1telqqkCkTLE NWZQ== X-Gm-Message-State: APjAAAVUp46C0WqSFAJFokcOt0i5g6+/m15sncdqMmDUbmcuVJdKDfCT jvDA3NpkCV9tJRblxvST7UO/aK7KgoI= X-Google-Smtp-Source: APXvYqzGMduzMOyMuuS3D29zZiJu6/3FzPsXBwFj26SsARk1YcGAOQlOhZj5SMlB1IgIRu7MwyZ6AQ== X-Received: by 2002:adf:9ec7:: with SMTP id b7mr15794790wrf.221.1572707852989; Sat, 02 Nov 2019 08:17:32 -0700 (PDT) Received: from localhost.localdomain ([62.201.25.198]) by smtp.gmail.com with ESMTPSA id o187sm9994954wmo.20.2019.11.02.08.17.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Nov 2019 08:17:32 -0700 (PDT) From: Petr Vorel To: buildroot@buildroot.org Date: Sat, 2 Nov 2019 16:17:26 +0100 Message-Id: <20191102151726.7341-1-petr.vorel@gmail.com> X-Mailer: git-send-email 2.24.0.rc2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/iputils: fix service installation 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: James Hilliard , Peter Korsgaard Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" service files aren't installed by meson for some reason, thus install them manually. This is temporary fix, until it's fixed upstream. It might be caused by install_dir ignoring the prefix and installing always into systemd.get_pkgconfig_variable('systemdsystemunitdir'). Fixes: ada815afcf ("package/iputils: enable systemd services") Signed-off-by: Petr Vorel --- Quick fix, going to submit solution to upstream. Feel free to wait for proper fix. Kind regards, Petr package/iputils/iputils.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/iputils/iputils.mk b/package/iputils/iputils.mk index 57e90a973a..98f6f60dfe 100644 --- a/package/iputils/iputils.mk +++ b/package/iputils/iputils.mk @@ -59,6 +59,8 @@ IPUTILS_CONF_OPTS += -DBUILD_NINFOD=false else IPUTILS_CONF_OPTS += -DBUILD_NINFOD=true define IPUTILS_INSTALL_SERVICE_NINFOD + $(INSTALL) -D -m 0644 $(@D)/systemd/ninfod.service.in \ + $(TARGET_DIR)/usr/lib/systemd/system/ninfod.service mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants ln -sf ../../../../lib/systemd/system/ninfod.service \ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/ninfod.service @@ -115,6 +117,8 @@ endef endif define IPUTILS_INSTALL_SERVICE_RDISC + $(INSTALL) -D -m 0644 $(@D)/systemd/rdisc.service.in \ + $(TARGET_DIR)/usr/lib/systemd/system/rdisc.service mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants ln -sf ../../../../lib/systemd/system/rdisc.service \ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/rdisc.service