From patchwork Mon Dec 17 05:54:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 153956 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2107774ljp; Sun, 16 Dec 2018 21:54:57 -0800 (PST) X-Google-Smtp-Source: AFSGD/UpUgj0jOtBOtzTT/5qHJ5emVLDaOfUlb7wDajr0wEPbf5qH5RGxoKpFvOln3SnXHLi0Ys5 X-Received: by 2002:a62:938f:: with SMTP id r15mr11629617pfk.27.1545026097187; Sun, 16 Dec 2018 21:54:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545026097; cv=none; d=google.com; s=arc-20160816; b=cAsMbN1pWFsPFW5YOanRGzRj0um7QfvnKhEmtmtMQ1/LGGMbRtZkRFKmlMg8OR3qg7 MHSV+0KCkON3CsAlAonoJed4TVrRsNgQ41rmFSUNzvt03UqbSgqDRxsEw2kFYAScSqcg tDyvGRfByiUiYHW9wxqxjMyZANAnUz9G0X/VtMvYLED+3wiirHgSvTlcploMHshkY5XK uQhjckZaph1tjJAGnHCEMqknyGcs2scj5zeh6gCaWQhmXe3ZxzX5hzmQ8lnEMjUd59Or 4zsIcqBMVxtT5fr04plva5Iq/YICTzJHeLdYvF5qc3/SvjxNBYkHih4QB9W9vSGM0xZ4 /Gpg== 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=ZbqEoqbrZ67qBawLBLiLOSe7OIludj2muCJKl0qAZTk=; b=xFzZO5W8lbluYEAfk3erQH4p1J5vFamqdnwzJy+u4SDIhHYLLEkZgjqRifjKpJbJOY yB2k4G6yOFV+FZgP0ft1eZhwRlpmUzQFQZuzjAN7CUNgawugjNc5ZaQc2Sh+rFLXbRuw CEm/qujF0oakDzfn31KEQZ7tqxJkfFhnLUkno8hQY4VJeD2TboYo7NHNqo1k8ewVKQXr cBxeSem56MzEm8y8bmTTS9JWJX7YUfF3CxsbIE93x91t/Gif4hSFRmYy0eg3ZtybJOWa ZOisSj5Q3gjgdW5ANcvbatawXioZHCJ7Y1cbuiL/0phHUKv+/2R8Zulqn/NZ+rQByV+R qP9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="ufiS+/u8"; 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 b11si7269428pgt.289.2018.12.16.21.54.56; Sun, 16 Dec 2018 21:54:57 -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="ufiS+/u8"; 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 165.28.230.35.bc.googleusercontent.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 3D82C7BE13; Mon, 17 Dec 2018 05:54:52 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) by mail.openembedded.org (Postfix) with ESMTP id 3427D7B71B for ; Mon, 17 Dec 2018 05:54:50 +0000 (UTC) Received: by mail-pf1-f178.google.com with SMTP id g62so5781363pfd.12 for ; Sun, 16 Dec 2018 21:54:52 -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:mime-version :content-transfer-encoding; bh=L6UppjbTCLXu7LU1d+0H9uD7IMiCIUoA7puERHfUxY4=; b=ufiS+/u8vccul+dpJIT9xT2c/aIIaSzoySW0pAMWhry6wKOpSqTVXAqwh4bbw8DLyy 7dmLFSzaXseuhSU9CUd4h4yoL2OMNyzKLkAv3NtZncGLnxl+idOpQzJqQd9K4Tu8gCUa BpUeutojCf0w/AwKggJV3TeffcGCzCL7Noe5zJ+x1JWxY/22ZXSJMdoUwslIvScvk2g1 C+4pJJdCH8KL77+3avcyo8ZBaIqTDzk9hvcr8aeXBaIBQOi4IpGTD6OXwNkvMAEO+5Ix c2VwpTITNxOpicMFlKWW5obtVdvL6pomsXvisVwF5Zz9yxvT1Lc+EMCm5XV1Cm6VT//f RiXQ== 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:mime-version :content-transfer-encoding; bh=L6UppjbTCLXu7LU1d+0H9uD7IMiCIUoA7puERHfUxY4=; b=X9cAZazETX3T+qNOmR43nSTYkNx27QVwlAZXpJNzbb8Y2YLMht1vY9i7KkB1xoKbU4 0EXVQphBIno9DTurRLW8cZnan6fTCCCM8L8vb88uxnIp94kQ+A6+4nelUHtoU1QSgHvw f3k8dlOTgIuSf7ONDF3Dg7ccFIePsWxk/J8mcOE41PKzpYBHRem1E87Yuho/tzNfGCEV 6YmBop1AldPE+sajdK6VeRJCtj+kTLUsM7tPthEeyze9a9Xf7/6NV7rRgaOuRK/aQKO/ 1H9U6lpBQM+p9vSfSryVGU4crOWYP5L1uhJc21h0pvrMFAU68bm7QjbVBfcMZ8iebZrP 2LXQ== X-Gm-Message-State: AA+aEWabTHLNrxpbqV3Qx+aDMj26Qg3brhXYMm6WBC/2LlJofQlOZNX2 3KjZwhTF8zAWTafei5svC70veym08tk= X-Received: by 2002:a63:d005:: with SMTP id z5mr11118789pgf.64.1545026091520; Sun, 16 Dec 2018 21:54:51 -0800 (PST) Received: from localhost.localdomain ([2601:646:877f:9499::6872]) by smtp.gmail.com with ESMTPSA id u126sm21263551pgb.2.2018.12.16.21.54.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 16 Dec 2018 21:54:50 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Sun, 16 Dec 2018 21:54:40 -0800 Message-Id: <20181217055442.13735-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [OE-core] [PATCH 1/3] go: Upgrade 1.11.1 -> 1.11.4 minor release 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 Changes: https://golang.org/doc/devel/release.html#go1.11 Signed-off-by: Khem Raj --- meta/recipes-devtools/go/go-1.11.inc | 7 +++---- ...007-cmd-go-make-GOROOT-precious-by-default.patch | 6 +++--- .../0008-use-GOBUILDMODE-to-set-buildmode.patch | 13 +++++-------- 3 files changed, 11 insertions(+), 15 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/go/go-1.11.inc b/meta/recipes-devtools/go/go-1.11.inc index d626514ae6..d03e26cea0 100644 --- a/meta/recipes-devtools/go/go-1.11.inc +++ b/meta/recipes-devtools/go/go-1.11.inc @@ -1,7 +1,7 @@ require go-common.inc GO_BASEVERSION = "1.11" -GO_MINOR = ".1" +GO_MINOR = ".4" PV .= "${GO_MINOR}" FILESEXTRAPATHS_prepend := "${FILE_DIRNAME}/go-${GO_BASEVERSION}:" @@ -17,8 +17,7 @@ SRC_URI += "\ file://0007-cmd-go-make-GOROOT-precious-by-default.patch \ file://0008-use-GOBUILDMODE-to-set-buildmode.patch \ " - SRC_URI_append_libc-musl = " file://0009-ld-replace-glibc-dynamic-linker-with-musl.patch" -SRC_URI[main.md5sum] = "eb9e9792247143705a7aacea9398cde0" -SRC_URI[main.sha256sum] = "558f8c169ae215e25b81421596e8de7572bd3ba824b79add22fba6e284db1117" +SRC_URI[main.md5sum] = "a77697673215be465d1b583680ef2318" +SRC_URI[main.sha256sum] = "4cfd42720a6b1e79a8024895fa6607b69972e8e32446df76d6ce79801bbadb15" diff --git a/meta/recipes-devtools/go/go-1.11/0007-cmd-go-make-GOROOT-precious-by-default.patch b/meta/recipes-devtools/go/go-1.11/0007-cmd-go-make-GOROOT-precious-by-default.patch index f317e48a33..29ef947abd 100644 --- a/meta/recipes-devtools/go/go-1.11/0007-cmd-go-make-GOROOT-precious-by-default.patch +++ b/meta/recipes-devtools/go/go-1.11/0007-cmd-go-make-GOROOT-precious-by-default.patch @@ -65,8 +65,8 @@ Index: go/src/cmd/go/internal/work/exec.go =================================================================== --- go.orig/src/cmd/go/internal/work/exec.go +++ go/src/cmd/go/internal/work/exec.go -@@ -440,6 +440,23 @@ func (b *Builder) build(a *Action) (err - return fmt.Errorf("module requires Go %s", p.Module.GoVersion) +@@ -436,6 +436,23 @@ func (b *Builder) build(a *Action) (err + return fmt.Errorf("missing or invalid binary-only package; expected file %q", a.Package.Target) } + if goRootPrecious && (a.Package.Standard || a.Package.Goroot) { @@ -89,7 +89,7 @@ Index: go/src/cmd/go/internal/work/exec.go if err := b.Mkdir(a.Objdir); err != nil { return err } -@@ -1435,6 +1452,14 @@ func BuildInstallFunc(b *Builder, a *Act +@@ -1438,6 +1455,14 @@ func BuildInstallFunc(b *Builder, a *Act return nil } diff --git a/meta/recipes-devtools/go/go-1.11/0008-use-GOBUILDMODE-to-set-buildmode.patch b/meta/recipes-devtools/go/go-1.11/0008-use-GOBUILDMODE-to-set-buildmode.patch index b6ab504335..225cf439c5 100644 --- a/meta/recipes-devtools/go/go-1.11/0008-use-GOBUILDMODE-to-set-buildmode.patch +++ b/meta/recipes-devtools/go/go-1.11/0008-use-GOBUILDMODE-to-set-buildmode.patch @@ -18,11 +18,11 @@ Signed-off-by: Hongxu Jia src/cmd/go/internal/work/build.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -diff --git a/src/cmd/go/internal/work/build.go b/src/cmd/go/internal/work/build.go -index 145b875..595d703 100644 ---- a/src/cmd/go/internal/work/build.go -+++ b/src/cmd/go/internal/work/build.go -@@ -218,7 +218,11 @@ func AddBuildFlags(cmd *base.Command) { +Index: go/src/cmd/go/internal/work/build.go +=================================================================== +--- go.orig/src/cmd/go/internal/work/build.go ++++ go/src/cmd/go/internal/work/build.go +@@ -223,7 +223,11 @@ func AddBuildFlags(cmd *base.Command) { cmd.Flag.Var(&load.BuildAsmflags, "asmflags", "") cmd.Flag.Var(buildCompiler{}, "compiler", "") @@ -35,6 +35,3 @@ index 145b875..595d703 100644 cmd.Flag.Var(&load.BuildGcflags, "gcflags", "") cmd.Flag.Var(&load.BuildGccgoflags, "gccgoflags", "") cmd.Flag.StringVar(&cfg.BuildMod, "mod", "", "") --- -2.7.4 - From patchwork Mon Dec 17 05:54:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 153957 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2107982ljp; Sun, 16 Dec 2018 21:55:20 -0800 (PST) X-Google-Smtp-Source: AFSGD/WWXDQ/lt9YnNT9qDVyo6wOiGOfSQObtsFaGe338dS49dcG3hl3cK+ueHILjTNzcsQWds6O X-Received: by 2002:a63:8b41:: with SMTP id j62mr11293559pge.182.1545026120350; Sun, 16 Dec 2018 21:55:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545026120; cv=none; d=google.com; s=arc-20160816; b=Z56+izsD/oE+ix0wu5ZtLdAsJlBLTE3fq4ZrgcpfCM4P+xyPluHvNDiG0J4XzepreI Ss7nFYJFh0RF+wT7ZVOxhK+xgDt/G1svy2l63Rkyp4r514Pnj4Xfae0W6qebWxhh/ljp gah0Er5/UlwUrbhNkgqGVnsf1PvHCp/tNnWcVT2MYqgvRhafWZ3gJXBehyOgmYiWcWcU XZllG4k/YwLE7OPLRm4wFzze+XAKWpQB83cPgJBClwiARBeQ9/yxbEqha7GCkJqPKbzC UnlwZ63i+E2lsT9gRqwEw8yZgaQC4y+0vKE3CCW74Sxm9OZkfiyXefSaLyqYS5V6XbPM G0GA== 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=yJgvYcV1C1cSz5QF8czfYiUthh0bjECHNkSQiQl7aeY=; b=jnIJfWPcLQT4Frg7dIfWdyE7VyvhPff/s6uQh6id2NbhnwXnihBubiizEVnIGExXCq gr18fk5Ppzl4W7pGX+n4vKj3LYJmKHxV452GBheBWs3laO8mQD51EMqQp7XXwoLuW2Uo Wjb735EXjAkqfr04IL2hXunDO3Peqwi0CdSxyEqLMK1q0XzmyE+BsBhVBDptWNxNesun Y73FYb+zyNBOI3JuBArP93pZyUl7UrZLcLFfsxLCLIo+dNf+wFFvWlSSz1IDyyFV+O07 CznZZpo+a1xIP+fIrBxLZd3jqzmRQ4meyI2Qnj1791FzsaZGH5oxwl3tx87Qq8WVV/SQ 5fFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="Kz3T/OOg"; 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 q26si8046824pgk.162.2018.12.16.21.55.20; Sun, 16 Dec 2018 21:55:20 -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="Kz3T/OOg"; 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 165.28.230.35.bc.googleusercontent.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id BEB7E7BE5A; Mon, 17 Dec 2018 05:55:17 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by mail.openembedded.org (Postfix) with ESMTP id 815597BE58 for ; Mon, 17 Dec 2018 05:54:51 +0000 (UTC) Received: by mail-pg1-f194.google.com with SMTP id t13so5555280pgr.11 for ; Sun, 16 Dec 2018 21:54:53 -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 :mime-version:content-transfer-encoding; bh=iai6paF5HF9xgQz0m1+rKae2GKfmXTMR6jdXC/iRT18=; b=Kz3T/OOgd/g2tIgIy8dFm5I5Bj3mboolzyKzTG3x7dLIBRPnBPeJnqW32C7WB01Yx3 fXJ0i1mJulyq9OZBFx9Hn75wofBWN2S6Xe/MnydMYjXiC6A88rF85Hu32/3Exm5BXIxt J4F7+0dIKqPu2F+zpeg0NWJoaMFOrhAfr052gBh6qCj6Clt6A9eOT6ZSOvgExeXO30oh aZ382Dtb4llBVyfuvA12x6HL+74NzHwn6qx5PV4f6ksQRtuYCogQOLTNd3zZCWL5Hp/M CjKwfGiN3vlS4LqmqJgUmvKMBA30qL9aGTT4oC48vxq9ELhWhr9UCZaxuliLQs3i0RU9 l5Pw== 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:mime-version:content-transfer-encoding; bh=iai6paF5HF9xgQz0m1+rKae2GKfmXTMR6jdXC/iRT18=; b=UwCUM1n5owbIBOvoXFoK9mvffwYrKCoiaAKyXmiqBNDbFD9XB7cThlP6GqTHl/clWf irAyUmWEybpvLV0T2jIqRXZaVHIxJNJzttXYq0SwgOECVU+ksGypx2W3Xu12hyDtaSTb WlHhOSo47kkOe5mXytQdSg7gNhkmD3iQJSc3Acv8HKTWF9yyOoRi7HKy/sgVpK+GB6yI 4fDwWKzAmMa0vqN0AUA4zfF8a+NQ6jq3SgVIs0tkewdjIc6cJ6H6Zl88gvU4GMe1JvGm 73eJv7DEOi/patT97Rd/r1ijg28aIqyBbGFvyS2pKkhzZYG4NKgd0Ixoqwj8aSwdp8q5 5P2Q== X-Gm-Message-State: AA+aEWbPysEGQhARqpz9OE9Hwe5qCIzVXqgt3+nB8gG5u+/+eONi9MkG oqnKOmbqSdRC4Y+8rBhFGphhaCA2uNM= X-Received: by 2002:a63:a452:: with SMTP id c18mr11267757pgp.204.1545026092275; Sun, 16 Dec 2018 21:54:52 -0800 (PST) Received: from localhost.localdomain ([2601:646:877f:9499::6872]) by smtp.gmail.com with ESMTPSA id u126sm21263551pgb.2.2018.12.16.21.54.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 16 Dec 2018 21:54:51 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Sun, 16 Dec 2018 21:54:41 -0800 Message-Id: <20181217055442.13735-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20181217055442.13735-1-raj.khem@gmail.com> References: <20181217055442.13735-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 2/3] libxcrypt: Upgrade to 4.4.1 release 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 License-Update: New files added to existing list Add -Wno-error=missing-attributes to compiler flags, this helps in compiling with gcc 9.0, eventually, the code should be fixed Signed-off-by: Khem Raj --- .../libxcrypt/{libxcrypt_4.1.1.bb => libxcrypt_4.4.1.bb} | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) rename meta/recipes-core/libxcrypt/{libxcrypt_4.1.1.bb => libxcrypt_4.4.1.bb} (75%) -- 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/libxcrypt/libxcrypt_4.1.1.bb b/meta/recipes-core/libxcrypt/libxcrypt_4.4.1.bb similarity index 75% rename from meta/recipes-core/libxcrypt/libxcrypt_4.1.1.bb rename to meta/recipes-core/libxcrypt/libxcrypt_4.4.1.bb index 465aa96523..8dcda25e6d 100644 --- a/meta/recipes-core/libxcrypt/libxcrypt_4.1.1.bb +++ b/meta/recipes-core/libxcrypt/libxcrypt_4.4.1.bb @@ -3,13 +3,14 @@ DESCRIPTION = "Forked code from glibc libary to extract only crypto part." HOMEPAGE = "https://github.com/besser82/libxcrypt" SECTION = "libs" LICENSE = "LGPLv2.1" -LIC_FILES_CHKSUM ?= "file://LICENSING;md5=cb3ca4cabd2447a37bf186fad6f79852 \ +LIC_FILES_CHKSUM ?= "file://LICENSING;md5=e28ba6195a4e39904919b78a92bcf27e \ file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c \ " inherit autotools pkgconfig -SRCREV ?= "21b455b68baad279e6a3936faced16c5e5634376" +# v4.4.1 +SRCREV ?= "b8714d4e9e37cf0d511917bd5eea0e51e4a397d5" SRCBRANCH ?= "develop" SRC_URI = "git://github.com/besser82/libxcrypt.git;branch=${SRCBRANCH} \ @@ -22,6 +23,6 @@ FILES_${PN} = "${libdir}/libcrypt*.so.* ${libdir}/libcrypt-*.so ${libdir}/libowc S = "${WORKDIR}/git" BUILD_CPPFLAGS = "-I${STAGING_INCDIR_NATIVE} -std=gnu99" -TARGET_CPPFLAGS = "-I${STAGING_DIR_TARGET}${includedir}" +TARGET_CPPFLAGS = "-I${STAGING_DIR_TARGET}${includedir} -Wno-error=missing-attributes" BBCLASSEXTEND = "nativesdk" From patchwork Mon Dec 17 05:54:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 153958 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2108052ljp; Sun, 16 Dec 2018 21:55:25 -0800 (PST) X-Google-Smtp-Source: AFSGD/VleDuPN66WvafpdSTZvxx5XgaHyf+X0WN+u56NjQiX2K9NLaTHmnhvJF4f8Q96eFZDUT6k X-Received: by 2002:a63:1e17:: with SMTP id e23mr11006065pge.130.1545026125612; Sun, 16 Dec 2018 21:55:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545026125; cv=none; d=google.com; s=arc-20160816; b=0+dnv0I50UeeVmboYigFzDMqoUX/s1Oq5U5m+y8aMiiNwkJLtSsaqIzGf6pxKaBUyE c3h4Bk+z4E3HyNIkYKP4jlTxhV29f8fK1nLrBLdaExoMTIJmLjwy68mQbeH36A/cFLXF Ln9GPhDXC/gpHSoldd0A7oPO/emsOePS/2u1QfQ5lq8kakcWzmVLwUDWdYqFHr9e78PX yhza7VOJl/ep1DwKr6x5x0yl6Q5hsjUXRg+sjZ7DiDv7qW0FblOv2wW0z5tl9BO1Odpx FDyptM+Jxghx7svaIQI7T/cBVgwIh45tNmHYgsMpqHEcomy5CJLiu9xjVUuhILeAVGDY mwCw== 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=2Xu/xHa7pr3arv4CqDC5ANvRIHxXh/zgkMkL1T5qJTw=; b=nSXrmuiZnEuVt+SkkudcZaMuPJrBIDNCt3UGNY55e+EV//pdocdz0dikGhiaEvf9ls 7nZNiF8AUwaZdsSA1SI6No6Rz9RRp1tQWkfyzGHwhFa04LL+tDCkyR93UwdQTtY6Yiqm abaG/vvTS7x4fQZclJJAYMK5iLhXa51P59FbB2ClhWP/Ibzy/6sK/uQI/pQy92dfJTB9 xWXE6amr+7Fi49aF/4Jv8Jg/mdZy4UxsWcmHS7qm+ohOJs9e+5h0IaOvbgFmjoUu4uCs sKyedWcHPV/vHD5aZIcGvPG1xbBNK8RGZS60/mUTflqPWP2fidjSN7Q/1QpFPMvoU9Ew 3tzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=n03eFMKP; 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 d69si10480573pga.184.2018.12.16.21.55.25; Sun, 16 Dec 2018 21:55:25 -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=n03eFMKP; 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 165.28.230.35.bc.googleusercontent.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 27AF47BE64; Mon, 17 Dec 2018 05:55:19 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by mail.openembedded.org (Postfix) with ESMTP id 916557BE5A for ; Mon, 17 Dec 2018 05:54:52 +0000 (UTC) Received: by mail-pf1-f196.google.com with SMTP id b7so5794711pfi.8 for ; Sun, 16 Dec 2018 21:54:53 -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 :mime-version:content-transfer-encoding; bh=k9Bg8rT1HwR1IKn7NI0M65sUGpVeOzh9RWuE3s6calg=; b=n03eFMKPDtGj0/K8hp4FgLPVKC/PiEUnvc7F3L2lzM+5tezjF11xNeM5cL1oIEeSMd YrjivIXK6D6sBoFxEtPDcDXgkT4O7GXdVaA7SWAYvKOgy4dtKszY7zuX4GGiuya74XeB T1E6cu1eJeDKQTSld1bvtXtCCMwHSJ7xNwiBFy+9IrJQqNgn3O+osbY1+KcikAjISyYZ EUPqa51bOAXVu4g+1n8lP44OQaD3WQrfVoazSoyNXG3gSS4cc6W51IG1tYj31wyyrVtc Ev3bBv+7h9unaDp5SXrHawlxUjQA4Og665eja6nFtb91FFaM2f8sAuSCWYchWEibQZZG oAcw== 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:mime-version:content-transfer-encoding; bh=k9Bg8rT1HwR1IKn7NI0M65sUGpVeOzh9RWuE3s6calg=; b=KE5pHjUFbYZBEOEboXQ/bz61Lky6U1WNsaMalJ9IZL9SXgpgIogCfAWaz7bCjrqtBU 0Ys327ChXU7fH0FSfP95U6DHBROigD3LJAcXNHpuLyfBPmS/MwvxBI/MVCbUBC5yRGZW 4nKZumOiOrO9IKpghbCvoaQb+4Y1+3Jto/ypfbF58DNh1QSg6ymysrYXeU/mY7JhR1PA ylTouGTqoB3pmHcPWRmxzS9rBDHunjanhoxUNlluxGIEp4QsDW2aXIOb/EDOohCjye5n 5RtrfO9pkMaAOvG+ZAt7rSUOoLc6RtDVkiC9lDGK4DpBOaSgPp3/t+/Dfu/DN7BO65at Dz0A== X-Gm-Message-State: AA+aEWb2RdxhEjmG6FVBp4LsXGpffqdY6dWrqj+oZVAusVzK8XFuXAKj 8BaBn3ThIIQu+RABC+RHm/HzPHoybk4= X-Received: by 2002:a65:534b:: with SMTP id w11mr11185907pgr.125.1545026093108; Sun, 16 Dec 2018 21:54:53 -0800 (PST) Received: from localhost.localdomain ([2601:646:877f:9499::6872]) by smtp.gmail.com with ESMTPSA id u126sm21263551pgb.2.2018.12.16.21.54.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 16 Dec 2018 21:54:52 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Sun, 16 Dec 2018 21:54:42 -0800 Message-Id: <20181217055442.13735-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20181217055442.13735-1-raj.khem@gmail.com> References: <20181217055442.13735-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 3/3] systemd: Fix memory use after free errors 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 Found with gcc trunk Signed-off-by: Khem Raj --- ...-t-pass-null-directive-argument-to-s.patch | 31 +++++++++++++ ...se-after-free-case-in-load_from_path.patch | 43 +++++++++++++++++++ meta/recipes-core/systemd/systemd_239.bb | 2 + 3 files changed, 76 insertions(+) create mode 100644 meta/recipes-core/systemd/systemd/0001-sysctl-Don-t-pass-null-directive-argument-to-s.patch create mode 100644 meta/recipes-core/systemd/systemd/0002-core-Fix-use-after-free-case-in-load_from_path.patch -- 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/0001-sysctl-Don-t-pass-null-directive-argument-to-s.patch b/meta/recipes-core/systemd/systemd/0001-sysctl-Don-t-pass-null-directive-argument-to-s.patch new file mode 100644 index 0000000000..0538c7bbc8 --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0001-sysctl-Don-t-pass-null-directive-argument-to-s.patch @@ -0,0 +1,31 @@ +From bfc4183ea995f1c211385d066cdb1fe9ce89f621 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sun, 16 Dec 2018 20:53:38 -0800 +Subject: [PATCH 1/2] sysctl: Don't pass null directive argument to '%s' + +value pointer here is always NULL but subsequent use of that pointer +with a %s format will always be NULL, printing p instead would be a +valid string + +Signed-off-by: Khem Raj +--- +Upstream-Status: Submitted [https://github.com/systemd/systemd/pull/11179] + src/sysctl/sysctl.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/sysctl/sysctl.c b/src/sysctl/sysctl.c +index 1cfe51018..c67d79032 100644 +--- a/src/sysctl/sysctl.c ++++ b/src/sysctl/sysctl.c +@@ -115,7 +115,7 @@ static int parse_file(OrderedHashmap *sysctl_options, const char *path, bool ign + + value = strchr(p, '='); + if (!value) { +- log_error("Line is not an assignment at '%s:%u': %s", path, c, value); ++ log_error("Line is not an assignment at '%s:%u': %s", path, c, p); + + if (r == 0) + r = -EINVAL; +-- +2.20.1 + diff --git a/meta/recipes-core/systemd/systemd/0002-core-Fix-use-after-free-case-in-load_from_path.patch b/meta/recipes-core/systemd/systemd/0002-core-Fix-use-after-free-case-in-load_from_path.patch new file mode 100644 index 0000000000..4da96e2920 --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0002-core-Fix-use-after-free-case-in-load_from_path.patch @@ -0,0 +1,43 @@ +From cb67aebd63d9f0077cbf3e769f0b223c5bba20ac Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sun, 16 Dec 2018 20:58:35 -0800 +Subject: [PATCH 2/2] core: Fix use after free case in load_from_path() + +ensure that mfree() on filename is called after the logging function +which uses the string pointed by filename + +Signed-off-by: Khem Raj +--- +Upstream-Status: Submitted [https://github.com/systemd/systemd/pull/11179] + src/core/load-fragment.c | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c +index fc5644f48..da585786e 100644 +--- a/src/core/load-fragment.c ++++ b/src/core/load-fragment.c +@@ -4531,7 +4531,6 @@ static int load_from_path(Unit *u, const char *path) { + r = open_follow(&filename, &f, symlink_names, &id); + if (r >= 0) + break; +- filename = mfree(filename); + + /* ENOENT means that the file is missing or is a dangling symlink. + * ENOTDIR means that one of paths we expect to be is a directory +@@ -4540,9 +4539,12 @@ static int load_from_path(Unit *u, const char *path) { + */ + if (r == -EACCES) + log_debug_errno(r, "Cannot access \"%s\": %m", filename); +- else if (!IN_SET(r, -ENOENT, -ENOTDIR)) ++ else if (!IN_SET(r, -ENOENT, -ENOTDIR)) { ++ filename = mfree(filename); + return r; ++ } + ++ filename = mfree(filename); + /* Empty the symlink names for the next run */ + set_clear_free(symlink_names); + } +-- +2.20.1 + diff --git a/meta/recipes-core/systemd/systemd_239.bb b/meta/recipes-core/systemd/systemd_239.bb index a40c89973a..03acce25b7 100644 --- a/meta/recipes-core/systemd/systemd_239.bb +++ b/meta/recipes-core/systemd/systemd_239.bb @@ -35,6 +35,8 @@ SRC_URI += "file://touchscreen.rules \ file://0001-dhcp6-make-sure-we-have-enough-space-for-the-DHCP6-o.patch \ file://0001-Revert-sysctl.d-request-ECN-on-both-in-and-outgoing-.patch \ file://0001-timesync-changes-type-of-drift_freq-to-int64_t.patch \ + file://0001-sysctl-Don-t-pass-null-directive-argument-to-s.patch \ + file://0002-core-Fix-use-after-free-case-in-load_from_path.patch \ " # patches made for musl are only applied on TCLIBC is musl