خرید بک لینک

In short, if one of the install path is too long, cpack will produce a deb which dpkg -i will choke upon with the error message:

Code:

corrupted filesystem tarfile - corrupted package archive
This looks furiously like a bug which had supposedly been squashed a few years ago: https://bugs.launchpad.net/ubuntu/+s...ke/+bug/972419

Here is an easy way to reproduce it:

1. Unpack the attached archive: this will give a folder cpack_test
2. In the same directory where cpack_test sits, I then did:

Code:

~/Developer/sandbox% lsb_release -ds                                                         
Ubuntu 14.04.4 LTS
~/Developer/sandbox% mkdir cpack_test_build                 
~/Developer/sandbox% cd !$                                  
cd cpack_test_build
~/Developer/sandbox/cpack_test_build% /usr/bin/cmake ../cpack_test
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/luc/Developer/sandbox/cpack_test_build
~/Developer/sandbox/cpack_test_build% make package                                                        
Scaing dependencies of target helloooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
[100%] Building C object CMakeFiles/helloooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo.dir/hello.c.o
Linking C executable helloooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
[100%] Built target helloooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
Run CPack packaging tool...
CPack: Create package using DEB
CPack: Install projects
CPack: - Run preinstall target for: hello
CPack: - Install project: hello
CPack: Create package
CPack: - package: /home/luc/Developer/sandbox/cpack_test_build/hello-0.1.1-Linux.deb generated.
~/Developer/sandbox/cpack_test_build% sudo dpkg -i hello-0.1.1-Linux.deb                                  
(Reading database ... 210884 files and directories currently installed.)
Preparing to unpack hello-0.1.1-Linux.deb ...
Unpacking hello (0.1.1) over (0.1.1) ...
dpkg: error processing archive hello-0.1.1-Linux.deb (--install):
 corrupted filesystem tarfile - corrupted package archive
Errors were encountered while processing:
 hello-0.1.1-Linux.deb

برچسب: نویسنده: استخدام کار تاريخ: شنبه 22 اسفند 1394 ساعت: 1:31

صفحه بندی