Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109957 - Porting: libpng-1.2.8-r1
Summary: Porting: libpng-1.2.8-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: PPC OS X
: High normal (vote)
Assignee: Gentoo for Mac OS X
URL:
Whiteboard:
Keywords:
: 109032 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-20 14:01 UTC by wbaudler
Modified: 2006-04-12 10:53 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wbaudler 2005-10-20 14:01:43 UTC
The libpng-1.2.8-r1.ebuild fails with this error:

cc -o pngtest -I -Wall -O3 -funroll-loops pngtest.o -L. -L -lpng12 -lz
/usr/bin/ld: -L: directory name missing
collect2: ld returned 1 exit status
make: *** [pngtest] Error 1

!!! ERROR: media-libs/libpng-1.2.8-r1 failed.
!!! Function src_compile, Line 46, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.

A fix to sed expression in the ebuild (adding a "." in the sed expression)
corrected the problem.

Reproducible: Always
Steps to Reproduce:




Expected Results:  
emerge cleanly

        sed \
                -e "/^ZLIBLIB=/s:=.*:=.:" \
                -e "/^ZLIBINC=/s:=.*:=.:" \
                -e "/^LIBPATH=/s:/lib:/$(get_libdir):" \
                -e 's:mkdir:mkdir -p:' \
                ${makefilein} > Makefile || die
Comment 1 Hasan Khalil (RETIRED) gentoo-dev 2005-10-29 23:25:14 UTC
This fix worked for me (on ~ppc-macos as well as ~x86). If it's allright with everyone else, I'd love to see it 
made global (it shouldn't have any detrimental effects, should it?).

CC'ing base-system, since they're listed in the metadata.xml.
Comment 2 SpanKY gentoo-dev 2005-10-30 00:30:43 UTC
no, fix makefile.darwin like we already fix makefile.linux
Comment 3 Fabian Groffen gentoo-dev 2005-10-30 01:15:15 UTC
As per SpankY's suggestion, added patch for makefile.darwin to
libpng-1.2.8-build.patch.

I had no problems to compile and install afterwards.
Comment 4 Fabian Groffen gentoo-dev 2005-10-30 01:40:57 UTC
*** Bug 109032 has been marked as a duplicate of this bug. ***