Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 791958 - dev-cpp/gstreamermm-1.10.0 always builds examples regrardless of the USE=examples
Summary: dev-cpp/gstreamermm-1.10.0 always builds examples regrardless of the USE=exam...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-25 12:23 UTC by Andrew Savchenko
Modified: 2021-05-25 12:24 UTC (History)
0 users

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


Attachments
gstreamermm-1.10.0.ebuild.patch (gstreamermm-1.10.0.ebuild.patch,969 bytes, patch)
2021-05-25 12:24 UTC, Andrew Savchenko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Savchenko gentoo-dev 2021-05-25 12:23:11 UTC
Hi!

USE=examples is not working properly and examples are always build. See https://786444.bugs.gentoo.org/attachment.cgi?id=703221

This happens because of assumption that SUBDIRS= and examples are on the same line:
    if ! use examples; then
        # don't waste time building examples
        sed -e 's/^\(SUBDIRS =.*\)examples\(.*\)$/\1\2/' \
            -i Makefile.am Makefile.in || die
    fi

But they are not:
SUBDIRS = tools $(src_subdirs) $(srcmm_subdirs) \
          tests examples $(doc_subdirs)

Proposed patch fixes this (but it doesn't fix examples build failure reported in bug 786444).
Comment 1 Andrew Savchenko gentoo-dev 2021-05-25 12:24:25 UTC
Created attachment 711135 [details, diff]
gstreamermm-1.10.0.ebuild.patch

Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>