From af7e46e444fe3abfd1b9b6a0054d6ad201adc209 Mon Sep 17 00:00:00 2001 From: Geunsik Lim Date: Wed, 25 Jan 2017 13:25:34 +0900 Subject: Enable --enable-largefile option to process a file (bigger than 2GB) The 'ext4' filesystem (default) of Tizen supports a large file until 16 TiB (for 4k block filesystem) compared to the past. However, the existing 'cpio' is still supports processing a file that is less than 2GB. This commit is to allow 'cpio' to handle a large file such as chromium-efl package. * build error of chromium-efl: [ 1080s] warning: Could not canonicalize hostname: s007 [ 1080s] error: create archive failed on file /home/abuild/rpmbuild/SOURCES/chromium-efl-47.2526.69.49.tar.gz: cpio: File too large for archive [ 1080s] Building target platforms: armv7l-tizen-linux [ 1080s] Building for target armv7l-tizen-linux @ To maintainer: Note that you have to enable "--enable-largefile" option on your host pc if you use host pc's cpio as well as qemu rootfs's cpio to compile a Tizen package. * For Host Linux PC ubuntu-64bit$> wget http://ftp.gnu.org/gnu/cpio/cpio-2.12.tar.bz2 ubuntu-64bit$> tar xvjf ./cpio-2.12.tar.bz2 ubuntu-64bit$> cd ./cpio-2.12 ubuntu-64bit$> ./configure --enable-largefile --prefix=/usr ubuntu-64bit$> make -j4 ubuntu-64bit$> make -j4 install Change-Id: Ida7d736875f4ae11da7df496e83acf9c3e87f288 Signed-off-by: Geunsik Lim --- packaging/cpio.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/cpio.spec b/packaging/cpio.spec index f990052..3bd7479 100644 --- a/packaging/cpio.spec +++ b/packaging/cpio.spec @@ -30,7 +30,7 @@ cp %{SOURCE1001} . %build export ac_cv_prog_cc_c99=no -%configure --disable-nls +%configure --disable-nls --enable-largefile make %{?_smp_mflags} -- cgit v1.2.3