ver_linux: proposed implementation feedback request

2015-10-05 Thread Alexander Kapshuk
Thanks very much for everyone's feedback. Instead of flooding this mailing list with another bunch of ver_linux patches, I thought I would post another implementation, and see if you find any of the proposed changes worth submitting as a patch. I will be happy with whatever feedback you can give m

Re: ver_linux: proposed implementation feedback request

2015-10-06 Thread Alexander Kapshuk
On Tue, Oct 6, 2015 at 11:11 AM, Greg KH wrote: > On Mon, Oct 05, 2015 at 08:00:40PM +0300, Alexander Kapshuk wrote: >> Thanks very much for everyone's feedback. >> >> Instead of flooding this mailing list with another bunch of ver_linux >> patches, I thought I w

Re: ver_linux: proposed implementation feedback request

2015-10-07 Thread Alexander Kapshuk
On Wed, Oct 7, 2015 at 4:25 AM, Theodore Ts'o wrote: > On Mon, Oct 05, 2015 at 08:00:40PM +0300, Alexander Kapshuk wrote: >> Thanks very much for everyone's feedback. >> >> Instead of flooding this mailing list with another bunch of ver_linux >> pa

[PATCH 10/22] ver_linux: pcmciautils, look for numerical input, not field number

2015-10-12 Thread Alexander Kapshuk
Rely on regex to find the version number, rather than rely on numerical input to be found in a particular input field. Proposed implementation also eliminates the necessity to invoke 'grep' + 'awk'. Signed-off-by: Alexander Kapshuk --- scripts/ver_linux | 7 ++

[PATCH 08/22] ver_linux: reiserfsprogs, look for numerical input, not field number

2015-10-12 Thread Alexander Kapshuk
Rely on regex to find the version number, rather than rely on numerical input to be found in a particular input field. Proposed implementation also eliminates the necessity to invoke 'grep' + 'awk'. Signed-off-by: Alexander Kapshuk --- scripts/ver_linux | 8 ++-

[PATCH 22/22] ver_linux: proc/modules, limit text processing to 'sed'

2015-10-12 Thread Alexander Kapshuk
'sed' to generate a sort list of kernel modules separated by while space. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux openSuSE 13.2 Signed-off-by: Alexander Kapshuk --- scripts/ver_linux | 17 + 1 file changed, 13 insertions(

[PATCH 19/22] ver_linux: sh-utils, look for numerical input, not field number

2015-10-12 Thread Alexander Kapshuk
Rely on regex to find the version number, rather than rely on numerical input to be found in a particular input field. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Signed-off-by: Alexander Kapshuk --- scripts/ver_linux | 7 ++- 1 file changed, 6 insertions(+), 1

[PATCH 20/22] ver_linux: use 'udevadm', instead of 'udevinfo'

2015-10-12 Thread Alexander Kapshuk
an rely on numerical input to be found in a particular input field. Proposed implementation also eliminates the necessity to invoke 'grep' + 'awk'. Signed-off-by: Alexander Kapshuk --- scripts/ver_linux | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff -

[PATCH 18/22] ver_linux: loadkeys, look for numerical input, not field number

2015-10-12 Thread Alexander Kapshuk
7;Kbd' and 'Console-tools'. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Rely on regex to find the version number, rather than rely on numerical input to be found in a particular input field. Signed-off-by: Alexander Kapshuk --- scripts/ver_linux | 13 ++---

[PATCH 16/22] ver_linux: procps, look for numerical input, not field number

2015-10-12 Thread Alexander Kapshuk
Rely on regex to find the version number, rather than rely on numerical input to be found in a particular input field. Proposed implementation also eliminates the necessity to invoke 'grep' + 'awk'. Signed-off-by: Alexander Kapshuk --- scripts/ver_linux | 8 ++-

[PATCH 14/22] ver_linux: ldd, look for numerical input, not field number

2015-10-12 Thread Alexander Kapshuk
, e.g. Gentoo, or is an alias for '--version' in others. The proposed implementation uses the latter flag only. Signed-off-by: Alexander Kapshuk --- scripts/ver_linux | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/ver_linux b/scripts/ver_linux ind

[PATCH 13/22] ver_linux: libc, input redirection to sed fails in some distros

2015-10-12 Thread Alexander Kapshuk
nux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux openSuSE 13.2 Signed-off-by: Alexander Kapshuk --- scripts/ver_linux | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/ver_linux b/scripts/ver_linux index af5ac82..909d039 100755 --- a/scripts/ver_linux +++

[PATCH 15/22] ver_linux: libcpp, fix missing output

2015-10-12 Thread Alexander Kapshuk
7;ldconfig' to locate the libraries in question. 'Sed' is used to do the text processing. Signed-off-by: Alexander Kapshuk --- scripts/ver_linux | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/scripts/ver_linux b/scripts/ver_linux index a7d0eca

[PATCH 12/22] ver_linux: ppp, look for numerical input, not field number

2015-10-12 Thread Alexander Kapshuk
Rely on regex to find the version number, rather than rely on numerical input to be found in a particular input field. Proposed implementation also eliminates the necessity to invoke 'grep' + 'awk'. Tested on: Oracle Linux Signed-off-by: Alexander Kapshuk --- scripts/ver_l

[PATCH 11/22] ver_linux: quota-tools, look for numerical input, not field number

2015-10-12 Thread Alexander Kapshuk
Rely on regex to find the version number, rather than rely on numerical input to be found in a particular input field. Proposed implementation also eliminates the necessity to invoke 'grep' + 'awk'. Signed-off-by: Alexander Kapshuk --- scripts/ver_linux | 8 ++-

[PATCH 09/22] ver_linux: xfsprogs, look for numerical input, not field number

2015-10-12 Thread Alexander Kapshuk
Rely on regex to find the version number, rather than rely on numerical input to be found in a particular input field. Proposed implementation also eliminates the necessity to invoke 'grep' + 'awk'. Signed-off-by: Alexander Kapshuk --- scripts/ver_linux | 8 ++-

[PATCH 06/22] ver_linux: e2fsprogs, look for numerical input, not field number

2015-10-12 Thread Alexander Kapshuk
ver release 7.1 Signed-off-by: Alexander Kapshuk --- scripts/ver_linux | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/ver_linux b/scripts/ver_linux index 7cc74d1..2e1929f 100755 --- a/scripts/ver_linux +++ b/scripts/ver_linux @@ -46,8 +46,12 @@ awk '/

[PATCH 05/22] ver_linux: module-init-tools, look for numerical input, not field number

2015-10-12 Thread Alexander Kapshuk
Rely on regex to find the version number, rather than rely on numerical input to be found in a particular input field. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Signed-off-by: Alexander Kapshuk --- scripts/ver_linux | 7 ++- 1 file changed, 6 insertions(+), 1

[PATCH 07/22] ver_linux: jfsutils, look for numerical input, not field number

2015-10-12 Thread Alexander Kapshuk
Rely on regex to find the version number, rather than rely on numerical input to be found in a particular input field. Proposed implementation also eliminates the necessity to invoke 'grep' + 'sed' + 'awk'. Signed-off-by: Alexander Kapshuk --- scripts/ver_linux |

[PATCH 01/22] ver_linux: gcc -dumpversion, use regex to find version number

2015-10-12 Thread Alexander Kapshuk
Rely on regex to find the version number, rather than a field number. Signed-off-by: Alexander Kapshuk --- scripts/ver_linux | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/ver_linux b/scripts/ver_linux index 7de36df..af6467e 100755 --- a/scripts/ver_linux

[PATCH 02/22] ver_linux: make --version, use regex to find version number

2015-10-12 Thread Alexander Kapshuk
Rely on regex to find the version number, rather than a field number. Reduce the number of 'awk' invocations from two to one. Signed-off-by: Alexander Kapshuk --- scripts/ver_linux | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/ver_linux b/scripts

[PATCH 03/22] ver_linux: binutils, fix inaccurate output

2015-10-12 Thread Alexander Kapshuk
Current implementation output on Gentoo Linux: binutils 2.25.1 1.1 2.25.1 Proposed implementation: Binutils2.25.1 Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Rely on regex to find the version number. Signed-off-by: Alexander Kapshuk

[PATCH 04/22] ver_linux: util-linux, 'fdformat' not ubiquitous any longer

2015-10-12 Thread Alexander Kapshuk
put both the version of 'util-linux' and 'mount' proper, as 'mount' is also a part of the 'util-linux' package. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Rely on regex to find the version number, rather than a field number. S

[PATCH 21/22] ver_linux: wireless-tools, look for numerical input, not field number

2015-10-12 Thread Alexander Kapshuk
Rely on regex to find the version number, rather than rely on numerical input to be found in a particular input field. Tested on: Gentoo Linux Signed-off-by: Alexander Kapshuk --- scripts/ver_linux | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/ver_linux b

[PATCH 17/22] ver_linux: net-tools, look for numerical input, not field number

2015-10-12 Thread Alexander Kapshuk
Rely on regex to find the version number, rather than rely on numerical input to be found in a particular input field. Proposed implementation also eliminates the necessity to invoke 'grep' + 'awk'. Signed-off-by: Alexander Kapshuk --- scripts/ver_linux | 8 ++-

Re: [PATCH 22/22] ver_linux: proc/modules, limit text processing to 'sed'

2015-10-13 Thread Alexander Kapshuk
On Mon, Oct 12, 2015 at 11:22 PM, Jim Davis wrote: > On Mon, Oct 12, 2015 at 11:40 AM, Alexander Kapshuk > wrote: >> This patch is more of a personal preference, rather than a fix for a problem. > > Using the sed hold space isn't exactly easy to follow... if, unlike >

Re: [PATCH 01/22] ver_linux: gcc -dumpversion, use regex to find version number

2015-10-14 Thread Alexander Kapshuk
On Wed, Oct 14, 2015 at 2:21 AM, Jim Davis wrote: > I tried out patches 1-22 on a Fedora 22 system with the v4.3-rc5 > source tree; everything looks pretty good. The old ver_linux script > didn't get the mount version right, but the new one does > > < mount debug >> Mount

[PATCH] ver_linux: libcpp.patch

2015-10-01 Thread Alexander Kapshuk
in question. 'Sed' is used to do the text processing. Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig2015-10-01 18:36:49.090519891 +0300 +++ linux/scripts/ver_linux2015-10-01 20:25:01.394736393 +0300 @@ -65,6 +65,21 @@ ldd -v > /dev/null 2>&1

[PATCH] ver_linux: ppp.patch

2015-10-01 Thread Alexander Kapshuk
xpects the version number to be found in field 3 as seen by 'awk'. Should the output format be different, this approach would no longer be reliable. The proposed implementation uses 'sed' as a more flexible tool to handle varying output formats. Tested on: Arch Lin

[PATCH] ver_linux: pcmciautils.patch

2015-10-01 Thread Alexander Kapshuk
xpects the version number to be found in field 2 as seen by 'awk'. Should the output format be different, this approach would no longer be reliable. The proposed implementation uses 'sed' as a more flexible tool to handle varying output formats. Tested on: Arch Linux ope

[PATCH] ver_linux: proc-modules.patch

2015-10-01 Thread Alexander Kapshuk
e space. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux openSuSE 13.2 Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig2015-08-30 21:34:09.0 +0300 +++ linux/scripts/ver_linux2015-09-30 23:04:20.928450708 +0300 @@ -92,7 +92,16 @@

[PATCH] ver_linux: quota-tools.patch

2015-10-01 Thread Alexander Kapshuk
xpects the version number to be found in the last field as seen by 'awk'. Should the output format be different, this approach would no longer be reliable. The proposed implementation uses 'sed' as a more flexible tool to handle varying output formats. Tested on: Oracl

[PATCH] ver_linux: reiserfsprogs.patch

2015-10-01 Thread Alexander Kapshuk
xpects the version number to be found in the last field as seen by 'awk'. Should the output format be different, this approach would no longer be reliable. The proposed implementation uses 'sed' as a more flexible tool to handle varying output formats. Tested on: Arch Lin

[PATCH] ver_linux: procps.patch

2015-10-01 Thread Alexander Kapshuk
nux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux openSuSE 13.2 Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig2015-08-30 21:34:09.0 +0300 +++ linux/scripts/ver_linux2015-09-30 22:56:24.369203827 +0300 @@ -68,8 +68,12 @@ ls -l /usr/lib/libg++.so /u

[PATCH] ver_linux: net-tools.patch

2015-10-01 Thread Alexander Kapshuk
nd uses 'sed' as a more flexible tool to handle varying output formats. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux openSuSE 13.2 Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig2015-08-30 21:34:09.0 +0300 +++ linux

[PATCH] ver_linux: make.patch

2015-10-01 Thread Alexander Kapshuk
ian 6.0.10 Oracle Linux Server release 7.1 Arch Linux openSuSE 13.2 Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig2015-08-30 21:34:09.0 +0300 +++ linux/scripts/ver_linux2015-09-30 22:31:54.479651499 +0300 @@ -14,8 +14,11 @@ gcc -dumpversion 2&

[PATCH] ver_linux: libc.patch

2015-10-01 Thread Alexander Kapshuk
nux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux openSuSE 13.2 Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig2015-08-30 21:34:09.0 +0300 +++ linux/scripts/ver_linux2015-09-30 22:52:12.962171912 +0300 @@ -59,8 +59,12 @@ showmount --version 2>&a

[PATCH] ver_linux: ldd.patch

2015-10-01 Thread Alexander Kapshuk
most of the things we may be looking to achieve by using a combination of 'head', and 'awk'. The proposed implementation relies on 'sed' to perform all the text processing required. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux o

[PATCH] ver_linux: kbd_console-tools.patch

2015-10-01 Thread Alexander Kapshuk
7;Kbd' and 'Console-tools'. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux openSuSE 13.2 Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig2015-08-30 21:34:09.0 +0300 +++ linux/scripts/ver_linux2015-09-30 22:58:55.75601

[PATCH] ver_linux: jfsutils.patch

2015-10-01 Thread Alexander Kapshuk
than capable of doing most of the things we may be looking to achieve by using a combination of 'grep', 'sed', and 'awk'. The proposed implementation relies on 'sed' to perform all the text processing required. Tested on: Arch Linux Signed-off-by: Alexander Kapsh

[PATCH] ver_linux: util-linux_mount.patch

2015-10-01 Thread Alexander Kapshuk
l-linux', to output both the version of 'util-linux' and 'mount' proper. It also used 'sed' for text processing instead of a combination of 'awk' and 'sed'. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux Sign

[PATCH] ver_linux: udev.patch

2015-10-01 Thread Alexander Kapshuk
'udevinfo' no longer seems to be available across various distros. 'udevadm' seems to be the currently valid way to look up the 'udev' version. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux Signed-off-by: Alexander Kapshuk --- --

[PATCH] ver_linux: xfsprogs.patch

2015-10-01 Thread Alexander Kapshuk
xpects the version number to be found in the last field as seen by 'awk'. Should the output format be different, this approach would no longer be reliable. The proposed implementation uses 'sed' as a more flexible tool to handle varying output formats. Tested on: Arch Linu

[PATCH] ver_linux: wireless-tools.patch

2015-10-01 Thread Alexander Kapshuk
in terms of processing varying output as well as being more light-weight. Tested on: Arch Linux openSuSE 13.2 Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig2015-08-30 21:34:09.0 +0300 +++ linux/scripts/ver_linux2015-09-30 23:03:05.019050132 +0300 @@ -89,8 +89,1

[PATCH] ver_linux: sh-utils.patch

2015-10-01 Thread Alexander Kapshuk
f processing varying output as well as being more light-weight. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux openSuSE 13.2 Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig2015-08-30 21:34:09.0 +0300 +++ linux/scripts

[PATCH] ver_linux: gcc.patch

2015-10-01 Thread Alexander Kapshuk
s of processing varying output as well as being more light-weight. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux openSuSE 13.2 Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig2015-08-30 21:34:09.0 +0300 +++ linux/scripts

[PATCH] ver_linux: e2fsprogs.patch

2015-10-01 Thread Alexander Kapshuk
_linux' as user 'root' should be OK. Proposed implementation, makes provision for locating 'tune2fs', making it more reliable across the various distros. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux openSuSE 13.2 Signed-off-by: Alexand

[PATCH] ver_linux: echo.patch

2015-10-01 Thread Alexander Kapshuk
While not a problem in itself, I was not sure why 'echo space' was used. Not being aware of any immediate benifits to this, I thought using 'echo' by itself would suffice in printing a newline, which I believe is the desired behaivior. Signed-off-by: Alexander Kapshuk --

[PATCH] ver_linux: binutils.patch

2015-10-01 Thread Alexander Kapshuk
Fix broken output. Current implementation output on Gentoo Linux: binutils 2.25.1 1.1 2.25.1 Proposed implementation: binutils2.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

[PATCH] ver_linux: module-init-tools.patch

2015-10-01 Thread Alexander Kapshuk
s 'depmod', and uses 'sed' as a more flexible tool to handle varying output formats. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux openSuSE 13.2 Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig2015-10-01 18:36:49.090

Re: [PATCH] ver_linux: libcpp.patch

2015-10-01 Thread Alexander Kapshuk
On Fri, Oct 2, 2015 at 8:55 AM, Greg KH wrote: > On Thu, Oct 01, 2015 at 09:17:42PM +0300, Alexander Kapshuk wrote: >> Neither 'libg++.so', nor 'libstdc++.so' were found where the current >> implementation expects them to be found in the distros below. >

Re: [PATCH] ver_linux: module-init-tools.patch

2015-10-02 Thread Alexander Kapshuk
On Fri, Oct 2, 2015 at 9:10 PM, Jim Davis wrote: > On Thu, Oct 1, 2015 at 11:49 AM, Alexander Kapshuk > wrote: >> The current implementation relies on 'depmod' to be available in the >> PATH. It also expects the version number to be found in the last field >> a

Re: [PATCH] ver_linux: module-init-tools.patch

2015-10-02 Thread Alexander Kapshuk
On Fri, Oct 2, 2015 at 10:45 PM, Jim Davis wrote: > On Fri, Oct 2, 2015 at 12:35 PM, Jim Davis wrote: >> On Fri, Oct 2, 2015 at 12:03 PM, Alexander Kapshuk >> >>>>> +depmod=`whereis depmod | awk '{print $2}'` >>>> > >> I suspect it&

Re: [PATCH] ver_linux: module-init-tools.patch

2015-10-02 Thread Alexander Kapshuk
On Fri, Oct 2, 2015 at 11:22 PM, Alexander Kapshuk wrote: > On Fri, Oct 2, 2015 at 10:45 PM, Jim Davis wrote: >> On Fri, Oct 2, 2015 at 12:35 PM, Jim Davis wrote: >>> On Fri, Oct 2, 2015 at 12:03 PM, Alexander Kapshuk >>> >>>>>> +depmod=`whereis depm

Re: [PATCH] ver_linux: module-init-tools.patch

2015-10-03 Thread Alexander Kapshuk
On Sat, Oct 3, 2015 at 2:14 AM, Jim Davis wrote: > On Fri, Oct 2, 2015 at 1:57 PM, Alexander Kapshuk > wrote: >> On Fri, Oct 2, 2015 at 11:22 PM, Alexander Kapshuk >> wrote: >>> On Fri, Oct 2, 2015 at 10:45 PM, Jim Davis wrote: >>>> On Fri, Oct 2, 2015

[PATCH 1/24] ver_linux: echo.patch

2015-10-03 Thread Alexander Kapshuk
While not a problem in itself, I was not sure why 'echo space' was used. Not being aware of any immediate benefits to this, I thought using 'echo' by itself would suffice in printing a newline, which I believe is the desired behaviour. Signed-off-by: Alexander Kapshuk -

[PATCH 2/24] path2bin_test.patch

2015-10-03 Thread Alexander Kapshuk
ast would go with the user's preference first. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig2015-10-03 13:41:57.118790241 +0300 +++ linux/scripts/ver_linux2015-10-03 13:46:25.879768460 +0300 @@

[PATCH 3/24] ver_linux: gcc.patch

2015-10-03 Thread Alexander Kapshuk
s of processing varying output as well as being more light-weight. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux openSuSE 13.2 Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig2015-10-03 13:41:57.118790241 +0300 +++ linux/scripts

[PATCH 2/24] ver_linux: path2bin_test.patch

2015-10-03 Thread Alexander Kapshuk
's preference first. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig2015-10-03 13:41:57.118790241 +0300 +++ linux/scripts/ver_linux2015-10-03 13:46:25.879768460 +0300 @@ -11,6 +11,166 @@ unam

[PATCH 4/24] ver_linux: make.patch

2015-10-03 Thread Alexander Kapshuk
ian 6.0.10 Oracle Linux Server release 7.1 Arch Linux openSuSE 13.2 Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig2015-10-03 13:41:57.118790241 +0300 +++ linux/scripts/ver_linux2015-10-03 13:49:39.548870365 +0300 @@ -14,8 +14,12 @@ gcc -dumpversion 2&

[PATCH 5/24] ver_linux: binutils.patch

2015-10-03 Thread Alexander Kapshuk
Fix broken output. Current implementation output on Gentoo Linux: binutils 2.25.1 1.1 2.25.1 Proposed implementation: binutils2.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

[PATCH 6/24] ver_linux: util-linux_mount.patch

2015-10-03 Thread Alexander Kapshuk
'util-linux' and 'mount' proper. It also used 'sed' for text processing instead of a combination of 'awk' and 'sed'. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux Signed-off-by: Alexander Kapshuk --- --- linux

[PATCH 7/24] ver_linux: module-init-tools.patch

2015-10-03 Thread Alexander Kapshuk
s 'depmod', and uses 'sed' as a more flexible tool to handle varying output formats. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux openSuSE 13.2 Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig2015-10-03 13:41:57.118

[PATCH 8/24] ver_linux: e2fsprogs.patch

2015-10-03 Thread Alexander Kapshuk
_linux' as user 'root' should be OK. Proposed implementation, makes provision for locating 'tune2fs', making it more reliable across the various distros. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux openSuSE 13.2 Signed-off-by: Alexander

[PATCH 7/24] ver_linux: module-init-tools.patch

2015-10-03 Thread Alexander Kapshuk
s 'depmod', and uses 'sed' as a more flexible tool to handle varying output formats. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux openSuSE 13.2 Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig2015-10-03 13:41:57.118

[PATCH 9/24] ver_linux: jfsutils.patch

2015-10-03 Thread Alexander Kapshuk
than capable of doing most of the things we may be looking to achieve by using a combination of 'grep', 'sed', and 'awk'. The proposed implementation relies on 'sed' to perform all the text processing required. Tested on: Arch Linux Signed-off-by: Alexander Kaps

[PATCH 10/24] ver_linux: reiserfsprogs.patch

2015-10-03 Thread Alexander Kapshuk
xpects the version number to be found in the last field as seen by 'awk'. Should the output format be different, this approach would no longer be reliable. The proposed implementation uses 'sed' as a more flexible tool to handle varying output formats. Tested on: Arch Li

[PATCH 11/24] ver_linux: xfsprogs.patch

2015-10-03 Thread Alexander Kapshuk
xpects the version number to be found in the last field as seen by 'awk'. Should the output format be different, this approach would no longer be reliable. The proposed implementation uses 'sed' as a more flexible tool to handle varying output formats. Tested on: Arch Lin

[PATCH 12/24] ver_linux: pcmciautils.patch

2015-10-03 Thread Alexander Kapshuk
xpects the version number to be found in field 2 as seen by 'awk'. Should the output format be different, this approach would no longer be reliable. The proposed implementation uses 'sed' as a more flexible tool to handle varying output formats. Tested on: Arch Linux openSuSE 1

[PATCH 13/24] ver_linux: quota-tools.patch

2015-10-03 Thread Alexander Kapshuk
xpects the version number to be found in the last field as seen by 'awk'. Should the output format be different, this approach would no longer be reliable. The proposed implementation uses 'sed' as a more flexible tool to handle varying output formats. Tested on: Oracl

[PATCH 14/24] ver_linux: ppp.patch

2015-10-03 Thread Alexander Kapshuk
xpects the version number to be found in field 3 as seen by 'awk'. Should the output format be different, this approach would no longer be reliable. The proposed implementation uses 'sed' as a more flexible tool to handle varying output formats. Tested on: Arch Linux Signed-off

[PATCH 15/24] ver_linux: libc.patch

2015-10-03 Thread Alexander Kapshuk
nux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux openSuSE 13.2 Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig2015-10-03 13:41:57.118790241 +0300 +++ linux/scripts/ver_linux2015-10-03 13:56:30.159725920 +0300 @@ -59,8 +59,12 @@ showmount --version 2>&a

[PATCH 16/24] ver_linux: ldd.patch

2015-10-03 Thread Alexander Kapshuk
in question. 'Sed' is used to do the text processing. Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig2015-10-03 13:41:57.118790241 +0300 +++ linux/scripts/ver_linux2015-10-03 13:58:19.822084916 +0300 @@ -65,8 +65,19 @@ ldd -v > /dev/null 2>&1 &am

[PATCH 17/24] ver_linux: libcpp.patch

2015-10-03 Thread Alexander Kapshuk
in question. 'Sed' is used to do the text processing. Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig2015-10-03 13:41:57.118790241 +0300 +++ linux/scripts/ver_linux2015-10-03 13:58:19.822084916 +0300 @@ -65,8 +65,19 @@ ldd -v > /dev/null 2>&1 &am

[PATCH 18/24] ver_linux: procps.patch

2015-10-03 Thread Alexander Kapshuk
nux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux openSuSE 13.2 Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig2015-10-03 13:41:57.118790241 +0300 +++ linux/scripts/ver_linux2015-10-03 13:58:51.910604738 +0300 @@ -68,8 +68,13 @@ ls -l /usr/lib/libg++.so /u

[PATCH 19/24] ver_linux: net-tools.patch

2015-10-03 Thread Alexander Kapshuk
nd uses 'sed' as a more flexible tool to handle varying output formats. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux openSuSE 13.2 Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig2015-10-03 13:41:57.118790241 +0300 +++ linux

[PATCH 20/24] ver_linux: kbd_console-tools.patch

2015-10-03 Thread Alexander Kapshuk
7;Kbd' and 'Console-tools'. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux openSuSE 13.2 Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig2015-10-03 13:41:57.118790241 +0300 +++ linux/scripts/ver_linux2015-10-03 13:59:49.18874

[PATCH 21/24] ver_linux: sh-utils.patch

2015-10-03 Thread Alexander Kapshuk
f processing varying output as well as being more light-weight. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux openSuSE 13.2 Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig2015-10-03 13:41:57.118790241 +0300 +++ linux/scripts

[PATCH 22/24] ver_linux: udev.patch

2015-10-03 Thread Alexander Kapshuk
'udevinfo' no longer seems to be available across various distros. 'udevadm' seems to be the currently valid way to look up the 'udev' version. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux Signed-off-by: Alexander Kapshuk --- --

[PATCH 23/24] ver_linux: wireless-tools.patch

2015-10-03 Thread Alexander Kapshuk
in terms of processing varying output as well as being more light-weight. Tested on: Arch Linux openSuSE 13.2 Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig2015-10-03 13:41:57.118790241 +0300 +++ linux/scripts/ver_linux2015-10-03 14:01:23.315339094 +0300 @@ -89,8 +89,1

[PATCH 24/24] ver_linux: proc-modules.patch

2015-10-03 Thread Alexander Kapshuk
e space. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux openSuSE 13.2 Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig2015-10-03 13:41:57.118790241 +0300 +++ linux/scripts/ver_linux2015-10-03 14:01:46.706989058 +0300 @@ -92,7 +92,16 @@

[PATCH 7/24] scripts/ver_linux: module-init-tools.patch

2015-10-03 Thread Alexander Kapshuk
s 'depmod', and uses 'sed' as a more flexible tool to handle varying output formats. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux openSuSE 13.2 Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig2015-10-03 13:41:57.118

Re: [PATCH 3/24] ver_linux: gcc.patch

2015-10-03 Thread Alexander Kapshuk
On Sat, Oct 3, 2015 at 6:07 PM, Richard Weinberger wrote: > On Sat, Oct 3, 2015 at 3:07 PM, Alexander Kapshuk > wrote: >> Using 'awk' here is a bit of an overkill. Should the output of 'gcc >> -dumpversion' vary on another disto, or change overtime, it ma

Re: [PATCH 8/24] ver_linux: e2fsprogs.patch

2015-10-04 Thread Alexander Kapshuk
On Sun, Oct 4, 2015 at 4:48 AM, Theodore Ts'o wrote: > On Sat, Oct 03, 2015 at 04:23:02PM +0300, Alexander Kapshuk wrote: >> 'tune2fs' is located in varying places depending on the distro. >> Current implementation output on distros where 'tune2fs' is foun

Re: [PATCH 2/24] ver_linux: path2bin_test.patch

2015-10-04 Thread Alexander Kapshuk
On Sat, Oct 3, 2015 at 4:10 PM, Alexander Kapshuk wrote: > As suggested by Jim Davis , this patch checks for > binaries in the user's $PATH first by calling 'which name-of-binary'. If > the binary is not found there, an attempt is made to find it elsewhere > on the syst

[PATCH] perf tools: Fix check-headers.sh AND list path of execution

2018-08-11 Thread Alexander Kapshuk
n at 'file2' The proposed patch converts the code following the '&&' operator into a compound list to be executed in the current process environment only if file2 does exist. Should the files being compared differ, a diff command to compare the files concerned is printed on

Re: [PATCH] perf tools: Fix check-headers.sh AND list path of execution

2018-08-13 Thread Alexander Kapshuk
On Mon, Aug 13, 2018 at 2:16 PM Jiri Olsa wrote: > > On Sat, Aug 11, 2018 at 11:39:15AM +0300, Alexander Kapshuk wrote: > > The '||' path of execution in the 'test' block of the check_2() function > > may also be taken if file2 does not exist, in which case

Re: [PATCH] perf tools: Fix check-headers.sh AND list path of execution

2018-08-13 Thread Alexander Kapshuk
On Mon, Aug 13, 2018 at 9:58 PM Arnaldo Carvalho de Melo wrote: > Thanks, applied the three patches to acme/perf/core. > > - Arnaldo Thanks.

Re: please revert commit ce8556cca6 "kbuild: verify that $DEPMOD is installed" introduced in v4.18.4.

2018-08-23 Thread Alexander Kapshuk
On Thu, Aug 23, 2018 at 05:38:27PM +0900, Masahiro Yamada wrote: > Hi Randy, > > > 2018-08-23 8:33 GMT+09:00 Randy Dunlap : > > On 08/22/2018 11:53 AM, H. Nikolaus Schaller wrote: > >> This patch requires that /sbin/depmod is installed and installable on > >> the build host. > >> > >> But not all

Re: [PATCH 3/4] perf tools: Fix check-headers.sh output file variables

2018-07-20 Thread Alexander Kapshuk
On Fri, Jul 20, 2018 at 6:16 PM Jiri Olsa wrote: > > On Fri, Jul 20, 2018 at 11:57:45AM -0300, Arnaldo Carvalho de Melo wrote: > > Em Fri, Jul 20, 2018 at 01:00:35PM +0200, Jiri Olsa escreveu: > > > The warning message in check_w function uses wrongly > > > the $file variable instead of $file1 and

Re: [PATCH 3/4] perf tools: Fix check-headers.sh output file variables

2018-07-24 Thread Alexander Kapshuk
On Mon, Jul 23, 2018, 08:01 Jiri Olsa wrote: > On Fri, Jul 20, 2018 at 06:22:49PM +0300, Alexander Kapshuk wrote: > > On Fri, Jul 20, 2018 at 6:16 PM Jiri Olsa wrote: > > > > > > On Fri, Jul 20, 2018 at 11:57:45AM -0300, Arnaldo Carvalho de Melo > wrote: > &g

[PATCH] vboxvideo: Fix incorrect type in assignment sparse warning

2018-01-06 Thread Alexander Kapshuk
On Mon, Dec 25, 2017 at 04:42:59PM +0200, Alexander Kapshuk wrote: > Sparse emitted the following warning: > ../drivers/staging/vboxvideo/vbox_fb.c:173:27: warning: incorrect type in > assignment (different address spaces) > ../drivers/staging/vboxvideo/vbox_fb.c:173:27:expected c

[PATCH] vboxvideo: Fix incorrect type in assignment sparse warning

2018-01-06 Thread Alexander Kapshuk
On Sat, Jan 6, 2018 at 6:00 PM, Hans de Goede wrote: > Hi, > > > On 06-01-18 15:20, Alexander Kapshuk wrote: >> >> On Mon, Dec 25, 2017 at 04:42:59PM +0200, Alexander Kapshuk wrote: >>> >>> Sparse emitted the following warning: >>> ../drivers/sta

Re: [PATCH] vboxvideo: Fix incorrect type in assignment sparse warning

2018-01-06 Thread Alexander Kapshuk
On Sat, Jan 6, 2018 at 9:43 PM, Hans de Goede wrote: > HI, > > > On 06-01-18 20:30, Alexander Kapshuk wrote: >> >> On Sat, Jan 6, 2018 at 6:00 PM, Hans de Goede wrote: >>> >>> Hi, >>> >>> >>> On 06-01-18 15:20, Alexander K

Re: [PATCH] vboxvideo: Fix incorrect type in assignment sparse warning

2018-01-06 Thread Alexander Kapshuk
On Sat, Jan 6, 2018 at 10:00 PM, Hans de Goede wrote: > Hi, > > > On 06-01-18 20:56, Alexander Kapshuk wrote: >> >> On Sat, Jan 6, 2018 at 9:43 PM, Hans de Goede wrote: >>> >>> HI, >>> >>> >>> On 06-01-18 20:30, Alexander

Re: [PATCH] scripts/setlocalversion: Improve -dirty check with git-status --no-optional-locks

2018-11-12 Thread Alexander Kapshuk
On Sun, Nov 11, 2018 at 9:59 PM Alexander Kapshuk wrote: > > On Sun, Nov 11, 2018 at 7:41 PM Genki Sky wrote: > > > > Hi Alexander, > > > > On Sun, 11 Nov 2018 16:48:38 +0200, Alexander Kapshuk > > wrote: > > > Piping the output of the git command

Re: [PATCH] scripts/setlocalversion: Improve -dirty check with git-status --no-optional-locks

2018-11-13 Thread Alexander Kapshuk
On Tue, Nov 13, 2018 at 2:09 AM Brian Norris wrote: > > On Mon, Nov 12, 2018 at 10:42:26AM +0200, Alexander Kapshuk wrote: > > An even simpler approach would be: > > > > { > > git --no-optional-locks status -uno --porcelain 2>/dev/null || > >

Re: [PATCH] scripts/setlocalversion: Improve -dirty check with git-status --no-optional-locks

2018-11-13 Thread Alexander Kapshuk
On Tue, Nov 13, 2018 at 8:32 PM Brian Norris wrote: > > Hi Alexander, > > On Tue, Nov 13, 2018 at 12:36 AM Alexander Kapshuk > wrote: > > > > On Tue, Nov 13, 2018 at 2:09 AM Brian Norris > > wrote: > > > > > > On Mon, Nov 12, 2018 at 10:42:2

Re: [PATCH] scripts/setlocalversion: Improve -dirty check with git-status --no-optional-locks

2018-11-11 Thread Alexander Kapshuk
On Sat, Nov 10, 2018 at 10:12 PM Genki Sky wrote: > > Hi Andreas, > > On Sat, 10 Nov 2018 11:42:11 +0100, Andreas Schwab > wrote: > > On Nov 10 2018, Genki Sky wrote: > > > On Fri, 9 Nov 2018 10:34:37 -0800, Brian Norris > > > wrote: > > >> + git_status="$(git --no-optional-locks sta

Re: [PATCH] scripts/setlocalversion: Improve -dirty check with git-status --no-optional-locks

2018-11-11 Thread Alexander Kapshuk
On Sun, Nov 11, 2018 at 4:48 PM Alexander Kapshuk wrote: > > On Sat, Nov 10, 2018 at 10:12 PM Genki Sky wrote: > > > > Hi Andreas, > > > > On Sat, 10 Nov 2018 11:42:11 +0100, Andreas Schwab > > wrote: > > > On Nov 10 2018, Genki Sky wrote: >

  1   2   3   >