Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1237618 > unrolled thread

[PATCH] ver_linux: libcpp.patch

Started byAlexander Kapshuk <alexander.kapshuk@gmail.com>
First post2015-10-01 20:20 +0200
Last post2015-10-02 08:30 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] ver_linux: libcpp.patch Alexander Kapshuk <alexander.kapshuk@gmail.com> - 2015-10-01 20:20 +0200
    Re: [PATCH] ver_linux: libcpp.patch Greg KH <gregkh@linuxfoundation.org> - 2015-10-02 08:00 +0200
      Re: [PATCH] ver_linux: libcpp.patch Alexander Kapshuk <alexander.kapshuk@gmail.com> - 2015-10-02 08:30 +0200

#1237618 — [PATCH] ver_linux: libcpp.patch

FromAlexander Kapshuk <alexander.kapshuk@gmail.com>
Date2015-10-01 20:20 +0200
Subject[PATCH] ver_linux: libcpp.patch
Message-ID<qeQCt-3Wq-1@gated-at.bofh.it>
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}'
--
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/

[toc] | [next] | [standalone]


#1237954

FromGreg KH <gregkh@linuxfoundation.org>
Date2015-10-02 08:00 +0200
Message-ID<qf1xU-2RX-25@gated-at.bofh.it>
In reply to#1237618
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
--
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/

[toc] | [prev] | [next] | [standalone]


#1237966

FromAlexander Kapshuk <alexander.kapshuk@gmail.com>
Date2015-10-02 08:30 +0200
Message-ID<qf20W-3Fm-25@gated-at.bofh.it>
In reply to#1237954
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.
--
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/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web