Hi Subrata,

        The make install of the testcases/commands/unzip fails, when the 
ltp sources are mounted on different filesystem other than /tmp, because 
the hardlinks are created by the testcase Makefile.

make[3]: Entering directory `/mnt/ltp-full-20081231/testcases/commands/unzip'
ln -f unzip_tests.sh ../../bin/unzip_tests.sh
ln -f tst_unzip_file.zip ../../bin/tst_unzip_file.zip
ln -f tst_unzip_file.zip /tmp/tst_unzip_file.zip
ln: creating hard link `/tmp/tst_unzip_file.zip' to `tst_unzip_file.zip': 
Invalid cross-device link
make[3]: *** [install] Error 1

        This patches converts the hardlinks to softlinks.

Signed-off-by: Kamalesh Babulal <[email protected]>
---
 testcases/commands/unzip/Makefile |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Index: ltp/testcases/commands/unzip/Makefile
===================================================================
--- ltp.orig/testcases/commands/unzip/Makefile
+++ ltp/testcases/commands/unzip/Makefile
@@ -2,9 +2,9 @@ all:
        ./unzip_genfile.sh
 
 install:
-       ln -f unzip_tests.sh ../../bin/unzip_tests.sh
-       ln -f tst_unzip_file.zip ../../bin/tst_unzip_file.zip
-       ln -f tst_unzip_file.zip /tmp/tst_unzip_file.zip
+       ln -sf unzip_tests.sh ../../bin/unzip_tests.sh
+       ln -sf tst_unzip_file.zip ../../bin/tst_unzip_file.zip
+       ln -sf tst_unzip_file.zip /tmp/tst_unzip_file.zip
        chmod 777 tst_unzip_file.zip
 
 clean:
-- 
Thanks & Regards,
Kamalesh Babulal,
Linux Technology Center,
IBM, ISTL.

------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to