From patchwork Thu Feb 27 14:51:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 1245897 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.133; helo=hemlock.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.a=rsa-sha256 header.s=20161025 header.b=ubxh0kKR; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48Swbx6whsz9sj6 for ; Fri, 28 Feb 2020 01:51:41 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 6E35187E7B; Thu, 27 Feb 2020 14:51:38 +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 baTGk+-en0ol; Thu, 27 Feb 2020 14:51:37 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id D6E4587E5C; Thu, 27 Feb 2020 14:51:37 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 2C5531BF3F4 for ; Thu, 27 Feb 2020 14:51:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 2593B20440 for ; Thu, 27 Feb 2020 14:51:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9FcIVFE+ai2s for ; Thu, 27 Feb 2020 14:51:35 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qk1-f193.google.com (mail-qk1-f193.google.com [209.85.222.193]) by silver.osuosl.org (Postfix) with ESMTPS id 71BE3203BF for ; Thu, 27 Feb 2020 14:51:35 +0000 (UTC) Received: by mail-qk1-f193.google.com with SMTP id u124so3298753qkh.13 for ; Thu, 27 Feb 2020 06:51:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kmfQU6YCOhUCAIKNr2RNN0LtIBKD+p8/wjaDdoUAPuc=; b=ubxh0kKRMyBdsqmFkWr2N+zN3uu/TXYA0x59ariOenBV7zJHVoArdNmlausXmhuq4G KX2+poLMqsCwWPZ8lcb5p86o0Zvb8B84/WF2OPPqTQ9GITQcX1gK1p0zm7gJFGNvMUp1 1i34x8PkdK67AdlgaP+MB+WBu0y4jE0JEq5fN7GBUvU23p+igIbeS9cEKfJr4CliGF6j AL5WbILQoh6sxb16fuOowOB+Qt2JxxStjQ56s0R1w/xjWzuihqtFMGbtSdww/e4N8FSz an5wEVZPyngyE2C0Pf0+rjj6NhCHBRfDSpQGRD/HDOSz93vNC4DKWYi8puXj8JQbcuRe USYw== 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:in-reply-to :references; bh=kmfQU6YCOhUCAIKNr2RNN0LtIBKD+p8/wjaDdoUAPuc=; b=aldR2Vf72zcSKRhnMFWFqEAq6n2UCBbG6jMpr+qBhCi159XEF67gwXehUkRlAsHEtI E+AtrCBk6ltSkvalb+d83SDknKWwMWAr8gBeonCWWF2cyL0a5oaZx8NwuA5iEQTFhnhB LJz0pc2dIe6mrJpBfWUIjgOc39iKoWYMmxkNuSdrMM4LUJf/RoqsNOr4kE4973GhI3mX hX3fnyC6xgrMQVYyNVeUUp25OavHjg13KF9y5v4mIal1h/nGnykQiKzliBq6Q6ebCH4a 4nPRVfAbt9re75LVcJxqnFh3xieMRE4/T7HtUR/7UtcGf+fIHWnuD+PSiPQU4TpjRrSN ROwg== X-Gm-Message-State: APjAAAWje28BwyrkfpsIMlOp107pIegREeUVALq93Bq14aIgiXsdteH2 G+h6aH9iVZn1vJqLOrdOiMs/yYvLxxI= X-Google-Smtp-Source: APXvYqzw3EsKCqIbjhXiao3PGWHCKwcEeFZTZz1pwu68JteLkdrL+nv+GleqyLFy+MzsDf9S1iMqkg== X-Received: by 2002:ae9:f001:: with SMTP id l1mr5872758qkg.148.1582815094314; Thu, 27 Feb 2020 06:51:34 -0800 (PST) Received: from casantos.com (179.178.22.126.dynamic.adsl.gvt.net.br. [179.178.22.126]) by smtp.gmail.com with ESMTPSA id w11sm3220703qkf.113.2020.02.27.06.51.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Feb 2020 06:51:33 -0800 (PST) From: unixmania@gmail.com To: buildroot@buildroot.org Date: Thu, 27 Feb 2020 11:51:23 -0300 Message-Id: <20200227145123.5654-3-unixmania@gmail.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20200227145123.5654-1-unixmania@gmail.com> References: <20200227145123.5654-1-unixmania@gmail.com> Subject: [Buildroot] [PATCH 2/2] package/eudev: support openrc init 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: Eric Le Bihan , Bernd Kuhls , Carlos Santos MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Carlos Santos Select udev-gentoo-scripts and avoid installing the sysv init script. Signed-off-by: Carlos Santos --- package/eudev/Config.in | 1 + package/eudev/eudev.mk | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/package/eudev/Config.in b/package/eudev/Config.in index b1d2f37a72..b0ce76171a 100644 --- a/package/eudev/Config.in +++ b/package/eudev/Config.in @@ -5,6 +5,7 @@ config BR2_PACKAGE_EUDEV depends on BR2_USE_WCHAR # needs C99 compiler depends on !BR2_STATIC_LIBS # kmod select BR2_PACKAGE_HAS_UDEV + select BR2_PACKAGE_UDEV_GENTOO_SCRIPTS if BR2_INIT_OPENRC select BR2_PACKAGE_UTIL_LINUX select BR2_PACKAGE_UTIL_LINUX_LIBBLKID select BR2_PACKAGE_KMOD diff --git a/package/eudev/eudev.mk b/package/eudev/eudev.mk index 99b5befd09..abcabb343c 100644 --- a/package/eudev/eudev.mk +++ b/package/eudev/eudev.mk @@ -44,9 +44,13 @@ else EUDEV_CONF_OPTS += --disable-selinux endif +# Avoid installing S10udev with openrc, as the service is started by a unit +# from the udev-gentoo-scripts package. +ifeq ($(BR2_INIT_OPENRC),) define EUDEV_INSTALL_INIT_SYSV $(INSTALL) -D -m 0755 package/eudev/S10udev $(TARGET_DIR)/etc/init.d/S10udev endef +endif # Required by default rules for input devices define EUDEV_USERS