Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 542808 - >=media-libs/mesa-10.3.7-r1: video_cards_r600 needs libelf only when opencl or r600-llvm-compiler are enabled
Summary: >=media-libs/mesa-10.3.7-r1: video_cards_r600 needs libelf only when opencl o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matt Turner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-10 11:41 UTC by Nikoli
Modified: 2015-03-28 19:51 UTC (History)
1 user (show)

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


Attachments
mesa-9999.ebuild.patch (mesa-9999.ebuild.patch,591 bytes, patch)
2015-03-10 11:41 UTC, Nikoli
Details | Diff
mesa-10.3.7-r1.ebuild.patch (mesa-10.3.7-r1.ebuild.patch,584 bytes, patch)
2015-03-10 11:57 UTC, Nikoli
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikoli 2015-03-10 11:41:37 UTC
Created attachment 398588 [details, diff]
mesa-9999.ebuild.patch

After rebuilding mesa with USE='-r600-llvm-compiler' 'grep libelf /var/db/pkg/media-libs/mesa-10.3.7-r1/NEEDED.ELF.2' finds nothing.

media-libs/mesa-10.3.7-r1 was built with the following:
USE="dri3 egl gallium gbm llvm nptl pax_kernel pic udev vdpau xa -bindist -classic -debug -gles1 -gles2 -opencl -openmax -openvg -osmesa -r600-llvm-compiler (-selinux) -wayland -xvmc" ABI_X86="64 -32 -x32" VIDEO_CARDS="r600 radeon -freedreno -i915 -i965 -ilo -intel -nouveau -r100 -r200 -r300 -radeonsi -vmware"

I looked into configure.ac of current git master, libelf is required only for opencl, radeonsi and r600-llvm-compiler:


if test "x$enable_opencl" = xyes; then
...
    if test "x$have_libelf" != xyes; then
       AC_MSG_ERROR([Clover requires libelf])
    fi
fi
...
radeon_llvm_check() {
...
    if test "x$have_libelf" != xyes; then
       AC_MSG_ERROR([$1 requires libelf when using llvm])
    fi
}
...
if test -n "$with_gallium_drivers"; then
    gallium_drivers=`IFS=', '; echo $with_gallium_drivers`
    for driver in $gallium_drivers; do
        case "x$driver" in
...
        xr600)
...
            if test "x$enable_r600_llvm" = xyes -o "x$enable_opencl" = xyes; then
                radeon_llvm_check "r600g"
                LLVM_COMPONENTS="${LLVM_COMPONENTS} bitreader asmparser"
            fi
...
            ;;
        xradeonsi)
..
            radeon_llvm_check "radeonsi"
..
            ;;
        esac
    done
fi
Comment 1 Nikoli 2015-03-10 11:57:18 UTC
Created attachment 398590 [details, diff]
mesa-10.3.7-r1.ebuild.patch
Comment 2 Matt Turner gentoo-dev 2015-03-28 19:51:55 UTC
Thanks! Fixed in 9999 and 10.5.2.