From patchwork Thu Jan 9 04:49:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Kuster X-Patchwork-Id: 182765 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp3141829ile; Sun, 12 Jan 2020 08:27:36 -0800 (PST) X-Google-Smtp-Source: APXvYqwZiSbGeMq5hbmcMdOvZ4dljDlB1NunAdgaSP6UgXs9Jjauea9+WaOFv/yPi9aESe3W961r X-Received: by 2002:a17:902:9698:: with SMTP id n24mr10101791plp.312.1578846456645; Sun, 12 Jan 2020 08:27:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578846456; cv=none; d=google.com; s=arc-20160816; b=hnx2I7/RBmRkt/eHrWOxfQNB4hA56DHtgqqDdaEGr7/h/G0nfwRw6uLngefjsT+FgC TYLLxnX8+Ik1FhC+UN5mrUWcOlaIz0Pd1LaZVGuOENpdYs5TqA4BNQvc4leRzvVH53yD ryDnfy6XzTayfkssIcE6L2kwCYriUj5ZIEYjNI/os+rAym49Dh2AhQbI/bfKASvygmv5 w53HbgmczrzWUpjIbg859/MIukDXCAJgcJJNkLO/z3b9KcfnC9MypZ+LskMq+H/p5mYe yVXIaw+4Gm03xb4lZWxcLSl5VCK+nyiRGmwdQSntZsmWZIiA0DjbAaIH0s1bl5RjRAL4 W2dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=YQ7KmeBvvKlZTvVnuKVvOxyduXSBpGryN8QksTG9jPs=; b=K8Ln91UqyvTHY68MuPw32nl/Kvv0LBTNwzAAEdoqQopxqFrkcmw66bL1C9kFDTDW1K 3hXtG/DrH03bYdyXhF+cPGuz3XNgfEVAzHTKEZ0P9DcP1SVBWPCnP79ycbNmrVeWqQMS 4vFu7Lt0NKTpPm/bk4cbg6z0HTNVGo9yyldEGgjru4R7Mn59oOgvAfOmJQ4Nq6/d0yTD VYlvuHv6c/14eWzlmbvsv660JrEfSmHUKnu04NcNfo4ci+fiLZgHe3r9Pyqoh3A2sqcu bPszmpns6Y76QJzG3noxRJT5joKWx6BvUfUAI4MPpcZf2fZyM/QFRfXFao3CpIz7lRMq Wovw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="rEcZX/AO"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id w9si9277483pgk.252.2020.01.12.08.27.36 for ; Sun, 12 Jan 2020 08:27:36 -0800 (PST) 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=@gmail.com header.s=20161025 header.b="rEcZX/AO"; 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=QUARANTINE dis=NONE) header.from=gmail.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 129C47FF1F; Thu, 9 Jan 2020 04:50:40 +0000 (UTC) X-Original-To: openembedded-core@openembedded.org Delivered-To: openembedded-core@openembedded.org Received: from mail-pj1-f68.google.com (mail-pj1-f68.google.com [209.85.216.68]) by mail.openembedded.org (Postfix) with ESMTP id 0767D7FE90 for ; Thu, 9 Jan 2020 04:50:12 +0000 (UTC) Received: by mail-pj1-f68.google.com with SMTP id l35so581942pje.3 for ; Wed, 08 Jan 2020 20:50:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=BsDBnP893xYrOqhxaJ/9kWLbXkFhz5YGzFpX1B1PC50=; b=rEcZX/AO8K17EMnWiZGoYhzzA+kdEGZe7HvpgKHutP0hZ75O/MiLsJPdO6+oIMvW+5 WZ5I+zAoOHWUgnwyJyJ9pvyU8TA0Abm5eWEM8bUduTsOA44sVbVFWCBRs0Pq+/wsT/s5 +mf9OVe8sk6FF85yOs3TjMCiGP490pwB99LTultrG19Xj5ALSMhbWBKkGeR4T8nOea9t 48dlqshX4yTcwv17sGmovKkustZtcTDjpT9LsdPYCbGmTdBXyEGx1OGqVAqS2rBajt3y 4XsEOeJqqy77fsrL5Z4V+lBcOesoIMrwFDzl6BAxzuRBp1hm5LyWVSPF2hrWjWMEMKwd lGpw== 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; bh=BsDBnP893xYrOqhxaJ/9kWLbXkFhz5YGzFpX1B1PC50=; b=QQBcWb50gFSuXG8y6o847tsdllguzx6p9L8hmp2WLVOrwL0eYFpVc+k4Vz3Mcu59FQ G/tclt/VIk3/7Ya3xHfdUm38VXgqFScr4X4VjamC/IdvWYRx8RESygqRLEc4ZZEmnPjY DXHE4hJZ8V9aiZcBao7iLIQX72Bn0dtT82wbPqaKlLNHyqy1oW17skvgW4DV1YhFe6BR i2Ed6Iye/1M0YezgkyvBobpZP8DuzWa2Z/rbQ/764WKqtBZMpEFO8jnkxjWHmBzPgWpR z9sQlKDopvvMM679Tk6+u1JifJKO5uyw1d0iykPh07IR191qfxXCXTOC2uf2u9xoBE7L v0Tg== X-Gm-Message-State: APjAAAXBICCh+Y5+dFzQY5Gq7oE2tXYGNoNdLd3MLLsK1xVutMIpL/zY htQ7lysTEriUvOzVmCZV6SjUMGNV X-Received: by 2002:a17:902:8484:: with SMTP id c4mr9204843plo.339.1578545413093; Wed, 08 Jan 2020 20:50:13 -0800 (PST) Received: from akuster-ThinkPad-T460s.mvista.com ([2601:202:4180:a5c0:304b:2b9c:bcb7:ff1a]) by smtp.gmail.com with ESMTPSA id l9sm5018427pgh.34.2020.01.08.20.50.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jan 2020 20:50:12 -0800 (PST) From: Armin Kuster To: openembedded-core@openembedded.org Date: Wed, 8 Jan 2020 20:49:38 -0800 Message-Id: <88255abe6bb4d10d50a660022ab3f9a1c2954ec7.1578544698.git.akuster808@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: Subject: [OE-core] [zeus 19/28] podfix: class to remove Pod::Man versions from manpages 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org From: Ross Burton Manpages generated by Pod::Man contain the version number, which isn't reproducible if we're using the host Perl to generate manpage. One option is to always depend on perl-native when generating manpages but this is a heavy dependency, so instead strip out the versions in do_install(). Signed-off-by: Ross Burton Signed-off-by: Richard Purdie (cherry picked from commit 18d8e5ac689d6eb6098f68ac785f43e9d5f5938a) Signed-off-by: Armin Kuster --- meta/classes/podfix.bbclass | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 meta/classes/podfix.bbclass -- 2.17.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/classes/podfix.bbclass b/meta/classes/podfix.bbclass new file mode 100644 index 0000000000..54fff6a0a2 --- /dev/null +++ b/meta/classes/podfix.bbclass @@ -0,0 +1,32 @@ +python pod_strip_version() { + import re + + def opener(filename, mode): + if filename.endswith(".gz"): + import gzip + return gzip.open(filename, mode) + elif filename.endswith(".bz2"): + import bz2 + return bz2.open(filename, mode) + else: + return open(filename, mode) + + bad_re = re.compile(rb"Automatically generated by Pod::Man( [0-9]+.+)") + + for root, dirs, files in os.walk(d.expand("${D}${mandir}")): + for filename in files: + filename = os.path.join(root, filename) + with opener(filename, "rb") as manfile: + manpage = manfile.read() + m = bad_re.search(manpage) + if not m: + continue + + bb.note("podfix: stripping version from %s" % filename) + os.unlink(filename) + with opener(filename, "wb") as manfile: + manfile.write(manpage[:m.start(1)]) + manfile.write(manpage[m.end(1):]) +} + +do_install[postfuncs] += "pod_strip_version" From patchwork Thu Jan 9 04:49:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Kuster X-Patchwork-Id: 182764 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp3141784ile; Sun, 12 Jan 2020 08:27:36 -0800 (PST) X-Google-Smtp-Source: APXvYqyi1JqRRbWlx1Q1QFyeYi7jlLwKs99eYi8mQXMZM2uXBW6Kv3HC1WPKfOJfdowVK3v1XlTA X-Received: by 2002:a63:134e:: with SMTP id 14mr16828671pgt.115.1578846456062; Sun, 12 Jan 2020 08:27:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578846456; cv=none; d=google.com; s=arc-20160816; b=yo2FdHBwg6t96SjkWywubPFqUEw+E0u6GT97dQ+hb3i1vtof0/Bfr3xz+d/FC2ugXw RcxCPNPWnm1NbWeJb80OlWoyqvFeKjTHdar/r9r/2BW2mUWk+hqzrsKOBJ8AIkGXfoDg 1USNF+EF7qNo5TLEsT3M2Q8z8+3mJ1mvDYLHX7EXOOTSyCCkNksg1BWIRG3sbPyuL5Ux 3yybVcmoNaUGwONaXNX11ovzI8/1HpZJNMwNIDaitVB0v88F2u9q06AkF0h9kvMAsdRk M6bG5vcGimbsIQmB1Z2onSKF+pN8IiGfVuxaGV5eYSKeDGfQM3EgdvvI9pFjh/BZT2OE j6QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=Xf4faLNPftcVNtEWHfI0V5qYVDZfuEgwyAhxBJ/r5ns=; b=EycmxQt4VsnW1tgqFXx8SLEp96KKLEq8MVvjXvVhGBaaN3UiSKHXeF9tzGKAtcfxd0 f88/phJxHjOtWvfLO1oNbNBSIhfi8Uq4fq6t+36ywd5vJNS+JgBVDX+M44YxGbQMidKm OtSQmT2l3nbM3Vr/Hw9OB5xYrT+eVY+0kwusnFFWkhmHPinoD7yVSiWqwHYv0kI9tUeP Ca/Xp6z5kOeIaQ+8aRWwNlo3B8cTI95wB/GdNPr+0NIkKFr1CE2MKT/NtVovSNSeG92+ VsMDKgqjVWB/r4XKO1D0zeRJGaRelm21xwMsFhZX5636AjfMUARj1UeVZLRRx7V0cdHu 0Rpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=opwwdu25; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id p10si9186629pgk.560.2020.01.12.08.27.35 for ; Sun, 12 Jan 2020 08:27:36 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=opwwdu25; 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=QUARANTINE dis=NONE) header.from=gmail.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 401597FF25; Thu, 9 Jan 2020 04:50:41 +0000 (UTC) X-Original-To: openembedded-core@openembedded.org Delivered-To: openembedded-core@openembedded.org Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by mail.openembedded.org (Postfix) with ESMTP id 417247FE92 for ; Thu, 9 Jan 2020 04:50:13 +0000 (UTC) Received: by mail-pf1-f173.google.com with SMTP id x185so2738662pfc.5 for ; Wed, 08 Jan 2020 20:50:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=j1zQy3N/aKB07eXNIb7TfqE2gNTIT2AHseKItqLruz8=; b=opwwdu25LjVihfm770Y6+UaddR2HY4f4HHM7Wk+sW5O1Xlv1xxCK+M2hr4aLSPEPa/ CPXXMvq0UH6HBgEEhEqLz/489VegHCNAHcsh5ubJEjPYw66p0n+aZH8TtWpOTz1vx1xs UC8eupRLoLdUcI9e/4rUJh+1AG4VeWVCsEiKKsDeoiE164/MnwyKHwpwkd/LDHndTie8 1z7YJkzdk0HMefa6MeNIZSyWv7rUblGt7AoHdY/1mJ+cEELiGlGNNvpeiEPNVX1XjoXw zXOwsKC7eUniRG4c0ZQ6p0dlVvOcMZnHrziCf6uM/mlZefYqdiPjHENDIhMkOBBpATTs 7KMA== 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; bh=j1zQy3N/aKB07eXNIb7TfqE2gNTIT2AHseKItqLruz8=; b=mHHGfMedkko3NOo3WMfx/ONm6XA7wMC+x50REtAOIzKWyo1I4AjeqHoDlNddn34uSz DiVolb+4B7fqAIG6KwFXtMgUvdQMILm9fsvzadkqnsL/sVGSCRJOtls4ek0117HrmAOc Em7d/5QR4FfzQJA07EoMlFeT9args6oETNOr5cZPA1Y7D2TaRF+X00tVUGMbiYDUXOxX gV5B+8DtWOHj4TnW0SgXWfKeHdBFE4e+QSRSla8jaV3NGvJvU9KhrrNTUk0Dvo+obS8N egCyaEo9LdKz6FdY+AkfCHpdP8KLhmbL4COz9JCI7TWqgxZlCnjq/6+Szwf9RqixWCFs EnNA== X-Gm-Message-State: APjAAAWBD3Q3BVCo6aYgfm/c/WKRQi1rGAoMrkOYZ9f3qHRdY6iZSm/C 2qyMnhVOHh53C4g5Wx3306gjNDwt X-Received: by 2002:a63:5062:: with SMTP id q34mr9094435pgl.378.1578545414121; Wed, 08 Jan 2020 20:50:14 -0800 (PST) Received: from akuster-ThinkPad-T460s.mvista.com ([2601:202:4180:a5c0:304b:2b9c:bcb7:ff1a]) by smtp.gmail.com with ESMTPSA id l9sm5018427pgh.34.2020.01.08.20.50.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jan 2020 20:50:13 -0800 (PST) From: Armin Kuster To: openembedded-core@openembedded.org Date: Wed, 8 Jan 2020 20:49:39 -0800 Message-Id: <3534f17752eccdd62eac8809d7842e9d25fa770a.1578544698.git.akuster808@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: Subject: [OE-core] [zeus 20/28] reproducible_build_simple: inherit podfix 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org From: Ross Burton When doing reproducible builds inherit podfix to remove the possibility of differing Perl versions causing manpages to change. Signed-off-by: Ross Burton Signed-off-by: Richard Purdie (cherry picked from commit 5dc43edab4787906f2c9f51e51bf78d1dc966286) Signed-off-by: Armin Kuster --- meta/classes/reproducible_build_simple.bbclass | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/classes/reproducible_build_simple.bbclass b/meta/classes/reproducible_build_simple.bbclass index 8a60deef3d..d0842f0f90 100644 --- a/meta/classes/reproducible_build_simple.bbclass +++ b/meta/classes/reproducible_build_simple.bbclass @@ -8,3 +8,4 @@ export SOURCE_DATE_EPOCH ??= "1520598896" REPRODUCIBLE_TIMESTAMP_ROOTFS ??= "1520598896" +inherit podfix From patchwork Thu Jan 9 04:49:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Kuster X-Patchwork-Id: 182768 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp3153802ile; Sun, 12 Jan 2020 08:42:15 -0800 (PST) X-Google-Smtp-Source: APXvYqxEgPcbD5sXK0DM5DXmhZLHVMpEsc6eICRW3wj7AvvCBcVAow9OsaI8k+9r7IaGgbwAa9mU X-Received: by 2002:a63:cc4a:: with SMTP id q10mr16391629pgi.241.1578846456390; Sun, 12 Jan 2020 08:27:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578846456; cv=none; d=google.com; s=arc-20160816; b=Ct+KB0LE1Fcvh2TvRc7vNJLPa21YW4abZxW1mvJw7pRH6rrlQP2xVJwLZwwC8bN6zS vHfxI6xgI+EKUJ74/UyXhI4sysVpYrZWXyGRZ80ujshcr1qvEgqti00WgRkl1mOt5awA xG+pnUOmvjty7AlZ9uhzXNs/AT+EtLQSRQ/QDELBzOhRwSICrWkq6uZ7dxAoA+6qoDs5 f1pD/hYisrmmlKsNnaeEPqg+QwBcJAzcu8njQ3mFbQj02+JXRq+/WSNgHU8oY0xmSY3N 1BUsuxGVpC8QvPplJ+c8d+SdI4CfyOKci4Uv11G06GHc5toUPBVkwTaOTlMPzEhbMZOZ /frw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=X386og+s3CJSqADb+vfkSnT0IQH3/sDTIt4oW32q2is=; b=NlUFl48sqlKCUeDLw+LGJiX4i3q0jf6dbt4BgcOPNUJFmMkKGQ9lm0bwvO1ssrfq2U ftUTCi7QHlPpAlRgK2MxU5Aoe1svYLFzYzVIsDtX4xF+q/+jzPdh+KH11AEJrHHjU4Hw pdOMrO/VcfdjZR/y3B7rOe35sXS5+ODt0BR5MsFvU3qR4EZYD/i6EHjhEkdvR0sv3MiO nGT3z10j/3qst2Fykc/nrSGNyPFeJ+nmnWszWcX6Af8GPSAZRqENCbV64bHmWwAlu3G4 f9uDZ78oc7ODxz52/XcFfA5DbiDWZHSKMRJZUBq171q4InXd9c7KvA804ONuguaGyguW p77A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=pvNKUVoY; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id k185si9365227pga.502.2020.01.12.08.27.36 for ; Sun, 12 Jan 2020 08:27:36 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=pvNKUVoY; 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=QUARANTINE dis=NONE) header.from=gmail.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 69A237FEAC; Thu, 9 Jan 2020 04:50:42 +0000 (UTC) X-Original-To: openembedded-core@openembedded.org Delivered-To: openembedded-core@openembedded.org Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) by mail.openembedded.org (Postfix) with ESMTP id DC43B7FE95 for ; Thu, 9 Jan 2020 04:50:13 +0000 (UTC) Received: by mail-pg1-f169.google.com with SMTP id q127so2602246pga.4 for ; Wed, 08 Jan 2020 20:50:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=mRk2a3oQtX4sJK+5lOOe462/0JYSVf3VN3quqGx26WE=; b=pvNKUVoYUm33yLw2ICJUWsPRZaRBRjGEwJhhxxNs10chQCZtLG890lH8kl4JzkDm5K WcSIXi+xn7H6ssAcASbuOypSs+2YrETmWVL4Qb9mN45GyguFRW/zG+2qz8CnAjIvdO7M lxTaRn96gpArPkm0hipaotREJzJ1fUJLWC64eJnHHdnoAbvv3htBjLVreNpb05SghJnk HdtwLVA3pVVahEmKooUPfWa0dtfh19JLrAQY1O1M1D0IJw1mHQrt8Q1N0hnp2X/KXdqx TonOnhOnWH+H0UN1Ra1Up0fI6XK1d3nHmaloEHSqqkVPoVmvA1arXW8nS9FdMM47SSuT 6FNA== 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; bh=mRk2a3oQtX4sJK+5lOOe462/0JYSVf3VN3quqGx26WE=; b=lbLTV/SV3RX01OCiI1ZwIO93jqXW73hW0uOQA23QeLSLy4weF69Czo1oqth7mZUkuK MLwKhignyHlvRROItVack9nvZVzfAyGoP24Ds9MkRyl7jv07MIV9OiwwyS8hDU37/LJt ijqIfTfpAaoZVtUvOAEqWgdIpJmPPLQ1FUyNKMM4tMk82DZaajUdu5HUbn6rZwp2AZUR xBfmOEgxFXDA9D3GImEw9dsG7ucc3GrVKI4+I6oNPPHxVFySUL5yoFhR+fsRYfzRh74I qe0HQxr8Z3offL5KUootAjm1Z/KDmoesTYyZyFVioBQTUkgNlkprKTrlv6iCh6AVHOhe PaZg== X-Gm-Message-State: APjAAAXj1ivD6TyVNhv6wOtbsQmulcTD/f9A2UmcIiyTUVrD56Q+zhJX LAqgfCG7MU+gcCk4v+eNLbZ1YnTA X-Received: by 2002:aa7:9087:: with SMTP id i7mr9147379pfa.235.1578545414956; Wed, 08 Jan 2020 20:50:14 -0800 (PST) Received: from akuster-ThinkPad-T460s.mvista.com ([2601:202:4180:a5c0:304b:2b9c:bcb7:ff1a]) by smtp.gmail.com with ESMTPSA id l9sm5018427pgh.34.2020.01.08.20.50.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jan 2020 20:50:14 -0800 (PST) From: Armin Kuster To: openembedded-core@openembedded.org Date: Wed, 8 Jan 2020 20:49:40 -0800 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: Subject: [OE-core] [zeus 21/28] podfix: only alter normal files 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org From: Ross Burton Signed-off-by: Ross Burton Signed-off-by: Richard Purdie (cherry picked from commit 23d38b2ad6f7a39e5c1ffd092322942474935c33) Signed-off-by: Armin Kuster --- meta/classes/podfix.bbclass | 3 +++ 1 file changed, 3 insertions(+) -- 2.17.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/classes/podfix.bbclass b/meta/classes/podfix.bbclass index 54fff6a0a2..cc8210a27e 100644 --- a/meta/classes/podfix.bbclass +++ b/meta/classes/podfix.bbclass @@ -16,6 +16,9 @@ python pod_strip_version() { for root, dirs, files in os.walk(d.expand("${D}${mandir}")): for filename in files: filename = os.path.join(root, filename) + if not os.path.isfile(filename): + continue + with opener(filename, "rb") as manfile: manpage = manfile.read() m = bad_re.search(manpage)