• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

gzip files updated leads to patch problems

xarzu

Newbie
Here is the short version:

I was having issues with build commands complaining that a couple of .tar.gz files were not true gzip files. So I download the latest versions of zlib.tar.gz and libicon.tar.gz. That seemed to have issues later on, I suspect because the patch commands in some make files had failures. How is that for people with low reading comprehension skills?

Here is the long version:

I was following the ballantyne.online steps for building an atack dev environment and I the build scripts
stumbled and said that zlib.tar.gz as well ad libicon.tar.gz were not true gzip files.
So I downloaded the latest versions of these files and proceeded. Eventually this might have something to do with a later snag.
Something went wrong when I tried running:
make TARGET=android-arm64-v8a GDAL_USE_KDU=no build_spatialite build_gdal build_commoncommo build_assimp

Things seem to start go to grong when it reaches a 'patch' command in the script:

patch -p0 -d /home/worker/AndroidTacticalAssaultKit-CIV/takthirdparty/builds/android-arm64-v8a-release < /home/worker/AndroidTacticalAssaultKit-CIV/takthirdparty/distfiles/libiconv-pgsc.patch
patching file libiconv/configure

What follows these two lines aare a series of numbered failure statements:

Hunk #1 FAILED at 6299.
Hunk #2 FAILED at 6887.
Hunk #3 succeeded at 8145 with fuzz 2 (offset 740 lines).
Hunk #4 FAILED at 7445.
3 out of 4 hunks FAILED -- saving rejects to file libiconv/configure.rej

Then the output announces a new patching:

patching file libiconv/libcharset/configure

Then I have a new sets of failure announcements:

Hunk #1 FAILED at 3967.
Hunk #2 FAILED at 4526.
2 out of 2 hunks FAILED -- saving rejects to file libiconv/libcharset/configure.rej

But then we have something different

can't find file to patch at input line 208

So now I am wondering which imput file they are referring to? Which one is it and should I edit it?

The output continues:

Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -U 10 -r libiconv-pristine/preload/configure libiconv/preload/configure
|--- libiconv-pristine/preload/configure 2017-01-01 18:03:35.000000000 -0500
|+++ libiconv/preload/configure 2018-05-21 23:41:55.838000000 -0400
--------------------------
File to patch:

I do not now what file to enter and so I press the enter key to let the script die.

Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
patching file libiconv/Makefile.in
Hunk #1 succeeded at 44 (offset -1 lines).
make: *** [mk/libiconv-common.mk:16: /home/worker/AndroidTacticalAssaultKit-CIV/takthirdparty/builds/android-arm64-v8a-release/libiconv/.unpacked] Error 1

What do you advise? I have never seen this sort of error before.
 
Confused about your tar.gz and gzip correlation, they're two different archiving protocols. As a file, each one is its own file type and the only commonality is both use compression to reduce file size.

Regarding the error messages, if you open up one of those tar.gz files it will most likely result in a directory with its files. If you put the patches in that same directory try compiling again to see if that works out. If it's still a problem, use a text editor to open the 'config' file and search for lines that pertain to those error messages.
 
Back
Top Bottom