Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 450072

Summary: New ebuild: dev-libs/loadpng - Some glue that makes it easy to use libpng to load and save bitmaps from Allegro programs.
Product: Gentoo Linux Reporter: Tom Wijsman (TomWij) (RETIRED) <tomwij>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: RESOLVED OBSOLETE    
Severity: enhancement CC: proxy-maint, ssuominen
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://tjaden.strangesoft.net/loadpng/
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: loadpng-1.5.ebuild
build.log
emerge --info

Description Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-01-03 22:58:18 UTC
Created attachment 334258 [details]
loadpng-1.5.ebuild

Here's a start to a loadpng ebuild, I can't get it to compile yet because I haven't yet figured out what is causing the errors; will attach the build log.

If possible, I am interested in becoming a proxy maintainer for this package.
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-01-03 22:59:21 UTC
Created attachment 334260 [details]
build.log

savepng.c: In function ‘really_save_png’:
savepng.c:191:25: error: dereferencing pointer to incomplete type
make: *** [savepng.o] Error 1
make: *** Waiting for unfinished jobs....
loadpng.c:22:30: error: ‘Z_BEST_COMPRESSION’ undeclared here (not in a function)
loadpng.c: In function ‘really_load_png’:
loadpng.c:89:9: warning: variable ‘tRNS_to_alpha’ set but not used [-Wunused-but-set-variable]
loadpng.c: In function ‘load_png_pf’:
loadpng.c:279:25: error: dereferencing pointer to incomplete type
loadpng.c: In function ‘load_memory_png’:
loadpng.c:375:25: error: dereferencing pointer to incomplete type
make: *** [loadpng.o] Error 1
Comment 2 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-01-03 23:03:44 UTC
Created attachment 334262 [details]
emerge --info

The output of `emerge --info` is too long for a comment, hence it has been attached.
Comment 3 Julian Ospald 2013-01-03 23:12:49 UTC
6 years old, does not compile... seems dead
Comment 4 Julian Ospald 2013-01-03 23:35:45 UTC
I made it compile, but there is a file collision with media-libs/allegro in 
/usr/include/loadpng.h

also, doesn't allegro already provide that functionality?
Comment 5 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-01-04 01:36:10 UTC
> also, doesn't allegro already provide that functionality?

This would explain why I didn't need to include the loadpng library before, Aseprite (see the bug I block) has Allegro as a dependency. As a result, I see no need for this dead library to be added to Portage, since it's most likely the case that this has been merged into Allegro and further developed by them.
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2013-01-04 13:52:18 UTC
right, use loadpng from allegro