Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 613420 Details for
Bug 709322
mount-boot.eclass: failure in mount-boot_pkg_pretend when sys-apps/mawk is used: awk: line 3: function gensub never defined
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
mount-boot.eclass: Make awk expression work with mawk.
0001-mount-boot.eclass-Make-awk-expression-work-with-mawk.patch (text/plain), 1.22 KB, created by
Ulrich Müller
on 2020-02-12 02:13:20 UTC
(
hide
)
Description:
mount-boot.eclass: Make awk expression work with mawk.
Filename:
MIME Type:
Creator:
Ulrich Müller
Created:
2020-02-12 02:13:20 UTC
Size:
1.22 KB
patch
obsolete
>From 2df97a68adc06a764a401574cdf4bb564f471d6e Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm@gentoo.org> >Date: Wed, 12 Feb 2020 03:08:37 +0100 >Subject: [PATCH] mount-boot.eclass: Make awk expression work with mawk, >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Closes: https://bugs.gentoo.org/709322 >Signed-off-by: Ulrich Müller <ulm@gentoo.org> >--- > eclass/mount-boot.eclass | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/eclass/mount-boot.eclass b/eclass/mount-boot.eclass >index c5c6b69b063e..b7e646c176cf 100644 >--- a/eclass/mount-boot.eclass >+++ b/eclass/mount-boot.eclass >@@ -1,4 +1,4 @@ >-# Copyright 1999-2019 Gentoo Authors >+# Copyright 1999-2020 Gentoo Authors > # Distributed under the terms of the GNU General Public License v2 > > # @ECLASS: mount-boot.eclass >@@ -62,8 +62,8 @@ mount-boot_check_status() { > return > fi > >- local procstate=$(awk '$2 == "/boot" \ >- { print gensub(/^(.*,)?(ro|rw)(,.*)?$/, "\\2", 1, $4); exit }' \ >+ local procstate=$(awk '$2 == "/boot" { split($4, m, ","); \ >+ for (i in m) if (m[i] ~ /^r[ow]$/) { print m[i]; break }; exit }' \ > /proc/mounts || die "awk failed") > > if [[ -z ${procstate} ]] ; then >-- >2.25.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 709322
:
613412
| 613420