summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcelo Góes <vanquirius@gentoo.org>2005-09-10 19:04:25 +0000
committerMarcelo Góes <vanquirius@gentoo.org>2005-09-10 19:04:25 +0000
commitbcd85f9a8da8f5c10e8ac1e43d83d3698f12c2d7 (patch)
treea100b12448529c67d348a7594615e9625010b26f /media-gfx/jhead/files
parentVersion bump including 2.6.13 and 2.6.13-mm compatibility fix (diff)
downloadgentoo-2-bcd85f9a8da8f5c10e8ac1e43d83d3698f12c2d7.tar.gz
gentoo-2-bcd85f9a8da8f5c10e8ac1e43d83d3698f12c2d7.tar.bz2
gentoo-2-bcd85f9a8da8f5c10e8ac1e43d83d3698f12c2d7.zip
bug 105492
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'media-gfx/jhead/files')
-rw-r--r--media-gfx/jhead/files/digest-jhead-2.11
-rw-r--r--media-gfx/jhead/files/digest-jhead-2.41
-rw-r--r--media-gfx/jhead/files/jhead-2.4-gcc4.diff138
3 files changed, 139 insertions, 1 deletions
diff --git a/media-gfx/jhead/files/digest-jhead-2.1 b/media-gfx/jhead/files/digest-jhead-2.1
deleted file mode 100644
index 3979fbbefa8d..000000000000
--- a/media-gfx/jhead/files/digest-jhead-2.1
+++ /dev/null
@@ -1 +0,0 @@
-MD5 882081eb1f41cb3d3791f8dc87a27e0f jhead-2.1.tar.gz 43680
diff --git a/media-gfx/jhead/files/digest-jhead-2.4 b/media-gfx/jhead/files/digest-jhead-2.4
new file mode 100644
index 000000000000..899dfd24b99c
--- /dev/null
+++ b/media-gfx/jhead/files/digest-jhead-2.4
@@ -0,0 +1 @@
+MD5 410d01fd323ce8733480816de3621cc0 jhead-2.4.tar.gz 52289
diff --git a/media-gfx/jhead/files/jhead-2.4-gcc4.diff b/media-gfx/jhead/files/jhead-2.4-gcc4.diff
new file mode 100644
index 000000000000..ec8e18915424
--- /dev/null
+++ b/media-gfx/jhead/files/jhead-2.4-gcc4.diff
@@ -0,0 +1,138 @@
+diff --exclude='*~' -Naur jhead-2.4.orig/exif.c jhead-2.4/exif.c
+--- jhead-2.4.orig/exif.c 2005-09-10 15:38:49.000000000 -0300
++++ jhead-2.4/exif.c 2005-09-10 15:51:45.000000000 -0300
+@@ -395,7 +395,7 @@
+ unsigned char * ValuePtr;
+ int ByteCount;
+ char * DirEntry;
+- DirEntry = DIR_ENTRY_ADDR(DirStart, de);
++ DirEntry = (char *)DIR_ENTRY_ADDR(DirStart, de);
+
+ Tag = Get16u(DirEntry);
+ Format = Get16u(DirEntry+2);
+@@ -421,7 +421,7 @@
+ ValuePtr = OffsetBase+OffsetVal;
+ }else{
+ // 4 bytes or less and value is in the dir entry itself
+- ValuePtr = DirEntry+8;
++ ValuePtr = (uchar *)DirEntry+8;
+ }
+
+ if (LastExifRefd < ValuePtr+ByteCount){
+@@ -493,17 +493,17 @@
+ switch(Tag){
+
+ case TAG_MAKE:
+- strncpy(ImageInfo.CameraMake, ValuePtr, 31);
++ strncpy(ImageInfo.CameraMake, (char *)ValuePtr, 31);
+ break;
+
+ case TAG_MODEL:
+- strncpy(ImageInfo.CameraModel, ValuePtr, 39);
++ strncpy(ImageInfo.CameraModel, (char *)ValuePtr, 39);
+ break;
+
+
+ case TAG_DATETIME_ORIGINAL:
+ // If we get a DATETIME_ORIGINAL, we use that one.
+- strncpy(ImageInfo.DateTime, ValuePtr, 19);
++ strncpy(ImageInfo.DateTime, (char *)ValuePtr, 19);
+ // Fallthru...
+
+ case TAG_DATETIME_DIGITIZED:
+@@ -511,14 +511,14 @@
+ if (!isdigit(ImageInfo.DateTime[0])){
+ // If we don't already have a DATETIME_ORIGINAL, use whatever
+ // time fields we may have.
+- strncpy(ImageInfo.DateTime, ValuePtr, 19);
++ strncpy(ImageInfo.DateTime, (char *)ValuePtr, 19);
+ }
+
+ if (ImageInfo.numDateTimeTags >= MAX_DATE_COPIES){
+ ErrNonfatal("More than %d date fields! This is nuts", MAX_DATE_COPIES, 0);
+ break;
+ }
+- ImageInfo.DateTimePointers[ImageInfo.numDateTimeTags++] = ValuePtr;
++ ImageInfo.DateTimePointers[ImageInfo.numDateTimeTags++] = (char *)ValuePtr;
+ break;
+
+
+@@ -540,13 +540,13 @@
+ int c;
+ c = (ValuePtr)[a];
+ if (c != '\0' && c != ' '){
+- strncpy(ImageInfo.Comments, a+ValuePtr, 199);
++ strncpy(ImageInfo.Comments, (char *)(a+ValuePtr), 199);
+ break;
+ }
+ }
+
+ }else{
+- strncpy(ImageInfo.Comments, ValuePtr, 199);
++ strncpy(ImageInfo.Comments, (char *)ValuePtr, 199);
+ }
+ break;
+
+@@ -927,7 +927,7 @@
+ for (de=0;de<NumDirEntries;de++){
+ int Tag;
+ char * DirEntry;
+- DirEntry = DIR_ENTRY_ADDR(DirWithThumbnailPtrs, de);
++ DirEntry = (char *)DIR_ENTRY_ADDR(DirWithThumbnailPtrs, de);
+ Tag = Get16u(DirEntry);
+ if (Tag == TAG_THUMBNAIL_OFFSET || Tag == TAG_THUMBNAIL_LENGTH){
+ // We remove data out of the exif directory by doing a memmove on the rest
+diff --exclude='*~' -Naur jhead-2.4.orig/gpsinfo.c jhead-2.4/gpsinfo.c
+--- jhead-2.4.orig/gpsinfo.c 2005-09-10 15:38:49.000000000 -0300
++++ jhead-2.4/gpsinfo.c 2005-09-10 15:48:24.000000000 -0300
+@@ -84,7 +84,7 @@
+ int ComponentSize;
+ unsigned ByteCount;
+ char * DirEntry;
+- DirEntry = DIR_ENTRY_ADDR(DirStart, de);
++ DirEntry = (char *)DIR_ENTRY_ADDR(DirStart, de);
+
+ Tag = Get16u(DirEntry);
+ Format = Get16u(DirEntry+2);
+@@ -111,7 +111,7 @@
+ ValuePtr = OffsetBase+OffsetVal;
+ }else{
+ // 4 bytes or less and value is in the dir entry itself
+- ValuePtr = DirEntry+8;
++ ValuePtr = (uchar *)DirEntry+8;
+ }
+
+ switch(Tag){
+diff --exclude='*~' -Naur jhead-2.4.orig/jpgfile.c jhead-2.4/jpgfile.c
+--- jhead-2.4.orig/jpgfile.c 2005-09-10 15:38:49.000000000 -0300
++++ jhead-2.4/jpgfile.c 2005-09-10 15:41:41.000000000 -0300
+@@ -245,7 +245,7 @@
+ // that uses marker 31 for non exif stuff. Thus make sure
+ // it says 'Exif' in the section before treating it as exif.
+ if ((ReadMode & READ_EXIF) && memcmp(Data+2, "Exif", 4) == 0){
+- process_EXIF((char *)Data, itemlen);
++ process_EXIF(Data, itemlen);
+ }else{
+ // Discard this section.
+ free(Sections[--SectionsRead].Data);
+diff --exclude='*~' -Naur jhead-2.4.orig/makernote.c jhead-2.4/makernote.c
+--- jhead-2.4.orig/makernote.c 2005-09-10 15:38:49.000000000 -0300
++++ jhead-2.4/makernote.c 2005-09-10 15:49:28.000000000 -0300
+@@ -48,7 +48,7 @@
+ unsigned char * ValuePtr;
+ int ByteCount;
+ char * DirEntry;
+- DirEntry = DIR_ENTRY_ADDR(DirStart, de);
++ DirEntry = (char *)DIR_ENTRY_ADDR(DirStart, de);
+
+ Tag = Get16u(DirEntry);
+ Format = Get16u(DirEntry+2);
+@@ -74,7 +74,7 @@
+ ValuePtr = OffsetBase+OffsetVal;
+ }else{
+ // 4 bytes or less and value is in the dir entry itself
+- ValuePtr = DirEntry+8;
++ ValuePtr = (uchar *)DirEntry+8;
+ }
+
+ if (ShowTags){