CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Improved treatment for .la files in pkgadd-cross
authorJose V Beneyto <sepen@crux.nu>
Wed, 21 Aug 2013 08:58:58 +0000 (08:58 +0000)
committerJose V Beneyto <sepen@crux.nu>
Wed, 21 Aug 2013 08:58:58 +0000 (08:58 +0000)
pkgadd-cross

index c1ac751b493c034008955ff43abf1876957337cd..61bb88f3516521fc8707787ba1202e9c2e332c60 100755 (executable)
@@ -41,7 +41,7 @@ $PKGADD -c $PKGADD_CONF -r $CLFS $ARGS
 
 # we need to adjust .la files for our temporary root filesystem tree (CLFS)
 if [ $? -eq 0 ]; then
-  LIBTOOL_FILES=$(tar tf $PATH_TO_PACKAGE | grep '.la')
+  LIBTOOL_FILES=$(tar tf $PATH_TO_PACKAGE 2>/dev/null | grep '\.la$')
   for la_file in $LIBTOOL_FILES; do
     sed -e "s|libdir='/|libdir='$CLFS/|" -i $CLFS/$la_file
   done