Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1237645
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Alexander Kapshuk <alexander.kapshuk@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH] ver_linux: binutils.patch |
| Date | Thu, 01 Oct 2015 20:50:01 +0200 |
| Message-ID | <qeR5v-4ui-7@gated-at.bofh.it> (permalink) |
| X-Original-To | linux-kernel@vger.kernel.org |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:cc:content-type; bh=OBw0/8krW4admqAJ4h+Fr6dK/ZMPElPOHQ2WpV7ONTk=; b=U4R47Wnj8J3/9MQEpSnUK65VMIiIrQL92SmUf3rOyhcZOJNo7gp7uWfzSaSKco7mEJ 12PF2yIICLdtkJd5U3shDWnGJHWnzStYl1LCyvHhSnYGDZtANWgMTa7MSCF6pdlahoq5 CiFFvj/JGbRfXyvjXG67/SsRbEWspZAl3StpHNT+buSEoSykPkOwPUR3O4WTQCNgnzLv ItV5wwAt/6w5w99vy9l2P6XBYFMo+iTGDYxO30zfchpkAOg8Nf9NoL7CxmD5IFxvyMS5 Fru/E8XQcD/LdQuBk52rjvVgpDjT6hdDsVMVXqHngUstPKu6tru75kAkkhhY4bMNfGh1 5+Lg== |
| X-Received | by 10.112.161.201 with SMTP id xu9mr3675878lbb.10.1443725220274; Thu, 01 Oct 2015 11:47:00 -0700 (PDT) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 41 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Greg KH <gregkh@linuxfoundation.org> |
| X-Original-Date | Thu, 1 Oct 2015 21:46:20 +0300 |
| X-Original-Message-ID | <CAJ1xhMU7Ua3KOPENhRSWTVbumKzPeQQ6H4MSQrZfKGzBQqGXAQ@mail.gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1237645 |
Show key headers only | View raw
Fix broken output.
Current implementation output on Gentoo Linux:
binutils 2.25.1
1.1
2.25.1
Proposed implementation:
binutils 2.25.1
Tested on:
Gentoo Linux
Debian 6.0.10
Oracle Linux Server release 7.1
Arch Linux
openSuSE 13.2
Signed-off-by: Alexander Kapshuk <alexander.kapshuk@gmail.com>
---
--- linux/scripts/ver_linux.orig 2015-08-30 21:34:09.000000000 +0300
+++ linux/scripts/ver_linux 2015-09-30 22:33:48.600267242 +0300
@@ -17,7 +17,13 @@
make --version 2>&1 | awk -F, '{print $1}' | awk \
'/GNU Make/{print "Gnu make ",$NF}'
-echo "binutils $(ld -v | egrep -o '[0-9]+\.[0-9\.]+')"
+ld -v 2>&1 |
+sed '
+ /[0-9]$/!d
+ s/-.*//
+ s/.*[ \t]//
+ s/^/binutils\t\t/
+'
echo -n "util-linux "
fdformat --version | awk '{print $NF}' | sed -e s/^util-linux-// -e s/\)$//
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] ver_linux: binutils.patch Alexander Kapshuk <alexander.kapshuk@gmail.com> - 2015-10-01 20:50 +0200
csiph-web