Bug#866762: gpsprune: FTBFS with metadata-extractor 2.10.1

Markus Koschany apo at debian.org
Sat Jul 1 14:50:54 UTC 2017


Package: gpsprune
Version: 18.6-1
Severity: important

Hi,

I would like to update libmetadata-extractor-java in sid to the latest
version. This is needed to complete the update of pdfsam.
Unfortunately the update will break gpsprune. The new package is
already available in experimental. I am attaching an incomplete patch
that fixes most of the errors caused by renamed methods but the
hasThumbnail and hasThumbnailData methods no longer exist. This issue
is known upstream as

https://github.com/drewnoakes/metadata-extractor/issues/149

Maybe they will be reintroduced in a later version but perhaps the
author of gpsprune might want to change this anyway. Please get in
touch with him.

Regards,

Markus
-------------- next part --------------
From: Markus Koschany <apo at debian.org>
Date: Sat, 1 Jul 2017 16:28:53 +0200
Subject: metadata extractor 2.10.1

---
 tim/prune/jpeg/ExternalExifLibrary.java | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/tim/prune/jpeg/ExternalExifLibrary.java b/tim/prune/jpeg/ExternalExifLibrary.java
index 4d06a27..e8194da 100644
--- a/tim/prune/jpeg/ExternalExifLibrary.java
+++ b/tim/prune/jpeg/ExternalExifLibrary.java
@@ -34,9 +34,9 @@ public class ExternalExifLibrary implements ExifLibrary
 		try
 		{
 			Metadata metadata = ImageMetadataReader.readMetadata(inFile);
-			if (metadata.containsDirectory(GpsDirectory.class))
+			if (metadata.containsDirectoryOfType(GpsDirectory.class))
 			{
-				Directory gpsdir = metadata.getDirectory(GpsDirectory.class);
+				Directory gpsdir = metadata.getFirstDirectoryOfType(GpsDirectory.class);
 				if (gpsdir.containsTag(GpsDirectory.TAG_LATITUDE)
 					&& gpsdir.containsTag(GpsDirectory.TAG_LONGITUDE)
 					&& gpsdir.containsTag(GpsDirectory.TAG_LATITUDE_REF)
@@ -86,9 +86,9 @@ public class ExternalExifLibrary implements ExifLibrary
 			}
 
 			// Tags from Exif directory
-			if (metadata.containsDirectory(ExifSubIFDDirectory.class))
+			if (metadata.containsDirectoryOfType(ExifSubIFDDirectory.class))
 			{
-				Directory exifdir = metadata.getDirectory(ExifSubIFDDirectory.class);
+				Directory exifdir = metadata.getFirstDirectoryOfType(ExifSubIFDDirectory.class);
 
 				// Take time and date from exif tags
 				if (exifdir.containsTag(ExifSubIFDDirectory.TAG_DATETIME_ORIGINAL)) {
@@ -99,9 +99,9 @@ public class ExternalExifLibrary implements ExifLibrary
 					data.setDigitizedTimestamp(exifdir.getString(ExifSubIFDDirectory.TAG_DATETIME_DIGITIZED));
 				}
 			}
-			if (metadata.containsDirectory(ExifIFD0Directory.class))
+			if (metadata.containsDirectoryOfType(ExifIFD0Directory.class))
 			{
-				Directory exifdir = metadata.getDirectory(ExifIFD0Directory.class);
+				Directory exifdir = metadata.getFirstDirectoryOfType(ExifIFD0Directory.class);
 
 				// Photo rotation code
 				if (exifdir.containsTag(ExifIFD0Directory.TAG_ORIENTATION)) {
@@ -110,9 +110,9 @@ public class ExternalExifLibrary implements ExifLibrary
 				}
 			}
 
-			if (metadata.containsDirectory(ExifThumbnailDirectory.class))
+			if (metadata.containsDirectoryOfType(ExifThumbnailDirectory.class))
 			{
-				ExifThumbnailDirectory exifdir = metadata.getDirectory(ExifThumbnailDirectory.class);
+				ExifThumbnailDirectory exifdir = metadata.getFirstDirectoryOfType(ExifThumbnailDirectory.class);
 
 				// TODO: Check this thumbnail stuff
 				if (exifdir.hasThumbnailData())


More information about the Pkg-grass-devel mailing list