From patchwork Tue Sep 17 20:30:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 173930 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1600210ill; Tue, 17 Sep 2019 13:30:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwht1MaaeKjWoPX2EFpLL1SjEXfbZl1o/Pl5i0l7O0wO4OrgyPlZbZZLAKkcrVz14guRHlj X-Received: by 2002:a63:3009:: with SMTP id w9mr703174pgw.260.1568752243942; Tue, 17 Sep 2019 13:30:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568752243; cv=none; d=google.com; s=arc-20160816; b=liotZqP2jDn/sqRv/c5ICNPXx7E6PSohwIwRhrDJc7j4Yl+0k/U3xL9M44fmhftmy3 wvtwqUNpkIDzYH03+cZdf9vqOgw85V/rgaBbqKY5fLKjXe11Xbr19f5+yjiZS3QZJ9O0 Yr2fDyb5cGXsWMspQ5uEWQK1O3Hlof592+ilrDr1iI9J3MtGbR8pyft6MtIZQS7dd3CR t/8CCwzDNO7qiRqNAS1E6Fd7y8nIEGuEr03pP78O70+c6xYhhADCyDoo1RpeJDwcdRMx rJXTSivTcISY8rRj+lQKivVPg/M2wk4TLSpC3o4mcA+NSD9N+iRIDxZdpDu+oq6d3+KE z5uQ== 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=QtsVwN+HW9nkcaSjPUSFff7u5KwwYJ9sKY8gcj7g4sk=; b=kVDKrkcEd/K/x7iVjXwRFTZ5eFxDfmO1WgPcfGziK8Eg5+rulJGCsbnV3bHw4zhAAA vIWGdBhZ1N+j54HUo3XJKFtVglQcbamZLqQ1YCfk8dYO8mu7FJUc+lQwJT3/YhDBrxJX yBAdzT06fx80P7rlZuotaxX+uaXontAo2ydHnscDOw/FzdMLuCN2UFm9I+rL/sVSqnS6 PAfvanS3hxwDlUHS4JVaKE71TVMBEm1v57ysyyLYvMmMbfYbrCW2mm0QeF8pUywU01xO dkeAAJA46v6Q9bflnobYbEa2mzE+wTD8+8RSJuEnRrLdfnq8gq6cDJ13KekAFhuPQO/D Rf2Q== 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=qK3KIdVV; 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 v138si2983605pfc.65.2019.09.17.13.30.43; Tue, 17 Sep 2019 13:30:43 -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=qK3KIdVV; 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 5914D7FDCA; Tue, 17 Sep 2019 20:30:36 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) by mail.openembedded.org (Postfix) with ESMTP id 300E27FDBA for ; Tue, 17 Sep 2019 20:30:33 +0000 (UTC) Received: by mail-wr1-f53.google.com with SMTP id q17so4533811wrx.10 for ; Tue, 17 Sep 2019 13:30:34 -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=NGO09iFn3SKjd7tOmDkChDZ292zIqUkNOiKj3RTquo0=; b=qK3KIdVVg1F2xXU2Yt+RLPIquTPkQNint/+SEjpaS5O39DJ2HkjHTCTTgi/Odrc4vf YJe6vh/kef9nKbZDUXLPXm5d7lG006lmS/1yT2f2yrtAdruSGgwxxRiSnlfre2zEBMvY 6IA+FoKiJsGlJFCZ81B4rHutjU5Q7GoAGfjp9pxq3YXZ9VrJZ6isAz6f7CQRFlWHTZTQ 7f08U3ZcTeCMLhxKbjtuHWdcb4kpKD4DCnM6qT9sPFDe/92Rxwj2xIcbbhZkfMgwmWZj TskFvWEf+b8fAzUPeWe0yi+I6F3KpeokDGci+OpUoJFMQV3lSQkEVfL+nsjf2A8CagDo hTaw== 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=NGO09iFn3SKjd7tOmDkChDZ292zIqUkNOiKj3RTquo0=; b=mZxO00p6YknrmMCoH8gZPKLx8mYpot1FbSUB0UB3rka65dnNx1dTv6E2Dr9DYCNj4D apOoEf3OQ7Ais0W9MEeCUOo9XTY7tj54Cu6rgorpSv6o4up4ycqUiV8npJIPE/KhF7qw tmXPkRjI/WQAsL+fRgdKPgLGnwUvPZ4sVvUqovThTeNGfL0OUKtLv1/2AowSNYufy7eH Ccmj58KZ1qfB7DpvTyErdSuwzK2oFieyYGy4nEBP8mRDhl9XCfMPPMGfnLxAsuVdJj1Z fkErViZiPvMRafUCXFqx8Dlgh5cPN47y43gejNcVd8Hn5fYd53U9f6MoJuv5OFZdDolr DfSA== X-Gm-Message-State: APjAAAVPLTGdYuf7mkYwoR7frnSA8zfF26NgyczZD9dFV+D0pNfa1Cyo xcrUuFxk6nb0c+y6wfkravwwAyutWKA= X-Received: by 2002:adf:e3c4:: with SMTP id k4mr325316wrm.157.1568752233722; Tue, 17 Sep 2019 13:30:33 -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 s12sm5778528wra.82.2019.09.17.13.30.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Sep 2019 13:30:32 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Tue, 17 Sep 2019 21:30:30 +0100 Message-Id: <20190917203030.29832-1-ross.burton@intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [OE-core] [PATCH] systemd-systemctl-native: don't care about line endings 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 It's possible for a service file to accidentally contain mixed line endings, but the string cleanup code was assuming Unix endings. [ YOCTO #13535 ] Signed-off-by: Ross Burton --- meta/recipes-core/systemd/systemd-systemctl/systemctl | 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-core/systemd/systemd-systemctl/systemctl b/meta/recipes-core/systemd/systemd-systemctl/systemctl index 8837f54e166..ebac863739a 100755 --- a/meta/recipes-core/systemd/systemd-systemctl/systemctl +++ b/meta/recipes-core/systemd/systemd-systemctl/systemctl @@ -57,7 +57,7 @@ class SystemdFile(): if skip_re.match(line): continue - line = line.rstrip("\n") + line = line.strip() m = section_re.match(line) if m: if m.group('section') not in self.sections: