Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8211 - artsc not found when emerging avifile or libdv
Summary: artsc not found when emerging avifile or libdv
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-22 05:12 UTC by Steffen Lassahn
Modified: 2003-02-06 20:46 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 Steffen Lassahn 2002-09-22 05:12:36 UTC
When trying to emerge either avifile-0.7.{14|15} or libdv-0.98 on a freshly
installed 1.4.0_rc1 both emerges fail when the linker tries to link the
libraries against artsc because it cannot find libartsc ("cannto find -lartsc").
A workaround is to create a symlink from /usr/lib/libartsc.so to
/usr/kde/3/lib/libartsc.so.

The reason for this behaviour is IMHO the ebuilds for these packages. Here is an
excerpt from /usr/portage/media-video/avifile/avifile-0.7.15.20020816:


-----------------        
        if [ `use kde` ]
        then
                myconf="${myconf} --enable-kde --with-extra-libraries=${KDEDIR}"
                LDFLAGS="${LDFLAGS} -L${KDEDIR}/lib"
        else
                myconf="${myconf} --disable-kde"
                LDFLAGS="${LDFLAGS}"
        fi

        # Rather not use custom ones here .. build should set as high as
        # safe by itself.
        unset CFLAGS CXXFLAGS LDFLAGS
----------------------

So first the LDFLAGS is set correctly to include the library dir of kde (the
configure is called with --enable-kde) but later the freshly set LDFLAGS is
unset again so the library cannot be found.

With libdv the case is a little different. Here in the ebuild method src_compile
the use of kde is not checked and so the compile fails when trying to link to artsc.

I am new to emerge so this analysis might be wrong or not complete, please advise.
Comment 1 SpanKY gentoo-dev 2002-09-22 13:18:37 UTC
azarah: any ideas ?
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-08 15:17:59 UTC
What about changing it to:

-----------------------
        if [ `use kde` ]
        then
                myconf="${myconf} --enable-kde \
                        --with-extra-libraries=/usr/lib:${KDEDIR}"
                LDFLAGS="${LDFLAGS} -L${KDEDIR}/lib"
        else
                myconf="${myconf} --disable-kde"
                LDFLAGS="${LDFLAGS}"
        fi
Comment 3 Steffen Lassahn 2002-12-09 09:18:50 UTC
Looks good to me.
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-09 13:24:40 UTC
Somebody will have to test though, as I dont use KDE ...
Comment 5 Steffen Lassahn 2002-12-11 13:45:50 UTC
I don't know what changed but both pacakges are emergeing fine now
(avifile-0.7.15.20020816 and libdv-0.98) I couldn't test it on a freshly
installed system though.
Comment 6 Charles Goodwin 2003-02-06 20:46:23 UTC
this also prevented media-libs/libmpeg2 from emerging.

the fix (creating a soft link from /usr/lib/libartsc.so to /usr/kde/3/lib/libartsc.so) worked a treat.