ExifTool Forum

ExifTool => Install Problems => Topic started by: Hayo Baan on April 19, 2024, 07:17:36 AM

Title: Build failure
Post by: Hayo Baan on April 19, 2024, 07:17:36 AM
When trying to build 12.83 from sources (perl Makefile.PL && make test && make install), the Geolocation test fails.

t/Geolocation.t .... 1/8
  Test 6 differs beginning at line 1:
    Test gave: "[ExifTool, ExifTool, Location] GeolocationCity - Geolocation City: Muenchen"
    Should be: "[ExifTool, ExifTool, Location] GeolocationCity - Geolocation City: Munich"

Looks like a small oversight in the checked-in version in the repo.
Title: Re: Build failure
Post by: Phil Harvey on April 19, 2024, 08:57:49 AM
Hi Hayo,

I was worried about this.  This will happen if you still have the lib/Image/ExifTool/GeoLang directory from version 12.82.  This directory has been removed from 12.83.

It would be helpful if you could figure out why this directory still existed on your system when you ran the tests.  If I download the full distribution and run the tests myself it works fine.  The GeoLang directory should have also been deleted from the git repositories.

- Phil
Title: Re: Build failure
Post by: Hayo Baan on April 20, 2024, 01:51:36 PM
The GeoLang directory wasn't in lib/Image/ExifTool, but I did find it in blib/lib/Image/ExifTool. When I removed blib altogether and reran the build, the error disappeared. So I guess I have to extend my build procedure and explicitly remove blib just to be on the safe side :)
Or better yet, remove all generated code with e.g. git clean -f -d -x -e .gitignore.

(which begs the question, why did you include .gitignore in the .gitignore file itself?)
Title: Re: Build failure
Post by: Phil Harvey on April 20, 2024, 02:54:30 PM
Quote from: Hayo Baan on April 20, 2024, 01:51:36 PM(which begs the question, why did you include .gitignore in the .gitignore file itself?)

No idea.  I don't remember ever touching a .gitignore file, and I don't see it in the repository.

- Phil
Title: Re: Build failure
Post by: Hayo Baan on April 21, 2024, 05:42:51 AM
Quote from: Phil Harvey on April 20, 2024, 02:54:30 PM
Quote from: Hayo Baan on April 20, 2024, 01:51:36 PM(which begs the question, why did you include .gitignore in the .gitignore file itself?)
No idea.  I don't remember ever touching a .gitignore file, and I don't see it in the repository.

Ha, then I know why: I added it myself so the build files do not get marked as untracked after building. The .gitignore I then needed to add to itself so that *that* file wouldn't be marked as untracked. Did this so long ago, I forgot about it ;D

My .gitignore (if you feel like adopting this, you need to leave out .gitignore, of course):
.gitignore
MYMETA.json
MYMETA.yml
Makefile
blib/
pm_to_blib