From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754052AbbI1V40 (ORCPT ); Mon, 28 Sep 2015 17:56:26 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:49464 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752013AbbI1V4Y (ORCPT ); Mon, 28 Sep 2015 17:56:24 -0400 Subject: Re: Subject: [PATCH] ver_linux: uniform output across various linux distros To: Alexander Kapshuk , linux-kernel@vger.kernel.org References: Cc: akpm@linux-foundation.org, gregkh@linuxfoundation.org From: Randy Dunlap X-Enigmail-Draft-Status: N1110 Message-ID: <5609B786.1070206@infradead.org> Date: Mon, 28 Sep 2015 14:56:22 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/27/15 21:50, Alexander Kapshuk wrote: > > ------------------------------------- > Sample output of the current implementation on Gentoo Linux: > > /usr/src/linux/scripts/ver_linux.orig > If some fields are empty or look unusual you may have an old version. > Compare to the current minimal requirements in Documentation/Changes. > > Linux box0 4.2.1-vanilla #1 SMP Thu Sep 24 18:05:42 EEST 2015 i686 > Intel(R) Pentium(R) Dual CPU T3400 @ 2.16GHz GenuineIntel GNU/Linux > > Gnu C 4.8.5 > Gnu make 4.1 > binutils 2.25.1 > 1.1 > 2.25.1 > util-linux /usr/src/linux/scripts/ver_linux.orig: line 23: > fdformat: command not found > mount debug > module-init-tools found > Linux C Library Dynamic linker (ldd) 2.20 > Procps 3.3.9 > Net-tools 1.60_p20130513023548 > Kbd 1.15.5 > Sh-utils 8.23 > Modules Loaded xt_mark xt_LOG vgem v4l2_dv_timings ulpi udf > sil164 nf_nat_sip nf_nat_irc uvcvideo videobuf2_vmalloc > videobuf2_memops nf_nat_ipv4 videobuf2_core v4l2_common nf_nat_ftp > nf_nat nf_log_ipv6 nf_log_ipv4 nf_log_common lcd i2c_mux hp_wireless > gspca_main videodev cuse fuse crc_itu_t ch7006 ath5k coretemp > input_leds led_class ath > > ------------------------------------- > Sample output of the patched implementation on Gentoo Linux: > > /usr/src/linux/scripts/ver_linux > If some fields are empty or look unusual you may have an old version. > Compare to the current minimal requirements in Documentation/Changes. > > Linux box0 4.2.1-vanilla #1 SMP Thu Sep 24 18:05:42 EEST 2015 i686 > Intel(R) Pentium(R) Dual CPU T3400 @ 2.16GHz GenuineIntel GNU/Linux > > GNU C 4.8.5 > GNU Make 4.1 > binutils 2.25.1 > util-linux 2.26.2 > mount 2.26.2 > module-init-tools 20 > e2fsprogs 1.42.13 > Linux C Library 2.20 > Dynamic linker (ldd) 2.20 > Linux C++ Library 6.0.19 > Procps 3.3.9 > net-tools 1.60 > Kbd 1.15.5 > Console-tools 1.15.5 > Sh-utils 8.23 > Modules Loaded ath ath5k ch7006 coretemp crc_itu_t cuse fuse > gspca_main hp_wireless i2c_mux input_leds lcd led_class nf_log_common > nf_log_ipv4 nf_log_ipv6 nf_nat nf_nat_ftp nf_nat_ipv4 nf_nat_irc > nf_nat_sip sil164 udf ulpi uvcvideo v4l2_common v4l2_dv_timings vgem > videobuf2_core videobuf2_memops videobuf2_vmalloc videodev xt_LOG > xt_mark > ------------------------------------- On openSuSE 13.2 I get this (fragment): Linux dragon 3.16.7-24-desktop #1 SMP PREEMPT Mon Aug 3 14:37:06 UTC 2015 (ec183cc) x86_64 x86_64 x86_64 GNU/Linux GNU C 4.8 GNU Make 4.0 binutils 2.24.0.20140403 util-linux 2.25.1 mount 2.25.1 module-init-tools 18 e2fsprogs 1.42.12 pcmciautils 017 Linux C Library 2.19 Dynamic linker (ldd) 2.19 Linux C++ Library 6.0.19 Procps 3.3.9 net-tools 1.60 Kbd 2.0.2 Console-tools 2.0.2 Sh-utils 8.23 wireless-tools 30 Tabs/spaces on GNU Make and pcmciautils could be better. ciao. -- ~Randy