]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
glibc 2.31 ldd prints 'not a dynamic executable' on stderr, so silence it.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 4 Feb 2020 21:28:16 +0000 (22:28 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 4 Feb 2020 21:28:16 +0000 (22:28 +0100)
geninitrd

index 052f55317a3c5207b33a111fb1aeea0ae5ca319e..e9832ef0307c33b4c98582bbf9939f2df5c11fe7 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -551,7 +551,7 @@ inst_exec() {
                esac
 
 
-               libs=$(ldd "$obj" | awk '/statically|linux-(gate|vdso)\.so/{next} NF == 2 {print $1} /=/{print $3}' | sort -u)
+               libs=$(ldd "$obj" 2> /dev/null | awk '/statically|linux-(gate|vdso)\.so/{next} NF == 2 {print $1} /=/{print $3}' | sort -u)
                for lib in $libs $libs_additional; do
                        libdir=$(cd $(dirname "$lib"); pwd)
                        if [ ! -f "$DESTDIR/$lib" ]; then
@@ -566,7 +566,7 @@ inst_exec() {
        for _lib in $(get_libdir LIBDIR); do
                if [ -f $DESTDIR/$_lib/libc.so.0 ]; then
                        lib=$DESTDIR/$_lib/libc.so.0
-                       lib=$(ldd "$lib" | awk '/statically|linux-(gate|vdso)\.so/{next} NF == 2 {print $1} /=/{print $3}' | sort -u)
+                       lib=$(ldd "$lib" 2> /dev/null | awk '/statically|linux-(gate|vdso)\.so/{next} NF == 2 {print $1} /=/{print $3}' | sort -u)
                        libdir=$(cd $(dirname "$lib"); pwd)
                        if [ ! -e $DESTDIR$libdir ]; then
                                libdir=$(dirname "$libdir")
This page took 0.384378 seconds and 4 git commands to generate.