* [Buildroot] [PATCH] giflib: fix description about compatibility with libungif
@ 2015-04-12 8:43 Fabio Porcedda
2015-04-12 8:47 ` Baruch Siach
2015-04-12 10:21 ` Fabio Porcedda
0 siblings, 2 replies; 8+ messages in thread
From: Fabio Porcedda @ 2015-04-12 8:43 UTC (permalink / raw)
To: buildroot
Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
---
package/giflib/Config.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/giflib/Config.in b/package/giflib/Config.in
index 70368dc..bb5741a 100644
--- a/package/giflib/Config.in
+++ b/package/giflib/Config.in
@@ -1,7 +1,7 @@
config BR2_PACKAGE_GIFLIB
bool "giflib"
help
- giflib is a library for reading and writing gif images. It is API and
+ giflib is a library for reading and writing gif images. It was API and
ABI compatible with libungif which was in wide use while the LZW
compression algorithm was patented.
--
2.3.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH] giflib: fix description about compatibility with libungif
2015-04-12 8:43 [Buildroot] [PATCH] giflib: fix description about compatibility with libungif Fabio Porcedda
@ 2015-04-12 8:47 ` Baruch Siach
2015-04-12 8:57 ` Fabio Porcedda
2015-04-12 9:10 ` Yann E. MORIN
2015-04-12 10:21 ` Fabio Porcedda
1 sibling, 2 replies; 8+ messages in thread
From: Baruch Siach @ 2015-04-12 8:47 UTC (permalink / raw)
To: buildroot
Hi Fabio,
On Sun, Apr 12, 2015 at 10:43:05AM +0200, Fabio Porcedda wrote:
> Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
> ---
> package/giflib/Config.in | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/package/giflib/Config.in b/package/giflib/Config.in
> index 70368dc..bb5741a 100644
> --- a/package/giflib/Config.in
> +++ b/package/giflib/Config.in
> @@ -1,7 +1,7 @@
> config BR2_PACKAGE_GIFLIB
> bool "giflib"
> help
> - giflib is a library for reading and writing gif images. It is API and
> + giflib is a library for reading and writing gif images. It was API and
> ABI compatible with libungif which was in wide use while the LZW
> compression algorithm was patented.
So giflib is not compatible to libungif anymore?
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH] giflib: fix description about compatibility with libungif
2015-04-12 8:47 ` Baruch Siach
@ 2015-04-12 8:57 ` Fabio Porcedda
2015-04-12 9:08 ` Baruch Siach
2015-04-12 9:10 ` Yann E. MORIN
1 sibling, 1 reply; 8+ messages in thread
From: Fabio Porcedda @ 2015-04-12 8:57 UTC (permalink / raw)
To: buildroot
On Sun, Apr 12, 2015 at 10:47 AM, Baruch Siach <baruch@tkos.co.il> wrote:
> Hi Fabio,
>
> On Sun, Apr 12, 2015 at 10:43:05AM +0200, Fabio Porcedda wrote:
>> Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
>> ---
>> package/giflib/Config.in | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/package/giflib/Config.in b/package/giflib/Config.in
>> index 70368dc..bb5741a 100644
>> --- a/package/giflib/Config.in
>> +++ b/package/giflib/Config.in
>> @@ -1,7 +1,7 @@
>> config BR2_PACKAGE_GIFLIB
>> bool "giflib"
>> help
>> - giflib is a library for reading and writing gif images. It is API and
>> + giflib is a library for reading and writing gif images. It was API and
>> ABI compatible with libungif which was in wide use while the LZW
>> compression algorithm was patented.
>
> So giflib is not compatible to libungif anymore?
Just comparing the gif_lib.h header you can see that the definition of
some functions changes:
git diff --no-index libungif-4.1.4/lib/gif_lib.h giflib-5.1.1/lib/gif_lib.h
GifFileType *EGifOpenFileName(const char *GifFileName,
- int GifTestExistance);
-GifFileType *EGifOpenFileHandle(int GifFileHandle);
-GifFileType *EGifOpen(void *userPtr, OutputFunc writeFunc);
-
+ const bool GifTestExistence, int *Error);
+GifFileType *EGifOpenFileHandle(const int GifFileHandle, int *Error);
+GifFileType *EGifOpen(void *userPtr, OutputFunc writeFunc, int *Error);
int EGifSpew(GifFileType * GifFile);
For this reason in buildroot there are commits that switchs from libungif
to giflib that changes the source code to do that, e.g.:
commit bfb54898133210a40bafdfbca72d9186d65c1b66
Author: Bernd Kuhls <bernd.kuhls@t-online.de>
Date: Mon Jan 26 20:24:19 2015 +0100
package/efl/libevas: Switch to giflib
package/efl/libevas/0001-giflib.patch | 98
package/efl/libevas/Config.in | 2 +-
package/efl/libevas/libevas.mk
BR
--
Fabio Porcedda
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH] giflib: fix description about compatibility with libungif
2015-04-12 8:57 ` Fabio Porcedda
@ 2015-04-12 9:08 ` Baruch Siach
2015-04-12 9:13 ` Yann E. MORIN
0 siblings, 1 reply; 8+ messages in thread
From: Baruch Siach @ 2015-04-12 9:08 UTC (permalink / raw)
To: buildroot
Hi Fabio,
On Sun, Apr 12, 2015 at 10:57:40AM +0200, Fabio Porcedda wrote:
> On Sun, Apr 12, 2015 at 10:47 AM, Baruch Siach <baruch@tkos.co.il> wrote:
> > On Sun, Apr 12, 2015 at 10:43:05AM +0200, Fabio Porcedda wrote:
> >> Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
> >> ---
> >> package/giflib/Config.in | 2 +-
> >> 1 file changed, 1 insertion(+), 1 deletion(-)
> >>
> >> diff --git a/package/giflib/Config.in b/package/giflib/Config.in
> >> index 70368dc..bb5741a 100644
> >> --- a/package/giflib/Config.in
> >> +++ b/package/giflib/Config.in
> >> @@ -1,7 +1,7 @@
> >> config BR2_PACKAGE_GIFLIB
> >> bool "giflib"
> >> help
> >> - giflib is a library for reading and writing gif images. It is API and
> >> + giflib is a library for reading and writing gif images. It was API and
> >> ABI compatible with libungif which was in wide use while the LZW
> >> compression algorithm was patented.
> >
> > So giflib is not compatible to libungif anymore?
>
> Just comparing the gif_lib.h header you can see that the definition of
> some functions changes:
>
> git diff --no-index libungif-4.1.4/lib/gif_lib.h giflib-5.1.1/lib/gif_lib.h
>
> GifFileType *EGifOpenFileName(const char *GifFileName,
> - int GifTestExistance);
> -GifFileType *EGifOpenFileHandle(int GifFileHandle);
> -GifFileType *EGifOpen(void *userPtr, OutputFunc writeFunc);
> -
> + const bool GifTestExistence, int *Error);
> +GifFileType *EGifOpenFileHandle(const int GifFileHandle, int *Error);
> +GifFileType *EGifOpen(void *userPtr, OutputFunc writeFunc, int *Error);
> int EGifSpew(GifFileType * GifFile);
If this is the case I would use a more explicit language. Something like:
giflib used to be API and ABI compatible with libungif which ... Note that
recent gitlib versions are no longer compatible with libungif.
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH] giflib: fix description about compatibility with libungif
2015-04-12 8:47 ` Baruch Siach
2015-04-12 8:57 ` Fabio Porcedda
@ 2015-04-12 9:10 ` Yann E. MORIN
1 sibling, 0 replies; 8+ messages in thread
From: Yann E. MORIN @ 2015-04-12 9:10 UTC (permalink / raw)
To: buildroot
Baruch, All,
On 2015-04-12 11:47 +0300, Baruch Siach spake thusly:
> On Sun, Apr 12, 2015 at 10:43:05AM +0200, Fabio Porcedda wrote:
> > Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
> > ---
> > package/giflib/Config.in | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/package/giflib/Config.in b/package/giflib/Config.in
> > index 70368dc..bb5741a 100644
> > --- a/package/giflib/Config.in
> > +++ b/package/giflib/Config.in
> > @@ -1,7 +1,7 @@
> > config BR2_PACKAGE_GIFLIB
> > bool "giflib"
> > help
> > - giflib is a library for reading and writing gif images. It is API and
> > + giflib is a library for reading and writing gif images. It was API and
> > ABI compatible with libungif which was in wide use while the LZW
> > compression algorithm was patented.
>
> So giflib is not compatible to libungif anymore?
No it is no longer comatible. It was, until version 5.0 introduced
changes for thread-safety. Quoting their website:
The 5.x versions change the API slightly in a way that isn't
compatible with older shared libraries.
and:
[...] the signatures of the file-opener functions were changed in
5.0 in order to make the library fully reentrant and thread-safe
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH] giflib: fix description about compatibility with libungif
2015-04-12 9:08 ` Baruch Siach
@ 2015-04-12 9:13 ` Yann E. MORIN
2015-04-12 10:04 ` Fabio Porcedda
0 siblings, 1 reply; 8+ messages in thread
From: Yann E. MORIN @ 2015-04-12 9:13 UTC (permalink / raw)
To: buildroot
Baruch, All,
On 2015-04-12 12:08 +0300, Baruch Siach spake thusly:
> On Sun, Apr 12, 2015 at 10:57:40AM +0200, Fabio Porcedda wrote:
> > On Sun, Apr 12, 2015 at 10:47 AM, Baruch Siach <baruch@tkos.co.il> wrote:
> > > On Sun, Apr 12, 2015 at 10:43:05AM +0200, Fabio Porcedda wrote:
> > >> Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
> > >> ---
> > >> package/giflib/Config.in | 2 +-
> > >> 1 file changed, 1 insertion(+), 1 deletion(-)
> > >>
> > >> diff --git a/package/giflib/Config.in b/package/giflib/Config.in
> > >> index 70368dc..bb5741a 100644
> > >> --- a/package/giflib/Config.in
> > >> +++ b/package/giflib/Config.in
> > >> @@ -1,7 +1,7 @@
> > >> config BR2_PACKAGE_GIFLIB
> > >> bool "giflib"
> > >> help
> > >> - giflib is a library for reading and writing gif images. It is API and
> > >> + giflib is a library for reading and writing gif images. It was API and
> > >> ABI compatible with libungif which was in wide use while the LZW
> > >> compression algorithm was patented.
> > >
> > > So giflib is not compatible to libungif anymore?
> >
> > Just comparing the gif_lib.h header you can see that the definition of
> > some functions changes:
> >
> > git diff --no-index libungif-4.1.4/lib/gif_lib.h giflib-5.1.1/lib/gif_lib.h
> >
> > GifFileType *EGifOpenFileName(const char *GifFileName,
> > - int GifTestExistance);
> > -GifFileType *EGifOpenFileHandle(int GifFileHandle);
> > -GifFileType *EGifOpen(void *userPtr, OutputFunc writeFunc);
> > -
> > + const bool GifTestExistence, int *Error);
> > +GifFileType *EGifOpenFileHandle(const int GifFileHandle, int *Error);
> > +GifFileType *EGifOpen(void *userPtr, OutputFunc writeFunc, int *Error);
> > int EGifSpew(GifFileType * GifFile);
>
> If this is the case I would use a more explicit language. Something like:
>
> giflib used to be API and ABI compatible with libungif which ... Note that
> recent gitlib versions are no longer compatible with libungif.
I would even go further, and remove any reference to libungif
altogether. So, just keep the first sentence:
giflib is a library for reading and writing gif images.
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH] giflib: fix description about compatibility with libungif
2015-04-12 9:13 ` Yann E. MORIN
@ 2015-04-12 10:04 ` Fabio Porcedda
0 siblings, 0 replies; 8+ messages in thread
From: Fabio Porcedda @ 2015-04-12 10:04 UTC (permalink / raw)
To: buildroot
On Sun, Apr 12, 2015 at 11:13 AM, Yann E. MORIN <yann.morin.1998@free.fr> wrote:
> Baruch, All,
>
> On 2015-04-12 12:08 +0300, Baruch Siach spake thusly:
>> On Sun, Apr 12, 2015 at 10:57:40AM +0200, Fabio Porcedda wrote:
>> > On Sun, Apr 12, 2015 at 10:47 AM, Baruch Siach <baruch@tkos.co.il> wrote:
>> > > On Sun, Apr 12, 2015 at 10:43:05AM +0200, Fabio Porcedda wrote:
>> > >> Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
>> > >> ---
>> > >> package/giflib/Config.in | 2 +-
>> > >> 1 file changed, 1 insertion(+), 1 deletion(-)
>> > >>
>> > >> diff --git a/package/giflib/Config.in b/package/giflib/Config.in
>> > >> index 70368dc..bb5741a 100644
>> > >> --- a/package/giflib/Config.in
>> > >> +++ b/package/giflib/Config.in
>> > >> @@ -1,7 +1,7 @@
>> > >> config BR2_PACKAGE_GIFLIB
>> > >> bool "giflib"
>> > >> help
>> > >> - giflib is a library for reading and writing gif images. It is API and
>> > >> + giflib is a library for reading and writing gif images. It was API and
>> > >> ABI compatible with libungif which was in wide use while the LZW
>> > >> compression algorithm was patented.
>> > >
>> > > So giflib is not compatible to libungif anymore?
>> >
>> > Just comparing the gif_lib.h header you can see that the definition of
>> > some functions changes:
>> >
>> > git diff --no-index libungif-4.1.4/lib/gif_lib.h giflib-5.1.1/lib/gif_lib.h
>> >
>> > GifFileType *EGifOpenFileName(const char *GifFileName,
>> > - int GifTestExistance);
>> > -GifFileType *EGifOpenFileHandle(int GifFileHandle);
>> > -GifFileType *EGifOpen(void *userPtr, OutputFunc writeFunc);
>> > -
>> > + const bool GifTestExistence, int *Error);
>> > +GifFileType *EGifOpenFileHandle(const int GifFileHandle, int *Error);
>> > +GifFileType *EGifOpen(void *userPtr, OutputFunc writeFunc, int *Error);
>> > int EGifSpew(GifFileType * GifFile);
>>
>> If this is the case I would use a more explicit language. Something like:
>>
>> giflib used to be API and ABI compatible with libungif which ... Note that
>> recent gitlib versions are no longer compatible with libungif.
>
> I would even go further, and remove any reference to libungif
> altogether. So, just keep the first sentence:
>
> giflib is a library for reading and writing gif images.
>
Because the libungif library is now deprecated i think it's a good idea.
BR
--
Fabio Porcedda
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH] giflib: fix description about compatibility with libungif
2015-04-12 8:43 [Buildroot] [PATCH] giflib: fix description about compatibility with libungif Fabio Porcedda
2015-04-12 8:47 ` Baruch Siach
@ 2015-04-12 10:21 ` Fabio Porcedda
1 sibling, 0 replies; 8+ messages in thread
From: Fabio Porcedda @ 2015-04-12 10:21 UTC (permalink / raw)
To: buildroot
I've sent an updated version of this patch:
http://patchwork.ozlabs.org/patch/460474/
BR
--
Fabio Porcedda
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-04-12 10:21 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-12 8:43 [Buildroot] [PATCH] giflib: fix description about compatibility with libungif Fabio Porcedda
2015-04-12 8:47 ` Baruch Siach
2015-04-12 8:57 ` Fabio Porcedda
2015-04-12 9:08 ` Baruch Siach
2015-04-12 9:13 ` Yann E. MORIN
2015-04-12 10:04 ` Fabio Porcedda
2015-04-12 9:10 ` Yann E. MORIN
2015-04-12 10:21 ` Fabio Porcedda
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox