Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 449948 Details for
Bug 596922
=net-proxy/ziproxy-3.3.1-r1 does not build against =media-libs/giflib-5*
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
03_giflib5.diff (text/plain), 1.37 KB, created by
Oleh
on 2016-10-12 06:23:52 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Oleh
Created:
2016-10-12 06:23:52 UTC
Size:
1.37 KB
patch
obsolete
>Description: Build using giflib5 >Forwarded: yes >Author: Marcos Talau <talau@users.sourceforge.net> >Author: Matthias Klose <doko@debian.org> >Last-Update: 2015-11-04 > >Index: ziproxy-3.3.1/src/image.c >=================================================================== >--- ziproxy-3.3.1.orig/src/image.c >+++ ziproxy-3.3.1/src/image.c >@@ -905,7 +905,11 @@ int gif2bitmap(char *inbuf, int insize, > desc.size=insize; > desc.x.pos=0; > >+#if GIFLIB_MAJOR >= 5 >+ if ((GifFile = DGifOpen((void*)&desc, &gif_mem_input, NULL)) == NULL) >+#else > if ((GifFile = DGifOpen((void*)&desc, &gif_mem_input)) == NULL) >+#endif > return( IMG_RET_ERR_UNKNOWN + IMG_RET_FLG_WHILE_DECOMP);//more possible reasons > > bmp = new_raw_bitmap(); >@@ -1083,7 +1087,11 @@ int gif2bitmap(char *inbuf, int insize, > } > bmp->pal_bpp = bmp->bpp; > >+#if GIFLIB_MAJOR >= 5 >+ DGifCloseFile(GifFile, NULL); >+#else > DGifCloseFile(GifFile); >+#endif > return IMG_RET_OK; > } > >@@ -1738,7 +1746,11 @@ static int bitmap2jp2 (raw_bitmap *bmp, > cmptparm->width = cwidth [cmptno]; > cmptparm->height = cheight [cmptno]; > cmptparm->prec = cbitlen [cmptno]; >+#if GIFLIB_MAJOR >= 5 >+ cmptparm->sgnd = 0; // we only generate unsigned components >+#else > cmptparm->sgnd = false; // we only generate unsigned components >+#endif > > cshiftR [cmptno] = 8 - cbitlen [cmptno]; // calculate the resampling shift for this component > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 596922
:
449946
| 449948