linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ver_linux: libcpp.patch
@ 2015-10-01 18:17 Alexander Kapshuk
  2015-10-02  5:55 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Kapshuk @ 2015-10-01 18:17 UTC (permalink / raw)
  To: linux-kernel; +Cc: Greg KH

Neither 'libg++.so', nor 'libstdc++.so' were found where the current
implementation expects them to be found in the distros below.


Gentoo Linux
Debian 6.0.10
Oracle Linux Server release 7.1

The proposed implementation relies on 'ldconfig' to locate the libraries
in question.  'Sed' is used to do the text processing.



Signed-off-by: Alexander Kapshuk <alexander.kapshuk@gmail.com>
---

--- linux/scripts/ver_linux.orig    2015-10-01 18:36:49.090519891 +0300
+++ linux/scripts/ver_linux    2015-10-01 20:25:01.394736393 +0300
@@ -65,6 +65,21 @@
 ldd -v > /dev/null 2>&1 && ldd -v || ldd --version |head -n 1 | awk \
 'NR==1{print "Dynamic linker (ldd)  ", $NF}'

+ldconfig=`whereis ldconfig | awk '{print $2}'`
+test -n "$ldconfig" &&
+libcpp=`$ldconfig -p |
+    awk '/(libg|stdc)[+]+\.so/ {
+    print $NF
+    exit
+    }
+'`
+test -n "$libcpp" &&
+ls -l $libcpp |
+sed '
+    s!.*so\.!!
+    s!^!Linux C++ Library\t!
+'
+
 ls -l /usr/lib/libg++.so /usr/lib/libstdc++.so  2>/dev/null | awk -F. \
        '{print "Linux C++ Library      " $4"."$5"."$6}'

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ver_linux: libcpp.patch
  2015-10-01 18:17 [PATCH] ver_linux: libcpp.patch Alexander Kapshuk
@ 2015-10-02  5:55 ` Greg KH
  2015-10-02  6:20   ` Alexander Kapshuk
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2015-10-02  5:55 UTC (permalink / raw)
  To: Alexander Kapshuk; +Cc: linux-kernel

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.
> 
> 
> Gentoo Linux
> Debian 6.0.10
> Oracle Linux Server release 7.1
> 
> The proposed implementation relies on 'ldconfig' to locate the libraries
> in question.  'Sed' is used to do the text processing.
> 
> 
> 
> Signed-off-by: Alexander Kapshuk <alexander.kapshuk@gmail.com>

These are great, thanks for breaking them all up into individual,
reviewable patches.

Unfortunately I have no idea what order to apply them in :(

Can you resend them as a patch series, properly numbered (i.e.
[PATCH XX/YY]) so that I have a chance to apply them correctly?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ver_linux: libcpp.patch
  2015-10-02  5:55 ` Greg KH
@ 2015-10-02  6:20   ` Alexander Kapshuk
  0 siblings, 0 replies; 3+ messages in thread
From: Alexander Kapshuk @ 2015-10-02  6:20 UTC (permalink / raw)
  To: linux-kernel; +Cc: Greg KH

On Fri, Oct 2, 2015 at 8:55 AM, Greg KH <gregkh@linuxfoundation.org> 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.
>>
>>
>> Gentoo Linux
>> Debian 6.0.10
>> Oracle Linux Server release 7.1
>>
>> The proposed implementation relies on 'ldconfig' to locate the libraries
>> in question.  'Sed' is used to do the text processing.
>>
>>
>>
>> Signed-off-by: Alexander Kapshuk <alexander.kapshuk@gmail.com>
>
> These are great, thanks for breaking them all up into individual,
> reviewable patches.
>
> Unfortunately I have no idea what order to apply them in :(
>
> Can you resend them as a patch series, properly numbered (i.e.
> [PATCH XX/YY]) so that I have a chance to apply them correctly?
>
> thanks,
>
> greg k-h

 No worries.

I'll do that later on today.

Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-02  6:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-01 18:17 [PATCH] ver_linux: libcpp.patch Alexander Kapshuk
2015-10-02  5:55 ` Greg KH
2015-10-02  6:20   ` Alexander Kapshuk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).