From patchwork Fri Sep 20 11:28:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 174126 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp2358203ill; Fri, 20 Sep 2019 04:28:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxvQPl0KAUsHY6vfjcOZD4w4pUX3GyXvz8z9RHdAgIGWdd2Fi3aubuD/FtZ76G8Jxi3ulmH X-Received: by 2002:a62:8142:: with SMTP id t63mr17067144pfd.246.1568978893092; Fri, 20 Sep 2019 04:28:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568978893; cv=none; d=google.com; s=arc-20160816; b=ggybWlCon63XmQUL738eN2dBTy6EXas83AJaIgL6T4rRwq2verPLNNr1BHwBuMwgCa kYRoeCfh52rpCzzCM1T4lXMDO1so8oV2mDmmTzahNOCro/IeZ58jLj5172CsonQ881hW zRIRI6h6ROIZD4CHuWf8DebzP2Oz+K2GJ0QDRO8qgtQZwsIjiLLryWIRZwH6FpBeMTVz xLWTkRVTsa1dg1XYlriMIC5H2Z7CU/rpPQQrUjavimBwtd8VSJBOwrAfdX33JQvUs+U9 4kriklf/MHpZEEgB0yy1GjQWQbBGfIiHtKZtyHFLKl5hMb7EDHIg751gPBQ/PAnrjsbZ r93Q== 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:message-id:date:to:from:dkim-signature:delivered-to; bh=j2MvlCCEz95nPBlHICZSI8el7f2Fh//g9s1vI5etXvc=; b=Ras+FcvL2opnAT4Inw7VhRjoWkflt7u7pm04eggR4n5LC5bx9G5mKA1hEGmFHq4QX7 zTXPnxbtBzkOVNuP3OW0dBwYK+LKSG1oWbLxFBwF+FctVLgDWCtwTx6xsq+iqGK8tUNp X23+FU+rPfGotghtbhtSzjw85MXzOKsnY1WUbjpwcDEwrEK8un8eW2sbghukp0DAQbyU 05AwVFihlW2AWAsa9z5zLOJM4vBo5X82fwB5qpd26yexpt/eEDvsVGdalkIP+QtZvxbC 7d77qHv86IyawpqRvhfT+2oEUzjpThHEalNWDVwTNpV27LeL12qoViDyb2v0mL/q202o j3/g== 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=os9YHDjD; 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 x20si2454113plm.132.2019.09.20.04.28.12; Fri, 20 Sep 2019 04:28:13 -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=os9YHDjD; 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 E2E0F7F946; Fri, 20 Sep 2019 11:28:10 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by mail.openembedded.org (Postfix) with ESMTP id 276037F918 for ; Fri, 20 Sep 2019 11:28:09 +0000 (UTC) Received: by mail-wm1-f50.google.com with SMTP id v17so1920843wml.4 for ; Fri, 20 Sep 2019 04:28:10 -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:mime-version :content-transfer-encoding; bh=H9aXtB9pr1uccnt54nbrCH09GZkDSP+w3dd8AMBR3Lk=; b=os9YHDjDwyXgQgNzqYBm9P75WV3M6xeJYWJNsyOZbDnMibBys/C7Y1vnU+g8DIrllf zY7wdoT/TlYxdD3FbTO4EZrKOj36bss6CERVNirBglzqI7GlWj8fMgNWEBFuoDGQCCVC WN3fCDoV7fpD+K3x13EnB04yTutSp+5A/n6TZ+2rNr+IYaNPU1txbMMf7C0Py+hv1azB kOPVOOJ+DIckcOs+6hXfJv0NGcwGH1P0c5Tf7mk93q39D0TMwB092jKFDkwhUDNSYjLR z+9J0fBy84mnMChYJFK+lG6EE0+DAFBKC0u6fXMHE69BhmoQjUf9kT7Zv2x+l2OwMOSr g5kQ== 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:mime-version :content-transfer-encoding; bh=H9aXtB9pr1uccnt54nbrCH09GZkDSP+w3dd8AMBR3Lk=; b=pWAXspaljpWhJkZ3DrwUk8Cpv7vkaEO0M6NxHqUOUvaGZv+xLjeqxo3zVPEuNxrFP4 gcZQaGnfLJlX/hEVGDEYXTiLQf2kxuoiOarg71/VK/fP1WzqIFZa7ylRPZaGha2lZj/q Lt8u67MrcAWNYsRCxmdt9feyIKZ9BbQiSIanaG7KvPoiTFNBS0DuE6fxU6DnFLdk4kty bO2ZtRcDaGE1xBiNqSstTnGSsjU/GpEWl0uUiNHRe1vW9H0Zf/7HA1Qh3/Str+YoF+fk Ru+T5NI6MO0KXPE8C/JCoM7BHUlzfWgZBccLQC1fHb/bR0CX/XusMSNZaOxua+fh3r/C t7IA== X-Gm-Message-State: APjAAAVwFXHQGTnTL5qzoKsXS/gLE4jUAVBpBYc3R8iKqw0O6VUPzGOR Z8LbVNFznNY4y84bnzDzDeKg9G63NC4= X-Received: by 2002:a1c:9e0b:: with SMTP id h11mr3040323wme.144.1568978889230; Fri, 20 Sep 2019 04:28:09 -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.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2019 04:28:08 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Fri, 20 Sep 2019 12:28:03 +0100 Message-Id: <20190920112805.32622-1-ross.burton@intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [OE-core] [PATCH 1/3] distcc: clean up the UI install logic 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 Remove the local copy of the desktop file, instead apply a patch from upstream to fix the file. This also fixes the install paths, so update the recipe. Remove glibc-specific installation as this was due to uclibc failures. Refresh and submit upstream the out-of-tree build fix. Signed-off-by: Ross Burton --- meta/recipes-devtools/distcc/distcc_3.3.3.bb | 13 +- .../distcc/files/distccmon-gnome.desktop | 12 -- .../distcc/files/fix-gnome.patch | 122 ++++++++++++++++++ .../distcc/files/separatebuilddir.patch | 42 +++--- 4 files changed, 154 insertions(+), 35 deletions(-) delete mode 100644 meta/recipes-devtools/distcc/files/distccmon-gnome.desktop create mode 100644 meta/recipes-devtools/distcc/files/fix-gnome.patch diff --git a/meta/recipes-devtools/distcc/distcc_3.3.3.bb b/meta/recipes-devtools/distcc/distcc_3.3.3.bb index 7942debec9e..d8ad498f2b4 100644 --- a/meta/recipes-devtools/distcc/distcc_3.3.3.bb +++ b/meta/recipes-devtools/distcc/distcc_3.3.3.bb @@ -15,9 +15,9 @@ PACKAGECONFIG[popt] = "--without-included-popt,--with-included-popt,popt" RRECOMMENDS_${PN} = "avahi-daemon" SRC_URI = "git://github.com/distcc/distcc.git \ + file://fix-gnome.patch \ file://separatebuilddir.patch \ file://default \ - file://distccmon-gnome.desktop \ file://distcc \ file://distcc.service" SRCREV = "4cde9bcfbda589abd842e3bbc652ce369085eaae" @@ -51,13 +51,8 @@ do_install() { install -d ${D}${systemd_unitdir}/system/ install -m 0644 ${WORKDIR}/distcc.service ${D}${systemd_unitdir}/system sed -i -e 's,@BINDIR@,${bindir},g' ${D}${systemd_unitdir}/system/distcc.service - ${DESKTOPINSTALL} -} -DESKTOPINSTALL = "" -DESKTOPINSTALL_libc-glibc () { - install -d ${D}${datadir}/distcc/ - install -m 0644 ${WORKDIR}/distccmon-gnome.desktop ${D}${datadir}/distcc/ } + PACKAGES += "distcc-distmon-gnome" FILES_${PN} = " ${sysconfdir} \ @@ -67,8 +62,10 @@ FILES_${PN} = " ${sysconfdir} \ ${bindir}/distccmon-text \ ${sbindir}/update-distcc-symlinks \ ${systemd_unitdir}/system/distcc.service" + FILES_distcc-distmon-gnome = " ${bindir}/distccmon-gnome \ - ${datadir}/distcc" + ${datadir}/applications \ + ${datadir}/pixmaps" # diff --git a/meta/recipes-devtools/distcc/files/distccmon-gnome.desktop b/meta/recipes-devtools/distcc/files/distccmon-gnome.desktop deleted file mode 100644 index 7b5d85ce4e2..00000000000 --- a/meta/recipes-devtools/distcc/files/distccmon-gnome.desktop +++ /dev/null @@ -1,12 +0,0 @@ -[Desktop Entry] -Version=0.9.4 -Exec=distccmon-gnome -Name=distcc monitor -GenericName=Distributed Compile Monitor -Comment=Graphical view of distributed compile tasks -Icon=distccmon-gnome-icon -TryExec=distccmon-gnome -Terminal=false -Type=Application -Categories=GNOME;Development; -StartupNotify=true diff --git a/meta/recipes-devtools/distcc/files/fix-gnome.patch b/meta/recipes-devtools/distcc/files/fix-gnome.patch new file mode 100644 index 00000000000..f1f5ed1a9f2 --- /dev/null +++ b/meta/recipes-devtools/distcc/files/fix-gnome.patch @@ -0,0 +1,122 @@ +Upstream-Status: Backport [https://github.com/distcc/distcc/pull/319] +Signed-off-by: Ross Burton + +From 2faacc2be8d7eeee0a3f66d88fedd1d3ab11070e Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= +Date: Sat, 8 Dec 2018 12:50:07 +0100 +Subject: [PATCH] Fix desktop spec compliance of distccmon-gnome install + +Update the .desktop file and install rules for distccmon-gnome to +conform to the freedesktop.org specifications. More specifically: + +- update to version 1.0 of the spec +- remove obsolete 'Encoding' key +- remove obsolete 'Application' category and add recommended 'GTK' +- install icon file to the correct directory +- strip suffix from desktop file (specifying it is deprecated) +- while at it, remove redundant '-icon' from the filename +- install desktop file to the correct directory +--- + Makefile.in | 18 ++++++++++-------- + gnome/distccmon-gnome.desktop | 7 +++---- + ...mon-gnome-icon.png => distccmon-gnome.png} | Bin + src/mon-gnome.c | 2 +- + 4 files changed, 14 insertions(+), 13 deletions(-) + rename gnome/{distccmon-gnome-icon.png => distccmon-gnome.png} (100%) + +diff --git a/Makefile.in b/Makefile.in +index 6e1e467..1106559 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -52,13 +52,14 @@ mandir = @mandir@ + includedir = @includedir@ + oldincludedir = /usr/include + docdir = @docdir@ +-pkgdatadir = $(datadir)/@PACKAGE_NAME@ ++icondir = $(datarootdir)/pixmaps ++desktopdir = $(datarootdir)/applications + + include_server_builddir = $(builddir)/_include_server + + # These must be done from here, not from autoconf, because they can + # contain variable expansions written in Make syntax. Ew. +-DIR_DEFS = -DLIBDIR="\"${libdir}\"" -DSYSCONFDIR="\"${sysconfdir}\"" -DPKGDATADIR="\"${pkgdatadir}\"" ++DIR_DEFS = -DLIBDIR="\"${libdir}\"" -DSYSCONFDIR="\"${sysconfdir}\"" -DICONDIR="\"${icondir}\"" + + # arguments to pkgconfig + GNOME_PACKAGES = @GNOME_PACKAGES@ +@@ -387,7 +388,7 @@ man_HTML = man/distcc_1.html man/distccd_1.html man/distccmon_text_1.html \ + man/lsdistcc_1.html man/pump_1.html man/include_server_1.html + MEN = $(man1_MEN) + +-gnome_data = gnome/distccmon-gnome-icon.png \ ++gnome_data = gnome/distccmon-gnome.png \ + gnome/distccmon-gnome.desktop + + popt_OBJS=popt/findme.o popt/popt.o popt/poptconfig.o \ +@@ -1033,7 +1034,8 @@ showpaths: + @echo " programs $(DESTDIR)$(bindir)" + @echo " sbin programs $(DESTDIR)$(sbindir)" + @echo " system configuration $(DESTDIR)$(sysconfdir)" +- @echo " shared data files $(DESTDIR)$(pkgdatadir)" ++ @echo " icon file $(DESTDIR)$(icondir)" ++ @echo " application file $(DESTDIR)$(desktopdir)" + + + # install-sh can't handle multiple arguments, but we don't need any +@@ -1129,10 +1131,10 @@ install-example: $(example_DOCS) + done + + install-gnome-data: $(gnome_data) +- $(mkinstalldirs) "$(DESTDIR)$(pkgdatadir)" +- for p in $(gnome_data); do \ +- $(INSTALL_DATA) "$$p" "$(DESTDIR)$(pkgdatadir)" || exit 1; \ +- done ++ $(mkinstalldirs) "$(DESTDIR)$(icondir)" ++ $(mkinstalldirs) "$(DESTDIR)$(desktopdir)" ++ $(INSTALL_DATA) gnome/distccmon-gnome.png "$(DESTDIR)$(icondir)" ++ $(INSTALL_DATA) gnome/distccmon-gnome.desktop "$(DESTDIR)$(desktopdir)" + + install-conf: $(conf_files) $(default_files) + $(mkinstalldirs) "$(DESTDIR)$(sysconfdir)/distcc" +diff --git a/gnome/distccmon-gnome.desktop b/gnome/distccmon-gnome.desktop +index bd1fa26..7205f5e 100644 +--- a/gnome/distccmon-gnome.desktop ++++ b/gnome/distccmon-gnome.desktop +@@ -1,6 +1,5 @@ + [Desktop Entry] +-Version=0.9.4 +-Encoding=UTF-8 ++Version=1.0 + Exec=distccmon-gnome + Name=distcc monitor + Name[sv]=distcc övervakare +@@ -8,9 +7,9 @@ GenericName=Distributed Compile Monitor + GenericName[sv]=Distribuerad kompilerings-övervakare + Comment=Graphical view of distributed compile tasks + Comment[sv]=Grafisk vy av distribuerade kompileringsuppgifter +-Icon=distccmon-gnome-icon.png ++Icon=distccmon-gnome + TryExec=distccmon-gnome + Terminal=false + Type=Application +-Categories=GNOME;Application;Development; ++Categories=GNOME;GTK;Development; + StartupNotify=true +diff --git a/gnome/distccmon-gnome-icon.png b/gnome/distccmon-gnome.png +similarity index 100% +rename from gnome/distccmon-gnome-icon.png +rename to gnome/distccmon-gnome.png +diff --git a/src/mon-gnome.c b/src/mon-gnome.c +index 24681d0..bfc286d 100644 +--- a/src/mon-gnome.c ++++ b/src/mon-gnome.c +@@ -599,7 +599,7 @@ static GtkWidget * dcc_gnome_make_mainwin (void) + + #if GTK_CHECK_VERSION(2,2,0) + gtk_window_set_icon_from_file (GTK_WINDOW (mainwin), +- PKGDATADIR "/distccmon-gnome-icon.png", ++ ICONDIR "/distccmon-gnome.png", + NULL); + #endif + diff --git a/meta/recipes-devtools/distcc/files/separatebuilddir.patch b/meta/recipes-devtools/distcc/files/separatebuilddir.patch index 7580b5584bc..c8da9d51c36 100644 --- a/meta/recipes-devtools/distcc/files/separatebuilddir.patch +++ b/meta/recipes-devtools/distcc/files/separatebuilddir.patch @@ -1,21 +1,33 @@ -When building with a separate build directory, make install fails, -unable to find the gnome_data files. This patch corrects the -patch and ensures the build works in this case. +Upstream-Status: Backport [https://github.com/distcc/distcc/pull/363] +Signed-off-by: Ross Burton -RP 2013/3/8 +From 469628ee8dc90c7162d1a850c0b179b7349f9cf3 Mon Sep 17 00:00:00 2001 +From: Ross Burton +Date: Tue, 17 Sep 2019 13:04:22 +0100 +Subject: [PATCH] Makefile.in: fix out-of-tree builds when the GNOME UI is + enabled -Upstream-Status: Pending +The install command doesn't use $(srcdir) so out-of-tree builds fail. -Index: git/Makefile.in -=================================================================== ---- git.orig/Makefile.in -+++ git/Makefile.in -@@ -1117,7 +1117,7 @@ install-example: $(example_DOCS) +Signed-off-by: Ross Burton +--- + Makefile.in | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/Makefile.in b/Makefile.in +index 123054f..b9ce974 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -1130,8 +1130,8 @@ install-example: $(example_DOCS) install-gnome-data: $(gnome_data) - $(mkinstalldirs) "$(DESTDIR)$(pkgdatadir)" - for p in $(gnome_data); do \ -- $(INSTALL_DATA) "$$p" "$(DESTDIR)$(pkgdatadir)" || exit 1; \ -+ $(INSTALL_DATA) "$(srcdir)/$$p" "$(DESTDIR)$(pkgdatadir)" || exit 1; \ - done + $(mkinstalldirs) "$(DESTDIR)$(icondir)" + $(mkinstalldirs) "$(DESTDIR)$(desktopdir)" +- $(INSTALL_DATA) gnome/distccmon-gnome.png "$(DESTDIR)$(icondir)" +- $(INSTALL_DATA) gnome/distccmon-gnome.desktop "$(DESTDIR)$(desktopdir)" ++ $(INSTALL_DATA) $(srcdir)/gnome/distccmon-gnome.png "$(DESTDIR)$(icondir)" ++ $(INSTALL_DATA) $(srcdir)/gnome/distccmon-gnome.desktop "$(DESTDIR)$(desktopdir)" install-conf: $(conf_files) $(default_files) + $(mkinstalldirs) "$(DESTDIR)$(sysconfdir)/distcc" +-- +2.20.1 From patchwork Fri Sep 20 11:28:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 174127 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp2358285ill; Fri, 20 Sep 2019 04:28:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTuTLxQCLh/KIhCAFrGksrY5AmIogl+H0h8Gfq1q4tZwaVs5StNvVrsSXn/4sdvFJtHASu X-Received: by 2002:a65:500a:: with SMTP id f10mr14823864pgo.105.1568978897663; Fri, 20 Sep 2019 04:28:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568978897; cv=none; d=google.com; s=arc-20160816; b=P3WF9OylNEU7uFBqCLTs/cTtTP5hv/d38Hgfmv9Qb0yX1MV0DbMmrork++CP2lek1s t1KRztRaeQ3P3rnjgdZHU6jF7pny7VQ2joHZKDxT03X3rgElHgAm9rymGmR/0O2scel0 tKNHuohekTZALOlazutxuXMvXhCCcI/2rlvXtV9ky8saDxgEFxaSzdfBy6lzjBLxKw+0 /+v5oDoCA/P4x3ydhkBecNbQsqX4a7tS4YDTAii9LpAj7B93q20UFpwjnH+7sgYoe6nR HkQQElUrDnF58UI+94zaiODAh245OousJmqKjbnf/ecT19ddZpFdD1fht9YOZ8YKTkQR wIQg== 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=mUbb3PW4BPTEPrT8VHD2XRLZI8dGoWkLJKFGMI7KZ+o=; b=o3igtCBpsBu7WOEqx5kapp8JBAJMT395ZtXzScPqONR3GtBli3E4TJI+Z5nhjvCcO8 h4bG+pDVk7Cjmuv4ymkSqJ8RiTTP7w/mbE3lxJ8ZvRtf8Cbp/ZGv8XcZNX/ojnuV8atr Hbw0rDVx+Yg7FZ5ddeC6ai/+VKXEqK6RvEwF0DEQ0uN82o1hnrpIiSwMCZrLVFfqka1c mkQgkt0epsy+QnCl32alTe1l4gxxDQvZgIyve4WLNCWwx2PY+lH+UnLJhQ8i9DeoXb+v NHKjEX6CokPuJssH8x5ijUVjzMRnn0aJGdDIzVM6UXf3kE4fbD7SHvVvqNannpL2z11P MU+Q== 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=Gp5ZJOi5; 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 y7si2521778pfn.51.2019.09.20.04.28.17; Fri, 20 Sep 2019 04:28:17 -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=Gp5ZJOi5; 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 0B70E7FA63; Fri, 20 Sep 2019 11:28:13 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by mail.openembedded.org (Postfix) with ESMTP id 87B517F918 for ; Fri, 20 Sep 2019 11:28:09 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id n14so6364790wrw.9 for ; Fri, 20 Sep 2019 04:28:10 -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=o/JymHSja4o5mwbXay9zSL3mTnwM7c0NW69jGXXdwjE=; b=Gp5ZJOi5ITruqG48z2k7LcShQgDxUdy010IZP1/n+budN3MguHpgTYZ0UN4nGKuZFh hpXv6S5m1GZz8Fabum9Gez9wDIkKtLXlqKjv2XGMlJEpJry76qB9aAn+W1Y/mQwHA4K8 dUMWdEyMrk7UW2Z0hNtIsUf39V7zse7PzAFpJDdoDO9XmPnR5HpPjOut51SWxJBhJZ3Y +gFt2ZXw6bvZNioRKMaOgKDCaF9MGOFKMMax2VL0s4wcyTnCi0wdVXnKiGn/JHEg5r1E SJvY53zU3Jg0AfOiBJhomNZp/YG1WrSehkwM7u1MrMv33GVJYwuW4+kr9Tvxq6hKjNHF yKKw== 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=o/JymHSja4o5mwbXay9zSL3mTnwM7c0NW69jGXXdwjE=; b=Riev96+va07H/X17ZXCgKKWuhqNZCl0XDT8+oZMjtwfkatwAxqvk4qEqfQ3RRnNIGQ af0lAJQTapTHVPgg5j+yRp6W1IMJB9vWqFI9+uKW004mvHwsBzwWUCLf6k4/nuhe0TjC iGufWghz3pacSXJ1YxIgC9r68XqPqQ4kcJRf+zIRrvTdZDj9ELomTpJg5YqaAVmtbBYc 5gI1tCZhEfN5/nAmuN7K1G2TZsCi97bt8cQq0Cl1EePsDFD6PTv0IYkMeQ/SA2bC6bIM 00j+7XO6y9rWQxLgHOx9t2VpHLzukddAIGcDfG7cwaQ4GWT4b9odfVrBI3J13AnpR201 7eMQ== X-Gm-Message-State: APjAAAV4TtEDTBSCufkXRSQ50jnKDNrIdFWaOBJfTNPCXPZRBFyL9X9q W5kqvdk1E+gDla8WnLDaQ5b2hTczg+w= X-Received: by 2002:a05:6000:162e:: with SMTP id v14mr11642554wrb.112.1568978890020; 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.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2019 04:28:09 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Fri, 20 Sep 2019 12:28:04 +0100 Message-Id: <20190920112805.32622-2-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 2/3] distcc: use --enable-tcp-insecure instead of --make-me-a-botnet 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 --make-me-a-botnet is worrying, --enable-tcp-insecure is clearer and doesn't scare people glancing at 'ps'. Signed-off-by: Ross Burton --- meta/recipes-devtools/distcc/files/default | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 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/files/default b/meta/recipes-devtools/distcc/files/default index e5ca68b8561..a5bc13ecf33 100644 --- a/meta/recipes-devtools/distcc/files/default +++ b/meta/recipes-devtools/distcc/files/default @@ -21,4 +21,4 @@ ALLOWEDNETS="127.0.0.1" # # OPTIONS is used for the systemd service file # -OPTIONS="--allow 127.0.0.1 --make-me-a-botnet" +OPTIONS="--allow 127.0.0.1 --enable-tcp-insecure" 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