From patchwork Fri Sep 20 11:28:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 174128 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp2358397ill; Fri, 20 Sep 2019 04:28:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqzbVrKYm+aajkLM2fJCoHrJ8TbZW8Hg9lo4sQkRsd2jf18V0uV9PcP2wmK1arAdJKtM/ACd X-Received: by 2002:a62:ed19:: with SMTP id u25mr585461pfh.40.1568978904533; Fri, 20 Sep 2019 04:28:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568978904; cv=none; d=google.com; s=arc-20160816; b=sr64/ylxYDTztwxuV6HUEyL341fw/bIglWA/Cyh1cbhQGDJtenneoJuyvnzYhGHO7k +wgPAqFiOvsSJFIVJ4i6JcUjASM4whSp6DarwlPzCplH/NFQU3/sejRi0yz57HLdfXNy rYtafLWFK5iAKHIsTwPvlgxR2I73wRfYeUklYXUYykwMmU7+w7W8WNkiAnA2NwoKkenA DVyK+HgDU3bOdnk5YLy6WzFzczXw6BjTmSpHvDmN7x+C+2iGd6sI/WEv6QVluOfAnHeX m9kO5ABbl9/cI7HVqUh9+AFKDNTpvRh0mP3Xe9pZ3+iVImZnz38yQT7YC0dwNwlbdu7h bUKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=hRvmhGghm9tgrXry1q/v2k7qEw40B6js20jk3pic/kg=; b=A+GjrhlzbnwWVHYdETFmNBuaRl2nJw6eGiCzwp0MxzSrDWqyXcHCbnKwiK6K8cBhyv QCvpDFSWrUJuV+LPhe56WHgGmKfrfOyU/v2K6d0iwEhvssOwHrJt3Iit1BTZOyKhnyZR A9xNYn7LXaicSNRH7rSGpXIQoIm5PnsSR+AjFjyvdpOTMpyvk4Mx243xzYJKhjJrBruL OfZRx/gY3ya/YOqmkWwQ8D4zG+Iw0c3hfQuqnhOcCrC/Xj6HweAPfgrNqLJJJA0UBFF6 oL2FavItvJbr504O6nGMi/V5UyK3eFKiqaT/qv02d2G6tp7m9XO6kFEL3qfn68ZcKgnA BWaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=gUepomO6; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id g11si2263337plp.292.2019.09.20.04.28.24; Fri, 20 Sep 2019 04:28:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=gUepomO6; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id E15217FA90; Fri, 20 Sep 2019 11:28:18 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by mail.openembedded.org (Postfix) with ESMTP id 5B1507F918 for ; Fri, 20 Sep 2019 11:28:10 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id p7so2060189wmp.4 for ; Fri, 20 Sep 2019 04:28:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=fZGv9E/wnbSCX25Imip5mDM8L2DJ3uF724ehuzjA76k=; b=gUepomO6lT+ewuDsH8iuKWx6S9C0mhz0C1tnJWdCwqhCKEAdBiqqy9pM0LNZ5HnjYu +hIq1DAdshJEycw5bJ6tlHhistr/JIrWco2FZOMJjzAesCdCAm29aX+/b2W4rtM4Xnrc T77AQNmQmVETi+/TvY8GABnzN6ktoA+jJBRfTHG4sulMMpbpOSLnwzYoQwDQcG0r5gdU AhEQ7rT7K1dmNnjPzeXdkGBFXTn725G8IYytC2wWsovJMYTU8YsIVt24kgXF/7qrenlm ei1Y1xk4+brdnTQTisHMNnb8IILQ/TuhhoZtU+TxatNldCvmAoxFo7A+7JHLB69zv1HX FBjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fZGv9E/wnbSCX25Imip5mDM8L2DJ3uF724ehuzjA76k=; b=Mfkf8GQv2yu7RLdHYQJoeqrSipnY78yrJRJ2cZPZOq88S7dSjWaKO0M3sHRm6mDPkC IYh2bO1qWmHYuhkAGcre5+xpRYYM+VkYd++w3WAijuBUV18chJnxC78v9Y1LvlBsZQAa lL55ROGDvM7p2eQR5LuwvTy56U8e2CiRUrPhEnSig4OUbjhdbgoxyi54Z59Cwupq+tA4 PPtZjHUQo0qRnmXzL/meFaZ/ho6Rk6waXu//3kYyxSKs03L7p1M4cD9VvtV+vhtyVwWj qmYUcYLrNcm1f+0821MYofP6pC6X2whINx3W8qnCwThQGzHeFT7MziFTgnpTKgiLAKx0 J3+A== X-Gm-Message-State: APjAAAWCVCwUEedCOZLjDfWzi1RCdzUqRENRpKqaqq5/qTeVb8SQsjtv aIXM5BwRpJllWicbVZwNDv3wh+RiXhg= X-Received: by 2002:a7b:cf1a:: with SMTP id l26mr3239667wmg.38.1568978890868; Fri, 20 Sep 2019 04:28:10 -0700 (PDT) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id t13sm3347737wra.70.2019.09.20.04.28.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2019 04:28:10 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Fri, 20 Sep 2019 12:28:05 +0100 Message-Id: <20190920112805.32622-3-ross.burton@intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190920112805.32622-1-ross.burton@intel.com> References: <20190920112805.32622-1-ross.burton@intel.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 3/3] distcc: split into client and server packages X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Users of distcc are rarely both clients and servers, so split the package. distcc is the client, the new distcc-server package is the server. Signed-off-by: Ross Burton --- meta/recipes-devtools/distcc/distcc_3.3.3.bb | 33 +++++++++----------- 1 file changed, 14 insertions(+), 19 deletions(-) -- 2.20.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/distcc/distcc_3.3.3.bb b/meta/recipes-devtools/distcc/distcc_3.3.3.bb index d8ad498f2b4..c52f136be8c 100644 --- a/meta/recipes-devtools/distcc/distcc_3.3.3.bb +++ b/meta/recipes-devtools/distcc/distcc_3.3.3.bb @@ -12,7 +12,7 @@ PACKAGECONFIG[gtk] = "--with-gtk,--without-gtk --without-gnome,gtk+" # use system popt by default PACKAGECONFIG[popt] = "--without-included-popt,--with-included-popt,popt" -RRECOMMENDS_${PN} = "avahi-daemon" +RRECOMMENDS_${PN}-server = "avahi-daemon" SRC_URI = "git://github.com/distcc/distcc.git \ file://fix-gnome.patch \ @@ -29,17 +29,20 @@ ASNEEDED = "" EXTRA_OECONF += "--disable-Werror PYTHON='' --disable-pump-mode" -USERADD_PACKAGES = "${PN}" -USERADD_PARAM_${PN} = "--system \ +PACKAGE_BEFORE_PN = "${PN}-distmon-gnome ${PN}-server" + +USERADD_PACKAGES = "${PN}-server" +USERADD_PARAM_${PN}-server = "--system \ --home /dev/null \ --no-create-home \ --gid nogroup \ distcc" +UPDATERCPN = "${PN}-server" INITSCRIPT_NAME = "distcc" -SYSTEMD_PACKAGES = "${PN}" -SYSTEMD_SERVICE_${PN} = "distcc.service" +SYSTEMD_PACKAGES = "${PN}-server" +SYSTEMD_SERVICE_${PN}-server = "distcc.service" do_install() { # Improve reproducibility: compress w/o timestamps @@ -53,20 +56,12 @@ do_install() { sed -i -e 's,@BINDIR@,${bindir},g' ${D}${systemd_unitdir}/system/distcc.service } -PACKAGES += "distcc-distmon-gnome" - -FILES_${PN} = " ${sysconfdir} \ - ${bindir}/distcc \ - ${bindir}/lsdistcc \ - ${bindir}/distccd \ - ${bindir}/distccmon-text \ - ${sbindir}/update-distcc-symlinks \ - ${systemd_unitdir}/system/distcc.service" - -FILES_distcc-distmon-gnome = " ${bindir}/distccmon-gnome \ - ${datadir}/applications \ - ${datadir}/pixmaps" - +FILES_${PN}-server = "${sysconfdir} \ + ${bindir}/distccd \ + ${sbindir}" +FILES_${PN}-distmon-gnome = "${bindir}/distccmon-gnome \ + ${datadir}/applications \ + ${datadir}/pixmaps" # # distcc upstream dropped the 3.2 branch which we reference in older project releases