After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 585343 - [PATCH] gimp-gap-2.6.0 warnings and portability error fixes
[PATCH] gimp-gap-2.6.0 warnings and portability error fixes
Status: RESOLVED FIXED
Product: gimp-gap
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: hof
hof
: 585342 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-06-10 14:50 UTC by Stanislav Brabec
Modified: 2009-06-20 08:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gimp-gap-warnings.patch (14.03 KB, patch)
2009-06-10 15:03 UTC, Stanislav Brabec
none Details | Review
gimp-gap-warnings2.patch (1.04 KB, patch)
2009-06-10 17:01 UTC, Stanislav Brabec
none Details | Review

Description Stanislav Brabec 2009-06-10 14:50:44 UTC
Attached patch fixes many serious compiler warnings and portability issues:

- Implicit declarations. Some of them cause miscompilation on x86_64 nearly for sure.

- Use of functions that were intended to be local and were not declared in headers.

- Errors in DESTDIR installation.

- Use of disabled deprecated functions of libgimp.

- Use of uninitialized variable.

- Incorrect number of arguments in printf

- Syntax error in gap_gve_png.h.

- Writing to array out of subscript range. Note that ffmpeg copy bundled with gimp-gap-2.6.0 also contains several errors of this type not covered by the attached patch:

libavcodec/4xm.c:485
libavcodec/dca.c:1010
libavutil/aes.c:133, 187
libavutil/lls.c:87

This patch does not include an other cosmetic fix: Use of #include "" for external includes (glib, gtk, libgimp).

It's also recommended to do a locale rename:
sed -i -e "s,sr@Latn,sr@latin," po/LINGUAS
mv po/sr@Latn.po po/sr@latin.po
Comment 1 Stanislav Brabec 2009-06-10 15:03:34 UTC
Created attachment 136274 [details] [review]
gimp-gap-warnings.patch
Comment 2 Stanislav Brabec 2009-06-10 15:06:24 UTC
*** Bug 585342 has been marked as a duplicate of this bug. ***
Comment 3 Stanislav Brabec 2009-06-10 17:01:24 UTC
Created attachment 136280 [details] [review]
gimp-gap-warnings2.patch

Additional fix of random behavior. It seems, that one of the functions was intended to be void, in the second case the return value is used but never set.
Comment 4 hof 2009-06-20 08:25:08 UTC
Thanks for providing fixes for gimp-gap warnings and bugs.
After review and testing i applied the changes to the master git repository

with one exception:
  instead of enable usaage of deprecated gimp procedures
  the dprecated gimp_md5_get_digest procedure was replaced
  as suggested by the GIMP implementation.
  

note that ffmpeg is included in the gimp-gap repository just for
convenient build purpose, but is not maintained here.

See http://www.ffmpeg.org/bugreports.html 
for reporting bugs related to the ffmpeg code.

(fixes will require porting gimp-gap to a new ffmpeg release
but this may only happen in case of errors that break important features)