First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 58006
Alias:
Product:
Component:
Status: CLOSED
Resolution: FIXED
Assigned To: osx porters <osx@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: sanityimp <sanityimp@yahoo.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
libvorbis-1.0.1-r2.ebuild Modified ebuild text/plain Vincent Strubel 2004-07-28 18:04 0000 1.99 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 58006 depends on: 58848 Show dependency tree
Bug 58006 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.




View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-07-22 20:01 0000
the ebuild doesnt compile because the packages defaults to trying to build a
static package, where mac osx doesnt ship with static libs (??)
--disable-static on ./configure helps but it chokes on examples? if you can
disable the examples, itll work fine.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

------- Comment #1 From Seemant Kulleen (RETIRED) 2004-07-22 22:53:30 0000 -------
Alexander, can you and the macos team please create a mail alias and bugzilla
login for that alias for macos@gentoo please

------- Comment #2 From Pieter Van den Abeele 2004-07-23 06:56:45 0000 -------
osx@gentoo.org is our alias.

------- Comment #3 From Vincent Strubel 2004-07-28 18:02:02 0000 -------
Indeed it (libvorbis-1.0.1-r2) fails on examples because of missing -lcrt0.o
(OSX only has crt1.o). Works okay without the examples (and a workaround for
invalid symlinks on .so). I've put all of this in an ebuild, and it emerged
properly (CFLAGS="-Os -pipe -faltivec -mcpu=7450 -mtune=7450", USE="macos X
berkdb ldap mysql perl python ruby")... I don't know how important the examples
are, but maybe you could put it in ~macos anyway.
It also tested successfully with vorbis-tools (will make a separate bug for
that). 

Diff on the original ebuild is :
--- libvorbis-1.0.1-r2.ebuild.orig      Thu Jul 29 04:15:24 2004
+++ libvorbis-1.0.1-r2.ebuild   Thu Jul 29 04:16:15 2004
@@ -48,13 +48,19 @@
        append-ldflags -fPIC

        econf || die
+       use macos && cd ${S} && sed -e 's/examples//' Makefile > Makefile.tmp
&& mv Makefile.tmp Makefile
        emake || die
 }

 src_install() {
        make DESTDIR=${D} install || die
-       dosym /usr/lib/libvorbisfile.so.3.1.0 /usr/lib/libvorbisfile.so.0
-       dosym /usr/lib/libvorbisenc.so.2.0.0 /usr/lib/libvorbisenc.so.0
+       if [ `use macos` ]; then
+               dosym /usr/lib/libvorbisfile.3.1.0.dylib
/usr/lib/libvorbisfile.0.dylib
+               dosym /usr/lib/libvorbisenc.2.0.0.dylib
/usr/lib/libvorbisenc.0.dylib
+       else
+               dosym /usr/lib/libvorbisfile.so.3.1.0
/usr/lib/libvorbisfile.so.0
+               dosym /usr/lib/libvorbisenc.so.2.0.0 /usr/lib/libvorbisenc.so.0
+       fi

        rm -rf ${D}/usr/share/doc
        dodoc AUTHORS COPYING README todo.txt

------- Comment #4 From Vincent Strubel 2004-07-28 18:04:16 0000 -------
Created an attachment (id=36355) [edit]
Modified ebuild

This builds successfully, and seems to work as far as I've tested.

------- Comment #5 From Michael Hanselmann (hansmi) (RETIRED) 2004-09-12 03:33:55 0000 -------
Done in CVS.

------- Comment #6 From Hasan Khalil (RETIRED) 2005-02-06 13:33:09 0000 -------
Closing out bugs that've been resolved for a while now... 

First Last Prev Next    No search results available      Search page      Enter new bug